5ed23e605d1946b5487e0cf02ad0ed60cc37398c
[gnulib.git] / ChangeLog
1 2012-01-16  Eric Blake  <eblake@redhat.com>
2
3         bootstrap: properly check for libtool
4         * build-aux/bootstrap (libtoolize): Also run libtool when older
5         usage is detected.
6
7 2012-01-15  Bruno Haible  <bruno@clisp.org>
8
9         Improve support for MSVC 9.
10         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
11         clashes on MSVC.
12         * lib/fcntl.in.h: Likewise.
13         * lib/stdlib.in.h: Likewise.
14         * lib/sys_stat.in.h: Likewise.
15
16 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
17
18         gnupload: we hold the master copy of this script now
19         For motivation and more information, see:
20         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
21         * build-aux/gnupload: Make it clear in the heading comments that the
22         master copy of this file is maintained by gnulib.  Since we are at
23         it, bump its copyright year and ...
24         ($scriptversion): ... the date in its version.
25         ($usage): Patches and bug reports should be sent to the gnulib list,
26         not the automake one.
27         * config/srclist.txt: Don't try to sync 'gnupload' from automake
28         anymore.
29
30 2012-01-15  Bruno Haible  <bruno@clisp.org>
31
32         Fix module 'random'.
33         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
34         initstate, setstate are declared.
35
36 2012-01-14  Bruno Haible  <bruno@clisp.org>
37
38         Tests for module 'random'.
39         * modules/random-tests: New file.
40         * tests/test-random.c: New file, based on tests/test-random_r.c.
41
42         New module 'random'.
43         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44         declarations.
45         * lib/random.c: New file, based on glibc/stdlib/random.c.
46         * m4/random.m4: New file.
47         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
48         HAVE_RANDOM.
49         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
50         * modules/random: New file.
51         * config/srclist.txt: Add an entry for random.c.
52         * doc/posix-functions/random.texi: Mention the 'random' module.
53         * doc/posix-functions/initstate.texi: Likewise.
54         * doc/posix-functions/setstate.texi: Likewise.
55         * doc/posix-functions/srandom.texi: Likewise.
56
57 2012-01-12  Bruno Haible  <bruno@clisp.org>
58
59         random_r: Use common idioms.
60         * lib/random_r.c: Include <stdlib.h> first.
61
62         random_r: Override incompatible API on AIX, OSF/1.
63         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
64         Override the system function if REPLACE_RANDOM_R is 1.
65         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
66         and OSF/1, set REPLACE_RANDOM_R.
67         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
68         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
69         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
70         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
71         * doc/glibc-functions/random_r.texi: Likewise.
72         * doc/glibc-functions/setstate_r.texi: Likewise.
73
74         random_r: Support for MSVC 9.
75         * lib/random_r.c: Include stdint.h, not inttypes.h.
76
77 2012-01-12  Eric Blake  <eblake@redhat.com>
78
79         inet_ntop: guard extra work by IF_LINT
80         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
81         better code generation when not checking for warnings.
82         Suggested by Paul Eggert and Jim Meyering.
83
84         strptime: fix regression on mingw
85         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
86         Fix regression.  Reported by Bruno Haible.
87
88 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
89             Bruno Haible  <bruno@clisp.org>
90
91         copy-file: add error-code-returning variant.
92         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
93         (qcopy_file_preserving): New declaration.
94         * lib/copy-file.c (qcopy_file_preserving): Renamed from
95         copy_file_preserving. Change return type to 'int'. Don't emit an error
96         message here.
97         (copy_file_preserving): New function.
98         * tests/test-copy-file.c: Include <stdlib.h>.
99         (main): Test qcopy_file_preserving if the environment variable
100         NO_STDERR_OUTPUT is set.
101         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
102         with NO_STDERR_OUTPUT
103         * tests/test-copy-file-2.sh: Likewise.
104
105 2012-01-10  Bruno Haible  <bruno@clisp.org>
106
107         copy-file: Use 'quote' module consistently.
108         * lib/copy-file.c (copy_file_preserving): Use quote().
109
110         copy-file: Refactor.
111         * lib/copy-file.c: Include quote.h.
112         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
113         message here.
114         * modules/copy-file (Depends-on): Add quote.
115
116         acl: Export qcopy_acl.
117         * lib/acl.h (qcopy_acl): New declaration.
118         * lib/copy-acl.c (qcopy_acl): Make non-static.
119
120         acl: Rename a local variable.
121         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
122
123         acl: Align return values of copy_acl and qcopy_acl.
124         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
125         maybe < -1.
126
127 2012-01-11  Eric Blake  <eblake@redhat.com>
128
129         strptime: silence gcc warnings
130         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
131         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
132         Reported by Daniel P. Berrange.
133
134         inet_ntop: silence gcc warning
135         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
136         Reported by Daniel P. Berrange.
137
138 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
139
140         getloadavg test: skip the test on GNU/Linux without /proc mounted
141         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
142         file.  When /proc is not mounted, it always fails with ENOENT.
143         * tests/test-getloadavg.c (main): Treat ENOENT return code from
144         getloadavg(3) the same way as ENOSYS and ENOTSUP.
145
146 2012-01-10  Bruno Haible  <bruno@clisp.org>
147
148         regex: Avoid link error on MSVC 9.
149         * modules/regex (Depends-on): Add wctype.
150
151 2012-01-10  Bruno Haible  <bruno@clisp.org>
152
153         doc: Mention --with-tests option.
154         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
155         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
156         --with-tests.
157         Reported by Reuben Thomas.
158
159 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
160
161         users.txt: order package names lexicographically.
162         * users.txt: Order package names lexicographically.
163
164 2012-01-10  Jim Meyering  <meyering@redhat.com>
165
166         maint.mk: fix description in comment
167         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
168
169         ignore-value: remove deprecated ignore_ptr function
170         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
171         * NEWS: Note this.
172
173 2012-01-09  Jim Meyering  <meyering@redhat.com>
174
175         test-init.sh: avoid a subshell
176         * tests/test-init.sh: Remove protective subshell.
177         Suggested by Bernhard Voelker.  While a subshell is normally
178         required to protect against older shells (Solaris, FreeBSD) that
179         warn about a missing program before performing redirection, the
180         shell-selection tests performed by init.sh probably exclude any
181         offending shell.
182
183 2012-01-08  Bruno Haible  <bruno@clisp.org>
184
185         setlocale tests: Avoid test failure on Solaris 11 2011-11.
186         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
187         variable.
188
189 2012-01-08  Bruno Haible  <bruno@clisp.org>
190
191         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
192         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
193         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
194         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
195         macro.
196         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
197         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
198         * lib/spawn_faction_addopen.c: Add workaround implementation if
199         HAVE_WORKING_POSIX_SPAWN.
200         * modules/spawn (Makefile): Substitute
201         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
202         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
203         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
205         (Depends-on): Update conditions.
206         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
207         the Solaris 11 bug.
208
209 2012-01-08  Bruno Haible  <bruno@clisp.org>
210
211         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
212         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
213         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
214         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
215         macro.
216         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
217         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
218         * lib/spawn_faction_adddup2.c: Add workaround implementation if
219         HAVE_WORKING_POSIX_SPAWN.
220         * modules/spawn (Makefile): Substitute
221         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
222         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
223         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
224         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
225         (Depends-on): Update conditions.
226         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
227         the Solaris 11 bug.
228
229 2012-01-08  Bruno Haible  <bruno@clisp.org>
230
231         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
232         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
233         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
235         HAVE_WORKING_POSIX_SPAWN.
236         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
237         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
238         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
239         * lib/spawn_faction_addclose.c: Add workaround implementation if
240         HAVE_WORKING_POSIX_SPAWN.
241         * modules/spawn (Makefile): Substitute
242         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
243         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
244         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
245         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
246         (Depends-on): Update conditions.
247         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
248         the Solaris 11 bug.
249
250 2012-01-08  Bruno Haible  <bruno@clisp.org>
251
252         doc: Update for Solaris 11 2011-11.
253         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
254         * m4/printf.m4: Update comments.
255
256 2012-01-08  Bruno Haible  <bruno@clisp.org>
257
258         mktime: Avoid compilation error on Solaris 11.
259         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
260
261 2012-01-08  Bruno Haible  <bruno@clisp.org>
262
263         doc: Small fix.
264         * doc/posix-headers/nl_types.texi: Correct platforms list.
265
266 2012-01-08  Simon Josefsson  <simon@josefsson.org>
267
268         Add lgpl-3.0 module.
269         * MODULES.html.sh (Support for building documentation): Add
270         lgpl-3.0.
271         * modules/lgpl-3.0: New file.
272
273 2012-01-08  Jim Meyering  <meyering@redhat.com>
274
275         select.c: indent with spaces, not TABs
276         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
277
278 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
279
280         quotearg: do not use grave accent for left quote
281         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
282         locale_quoting_style.
283         (quotearg_buffer_restyled): Fix example.
284         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
285
286 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
287
288         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
289         Most programs do not have translation catalogs for English and much
290         less separate catalogs for British and American English.  Drop the
291         suggestion to translators about these two, and provide it
292         automatically for Unicode locales.  Like most programs, even those
293         using American English, we use single quotation marks.  This conflicts
294         with the American typographic convention, but works better when you
295         cite the entire error message within double quotes.  It also tries not
296         to clash with established practice and with what non-gnulib programs
297         will usually do.
298         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
299         using an UTF-8 or GB-18030 locale.  The list of other locales with
300         quotes was provided by Bruno Haible.
301         (quotearg_buffer_restyled): Adjust instructions to translators.
302         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
303         text, since this would be wrong when using Unicode.
304         * modules/quotearg: Depend on c-strcaseeq.
305
306 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
307
308         quotearg: fix Wikipedia link
309         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
310
311 2012-01-07  Simon Josefsson  <simon@josefsson.org>
312
313         Fix for mingw with MSVC9.
314         * m4/ld-version-script.m4: Check that compiler rejects version
315         scripts with syntax errors.  Reported by Bruno Haible
316         <bruno@clisp.org>.
317
318 2012-01-06  Bruno Haible  <bruno@clisp.org>
319
320         Talk about "native Windows API", not "Woe32".
321         * lib/accept4.c: Update comments to mention native Windows.
322         * lib/execute.c: Likewise.
323         * lib/fatal-signal.c: Likewise.
324         * lib/localcharset.c: Likewise.
325         * lib/nanosleep.c: Likewise.
326         * lib/nl_langinfo.c: Likewise.
327         * lib/pclose.c: Likewise.
328         * lib/pipe-filter-gi.c: Likewise.
329         * lib/pipe-filter-ii.c: Likewise.
330         * lib/pipe.c: Likewise.
331         * lib/pipe2.c: Likewise.
332         * lib/popen.c: Likewise.
333         * lib/progreloc.c: Likewise.
334         * lib/relocatable.c: Likewise.
335         * lib/sigaction.c: Likewise.
336         * lib/sigprocmask.c: Likewise.
337         * lib/spawn-pipe.h: Likewise.
338         * lib/spawn-pipe.c: Likewise.
339         * lib/spawni.c: Likewise.
340         * lib/stat-time.h: Likewise.
341         * lib/w32spawn.h: Likewise.
342         * tests/test-isatty.c: Likewise.
343         * lib/config.charset: More comments.
344         * doc/gnulib-intro.texi: Mention native Windows.
345         * doc/posix-functions/_Exit_C99.texi: Likewise.
346         * doc/posix-headers/fcntl.texi: Likewise.
347
348 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
349
350         argp: Avoid crash if translator uses % characters in a translation.
351         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
352         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
353
354 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
355
356         doc: C11 and C++11 are now official
357         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
358         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
359         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
360         * modules/stdalign:
361         Replace references to draft C1X to C11, and to draft C++0X to C++11.
362
363 2012-01-06  Bruno Haible  <bruno@clisp.org>
364
365         uc-is-grapheme-break tests: Tweak.
366         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
367         message.
368
369 2012-01-06  Bruno Haible  <bruno@clisp.org>
370
371         test-init.sh: correct the test for diff -u
372         * tests/test-init.sh: Also redirect stdout to /dev/null.
373
374 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
375
376         Use ', not `, for quoting output.
377         * build-aux/announce-gen (usage, sizes, print_news_deltas)
378         (print_changelog_deltas, get_tool_versions, main program):
379         * build-aux/git-version-gen:
380         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
381         * build-aux/move-if-change (help):
382         * build-aux/useless-if-before-free (usage, main program):
383         * check-module (parse_module_file, usage)
384         (find_included_lib_files, check_module):
385         * lib/argmatch.c (main) [TEST]:
386         * lib/argp-help.c (_help):
387         * lib/getopt1.c (main) [TEST]:
388         * lib/git-merge-changelog.c (usage):
389         * lib/xstrtol-error.c (xstrtol_error):
390         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
391         * m4/argz.m4 (gl_FUNC_ARGZ):
392         * m4/bison.m4 (gl_BISON):
393         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
394         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
395         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
396         * m4/fpending.m4 (gl_PREREQ_FPENDING):
397         * m4/gc-random.m4 (gl_GC_RANDOM):
398         * m4/intl.m4 (gt_CHECK_DECL):
399         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
400         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
401         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
403         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
404         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
405         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
406         * tests/test-dirname.c (main):
407         * tests/test-getpass.c (main):
408         * tests/test-iconvme.c (main):
409         * tests/test-parse-datetime.c (LOG):
410         * tests/test-xstrtoimax.sh:
411         * tests/test-xstrtol.sh:
412         * tests/test-xstrtoll.sh:
413         * tests/test-xstrtoumax.sh:
414         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
415         * top/GNUmakefile (abort-due-to-no-makefile):
416         Quote 'like this', not `like this', as per the recent change to
417         the GNU coding standards.
418
419 2012-01-05  Bruno Haible  <bruno@clisp.org>
420
421         strtoimax: Don't force a replacement on systems where intmax_t is int.
422         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
423         'intmax_t' is not larger than 'int'.
424         Reported by Pádraig Brady <P@draigBrady.com>.
425
426 2012-01-05  Bruno Haible  <bruno@clisp.org>
427
428         doc: Mention NetBSD bugs.
429         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
430         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
431
432 2012-01-05  Bruno Haible  <bruno@clisp.org>
433
434         strtoumax tests: Enhance tests.
435         * tests/test-strtoumax.c (main): Add tests for large values.
436
437 2012-01-05  Bruno Haible  <bruno@clisp.org>
438
439         strtoimax: Work around AIX 5.1 bug.
440         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
441         definition.
442         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
443         Set HAVE_STRTOIMAX.
444         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
445         REPLACE_STRTOIMAX.
446         * modules/inttypes-incomplete (Makefile.am): Substitute
447         REPLACE_STRTOIMAX.
448         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
449         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
450         (Depends-on): Update conditions.
451         * tests/test-strtoimax.c (main): Add tests for large values.
452         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
453
454 2012-01-05  Bruno Haible  <bruno@clisp.org>
455
456         inttypes: Modernize.
457         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
458         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
459         (Makefile.am): Update inttypes.h rule.
460
461 2012-01-05  Jim Meyering  <meyering@redhat.com>
462
463         init.sh: don't waste a subshell just to redirect stderr
464         * tests/init.sh: In testing for diff -u and diff -c, use a
465         stderr-redirecting exec inside `...` rather than a subshell.
466
467         test-init.sh: avoid failure on HP-UX 11.00
468         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
469         resolves to diff -c or cmp.  Reported by Bruno Haible.
470
471 2012-01-05  Bruno Haible  <bruno@clisp.org>
472
473         Tests for module 'strtoull'.
474         * modules/strtoull-tests: New file.
475         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
476
477 2012-01-05  Bruno Haible  <bruno@clisp.org>
478
479         Tests for module 'strtoll'.
480         * modules/strtoll-tests: New file.
481         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
482
483 2012-01-05  Bruno Haible  <bruno@clisp.org>
484
485         Tests for module 'strtoul'.
486         * modules/strtoul-tests: New file.
487         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
488
489 2012-01-05  Bruno Haible  <bruno@clisp.org>
490
491         Tests for module 'strtol'.
492         * modules/strtol-tests: New file.
493         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
494
495 2012-01-04  Jim Meyering  <meyering@redhat.com>
496
497         test-init.sh: accommodate Solaris 5.10's different diff -u output
498         * tests/test-init.sh: Also exempt @@ lines from the comparison
499         of diff output, since Solaris 5.10 and GNU diff formats differ.
500         Reported by Stefano Lattarini.
501
502 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
503
504         test-posixtm: don't assume signed integer wraparound
505         * tests/test-posixtm.c (main): Don't assume wraparound semantics
506         after signed integer overflow.  Inspired by (though it may not
507         fix) Bruno Haible's bug report in
508         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
509
510         Spell out "Windows 9x" and "Windows XP".
511         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
512         "Windows 9x" and "WinXP" with "Windows XP".
513
514 2012-01-04  Jim Meyering  <meyering@redhat.com>
515
516         test-vc-list-files-cvs.sh: remove obsolete comment
517         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
518         double exit.  Now that's all encapsulated via skip_ and Exit.
519
520 2012-01-04  Bruno Haible  <bruno@clisp.org>
521
522         Talk about "native Windows API", not "Win32".
523         * lib/classpath.c: Update comments to mention native Windows.
524         * lib/csharpexec.c: Likewise.
525         * lib/dup2.c: Likewise.
526         * lib/error.c: Likewise.
527         * lib/fcntl.c: Likewise.
528         * lib/filename.h: Likewise.
529         * lib/findprog.c: Likewise.
530         * lib/get-rusage-as.c: Likewise.
531         * lib/get-rusage-data.c: Likewise.
532         * lib/getpagesize.c: Likewise.
533         * lib/javaexec.c: Likewise.
534         * lib/msvc-inval.c: Likewise.
535         * lib/msvc-nothrow.c: Likewise.
536         * lib/nanosleep.c: Likewise.
537         * lib/nonblocking.c: Likewise.
538         * lib/printf-parse.c: Likewise.
539         * lib/setlocale.c: Likewise.
540         * lib/sigaction.c: Likewise.
541         * lib/strerror_r.c: Likewise.
542         * lib/tmpdir.c: Likewise.
543         * lib/vasnprintf.c: Likewise.
544         * lib/w32spawn.h: Likewise.
545         * lib/waitpid.c: Likewise.
546         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
547         * m4/locale-ar.m4: Likewise.
548         * m4/locale-fr.m4: Likewise.
549         * m4/locale-ja.m4: Likewise.
550         * m4/locale-tr.m4: Likewise.
551         * m4/locale-zh.m4: Likewise.
552         * m4/printf.m4: Likewise.
553         * tests/test-cloexec.c: Likewise.
554         * tests/test-copy-acl.sh: Likewise.
555         * tests/test-copy-file.sh: Likewise.
556         * tests/test-file-has-acl.sh: Likewise.
557         * tests/test-set-mode-acl.sh: Likewise.
558         * tests/test-dup-safer.c: Likewise.
559         * tests/test-dup2.c: Likewise.
560         * tests/test-dup3.c: Likewise.
561         * tests/test-fcntl.c: Likewise.
562         * tests/test-nonblocking-pipe.h: Likewise.
563         * tests/test-nonblocking-socket.h: Likewise.
564         * tests/test-pipe.c: Likewise.
565         * tests/test-pipe2.c: Likewise.
566         * tests/test-spawn-pipe-child.c: Likewise.
567         * doc/acl-resources.txt: Likewise.
568         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
569         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
570         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
571         * lib/localcharset.c: Update comments to mention native Windows.
572         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
573         * lib/localename.c: Likewise.
574         * lib/progreloc.c: Likewise.
575         * lib/relocatable.c: Likewise.
576         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
577         (windows_compute_revents): Renamed from win32_compute_revents.
578         (windows_compute_revents_socket): Renamed from
579         win32_compute_revents_socket.
580         * lib/select.c: Update comments to mention native Windows.
581         (windows_poll_handle): Renamed from win32_poll_handle.
582         * m4/threadlib.m4: Update comments to mention native Windows.
583         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
584         --enable-threads=windows instead of --enable-threads=win32. Set
585         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
586         * lib/glthread/lock.h: Update comments to mention native Windows.
587         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
588         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
589         USE_WIN32_THREADS.
590         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
591         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
592         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
593         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
594         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
595         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
596         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
597         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
598         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
599         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
600         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
601         * tests/test-tls.c: Likewise.
602         Rationale:
603         Microsoft renamed the "Win32 API" to "Windows API", as it is available
604         on both 32-bit and 64-bit Windows systems.
605         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
606         line of distinction is between "native Windows" on one side and Unix/
607         POSIX systems on the other side. More details in
608         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
609         Suggested by Paul Eggert.
610
611 2012-01-03  Bruno Haible  <bruno@clisp.org>
612
613         isatty: Support for MSVC 9.
614         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
615         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
616         (_isatty_nothrow): New function.
617         (isatty): Use it instead of _isatty.
618         (IsConsoleHandle): Add comment, from Paolo Bonzini.
619         * lib/poll.c (IsConsoleHandle): Likewise.
620         * lib/select.c (IsConsoleHandle): Likewise.
621         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
622         (gl_PREREQ_ISATTY): New macro.
623         * modules/isatty (Depends-on): Add msvc-inval.
624         (configure.ac): Invoke gl_PREREQ_ISATTY.
625
626 2012-01-03  Jim Meyering  <meyering@redhat.com>
627
628         maint.mk: remove temporary transition aid from over 1.5 years ago
629         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
630         purpose was to aid in the transition (avoiding silent malfunction)
631         from that old name to the new _sc_search_regexp.  This shim was
632         added by commit 219c504b.
633
634         init.sh: do not try to accommodate compare arguments starting with "-"
635         * tests/init.sh (compare_dev_null_): Do not try to accommodate
636         compare arguments that start with "-".  Besides, we do not worry
637         about this when invoking diff or cmp; why start now with sed?
638         Using "--" to separate options from argument would trigger sed
639         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
640         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
641
642 2012-01-02  Bruno Haible  <bruno@clisp.org>
643
644         Enhance tests for module 'isatty'.
645         * modules/isatty-tests (Depends-on): Add pipe-posix.
646         * tests/test-isatty.c: Include <fcntl.h>.
647         (DEV_NULL): New macro.
648         (main): Test the resut of isatty() also on regular files, pipes, and
649         /dev/null.
650
651         New module 'isatty'.
652         * lib/unistd.in.h (isatty): New declaration.
653         * lib/isatty.c: New file, based on an idea of
654         Bastien Roucariès <roucaries.bastien@gmail.com>.
655         * m4/isatty.m4: New file.
656         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
657         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
658         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
659         REPLACE_ISATTY.
660         * modules/isatty: New file.
661         * doc/posix-functions/isatty.texi: Mention the new module.
662         Suggested by Paolo Bonzini.
663
664 2012-01-02  Bruno Haible  <bruno@clisp.org>
665
666         canonicalize: Tweak 2011-12-29 commit.
667         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
668         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
669
670 2012-01-02  Jim Meyering  <meyering@redhat.com>
671
672         gitlog-to-changelog: describe input syntax in --help output
673         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
674
675         gitlog-to-changelog: fix typo in --help: show backslash before email @
676         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
677         in sources, but not in actual output.
678
679 2011-12-30  Jim Meyering  <meyering@redhat.com>
680
681         gitlog-to-changelog: don't malfunction when name contains %-directive
682         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
683         in a name string cause trouble.  E.g., with a user name of "%s",
684         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
685
686 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
687
688         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
689         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
690         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
691         the "  (tiny change)" notation that is appended to the standard
692         ChangeLog "date  name  email" header line.
693
694 2012-01-01  Jim Meyering  <meyering@redhat.com>
695
696         test-framework-sh: init.sh: fix "make dist" failure
697         When using gnulib-tool's --with-tests option and any module that
698         depends on test-framework-sh, "make dist" would fail due to the
699         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
700         in the gltests directory, and not in the gllib/ directory.
701         One way to work around that is to move the EXTRA_DIST += init.sh
702         from the primary module to the -tests one:
703         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
704         * modules/test-framework-sh (Makefile.am): ...not here.
705         Reported by Tom G. Christensen in
706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
707
708         version-etc: update copyright year reported by --version
709         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
710
711 2011-12-31  Pádraig Brady  <P@draigBrady.com>
712
713         canonicalize: only stat() if required
714         * lib/canonicalize.c (canonicalize_filename_mode):
715         Avoid calling l?stat() when both CAN_MISSING,
716         and CAN_NOLINKS are set, as we neither need
717         to resolve symlinks or test component existence.
718
719 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
720
721         doc: cover st_ino issues once; add OpenVMS etc.
722         * doc/posix-functions/stat.texi (stat):
723         * doc/posix-functions/lstat.texi (lstat):
724         * doc/posix-functions/fstatat.texi (fstatat):
725         * doc/posix-functions/fstat.texi (fstat):
726         Move general 'struct stat' stuff to sys_stat.texi,
727         leaving behind a pointer.
728         * doc/posix-headers/sys_stat.texi (sys/stat.h):
729         Merge duplicate info about 'struct stat' problems into here.
730         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
731         and suggest partial workarounds.
732
733         same-inode: port to OpenVMS
734         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
735         three st_ino values.
736
737 2011-12-30  Pádraig Brady  <P@draigBrady.com>
738
739         canonicalize: fix references to stat() and lstat()
740         * lib/canonicalize.c (canonicalize_filename_mode):
741         Ensure references always resolve to a replacement
742         function if required (even via a macro).
743
744 2011-12-30  Jim Meyering  <meyering@redhat.com>
745
746         gitlog-to-changelog: remove a little duplication
747         * build-aux/gitlog-to-changelog (main): Grep @lines once,
748         rather than twice.
749
750 2011-12-29  Pádraig Brady  <P@draigBrady.com>
751
752         canonicalize: add support for not resolving symlinks
753         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
754         indicate we don't want to follow symlinks.  Also
755         provide CAN_MODE_MASK to aid setting these existing
756         mutually exclusive values.
757         * lib/canonicalize.c (canonicalize_filename_mode):
758         Extract the flags from can_mode parameter, which
759         are currently just used to select between stat()
760         and lstat().  Also ensure that mutually exclusive
761         values are flagged immediately as invalid.
762         * tests/test-canonicalize.c: Verify symlinks are
763         not followed, and that invalid flag combinations
764         are diagnosed.
765
766 2011-12-25  Jim Meyering  <meyering@redhat.com>
767
768         gitlog-to-changelog: do not clump multi-paragraph entries
769         Identical header lines (date,name,email+coauthors) are suppressed,
770         thus putting all entries with those same characteristics under
771         a single header.  However, when a log entry consists of two or
772         more paragraphs, it may not be clear where it starts and ends.
773         This change makes it so that such an entry is always separated
774         from others by a header line, even when that header would
775         otherwise be suppressed.
776         * build-aux/gitlog-to-changelog: Implement the above.
777         Inspired by a related request from Stefano Lattarini in
778         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
779
780 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
781
782         announce-gen: fix `cmd' typo in diagnostic
783         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
784         diagnostic: a missing '$' meant that the command was not output.
785
786 2011-12-23  Jim Meyering  <meyering@redhat.com>
787
788         test-framework-sh: distribute init.sh
789         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
790         Otherwise, "make -C gnulib-tests check" (at least in grep) would
791         fail due to the lack of init.sh.
792
793         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
794         * modules/atexit-tests: Rather than listing tests/init.sh,
795         now that there's a module for it, simply depend on that new module.
796         * modules/closein-tests: Likewise.
797         * modules/exclude-tests: Likewise.
798         * modules/getcwd-tests: Likewise.
799         * modules/perror-tests: Likewise.
800         * modules/pread-tests: Likewise.
801         * modules/pwrite-tests: Likewise.
802         * modules/vc-list-files-tests: Likewise.
803         * modules/verify-tests: Likewise.
804         * modules/xalloc-die-tests: Likewise.
805         * modules/xstrtoimax-tests: Likewise.
806         * modules/xstrtol-tests: Likewise.
807         * modules/xstrtoll-tests: Likewise.
808         * modules/xstrtoumax-tests: Likewise.
809         * modules/yesno-tests: Likewise.
810
811 2011-12-22  Jim Meyering  <meyering@redhat.com>
812
813         test-framework-sh: add minimal tests of init.sh's compare function
814         * modules/test-framework-sh-tests: New file.
815         * tests/test-init.sh: New file.
816
817         test-framework-sh: new module
818         * modules/test-framework-sh: New file.
819         * MODULES.html.sh (Support for maintaining and releasing projects):
820         List it.
821
822         init.sh: do not emit simulated diff output to stderr
823         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
824
825 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
826
827         .gitignore: ignore gnulib.dvi and regex.info
828         * doc/.gitignore:add gnulib.dvi and regex.info
829
830 2011-12-22  Jim Meyering  <meyering@redhat.com>
831
832         init.sh: correct previous change
833         * tests/init.sh (compare): My previous change was wrong.
834         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
835
836         init.sh: avoid unwarranted test failure when using "set -e"
837         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
838         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
839         a use like "compare exp out" would get evoke an unconditional failure.
840
841 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
842
843         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
844         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
845         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
846         autoreconf that did not.
847         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
848         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
849
850 2011-12-17  Jim Meyering  <meyering@redhat.com>
851
852         bootstrap: remove some now-unneeded code
853         This script arose back when gnulib-tool was young.
854         Since then, it has seen improvements that render much of this
855         script unnecessary.  In particular, it can now make symlinks
856         to the files it uses.  Also, I no longer see as much value in
857         marking files as read-only via comments.
858         If you relied on the symlink-creation feature of the preceding
859         version of this script, you can get most of that functionality
860         by adding the --symlink option to the definition of
861         gnulib_tool_option_extras in your bootstrap.conf file.
862         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
863         Run autopoint and libtoolize *before* gnulib-tool.
864         After it, run an abbreviated autoreconf, rather than a loop around
865         all tools.
866         (slirp, bt_mark_as_generated): Remove functions.
867
868 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
869
870         ftoastr: fix typo
871         * lib/ftoastr.h: Fix misspelling in comment.
872
873 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
874
875         * top/README-release: fix punctuation.
876
877 2011-12-17  Jim Meyering  <meyering@redhat.com>
878
879         bootstrap: correct the recent buildreq change
880         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
881         had no effect.
882         * build-aux/bootstrap (buildreq): Bracket each search term with
883         "*...*", so that the shell "case" statement works as intended.
884         Add comments.
885
886 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
887
888         build: let bootstrap resort to wget when downloading .po files
889         * build-aux/bootstrap (download_po_files): Fallback to wget when
890         downloading the .po files via rsync fails.  This is necessary to
891         bootstrap from behind a strict firewall.
892
893 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
894
895         stdint: don't assume C++11 when compiling with g++
896         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
898         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
899         work also in C++ before C++11, as that improperly inhibits
900         generating a substitute stdint.h for that case.
901
902 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
903
904         alloca: protect comment from gnulib-tool
905         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
906         that gnulib-tool doesn't think it's a license, and munge it to
907         say "GCC version 3".
908
909 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
910
911         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
912         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
913         $(abs_top_builddir) instead of $(top_builddir).
914
915 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
916
917         strftime-tests: also test nanoseconds
918         * tests/test-strftime.c (T): Add a test of %N.
919
920 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
921
922         inttypes, stdint: add C++11 support
923         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
924         when including inttypes.h and stdint.h.  Support this change to
925         the standard.
926         * doc/posix-headers/inttypes.texi (inttypes.h):
927         * doc/posix-headers/stdint.texi (stdint.h): Document this.
928         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
929         Define if not defined already, for the benefit of pre-C++11 hosts.
930         Define the standard format macros (e.g., PRId8) always.
931         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
932         Likewise, if __cpluspus.  Define the standard constant and limit
933         macros (e.g., INT8_C, INT8_MAX) always.
934         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
935         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
936         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
937         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
938         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
939         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
940         Likewise.
941
942 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
943
944         nonblocking tests: Fix test failure on Linux/PPC.
945         Suggested by Prerna Saxena in
946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
947         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
948         Set to 1100000.
949
950 2011-12-12  Jim Meyering  <meyering@redhat.com>
951
952         argmatch: don't hard-code `' when listing valid option arguments
953         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
954         use the quote function to add quotes.  Use fputs rather than
955         fprintf for the format string with no format directive.
956
957 2011-12-07  Eric Blake  <eblake@redhat.com>
958
959         bootstrap: detect tools required by gnulib-tool
960         * build-aux/bootstrap (buildreq): Provide minimum implicit
961         dependencies.
962         * DEPENDENCIES: Mention patch as a prereq.
963
964 2011-12-04  Bruno Haible  <bruno@clisp.org>
965
966         sethostname: Port to Windows platforms.
967         * lib/sethostname.c: Provide an alternate implementation for Windows
968         platforms.
969         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
970         (main): Skip the test if sethostname() fails with EPERM. On Windows
971         platforms, don't check the result of gethostname().
972
973 2011-12-04  Bruno Haible  <bruno@clisp.org>
974             Jim Meyering  <meyering@redhat.com>
975
976         tests: Avoid spurious error message on platforms without mktemp program.
977         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
978
979 2011-12-04  Bruno Haible  <bruno@clisp.org>
980
981         sethostname: Fix documentation.
982         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
983         "not fixed" section.
984
985 2011-12-03  Bruno Haible  <bruno@clisp.org>
986
987         gnulib-tool: Verify that the License field is present and non-empty.
988         * gnulib-tool (func_get_license_raw): New function, extracted from
989         func_get_license.
990         (func_get_license): Use it. Warn if the module is not a test module and
991         has no license.
992         Suggested by Jim Meyering.
993
994 2011-12-03  Bruno Haible  <bruno@clisp.org>
995
996         sethostname tests: Fix link error on mingw.
997         * tests/test-sethostname1.c: New file, extracted from
998         tests/test-sethostname.c.
999         * tests/test-sethostname2.c: New file, extracted from
1000         tests/test-sethostname.c.
1001         * tests/test-sethostname.c: Remove file.
1002         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1003         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1004         (Depends-on): Add gethostname.
1005         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1006         Link the latter with $(GETHOSTNAME_LIB).
1007
1008         sethostname tests: Fix compilation error on mingw.
1009         * tests/test-sethostname.c: Don't include <sys/types.h>.
1010         (geteuid): Use a dummy value without uid_t.
1011         * modules/sethostname-tests (Depends-on): Remove sys_types.
1012
1013         sethostname tests: Avoid a gcc warning.
1014         * tests/test-sethostname.c (main): Remove an unused variable.
1015
1016         Tweak last commit.
1017         * modules/sethostname-tests (Files): Sort by decreasing importance.
1018         (configure.ac): Check for geteuid.
1019         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1020         the test when there's nothing to test. Drop an unnecessary cast.
1021         Improve an error message. Verify that the final sethostname() call
1022         succeeds.
1023
1024 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1025
1026         Add a test suite for the sethostname module.
1027         * modules/sethostname-tests: New file.  A test program
1028         for the sethostname module.
1029         * tests/test-sethostname.c: Likewise.
1030
1031 2011-12-03  Bruno Haible  <bruno@clisp.org>
1032
1033         Tweak last commit.
1034         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1035         Fix preprocessor directives indentation. Fix typos.
1036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1037         * modules/unistd (Makefile): Likewise.
1038
1039 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1040
1041         Integrate the sethostname module into unistd.
1042         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1043         into the unistd.h header.
1044         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1045         preprocessor directives.
1046         * modules/unistd: Setup the Makefile substitutions of the
1047         SETHOSTNAME preprocessor directives.
1048
1049 2011-12-03  Bruno Haible  <bruno@clisp.org>
1050
1051         Tweak last commit.
1052         * lib/sethostname.c: Don't include <string.h>.
1053         (sethostname): No need to copy the argument string to the stack. Don't
1054         call clearerr. Preserve errno when fprintf failed.
1055         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1056         Don't invoke AC_REPLACE_FUNCS.
1057         * modules/sethostname (Link): Remove empty section.
1058         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1059         failure problem.
1060
1061 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1062
1063         New module 'sethostname'.
1064         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1065         for systems that lack it.
1066         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1067         sethostname declaration and function.
1068         * modules/sethostname: New file.  Define the sethostname module.
1069
1070 2011-12-03  Bruno Haible  <bruno@clisp.org>
1071
1072         Tweak last commit.
1073         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1074
1075 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1076
1077         Split the HOST_NAME_MAX detection into a separate m4 macro.
1078         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1079         macro so it can be used by the pending sethostname module.
1080
1081 2011-12-03  Bruno Haible  <bruno@clisp.org>
1082
1083         Fix module descriptions syntax.
1084         * modules/argv-iter (License): Fix syntax.
1085         * modules/di-set (License): Likewise.
1086         * modules/ino-map (License): Likewise.
1087         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1088
1089 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1090
1091         stdalign: port to Clang 3.0
1092         Problem reported by Simon Josefsson in
1093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1094         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1095         which has <stdalign.h> but which does not define alignof.
1096         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1097
1098 2011-12-01  Eric Blake  <eblake@redhat.com>
1099
1100         mktempd: silence dd usage
1101         * build-aux/mktempd (rand_bytes): Silence dd.
1102
1103 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1104
1105         manywarnings: Don't mention gcc version in docstring.
1106         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1107         Jim Meyering <meyering@redhat.com>.
1108
1109 2011-11-30  Jim Meyering  <meyering@redhat.com>
1110
1111         hash: mark a few floating point constants with "f" suffix
1112         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1113         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1114         floating point constants with "f", since they're destined to be
1115         saved/used as "float"s.
1116
1117 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1118
1119         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1120         * tests/test-float.c (test_long_double): Correct and re-enable the
1121         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1122
1123 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1124
1125         Avoid subtracting two pointers that don't point into the same block.
1126         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1127         only pointers into the same memory block are subtracted. We cannot
1128         assume that sizeof (ptrdiff_t) == sizeof (void *).
1129
1130 2011-11-29  Eric Blake  <eblake@redhat.com>
1131
1132         maint.mk: add syntax check for use of compare from init.sh
1133         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1134         moved here from coreutils.
1135
1136         manywarnings: drop -Wunsuffixed-float-constants
1137         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1138         '1.0D', which is the only way to silence this warning for 'double'.
1139
1140 2011-11-29  Jim Meyering  <meyering@redhat.com>
1141
1142         hash: mark compute_bucket_size with the pure attribute
1143         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1144
1145         quotearg, propername: correct pragma guard expression
1146         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1147         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1148
1149 2011-11-28  Jim Meyering  <meyering@redhat.com>
1150
1151         propername: do not mark proper_name with the const attribute
1152         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1153         since it examines data pointed to by its parameter.
1154         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1155         the suggestion from -Wsuggest-attribute=const.
1156
1157         propername: mark one more function as const
1158         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1159
1160 2011-11-27  Jim Meyering  <meyering@redhat.com>
1161
1162         mark functions with const and pure attributes
1163
1164         Mark functions per suggestions from gcc-4.6 when using these options:
1165         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1166         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1167         Follow these guidelines: when possible, apply the attribute to
1168         an extern declaration, not to its definition.  Apply it to the
1169         definition only when the definition is static.
1170         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1171         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1172         * lib/base64.h (isbase64): Likewise.
1173         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1174         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1175         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1176         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1177         (c_tolower, c_toupper): Likewise.
1178         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1179         * lib/chdir-long.c (find_non_slash): Likewise.
1180         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1181         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1182         * lib/file-type.h (file_type): Likewise.
1183         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1184         * lib/filevercmp.c (verrevcmp): Likewise.
1185         * lib/freadahead.h (freadahead): Likewise.
1186         * lib/fts.c (fts_maxarglen): Likewise.
1187         * lib/hash-pjw.h (hash_pjw): Likewise.
1188         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1189         * lib/hash.c (is_prime, next_prime): Likewise.
1190         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1191         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1192         (hash_table_ok, hash_get_first, hash_string): Likewise.
1193         (compute_bucket_size): Likewise.
1194         * lib/i-ring.h (i_ring_empty): Likewise.
1195         * lib/isnan.c (isnanl): Likewise.
1196         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1197         * lib/memcasecmp.h (memcasecmp): Likewise.
1198         * lib/memchr2.h (memchr2): Likewise.
1199         * lib/memcmp2.h (memcmp2): Likewise.
1200         * lib/parse-datetime.y (lookup_zone): Likewise.
1201         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1202         [!WINDOWS_SOCKETS]: Likewise.
1203         * lib/strnlen1.h (strnlen1): Likewise.
1204         * lib/uniwidth.in.h (uc_width): Likewise.
1205         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1206         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1207         (quoting_options_from_style): Add a comment.
1208         * lib/propername.h (proper_name): Add a comment.
1209
1210 2011-11-27  Bruno Haible  <bruno@clisp.org>
1211
1212         Remove unused macros from !_LIBC code in glibc-borrowed files.
1213         * lib/fnmatch.c (STRCOLL): Remove macro.
1214         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1215         * lib/glob.c (__stat, __readdir64): Remove macros.
1216         * lib/tempname.c (__open64, __xstat64): Remove macros.
1217         Suggested by Paul Eggert.
1218
1219 2011-11-27  Bruno Haible  <bruno@clisp.org>
1220
1221         getcwd: Fix link error on MSVC 9.
1222         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1223
1224 2011-11-27  Bruno Haible  <bruno@clisp.org>
1225
1226         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1227         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1228         HAVE_OPENDIR is 0.
1229         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1230         HAVE_CLOSEDIR is 0.
1231         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1232         is 0.
1233         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1234
1235 2011-11-27  Bruno Haible  <bruno@clisp.org>
1236
1237         getcwd: Fix bug from 2011-08-17.
1238         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1239         platforms that need it.
1240         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1241         code of 4 to be a failure, not a success. This ensures that
1242         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1243
1244 2011-11-27  Bruno Haible  <bruno@clisp.org>
1245
1246         binary-io tests: Avoid test failure on mingw when libtool is used.
1247         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1248         Don't verify the size of t-bin-out1.tmp here.
1249         * tests/test-binary-io.sh: Verify it here.
1250         Reported by Simon Josefsson.
1251
1252 2011-11-26  Bruno Haible  <bruno@clisp.org>
1253
1254         Fix conflict between two instantiations of module 'unistd'.
1255         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1256         ${include_guard_prefix} also in the autoconf snippet.
1257         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1259         GNULIB_UNISTD_H_GETOPT.
1260         * modules/getopt-posix (configure.ac): Set the
1261         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1262         * modules/getopt-gnu (configure.ac): Likewise.
1263         * modules/unistd (Makefile.am): Change the substitution value of
1264         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1265         Reported by Simon Josefsson.
1266
1267 2011-11-25  Bruno Haible  <bruno@clisp.org>
1268
1269         pagealign_alloc: Doc and comments.
1270         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1271         module.
1272         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1273
1274 2011-11-25  Jim Meyering  <meyering@redhat.com>
1275
1276         test-update-copyright.sh: avoid false-positive failure
1277         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1278         around false positive failure on Cygwin/Windows.  The latter was
1279         matching erroneously-created files with names like
1280         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1281
1282 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1283
1284         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1285         * m4/valgrind-tests.m4: Check that the parameters that will be
1286         used works, not just a subset of them.  Reported by Bruno Haible
1287         <bruno@clisp.org>.
1288
1289 2011-11-24  Jim Meyering  <meyering@redhat.com>
1290
1291         test-stdalign.c: comment out long double tests
1292         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1293         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1294         error: '_Alignas' specifiers cannot reduce alignment of \
1295         'static_longdouble_alignas'.
1296
1297 2011-11-22  Jim Meyering  <meyering@redhat.com>
1298
1299         init.sh: make "compare /dev/null FILE" output more readable
1300         * tests/init.sh (compare_): Document the preferred order of arguments.
1301         (emit_diff_u_header_): New function.
1302         (compare_dev_null_): Emit a simulated diff, rather than just the
1303         contents of the unexpected file.  Suggestion from Bruno Haible.
1304
1305 2011-11-21  Jim Meyering  <meyering@redhat.com>
1306             Eric Blake  <eblake@redhat.com>
1307
1308         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1309         * tests/init.sh: Make our compare function slightly more portable.
1310         Reported by Bruno Haible in
1311         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1312
1313 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1314
1315         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1316         before using it, in code that ends up in config.h.
1317
1318 2011-11-20  Bruno Haible  <bruno@clisp.org>
1319
1320         getcwd: Work around getcwd bug on AIX 5..7.
1321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1322         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1323         Use a different value for gl_cv_func_getcwd_path_max. Move the
1324         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1325         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1326         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1327         Define HAVE_MINIMALLY_WORKING_GETCWD.
1328         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1329         where it is not even minimally working, that is, on AIX.
1330         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1331         m4/getcwd-path-max.m4.
1332         (main): Update exit code computation.
1333         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1334         getcwd does not handle long file names.
1335
1336 2011-11-20  Bruno Haible  <bruno@clisp.org>
1337
1338         getcwd: Fix bug from 2009-09-10.
1339         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1340         like "no".
1341
1342 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1343
1344         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1345
1346 2011-11-20  Bruno Haible  <bruno@clisp.org>
1347
1348         fma tests: Avoid shadowing local variables.
1349         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1350         expected.
1351
1352 2011-11-20  Bruno Haible  <bruno@clisp.org>
1353
1354         copysignf tests: Fix.
1355         * tests/test-copysignf.c: Fix signature check.
1356
1357 2011-11-20  Bruno Haible  <bruno@clisp.org>
1358
1359         fma: Remove unused code.
1360         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1361         unused macros.
1362
1363 2011-11-20  Bruno Haible  <bruno@clisp.org>
1364
1365         sethostname: Fix doc about AIX.
1366         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1367         sethostname; it has it.
1368
1369         sethostname: Mention more portability problems.
1370         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1371         problem.
1372         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1373
1374 2011-11-19  Bruno Haible  <bruno@clisp.org>
1375
1376         Depend on module fcntl-h when AT_FDCWD is used.
1377         * modules/utimens (Depends-on): Add fcntl-h.
1378         * modules/areadlinkat (Depends-on): Likewise.
1379         * modules/areadlinkat-with-size (Depends-on): Likewise.
1380         * modules/faccessat (Depends-on): Likewise.
1381         * modules/fchmodat (Depends-on): Likewise.
1382         * modules/fchownat (Depends-on): Likewise.
1383         * modules/getcwd (Depends-on): Likewise.
1384         * modules/mkdirat (Depends-on): Likewise.
1385         * modules/mkfifoat (Depends-on): Likewise.
1386         * modules/readlinkat (Depends-on): Likewise.
1387         * modules/symlinkat (Depends-on): Likewise.
1388         * modules/dup2-tests (Depends-on): Likewise.
1389         * modules/fdutimensat-tests (Depends-on): Likewise.
1390         * modules/futimens-tests (Depends-on): Likewise.
1391
1392 2011-11-19  Bruno Haible  <bruno@clisp.org>
1393
1394         euidaccess: Update a comment.
1395         * lib/euidaccess.c: Update comment about platforms with faccessat.
1396
1397 2011-11-19  Bruno Haible  <bruno@clisp.org>
1398
1399         openat: Fix file list.
1400         * modules/openat (Files): Remove lib/at-func.c.
1401
1402 2011-11-19  Bruno Haible  <bruno@clisp.org>
1403
1404         fstatat: Simplify.
1405         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1406         gnulib should define rpl_fstatat, there is a
1407         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1408
1409 2011-11-19  Bruno Haible  <bruno@clisp.org>
1410
1411         Ensure 'inline' can be used in tests/test-utimens-common.h.
1412         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1413         * modules/futimens-tests (configure.ac): Likewise.
1414         * modules/utimens-tests (configure.ac): Likewise.
1415         * modules/utimensat-tests (configure.ac): Likewise.
1416
1417 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1418
1419         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1420         not hash_insert0.
1421         (hash_insert_if_absent): Doc fix.
1422
1423 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1424
1425         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1426
1427 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         test-getcwd: disambiguate exit status
1430         * tests/test-getcwd.c (test_long_name): Return 0..7.
1431         (main): Exit with an unambiguous exit status.  The old
1432         code yielded a mysterious mixture of two failure codes.
1433
1434         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1435         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1436         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1437         rpl_fstatat or fstatat.  This should fix the other problem
1438         reported by Kai Habel in
1439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1440         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1442         and I reproduced it on a Solaris 8 host we still have in production.
1443
1444 2011-11-18  Jim Meyering  <meyering@redhat.com>
1445
1446         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1447         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1448         Add a sentence to the comment.
1449         (hash_insert0): New function that simply calls hash_insert_if_absent.
1450         * lib/hash.h (hash_insert_if_absent): Declare it.
1451         (hash_insert0): Add deprecation attribute.
1452         (_GL_ATTRIBUTE_DEPRECATED): Define.
1453         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1454         not hash_insert0.
1455         * NEWS: Mention it, even though it's not really an incompatible change.
1456
1457 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1458
1459         openat: avoid compilation failure due to lack of <errno.h> inclusion
1460         * lib/openat.c: Include <errno.h>.
1461
1462 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1463
1464         * modules/getcwd (Depends-on): Add fdopendir.
1465         This fixes one of the two problems reported by Kai Habel in
1466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1467
1468         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1469         stdalign problem reported by Ian Beckwith in
1470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1471         * modules/crypto/gc-arcfour (Depends-on):
1472         Depend conditionally on crypto/arcfour.
1473         * modules/crypto/gc-arctwo (Depends-on):
1474         Depend conditionally on crypto/arctwo.
1475         * modules/crypto/gc-des (Depends-on):
1476         Depend conditionally on crypto/des.
1477         * modules/crypto/gc-hmac-md5 (Depends-on):
1478         Depend conditionally on crypto/hmac-md5.
1479         * modules/crypto/gc-hmac-sha1 (Depends-on):
1480         Depend conditionally on crypto/hmac-sha1.
1481         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1482         * modules/crypto/gc-md4 (Depends-on):
1483         Depend conditionally on crypto/md4.
1484         * modules/crypto/gc-md5 (Depends-on):
1485         Depend conditionally on crypto/md5.
1486         * modules/crypto/gc-rijndael (Depends-on):
1487         Depend conditionally on crypto/rijndael.
1488         * modules/crypto/gc-sha1 (Depends-on):
1489         Depend conditionally on crypto/sha1.
1490         * modules/crypto/gc-arcfour:
1491         * modules/crypto/gc-arctwo:
1492         * modules/crypto/gc-des:
1493         * modules/crypto/gc-hmac-md5:
1494         * modules/crypto/gc-hmac-sha1:
1495         * modules/crypto/gc-md2:
1496         * modules/crypto/gc-md4:
1497         * modules/crypto/gc-md5:
1498         * modules/crypto/gc-rijndael:
1499         * modules/crypto/gc-sha1:
1500         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1501         now that the conditional dependencies do the work for us.
1502
1503 2011-11-17  Jim Meyering  <meyering@redhat.com>
1504
1505         tests: factor st_ctime-comparison out of two headers
1506         * tests/test-utimens-common.h (ctime_compare): Define.
1507         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1508         * tests/test-lutimens.h (test_lutimens): Likewise.
1509         * tests/test-utimens.h (test_utimens): Likewise.
1510
1511         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1512         Invoke the test program via an init.sh-using wrapper.
1513         * tests/test-getcwd.sh: New file.
1514         * modules/getcwd-tests (Files): Add it.
1515         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1516
1517 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1518
1519         gitlog-to-changelog: support multi-author commits.
1520         The FSF cares about keeping track of all authors of patches to its
1521         projects, but Git doesn't provide obvious support for multi-author
1522         changesets. Consensus seems to be forming around the use of extra
1523         Signed-off-by inspired lines in the log message formatted as
1524         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1525         multi-author commits between version control systems.
1526         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1527         log message and output in standard ChangeLog multi-author format.
1528         Reported by Peter Rosin <peda@lysator.liu.se>
1529
1530 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1531             Bruno Haible  <bruno@clisp.org>
1532
1533         Fix some modules' file list.
1534         * modules/fstatat (Files): Add m4/lstat.m4.
1535         * modules/openat (Files): Likewise.
1536         * modules/unlinkat (Files): Likewise.
1537
1538 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1539
1540         maint.mk: fix tight-scope.mk generation in VPATH builds.
1541         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1542         reference with $(srcdir) so that the file is found correctly even
1543         when running `make syntax-check' in a VPATH build.
1544
1545 2011-11-13  Bruno Haible  <bruno@clisp.org>
1546             Jim Meyering  <meyering@redhat.com>
1547
1548         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1549         * tests/init.sh (compare): Remove "No differences encountered" or
1550         synonymous output from the 'diff' program.
1551
1552 2011-11-13  Bruno Haible  <bruno@clisp.org>
1553
1554         Makefile: Tweak indentation.
1555         * Makefile: Use tab as first character in every line that contains rule
1556         commands.
1557
1558 2011-11-13  Bruno Haible  <bruno@clisp.org>
1559
1560         Syntax check for copyright statements.
1561         * check-copyright: New file.
1562         * Makefile (sc_check_copyright): New rule.
1563
1564 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1565
1566         * build-aux/git-version-gen: Add --prefix to configure the tag
1567         match string.
1568
1569 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1570
1571         * build-aux/git-version-gen: Add --help and --version.
1572
1573 2011-11-12  Jim Meyering  <meyering@redhat.com>
1574
1575         revamp the other test-exclude?.sh scripts to use init.sh, too
1576         * tests/test-exclude1.sh: Use init.sh.
1577         * tests/test-exclude2.sh: Likewise.
1578         * tests/test-exclude3.sh: Likewise.
1579         * tests/test-exclude4.sh: Likewise.
1580         * tests/test-exclude5.sh: Likewise.
1581         * tests/test-exclude6.sh: Likewise.
1582         * tests/test-exclude7.sh: Likewise.
1583         * tests/test-exclude8.sh: Likewise.
1584         * modules/exclude-tests (Files): List init.sh.
1585
1586         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1587         These shell scripts ignored failure of the binary test-exclude,
1588         so making the latter return 77 didn't cause them to be skipped.
1589         * tests/test-exclude5.sh: Exit with test-exclude's error status
1590         when that program fails.  Revamp to use init.sh.
1591         * tests/test-exclude2.sh: Likewise.
1592
1593         test-exclude: fix a typo
1594         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1595
1596 2011-11-11  Bruno Haible  <bruno@clisp.org>
1597
1598         obstack: Fix compilation error on MSVC 9.
1599         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1600
1601 2011-11-11  Jim Meyering  <meyering@redhat.com>
1602
1603         test-exclude: skip tests rather than failing on deficient systems
1604         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1605         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1606         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1607         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1608
1609 2011-11-10  Bruno Haible  <bruno@clisp.org>
1610
1611         ptsname_r test: Avoid gcc warning on glibc systems.
1612         * tests/test-ptsname_r.c (null_ptr): New function.
1613         (test_errors): Use it.
1614
1615 2011-11-10  Bruno Haible  <bruno@clisp.org>
1616
1617         ptsname_r: Avoid compilation error on OSF/1 5.1.
1618         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1620         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1621         function is not declared or incompatibly declared.
1622         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1623         * modules/ptsname_r (Depends-on, configure.ac): Update.
1624         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1625
1626 2011-11-10  Bruno Haible  <bruno@clisp.org>
1627
1628         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1629         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1630         When cross-compiling, guess yes on all platforms except AIX.
1631         Reported by Ludovic Courtès <ludo@gnu.org>.
1632
1633 2011-11-09  Bruno Haible  <bruno@clisp.org>
1634
1635         ptsname_r tests: Fix bugs.
1636         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1637         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1638
1639 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         fstatat: work with cross-compilation
1642         Problem reported by Ludovic Courtès in
1643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1644         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1645         "cross-compiling" and assume the bug is present.  Replace
1646         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1647         an inverted sense, to be more conservative about our assumptions.
1648         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1649
1650 2011-11-09  Bruno Haible  <bruno@clisp.org>
1651
1652         Improve MODULES.html output.
1653         * modules/mkfifoat (Description): Use the word "function".
1654         * modules/readlinkat (Description): Likewise.
1655         * modules/symlinkat (Description): Likewise.
1656
1657 2011-11-09  Eric Blake  <eblake@redhat.com>
1658
1659         ptsname_r-tests: new test module
1660         * modules/ptsname_r-tests: New module.
1661         * tests/test-ptsname_r.c: New file.
1662
1663         ptsname_r: new module
1664         * modules/ptsname_r: New module.
1665         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1666         * lib/ptsname.c (__ptsname_r): Split...
1667         * lib/ptsname_r.c: ...into new file.
1668         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1669         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1670         * modules/stdlib (Makefile.am): Substitute witnesses.
1671         * lib/stdlib.in.h (ptsname_r): Declare it.
1672         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1673         * MODULES.html.sh (Misc): Likewise.
1674         * modules/ptsname (Depends-on): Alter dependency.
1675         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1676
1677 2011-11-09  Jim Meyering  <meyering@redhat.com>
1678
1679         announce-gen: be more concise when there's only one URL+tarball
1680         * build-aux/announce-gen (get_tool_versions): When you distribute
1681         only one type of tarball, combine the first two "Here are..."
1682         sections and make the key-checking grammar independent of
1683         how many tarballs there are.
1684
1685 2011-11-09  Eric Blake  <eblake@redhat.com>
1686
1687         openpty: provide a stub on mingw
1688         * lib/pty.in.h (includes): Provide forward declarations.
1689         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1690
1691         raise: fix mingw handling of SIGPIPE
1692         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1693
1694 2011-11-08  Bruno Haible  <bruno@clisp.org>
1695
1696         More conditional dependencies.
1697         * modules/faccessat (Depends-on): Add conditions.
1698         * modules/fchmodat (Depends-on): Likewise.
1699         * modules/fchownat (Depends-on): Likewise.
1700         * modules/fstatat (Depends-on): Likewise.
1701         * modules/mkfifoat (Depends-on): Likewise.
1702         * modules/readlinkat (Depends-on): Likewise.
1703         * modules/symlinkat (Depends-on): Likewise.
1704         * modules/unlinkat (Depends-on): Likewise.
1705         * modules/utimensat (Depends-on): Likewise.
1706         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1707         * modules/linkat (Depends-on): Refine the conditions.
1708         * modules/renameat (Depends-on): Likewise.
1709
1710 2011-11-08  Bruno Haible  <bruno@clisp.org>
1711
1712         faccessat: Move AC_LIBOBJ invocation to module description.
1713         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1714         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1715         invocation from here...
1716         * modules/faccessat (configure.ac): ... to here. Invoke
1717         gl_PREREQ_FACCESSAT.
1718
1719 2011-11-08  Bruno Haible  <bruno@clisp.org>
1720
1721         faccessat: Simplify autoconf macro.
1722         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1723         gl_FUNC_EUIDACCESS.
1724
1725 2011-11-08  Bruno Haible  <bruno@clisp.org>
1726
1727         renameat: Fix dependencies.
1728         * modules/renameat (Depends-on): Add stdbool.
1729
1730 2011-11-08  Bruno Haible  <bruno@clisp.org>
1731
1732         mkfifoat: Fix module description.
1733         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1734         not gl_UNISTD_MODULE_INDICATOR.
1735
1736 2011-11-08  Bruno Haible  <bruno@clisp.org>
1737
1738         fstatat: Remove unused dependency.
1739         * modules/fstatat (Depends-on): Remove fstat.
1740
1741 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1742
1743         GNUmakefile: behave when Makefile is missing.
1744         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1745
1746 2011-11-08  Bruno Haible  <bruno@clisp.org>
1747
1748         openat: Conditionalize dependencies.
1749         * lib/openat.c: Reduce the scope of some #includes.
1750         * modules/openat (Depends-on): Add conditions.
1751
1752 2011-11-07  Jim Meyering  <meyering@redhat.com>
1753
1754         maint.mk: extract GPG key ID without using a temporary file
1755         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1756         without using a temporary file.  Based on a suggestion from Werner Koch
1757         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1758
1759 2011-11-07  Eric Blake  <eblake@redhat.com>
1760
1761         grantpt: fix typo
1762         * lib/stdlib.in.h (grantpt): Check correct function.
1763
1764         maint.mk: silence new syntax check
1765         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1766
1767 2011-11-06  Bruno Haible  <bruno@clisp.org>
1768
1769         Doc about floating-point and math API.
1770         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1771         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1772
1773 2011-11-06  Bruno Haible  <bruno@clisp.org>
1774
1775         stdalign tests: Skip the test when compiled by Sun C.
1776         * tests/test-stdalign.c (main): Skip the test on Sun C.
1777
1778 2011-11-06  Bruno Haible  <bruno@clisp.org>
1779
1780         ansi-c++-opt: Complete the 2011-06-05 change.
1781         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1782         does not support namespaces, set the variable to "no", not to ":".
1783
1784 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1785
1786         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1787
1788 2011-11-06  Bruno Haible  <bruno@clisp.org>
1789
1790         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1791         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1792         (minus_zerol) [HP-UX]: New macro.
1793         (unary_minus) [HP-UX]: New function.
1794         (copysignl) [HP-UX]: Use unary_minus function.
1795
1796 2011-11-06  Bruno Haible  <bruno@clisp.org>
1797
1798         ldexp, ldexpf, ldexpl: Enhance tests.
1799         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1800         and tests/test-ldexpl.c.
1801         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1802         LDEXP, MIN_EXP, MAX_EXP): New macros.
1803         Include test-ldexp.h.
1804         (main): Just call test_function.
1805         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1806         infinity.h, nan.h.
1807         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1808         MAX_EXP): New macros.
1809         Include test-ldexp.h.
1810         (x, y): Remove variables.
1811         (main): Just call test_function.
1812         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1813         infinity.h, nan.h.
1814         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1815         MAX_EXP): New macros.
1816         Include test-ldexp.h.
1817         (x, y): Remove variables.
1818         (main): Just call test_function.
1819         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1820         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1821         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1822         (Depends-on): Add isnand-nolibm, signbit, float.
1823         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1824         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1825         (Depends-on): Add isnanf-nolibm, signbit, float.
1826
1827 2011-11-06  Bruno Haible  <bruno@clisp.org>
1828
1829         math tests: Cosmetics.
1830         * tests/test-math-c++.cc: Reorder declarations.
1831
1832 2011-11-05  Bruno Haible  <bruno@clisp.org>
1833
1834         fma*: Simplify test.
1835         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1836         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1837
1838         Tests for module 'fmal'.
1839         * modules/fmal-tests: New file.
1840         * tests/test-fmal1.c: New file.
1841         * tests/test-fmal2.c: New file.
1842
1843         New module 'fmal'.
1844         * lib/math.in.h (fmal): New declaration.
1845         * lib/fmal.c: New file.
1846         * m4/fmal.m4: New file.
1847         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1849         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1850         REPLACE_FMAL.
1851         * modules/fmal: New file.
1852         * doc/posix-functions/fmal.texi: Mention the new module and the various
1853         bugs.
1854
1855         Tests for module 'fmaf'.
1856         * modules/fmaf-tests: New file.
1857         * tests/test-fmaf1.c: New file.
1858         * tests/test-fmaf2.c: New file.
1859
1860         New module 'fmaf'.
1861         * lib/math.in.h (fmaf): New declaration.
1862         * lib/fmaf.c: New file.
1863         * m4/fmaf.m4: New file.
1864         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1866         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1867         REPLACE_FMAF.
1868         * modules/fmaf: New file.
1869         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1870         bugs.
1871
1872         Tests for module 'fma'.
1873         * modules/fma-tests: New file.
1874         * tests/test-fma1.c: New file.
1875         * tests/test-fma1.h: New file.
1876         * tests/test-fma2.c: New file.
1877         * tests/test-fma2.h: New file.
1878
1879         New module 'fma'.
1880         * lib/math.in.h (fma): New declaration.
1881         * lib/fma.c: New file.
1882         * m4/fma.m4: New file.
1883         * m4/fegetround.m4: New file.
1884         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1886         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1887         REPLACE_FMA.
1888         * modules/fma: New file.
1889         * doc/posix-functions/fma.texi: Mention the new module and the various
1890         bugs.
1891
1892         Extend gl_MATHFUNC.
1893         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1894         Support 'void' as argument type.
1895         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1896
1897 2011-11-05  Jim Meyering  <meyering@redhat.com>
1898
1899         maint.mk: also prohibit inclusion of dirent.h without use
1900         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1901
1902 2011-11-05  Bruno Haible  <bruno@clisp.org>
1903
1904         ldexpl tests: Avoid test failure on MSVC 9.
1905         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1906         value. Needed in order to enforce the conversion from a value greater
1907         than LDBL_MAX to Infinity.
1908
1909 2011-11-05  Bruno Haible  <bruno@clisp.org>
1910
1911         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1912         * modules/at-internal: New file, extracted from modules/openat.
1913         * modules/openat-h: New file.
1914         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1915         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1916         * modules/openat (Description): Add reference to POSIX function.
1917         (Files): Remove lib/openat.h, lib/openat-proc.c.
1918         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1919         intprops, unistd.
1920         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1921         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1922         gl_FCNTL_MODULE_INDICATOR.
1923         (Include): Remove unistd.h, openat.h.
1924         * modules/areadlinkat (Files): Add lib/at-func.c.
1925         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1926         openat-die, openat-h, save-cwd.
1927         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1928         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1929         openat-die, openat-h, save-cwd, unistd.
1930         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1931         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1932         openat-h, save-cwd. Remove fcntl-h, openat.
1933         * modules/fchmodat (Files): Remove lib/openat.h.
1934         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1935         openat, stdbool, unistd.
1936         * modules/fchownat (Files): Remove lib/openat.h.
1937         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1938         openat, stdbool, sys_stat.
1939         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1940         lib/openat-proc.c.
1941         (Depends-on): Add at-internal.
1942         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1943         * modules/fstatat (Files): Remove lib/openat.h.
1944         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1945         stdbool, unistd.
1946         * modules/fts (Depends-on): Add openat-h.
1947         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1948         openat.
1949         * modules/mkdirat (Files): Remove lib/openat.h.
1950         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1951         openat, stdbool, sys_stat.
1952         * modules/mkfifoat (Files): Add lib/at-func.c.
1953         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1954         openat-h, save-cwd. Remove fcntl-h, openat.
1955         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1956         * modules/readlinkat (Files): Add lib/at-func.c.
1957         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1958         openat-h, save-cwd. Remove fcntl-h, openat.
1959         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1960         openat.
1961         * modules/selinux-at (Files): Add lib/at-func.c.
1962         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1963         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1964         * modules/symlinkat (Files): Add lib/at-func.c.
1965         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1966         openat-h, save-cwd. Remove fcntl-h, openat.
1967         * modules/unlinkat (Files): Remove lib/openat.h.
1968         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1969         stdbool.
1970         * modules/utimensat (Files): Add lib/at-func.c.
1971         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1972         openat-die, openat-h, save-cwd.
1973         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1974         * modules/fdutimensat-tests (Depends-on): Add openat.
1975         * modules/fstatat-tests (Depends-on): Add openat-h.
1976         * modules/readlinkat-tests (Depends-on): Add openat.
1977         * modules/symlinkat-tests (Depends-on): Add openat.
1978
1979 2011-11-05  Bruno Haible  <bruno@clisp.org>
1980
1981         openat: Include <stdbool.h>.
1982         * lib/openat.c: Include <stdbool.h>.
1983
1984 2011-11-04  Bruno Haible  <bruno@clisp.org>
1985
1986         fchownat, renameat, unlinkat: Fix dependencies.
1987         * modules/fchownat (Depends-on): Add fstatat.
1988         * modules/renameat (Depends-on): Likewise.
1989         * modules/unlinkat (Depends-on): Likewise.
1990
1991 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1992
1993         openat: remove direct dependency on dirent
1994         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1995         and hasn't been needed ever since fdopendir was split into its own
1996         module on 2009-08-31.
1997         * modules/openat (Depends-on): Remove dirent.
1998
1999 2011-11-04  Bruno Haible  <bruno@clisp.org>
2000
2001         renameat: Optimize code size.
2002         * modules/renameat (configure.ac): Don't compile at-func2.c if
2003         REPLACE_RENAMEAT is 1.
2004
2005 2011-11-04  Bruno Haible  <bruno@clisp.org>
2006
2007         openat tests: Fix file list.
2008         * modules/openat-tests (Files): Add tests/test-open.h.
2009
2010 2011-11-04  Bruno Haible  <bruno@clisp.org>
2011
2012         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2013         * modules/fchmodat (Depends-on): Add openat-die.
2014         * modules/fchownat (Depends-on): Likewise.
2015         * modules/linkat (Depends-on): Likewise.
2016         * modules/renameat (Depends-on): Likewise.
2017         * modules/openat (Depends-on): Add dirent.
2018
2019 2011-11-04  Jim Meyering  <meyering@redhat.com>
2020
2021         at-func*.c: fix comments
2022         * lib/at-func2.c: Correct/improve first-line comment.
2023         * lib/at-func.c: Correct grammar in first-line comment.
2024
2025 2011-11-04  Bruno Haible  <bruno@clisp.org>
2026
2027         New module 'mkdirat', split off from module 'openat'.
2028         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2029         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2030         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2031         * modules/mkdirat: New file, extracted from modules/openat.
2032         * modules/openat (Files): Remove lib/mkdirat.c.
2033         (Depends-on): Remove mkdir.
2034         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2035         (Include): Remove <sys/stat.h>.
2036         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2037         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2038         tests/test-mkdir.h.
2039         (Depends-on): Remove ignore-value.
2040         (Makefile.am): Remove rules for test-mkdirat.
2041         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2042         of module 'openat'.
2043         * NEWS: Mention the change.
2044
2045 2011-11-04  Bruno Haible  <bruno@clisp.org>
2046
2047         closedir: Avoid warning on mingw.
2048         * lib/closedir.c: Include <unistd.h>.
2049
2050 2011-11-04  Bruno Haible  <bruno@clisp.org>
2051
2052         New module 'fstatat', split off from module 'openat'.
2053         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2054         defined.
2055         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2056         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2057         gl_FUNC_FSTATAT.
2058         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2059         * modules/fstatat: New file, extracted from modules/openat.
2060         * modules/openat (Files): Remove lib/fstatat.c.
2061         (Depends-on): Remove lstat.
2062         (configure.ac): Remove AC_LIBOBJ of fstatat.
2063         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2064         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2065         tests/test-lstat.h, tests/test-stat.h.
2066         (Depends-on): Remove getcwd-lgpl.
2067         (Makefile.am): Remove rules for test-fstatat.
2068         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2069         of module 'openat'.
2070         * NEWS: Mention the change.
2071         * modules/getcwd (Depends-on): Add fstatat.
2072         * modules/linkat (Depends-on): Likewise.
2073         * modules/mkfifoat-tests (Depends-on): Likewise.
2074         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2075
2076 2011-11-03  Bruno Haible  <bruno@clisp.org>
2077
2078         New module 'unlinkat', split off from module 'openat'.
2079         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2080         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2081         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2082         * modules/unlinkat: New file, extracted from modules/openat. Correct
2083         the dependency conditions.
2084         * modules/openat (Files): Remove lib/unlinkat.c.
2085         (Depends-on): Remove rmdir, unlink.
2086         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2087         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2088         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2089         tests/test-rmdir.h, tests/test-unlink.h.
2090         (Depends-on): Remove unlinkdir.
2091         (Makefile.am): Remove rules for test-unlinkat.
2092         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2093         of module 'openat'.
2094         * NEWS: Mention the change.
2095         * modules/linkat-tests (Depends-on): Add unlinkat.
2096         * modules/mkfifoat-tests (Depends-on): Likewise.
2097         * modules/readlinkat-tests (Depends-on): Likewise.
2098
2099 2011-11-02  Bruno Haible  <bruno@clisp.org>
2100
2101         New module 'fchmodat', split off from module 'openat'.
2102         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2103         defined.
2104         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2105         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2106         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2107         * modules/fchmodat: New file, extracted from modules/openat.
2108         * modules/openat (Files): Remove lib/fchmodat.c.
2109         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2110         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2111         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2112         (Makefile.am): Remove rules for test-fchmodat.
2113         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2114         of module 'openat'.
2115         * NEWS: Mention the change.
2116
2117 2011-11-02  Jim Meyering  <meyering@redhat.com>
2118
2119         putenv: indent #definition of "environ" to placate cppi
2120         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2121
2122         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2123         Git logs are often treated as immutable, because editing them
2124         changes the SHA1 checksums of all descendants.  Thus, errors in
2125         git logs tend to stay there forever.  However, when we generate
2126         a ChangeLog file -- typically for distribution -- from that git log,
2127         we can actually make corrections in the generated file.  The key
2128         lies in recording in machine-readable/applicable form the desired
2129         corrections.  See --help for description and an example.
2130         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2131         (usage): Describe it; alphabetize option descriptions.
2132         (main): Honor the new option, carefully.
2133
2134 2011-11-01  Jim Meyering  <meyering@redhat.com>
2135
2136         gitlog-to-changelog: avoid an infloop
2137         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2138         that ends up being empty.
2139
2140 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2141
2142         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2143         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2144         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2145         contains (possibly-quoted) backslashes.  This should avoid
2146         all-too-common shell bugs if COMPLICATED contains backslashes in
2147         the "wrong" places.  Reported by David Evans in
2148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2149         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2150         because we want ASCII ranges.  Is there some reason we don't use
2151         the C locale everywhere in this script?
2152         (func_module, top level): Avoid unwanted pathname expansion when
2153         $repo_url_prefix or $repo_url_suffix_repl contain shell
2154         metacharacters like '?' and '*'.
2155
2156 2011-11-01  Bruno Haible  <bruno@clisp.org>
2157
2158         fchownat: Improve description.
2159         * modules/fchownat (Description): Add link to function.
2160
2161 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2162
2163         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2164         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2166         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2167
2168 2011-11-01  Bruno Haible  <bruno@clisp.org>
2169
2170         alignof: Avoid collision with stdalign module.
2171         * lib/alignof.h (alignof): Remove macro.
2172         * NEWS: Mention the change.
2173         Reported by Paul Eggert.
2174
2175 2011-11-01  Bruno Haible  <bruno@clisp.org>
2176
2177         New module 'fchownat', split off from module 'openat'.
2178         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2179         defined.
2180         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2181         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2182         invoke gl_FUNC_FCHOWNAT.
2183         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2184         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2185         * modules/fchownat: New file, extracted from modules/openat.
2186         * modules/openat (Files): Remove lib/fchownat.c.
2187         (Depends-on): Remove lchown.
2188         (configure.ac): Remove AC_LIBOBJ of fchownat.
2189         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2190         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2191         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2192         (Depends-on): Remove mgetgroups, usleep, stat-time.
2193         (configure.ac): Remove test for getegid.
2194         (Makefile.am): Remove rules for test-fchownat.
2195         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2196         of module 'openat'.
2197         * NEWS: Mention the change.
2198
2199 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2200
2201         stdalign: port better to MSVC and to Sun C 5.11
2202         This fixes some of the problems reported by Bruno Haible in
2203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2204         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2205         shortcomings of MSVC and of Sun C 5.11.
2206         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2207         around __declspec arg.
2208         * modules/stdalign-tests (Files): Add tests/macros.h.
2209         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2210         Include macros.h, for ASSERT.
2211         (DECLARE_ALIGNED): Remove.
2212         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2213         to catch bug), and to 1 if not (simplifies the rest of the code).
2214         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2215         (CHECK_AUTO): Remove.
2216         (CHECK_ALIGNED): Check only the alignment of the static vars,
2217         since auto var alignment isn't supported by Sun C 5.11.
2218         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2219         ASSERT failures are easier to diagnose.
2220
2221 2011-10-31  Bruno Haible  <bruno@clisp.org>
2222
2223         doc about some IRIX 5.3 problems.
2224         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2225         on IRIX 5.3.
2226         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2227         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2228         5.3.
2229         * doc/posix-functions/grantpt.texi: Likewise.
2230         * doc/posix-functions/unlockpt.texi: Likewise.
2231         * doc/posix-functions/lgamma.texi: Likewise.
2232         * doc/posix-functions/nextafter.texi: Likewise.
2233         * doc/posix-functions/remainder.texi: Likewise.
2234         * doc/posix-functions/select.texi: Mention misplaced declaration on
2235         IRIX 5.3.
2236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2237
2238 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2239
2240         gitlog-to-changelog: fix git-log invocation.
2241         git-log mishandles date strings before 1970-01-01 UTC, and there is
2242         no use to specify --since=1970-01-01 by default anyway.
2243         * build-aux/gitlog-to-changelog: By default, when no --since option
2244         was given, do not specify explicit --since option to git-log.
2245
2246 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2247
2248         gitlog-to-changelog: new option --append-dot.
2249         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2250         first non-blank line of each commit message terminated with a dot.
2251
2252 2011-10-30  Bruno Haible  <bruno@clisp.org>
2253
2254         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2255         * lib/ffsl.h: Include <config.h>.
2256         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2257
2258 2011-10-30  Jim Meyering  <meyering@redhat.com>
2259
2260         GNUmakefile: reenable "make syntax-check" for most projects
2261         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2262         build-aux variable", "syntax-check" would do nothing but succeed with
2263         the "No version control files detected..." diagnostic (unless you
2264         happened to override _build-aux via cfg.mk).
2265         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2266         to precede inclusion of maint.mk.  Otherwise, these variables would
2267         be used undefined in any project that does not override the default.
2268
2269 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2270
2271         gitlog-to-changelog: treat a message with only blank lines as empty.
2272         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2273         trailing blank lines before the code that issues a warning about an
2274         empty commit message.
2275
2276 2011-10-30  Jim Meyering  <meyering@redhat.com>
2277
2278         test-parse-datetime.c: avoid new DST-related false positive test failure
2279         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2280         based on the time/date we'll convert, not the current time.
2281         Otherwise, the moment we cross a DST boundary like today's in
2282         Europe, (CEST to CET), that offset ends up being one hour off.
2283
2284 2011-10-27  Bruno Haible  <bruno@clisp.org>
2285
2286         fstat: Tweak documentation.
2287         * modules/fstat (Description): More precise description.
2288
2289 2011-10-27  Bruno Haible  <bruno@clisp.org>
2290
2291         Update documentation regarding 'largefile' module.
2292         * doc/posix-functions/fstat.texi: Tweak wording.
2293         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2294         problems with huge directories and/or small ino_t types.
2295         * doc/posix-functions/readdir.texi: Likewise.
2296         * doc/posix-functions/rewinddir.texi: Likewise.
2297
2298 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2299
2300         maint.mk: don't maintain a second build-aux variable.
2301         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2302         depends on GNUmakefile, which already maintains a cfg.mk
2303         overridable $(_build-aux) for projects with a non-standard
2304         build-aux directory location, although without the $(srcdir)
2305         prefix.  Use that variable consistently instead of introducing a
2306         second one.  Adjust all call sites.
2307
2308 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2309
2310         Add stdalign module and use it in other modules.
2311         This is based on a previous proposal by Bruno Haible
2312         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2313
2314         stdalign: new module
2315         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2316         * modules/stdalign: New files.
2317         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2318         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2319
2320         stdalign-tests: new module
2321         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2322
2323         argp: use stdalign
2324         * lib/argp-parse.c: Include <stdalign.h>.
2325         (alignof): Remove.
2326         * modules/argp (Depends-on): Add stdalign.
2327
2328         crypto libraries: use stdalign
2329         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2330         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2331         Do not include <stdlib.h> twice, in md4.c.
2332         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2333         because we are accessing a pointer's bit-pattern, not a size.
2334         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2335         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2336         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2337         * modules/crypto/sha512: Likewise.
2338
2339         sys_socket: use stdalign, not alignof
2340         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2341         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2342
2343 2011-10-27  Bruno Haible  <bruno@clisp.org>
2344
2345         raise test: Avoid a test failure on Linux/MIPS.
2346         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2347         because 99 is a valid signal on Linux/MIPS.
2348
2349 2011-10-27  Bruno Haible  <bruno@clisp.org>
2350
2351         nonblocking tests: Fix test failure on Linux/MIPS.
2352         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2353         Set to 270000.
2354
2355 2011-10-27  Bruno Haible  <bruno@clisp.org>
2356
2357         utimensat: Work around problem on Linux/hppa.
2358         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2359         values.
2360         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2361
2362 2011-10-25  Jim Meyering  <meyering@redhat.com>
2363
2364         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2365         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2366         after symbols like NULL, size_t, etc.
2367         Reported by Alfred M. Szmidt.
2368
2369         maint.mk: exempt ENODATA from a syntax-check rule
2370         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2371         from the sc_prohibit_always-defined_macros syntax-check rule.
2372         Add a comment.  See this for more details:
2373         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2374
2375 2011-10-23  Jim Meyering  <meyering@redhat.com>
2376
2377         fts: close parent dir FD before returning from post-traversal fts_read
2378         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2379         unlink A, even though an FD open on A remained.  This is suboptimal
2380         (holding a file descriptor open longer than needed), but otherwise not
2381         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2382         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2383         that represents a real problem: it causes the removal of A to fail
2384         with e.g., "rm: cannot remove `A': Device or resource busy"
2385
2386         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2387         directory file descriptors.  After completing the final, FTS_DP,
2388         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2389         cache, but then proceeded to add a new FD to it via the subsequent
2390         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2391         final file descriptor would be closed only via fts_close's call to
2392         fd_ring_clear.  Now, it is usually closed earlier, via the final
2393         FTS_DP-returning fts_read call.
2394         * lib/fts.c (restore_initial_cwd): New function, converted from
2395         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2396         Update callers.
2397         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2398         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2399
2400 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2401             Bruno Haible  <bruno@clisp.org>
2402             Jim Meyering  <jim@meyering.net>
2403
2404         readme-release: improve safety of release prep instructions.
2405         * README-release: Don't git pull all branches when only master
2406         is needed for the release process.
2407         Run make maintainer-clean before changing trees and merging.
2408         Don't try to run ./configure right after git pull in case files
2409         that influence the bootstrap process have changed, move the
2410         ./configure step to after running ./bootstrap.
2411         Don't bootstrap "one last time"... it's the first time!
2412
2413 2011-10-22  Bruno Haible  <bruno@clisp.org>
2414
2415         errno, strerror-override: Support for MSVC 10.
2416         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2417         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2418         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2419         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2420         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2421         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2422         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2423         Assign values compatible with MSVC 10.
2424         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2425         New macros.
2426         (GNULIB_defined_EWINSOCK): New macro.
2427         * lib/strerror-override.c (strerror_override): Update accordingly.
2428         * lib/strerror-override.h: Likewise.
2429         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2430         longer equal to the corresponding errno value.
2431         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2432
2433 2011-10-22  Bruno Haible  <bruno@clisp.org>
2434
2435         perror: Recognize when test program crashes.
2436         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2437         strerror, set gl_cv_func_perror_works to no.
2438         Reported by Daniel Richard G. <skunk@iskunk.org>.
2439
2440         perror: Fix indentation.
2441         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2442
2443 2011-10-22  Bruno Haible  <bruno@clisp.org>
2444
2445         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2446         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2447         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2448         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2449         functions, not as a macro.
2450         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2451         macros.
2452         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2453         absence of macro.
2454         Suggested by Eric Blake.
2455         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2456
2457 2011-10-21  Bruno Haible  <bruno@clisp.org>
2458
2459         relocatable-prog-wrapper: Don't leave object files behind.
2460         * build-aux/install-reloc: Re-synchronize list of .o files to be
2461         removed with list of compilation units.
2462
2463 2011-10-20  Bruno Haible  <bruno@clisp.org>
2464
2465         openpty, posix_openpt: Remove code duplication.
2466         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2467         * lib/openpty.c: Include <stdlib.h>.
2468         (openpty): Use posix_openpt on all platforms except IRIX.
2469         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2470
2471 2011-10-20  Bruno Haible  <bruno@clisp.org>
2472
2473         unlockpt: Detect invalid argument.
2474         * lib/unlockpt.c: Include <fcntl.h>.
2475         (unlockpt): Check whether fd is valid, using fcntl().
2476         * modules/unlockpt (Depends-on): Add fcntl-h.
2477
2478 2011-10-20  Bruno Haible  <bruno@clisp.org>
2479
2480         openpty: Avoid compilation error on AIX 6.1.
2481         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2482
2483 2011-10-20  Bruno Haible  <bruno@clisp.org>
2484
2485         posix_openpt: Support for OpenBSD.
2486         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2487         (posix_openpt) [OpenBSD]: New code.
2488         * lib/grantpt.c: Include <fcntl.h>.
2489         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2490         * modules/grantpt (Depends-on): Add fcntl-h.
2491
2492 2011-10-20  Bruno Haible  <bruno@clisp.org>
2493
2494         posix_openpt test: Coding style.
2495         * tests/test-posix_openpt.c: Use GNU coding style.
2496
2497 2011-10-20  Bruno Haible  <bruno@clisp.org>
2498
2499         grantpt: Support --avoid=pt_chown.
2500         * modules/grantpt (Files): Add lib/pty-private.h.
2501
2502 2011-10-20  Bruno Haible  <bruno@clisp.org>
2503
2504         posix_openpt: Fix autoconf macro.
2505         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2506         unneeded check for _getpty.
2507
2508 2011-10-20  Bruno Haible  <bruno@clisp.org>
2509
2510         openpty: Update comments.
2511         * lib/openpty.c: Add comments about Minix.
2512
2513 2011-10-19  Eric Blake  <eblake@redhat.com>
2514
2515         openpty: relax license
2516         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2517
2518         pt_chown: use configmake to simplify build
2519         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2520
2521         ptsname and others: relax license
2522         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2523         * modules/unlockpt (License): Likewise.
2524         * modules/pt_chown (License): Likewise.
2525         * modules/ptsname (License): Likewise.
2526         * modules/ttyname_r (License): Likewise.
2527
2528 2011-10-19  Jim Meyering  <meyering@redhat.com>
2529
2530         posix_openpt: remove spurious #endif
2531         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2532
2533 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2534
2535         maint.mk: Respect $(build_aux) in web-manual rule.
2536         * top/maint.mk (web-manual): Find gen-announce script in user's
2537         $(build_aux) directory instead of hard-coding 'build-aux'.
2538
2539 2011-10-19  Bruno Haible  <bruno@clisp.org>
2540
2541         posix_openpt: Fix compilation error.
2542         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2543         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2544         Mention the openpty module as an alternative.
2545
2546 2011-10-19  Bruno Haible  <bruno@clisp.org>
2547
2548         Support for old NeXTstep 3.3 frexp().
2549         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2550         execution time of the test to 5 seconds.
2551         Reported by Daniel Richard G. <skunk@iskunk.org>.
2552
2553 2011-10-19  Bruno Haible  <bruno@clisp.org>
2554
2555         Support for old NeXTstep 3.3 sed.
2556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2557         part, use /.../, not \|...|. Escape periods in the header file name.
2558         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2559         Reported by Daniel Richard G. <skunk@iskunk.org>.
2560
2561 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2562
2563         Support for old NeXTstep 3.3 gcc.
2564         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2565         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2566         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2567         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2568         * lib/regex.h (_Restrict_arr_): Likewise.
2569         * lib/regex_internal.h (re_token_t): Likewise.
2570         * lib/regexec.c (check_node_accept_bytes): Likewise.
2571         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2572
2573 2011-10-18  Eric Blake  <eblake@redhat.com>
2574
2575         posix_openpt: new module
2576         * modules/posix_openpt: New module.
2577         * m4/posix_openpt.m4: New file.
2578         * lib/posix_openpt.c: Likewise.
2579         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2580         (gl_STDLIB_H_DEFAULTS): Set defaults.
2581         * modules/stdlib (Makefile.am): Substitute macros.
2582         * lib/stdlib.in.h (posix_openpt): Declare.
2583         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2584         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2585         * modules/posix_openpt-tests: New test module.
2586         * tests/test-posix_openpt.c: New test.
2587
2588 2011-10-15  Bruno Haible  <bruno@clisp.org>
2589
2590         xstrtoll: Fix compilation failure.
2591         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2592         from lib/strtol.c.
2593         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2594         some platforms.
2595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2596
2597 2011-10-15  Bruno Haible  <bruno@clisp.org>
2598
2599         vasnprintf: Optimize bit search operation.
2600         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2602         gl_DOUBLE_EXPONENT_LOCATION.
2603         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2604         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2605         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2606         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2607         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2608         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2609         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2610         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2611         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2612
2613 2011-10-15  Bruno Haible  <bruno@clisp.org>
2614
2615         vasnprintf: Fix comments.
2616         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2617
2618 2011-10-14  Bruno Haible  <bruno@clisp.org>
2619
2620         Tests for module 'integer_length_ll'.
2621         * modules/integer_length_ll-tests: New file.
2622         * tests/test-integer_length_ll.c: New file.
2623
2624         New module 'integer_length_ll'.
2625         * lib/integer_length_ll.c: New file.
2626         * modules/integer_length_ll: New file.
2627
2628 2011-10-14  Bruno Haible  <bruno@clisp.org>
2629
2630         Tests for module 'integer_length_l'.
2631         * modules/integer_length_l-tests: New file.
2632         * tests/test-integer_length_l.c: New file.
2633
2634         New module 'integer_length_l'.
2635         * lib/integer_length_l.c: New file.
2636         * modules/integer_length_l: New file.
2637
2638 2011-10-14  Bruno Haible  <bruno@clisp.org>
2639
2640         Tests for module 'integer_length'.
2641         * modules/integer_length-tests: New file.
2642         * tests/test-integer_length.c: New file.
2643
2644         New module 'integer_length'.
2645         * lib/integer_length.h: New file.
2646         * lib/integer_length.c: New file.
2647         * modules/integer_length: New file.
2648
2649 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2650
2651         popen: Fix dependency conditions.
2652         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2653
2654 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2655
2656         perror: Fix autoconf test.
2657         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2658         <stdlib.h> and <string.h>.
2659
2660 2011-10-14  Bruno Haible  <bruno@clisp.org>
2661
2662         ffsl: Optimize on 64-bit platforms.
2663         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2664         unrolling.
2665
2666 2011-10-13  Bruno Haible  <bruno@clisp.org>
2667
2668         ffsl: Optimize on 32-bit platforms.
2669         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2670         use ffs() without a loop.
2671
2672         ffsl, ffsll: Optimize for GCC.
2673         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2674         * lib/ffsl.c (GCC_BUILTIN): New macro.
2675         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2676
2677 2011-10-13  Bruno Haible  <bruno@clisp.org>
2678
2679         ffs, bcopy, memset: Support symbol renaming via config.h.
2680         * lib/ffs.c: Include <config.h>.
2681         * lib/bcopy.c: Likewise.
2682         * lib/memset.c: Likewise.
2683
2684 2011-10-10  Bruno Haible  <bruno@clisp.org>
2685
2686         atanl: Simplify for platforms where 'long double' == 'double'.
2687         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2688         alternative implementation.
2689         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2690         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2691         * modules/atanl (Depends-on): Add atan. Update conditions.
2692
2693 2011-10-10  Bruno Haible  <bruno@clisp.org>
2694
2695         acosl: Simplify for platforms where 'long double' == 'double'.
2696         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2697         alternative implementation.
2698         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2699         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2700         * modules/acosl (Depends-on): Add acos. Update conditions.
2701
2702 2011-10-10  Bruno Haible  <bruno@clisp.org>
2703
2704         asinl: Simplify for platforms where 'long double' == 'double'.
2705         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2706         alternative implementation.
2707         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2708         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2709         * modules/asinl (Depends-on): Add asin. Update conditions.
2710
2711 2011-10-10  Bruno Haible  <bruno@clisp.org>
2712
2713         tanl: Simplify for platforms where 'long double' == 'double'.
2714         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2715         implementation.
2716         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2717         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2718         * modules/tanl (Depends-on): Add tan. Update conditions.
2719         (configure.ac): Don't compile trigl.c if
2720         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2721
2722 2011-10-10  Bruno Haible  <bruno@clisp.org>
2723
2724         cosl: Simplify for platforms where 'long double' == 'double'.
2725         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2726         implementation.
2727         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2728         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2729         * modules/cosl (Depends-on): Add cos. Update conditions.
2730         (configure.ac): Don't compile sincosl.c and trigl.c if
2731         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2732
2733 2011-10-10  Bruno Haible  <bruno@clisp.org>
2734
2735         sinl: Simplify for platforms where 'long double' == 'double'.
2736         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2737         implementation.
2738         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2739         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2740         * modules/sinl (Depends-on): Add sin. Update conditions.
2741         (configure.ac): Don't compile sincosl.c and trigl.c if
2742         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2743
2744 2011-10-10  Bruno Haible  <bruno@clisp.org>
2745
2746         logl: Simplify for platforms where 'long double' == 'double'.
2747         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2748         implementation.
2749         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2750         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2751         * modules/logl (Depends-on): Add log. Update conditions.
2752
2753 2011-10-10  Bruno Haible  <bruno@clisp.org>
2754
2755         expl: Simplify for platforms where 'long double' == 'double'.
2756         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2757         implementation.
2758         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2759         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2760         * modules/expl (Depends-on): Add exp. Update conditions.
2761
2762 2011-10-10  Bruno Haible  <bruno@clisp.org>
2763
2764         sqrtl: Simplify for platforms where 'long double' == 'double'.
2765         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2766         alternative implementation.
2767         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2768         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2769         * modules/sqrtl (Depends-on): Update conditions.
2770
2771 2011-10-10  Bruno Haible  <bruno@clisp.org>
2772
2773         ldexpl: Simplify for platforms where 'long double' == 'double'.
2774         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2775         alternative implementation.
2776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2777         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2778         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2779
2780 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2781
2782         ffsll: set correct witness
2783         * modules/ffsll (configure.ac): Fix typo.
2784
2785 2011-10-10  Bruno Haible  <bruno@clisp.org>
2786
2787         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2788         * lib/printf-frexpl.c: Include <config.h>.
2789         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2790         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2791         second time.
2792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2793         gl_LONG_DOUBLE_VS_DOUBLE.
2794         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2795         conditions.
2796
2797 2011-10-10  Bruno Haible  <bruno@clisp.org>
2798
2799         frexpl: Simplify for platforms where 'long double' == 'double'.
2800         * lib/frexpl.c: Include <config.h>.
2801         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2802         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2803         time.
2804         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2805         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2806         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2807         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2808         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2809         conditions.
2810
2811 2011-10-10  Jim Meyering  <meyering@redhat.com>
2812
2813         test-renameat: don't leave behind a temporary file
2814         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2815           ERROR: files left in build directory after distclean:
2816           ./gltests/test-renameat.too
2817           make[1]: *** [distcleancheck] Error 1
2818         Reported by Tom G. Christensen.
2819
2820 2011-10-09  Bruno Haible  <bruno@clisp.org>
2821
2822         rint: Determine RINT_LIBM correctly on AIX 7.
2823         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2824         directly, not only through a function pointer. Also accept an optional
2825         4th argument with extra code.
2826         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2827         rintf() call by gcc when optimizing.
2828
2829         mathfunc.m4: Refactor.
2830         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2831         m4 variable.
2832
2833 2011-10-09  Bruno Haible  <bruno@clisp.org>
2834
2835         rintl: Simplify for platforms where 'long double' == 'double'.
2836         * lib/rintl.c: Include <config.h>.
2837         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2838         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2839         time.
2840         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2841         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2842         * modules/rintl (Depends-on): Add rint. Update conditions.
2843
2844 2011-10-09  Bruno Haible  <bruno@clisp.org>
2845
2846         roundl: Simplify for platforms where 'long double' == 'double'.
2847         * lib/roundl.c: Include <config.h>.
2848         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2849         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2850         time.
2851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2852         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2853         * modules/roundl (Depends-on): Add round. Update conditions.
2854
2855 2011-10-09  Bruno Haible  <bruno@clisp.org>
2856
2857         truncl: Simplify for platforms where 'long double' == 'double'.
2858         * lib/truncl.c: Include <config.h>.
2859         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2860         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2861         time.
2862         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2863         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2864         * modules/truncl (Depends-on): Add trunc. Update conditions.
2865
2866 2011-10-09  Bruno Haible  <bruno@clisp.org>
2867
2868         ceill: Simplify for platforms where 'long double' == 'double'.
2869         * lib/ceill.c: Include <config.h>.
2870         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2871         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2872         time.
2873         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2874         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2875         * modules/ceill (Depends-on): Add ceil. Update conditions.
2876
2877 2011-10-09  Bruno Haible  <bruno@clisp.org>
2878
2879         floorl: Simplify for platforms where 'long double' == 'double'.
2880         * lib/floorl.c: Include <config.h>.
2881         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2882         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2883         time.
2884         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2885         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2886         * modules/floorl (Depends-on): Add floor. Update conditions.
2887
2888 2011-10-09  Bruno Haible  <bruno@clisp.org>
2889
2890         rint: Fix ordering constraints.
2891         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2892         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2893         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2894
2895 2011-10-09  Bruno Haible  <bruno@clisp.org>
2896
2897         copysignl: Simplify for platforms where 'long double' == 'double'.
2898         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2899         alternative.
2900         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2901         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2902         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2903
2904 2011-10-09  Bruno Haible  <bruno@clisp.org>
2905
2906         Tests for module 'rintl'.
2907         * modules/rintl-tests: New file.
2908         * tests/test-rintl.c: New file.
2909
2910         New module 'rintl'.
2911         * lib/math.in.h (rintl): New declaration.
2912         * lib/rintl.c: New file.
2913         * m4/rintl.m4: New file.
2914         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2916         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2917         * modules/rintl: New file.
2918         * tests/test-math-c++.cc: Check the declaration of rintl.
2919         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2920         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2921         * doc/posix-functions/rintl.texi: Mention the new module.
2922
2923 2011-10-09  Bruno Haible  <bruno@clisp.org>
2924
2925         Tests for module 'rintf'.
2926         * modules/rintf-tests: New file.
2927         * tests/test-rintf.c: New file.
2928
2929         New module 'rintf'.
2930         * lib/math.in.h (rintf): New declaration.
2931         * lib/rintf.c: New file.
2932         * m4/rintf.m4: New file.
2933         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2935         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2936         * modules/rintf: New file.
2937         * tests/test-math-c++.cc: Check the declaration of rintf.
2938         * doc/posix-functions/rintf.texi: Mention the new module.
2939
2940 2011-10-09  Bruno Haible  <bruno@clisp.org>
2941
2942         rint: Support for MSVC.
2943         * lib/math.in.h (rint): New declaration.
2944         * lib/rint.c: New file.
2945         * m4/rint.m4: New file.
2946         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2948         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2949         * modules/rint (Description): Fix.
2950         (Files): Add lib/rint.c, m4/rint.m4.
2951         (Depends-on): Add math.
2952         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2953         gl_MATH_MODULE_INDICATOR.
2954         * tests/test-math-c++.cc: Check the declaration of rint.
2955         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2956         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2957         * doc/posix-functions/rint.texi: Mention the replacement provided by
2958         the module.
2959
2960         rint tests: More tests.
2961         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2962         minus-zero.h, infinity.h, nan.h.
2963         (main): Skip the test if the current rounding mode is not standard. Add
2964         tests for negative numbers, minus zero, infinity, NaN.
2965         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2966         tests/nan.h.
2967         (Depends-on): Add isnand-nolibm.
2968
2969 2011-10-09  Bruno Haible  <bruno@clisp.org>
2970
2971         Tests for module 'copysignl'.
2972         * modules/copysignl-tests: New file.
2973         * tests/test-copysignl.c: New file.
2974
2975         New module 'copysignl'.
2976         * lib/math.in.h (copysignl): New declaration.
2977         * lib/copysignl.c: New file.
2978         * m4/copysignl.m4: New file.
2979         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2981         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2982         HAVE_COPYSIGNL.
2983         * modules/copysignl: New file.
2984         * tests/test-math-c++.cc: Check the declaration of copysignl.
2985         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2986         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2987         * doc/posix-functions/copysignl.texi: Mention the new module.
2988
2989 2011-10-09  Bruno Haible  <bruno@clisp.org>
2990
2991         Tests for module 'copysignf'.
2992         * modules/copysignf-tests: New file.
2993         * tests/test-copysignf.c: New file.
2994
2995         New module 'copysignf'.
2996         * lib/math.in.h (copysignf): New declaration.
2997         * lib/copysignf.c: New file.
2998         * m4/copysignf.m4: New file.
2999         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3001         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3002         HAVE_COPYSIGNF.
3003         * modules/copysignf: New file.
3004         * tests/test-math-c++.cc: Check the declaration of copysignf.
3005         * doc/posix-functions/copysignf.texi: Mention the new module.
3006
3007 2011-10-09  Bruno Haible  <bruno@clisp.org>
3008
3009         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3011         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3012         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3013         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3014         gl_SIGNAL_H_DEFAULTS.
3015
3016 2011-10-09  Bruno Haible  <bruno@clisp.org>
3017
3018         poll: Make macro safer.
3019         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3020         ac_cv_header_poll_h is not set.
3021
3022 2011-10-09  Bruno Haible  <bruno@clisp.org>
3023
3024         copysign: Provide replacement.
3025         * lib/math.in.h (copysign): New declaration.
3026         * lib/copysign.c: New file.
3027         * m4/copysign.m4: New file.
3028         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3030         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3031         HAVE_COPYSIGN.
3032         * modules/copysign (Description): Clarify.
3033         (Files): Add lib/copysign.c, m4/copysign.m4.
3034         (Depends-on): Add math, signbit.
3035         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3036         gl_MATH_MODULE_INDICATOR.
3037         * tests/test-math-c++.cc: Check the declaration of copysign.
3038         * doc/posix-functions/copysign.texi: Mention the effects of the module
3039         on Minix and MSVC.
3040
3041 2011-10-09  Bruno Haible  <bruno@clisp.org>
3042
3043         isinf: Ensure macro on AIX 5.1.
3044         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3045         macro.
3046         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3047
3048 2011-10-09  Bruno Haible  <bruno@clisp.org>
3049
3050         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3051         * modules/snprintf-posix-tests (configure.ac): Require
3052         gl_LONG_DOUBLE_VS_DOUBLE.
3053         * modules/sprintf-posix-tests (configure.ac): Likewise.
3054         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3055         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3056         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3057         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3058         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3059         tests on platforms where 'long double' is the same as 'double'.
3060         * tests/test-sprintf-posix.h (test_function): Likewise.
3061         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3062         * tests/test-vasprintf-posix.c (test_function): Likewise.
3063
3064         *printf: Fix for platforms where 'long double' == 'double'.
3065         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3066         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3067         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3068         * modules/fprintf-posix (Files): Likewise.
3069         * modules/obstack-printf-posix (Files): Likewise.
3070         * modules/snprintf-posix (Files): Likewise.
3071         * modules/sprintf-posix (Files): Likewise.
3072         * modules/vasnprintf (Files): Likewise.
3073         * modules/vasnprintf-posix (Files): Likewise.
3074         * modules/vasprintf-posix (Files): Likewise.
3075         * modules/vdprintf-posix (Files): Likewise.
3076         * modules/vfprintf-posix (Files): Likewise.
3077         * modules/vsnprintf-posix (Files): Likewise.
3078         * modules/vsprintf-posix (Files): Likewise.
3079         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3080         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3081         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3082         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3083         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3084         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3085         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3086
3087         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3088         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3089         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3090         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3091         'long double'.
3092         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3093
3094         isinf: Fix for platforms where 'long double' == 'double'.
3095         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3096         Don't blindly assume 80-bit 'long double'.
3097
3098         isfinite: Fix for platforms where 'long double' == 'double'.
3099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3100         Don't blindly assume 80-bit 'long double'.
3101
3102         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3103         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3104         * modules/isfinite-tests (configure.ac): Require
3105         gl_LONG_DOUBLE_VS_DOUBLE.
3106         * modules/isinf-tests (configure.ac): Likewise.
3107         * modules/isnan-tests (configure.ac): Likewise.
3108         * modules/isnanl-tests (configure.ac): Likewise.
3109         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3110         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3111         tests on platforms where 'long double' is the same as 'double'.
3112         * tests/test-isinf.c (test_isinfl): Likewise.
3113         * tests/test-isnan.c (test_long_double): Likewise.
3114         * tests/test-isnanl.h (main): Likewise.
3115
3116 2011-10-08  Bruno Haible  <bruno@clisp.org>
3117
3118         Tests for module 'tanhf'.
3119         * modules/tanhf-tests: New file.
3120         * tests/test-tanhf.c: New file.
3121
3122         New module 'tanhf'.
3123         * lib/math.in.h (tanhf): New declaration.
3124         * lib/tanhf.c: New file.
3125         * m4/tanhf.m4: New file.
3126         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3128         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3129         * modules/tanhf: New file.
3130         * tests/test-math-c++.cc: Check the declaration of tanhf.
3131         * doc/posix-functions/tanhf.texi: Mention the new module.
3132
3133         tanh: Use a .m4 file.
3134         * m4/tanh.m4: New file.
3135         * modules/tanh (Files): Add it.
3136         (configure.ac): Just invoke gl_FUNC_TANH.
3137
3138 2011-10-08  Bruno Haible  <bruno@clisp.org>
3139
3140         Tests for module 'coshf'.
3141         * modules/coshf-tests: New file.
3142         * tests/test-coshf.c: New file.
3143
3144         New module 'coshf'.
3145         * lib/math.in.h (coshf): New declaration.
3146         * lib/coshf.c: New file.
3147         * m4/coshf.m4: New file.
3148         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3150         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3151         * modules/coshf: New file.
3152         * tests/test-math-c++.cc: Check the declaration of coshf.
3153         * doc/posix-functions/coshf.texi: Mention the new module.
3154
3155         cosh: Use a .m4 file.
3156         * m4/cosh.m4: New file.
3157         * modules/cosh (Files): Add it.
3158         (configure.ac): Just invoke gl_FUNC_COSH.
3159
3160 2011-10-08  Bruno Haible  <bruno@clisp.org>
3161
3162         Tests for module 'sinhf'.
3163         * modules/sinhf-tests: New file.
3164         * tests/test-sinhf.c: New file.
3165
3166         New module 'sinhf'.
3167         * lib/math.in.h (sinhf): New declaration.
3168         * lib/sinhf.c: New file.
3169         * m4/sinhf.m4: New file.
3170         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3172         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3173         * modules/sinhf: New file.
3174         * tests/test-math-c++.cc: Check the declaration of sinhf.
3175         * doc/posix-functions/sinhf.texi: Mention the new module.
3176
3177         sinh: Use a .m4 file.
3178         * m4/sinh.m4: New file.
3179         * modules/sinh (Files): Add it.
3180         (configure.ac): Just invoke gl_FUNC_SINH.
3181
3182 2011-10-08  Bruno Haible  <bruno@clisp.org>
3183
3184         Tests for module 'atan2f'.
3185         * modules/atan2f-tests: New file.
3186         * tests/test-atan2f.c: New file.
3187
3188         New module 'atan2f'.
3189         * lib/math.in.h (atan2f): New declaration.
3190         * lib/atan2f.c: New file.
3191         * m4/atan2f.m4: New file.
3192         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3194         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3195         * modules/atan2f: New file.
3196         * tests/test-math-c++.cc: Check the declaration of atan2f.
3197         * doc/posix-functions/atan2f.texi: Mention the new module.
3198
3199         atan2: Use a .m4 file.
3200         * m4/atan2.m4: New file.
3201         * modules/atan2 (Files): Add it.
3202         (configure.ac): Just invoke gl_FUNC_ATAN2.
3203
3204 2011-10-08  Bruno Haible  <bruno@clisp.org>
3205
3206         Tests for module 'atanf'.
3207         * modules/atanf-tests: New file.
3208         * tests/test-atanf.c: New file.
3209
3210         New module 'atanf'.
3211         * lib/math.in.h (atanf): New declaration.
3212         * lib/atanf.c: New file.
3213         * m4/atanf.m4: New file.
3214         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3216         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3217         * modules/atanf: New file.
3218         * tests/test-math-c++.cc: Check the declaration of atanf.
3219         * doc/posix-functions/atanf.texi: Mention the new module.
3220
3221         atan: Use a .m4 file.
3222         * m4/atan.m4: New file.
3223         * modules/atan (Files): Add it.
3224         (configure.ac): Just invoke gl_FUNC_ATAN.
3225
3226 2011-10-08  Bruno Haible  <bruno@clisp.org>
3227
3228         Tests for module 'acosf'.
3229         * modules/acosf-tests: New file.
3230         * tests/test-acosf.c: New file.
3231
3232         New module 'acosf'.
3233         * lib/math.in.h (acosf): New declaration.
3234         * lib/acosf.c: New file.
3235         * m4/acosf.m4: New file.
3236         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3238         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3239         * modules/acosf: New file.
3240         * tests/test-math-c++.cc: Check the declaration of acosf.
3241         * doc/posix-functions/acosf.texi: Mention the new module.
3242
3243         acos: Use a .m4 file.
3244         * m4/acos.m4: New file.
3245         * modules/acos (Files): Add it.
3246         (configure.ac): Just invoke gl_FUNC_ACOS.
3247
3248 2011-10-08  Bruno Haible  <bruno@clisp.org>
3249
3250         Tests for module 'asinf'.
3251         * modules/asinf-tests: New file.
3252         * tests/test-asinf.c: New file.
3253
3254         New module 'asinf'.
3255         * lib/math.in.h (asinf): New declaration.
3256         * lib/asinf.c: New file.
3257         * m4/asinf.m4: New file.
3258         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3260         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3261         * modules/asinf: New file.
3262         * tests/test-math-c++.cc: Check the declaration of asinf.
3263         * doc/posix-functions/asinf.texi: Mention the new module.
3264
3265         asin: Use a .m4 file.
3266         * m4/asin.m4: New file.
3267         * modules/asin (Files): Add it.
3268         (configure.ac): Just invoke gl_FUNC_ASIN.
3269
3270 2011-10-08  Bruno Haible  <bruno@clisp.org>
3271
3272         Tests for module 'tanf'.
3273         * modules/tanf-tests: New file.
3274         * tests/test-tanf.c: New file.
3275
3276         New module 'tanf'.
3277         * lib/math.in.h (tanf): New declaration.
3278         * lib/tanf.c: New file.
3279         * m4/tanf.m4: New file.
3280         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3282         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3283         * modules/tanf: New file.
3284         * tests/test-math-c++.cc: Check the declaration of tanf.
3285         * doc/posix-functions/tanf.texi: Mention the new module.
3286
3287         tan: Use a .m4 file.
3288         * m4/tan.m4: New file.
3289         * modules/tan (Files): Add it.
3290         (configure.ac): Just invoke gl_FUNC_TAN.
3291
3292 2011-10-08  Bruno Haible  <bruno@clisp.org>
3293
3294         Tests for module 'cosf'.
3295         * modules/cosf-tests: New file.
3296         * tests/test-cosf.c: New file.
3297
3298         New module 'cosf'.
3299         * lib/math.in.h (cosf): New declaration.
3300         * lib/cosf.c: New file.
3301         * m4/cosf.m4: New file.
3302         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3304         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3305         * modules/cosf: New file.
3306         * tests/test-math-c++.cc: Check the declaration of cosf.
3307         * doc/posix-functions/cosf.texi: Mention the new module.
3308
3309         cos: Use a .m4 file.
3310         * m4/cos.m4: New file.
3311         * modules/cos (Files): Add it.
3312         (configure.ac): Just invoke gl_FUNC_COS.
3313
3314 2011-10-08  Bruno Haible  <bruno@clisp.org>
3315
3316         Tests for module 'sinf'.
3317         * modules/sinf-tests: New file.
3318         * tests/test-sinf.c: New file.
3319
3320         New module 'sinf'.
3321         * lib/math.in.h (sinf): New declaration.
3322         * lib/sinf.c: New file.
3323         * m4/sinf.m4: New file.
3324         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3326         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3327         * modules/sinf: New file.
3328         * tests/test-math-c++.cc: Check the declaration of sinf.
3329         * doc/posix-functions/sinf.texi: Mention the new module.
3330
3331         sin: Use a .m4 file.
3332         * m4/sin.m4: New file.
3333         * modules/sin (Files): Add it.
3334         (configure.ac): Just invoke gl_FUNC_SIN.
3335
3336 2011-10-08  Bruno Haible  <bruno@clisp.org>
3337
3338         Tests for module 'powf'.
3339         * modules/powf-tests: New file.
3340         * tests/test-powf.c: New file.
3341
3342         New module 'powf'.
3343         * lib/math.in.h (powf): New declaration.
3344         * lib/powf.c: New file.
3345         * m4/powf.m4: New file.
3346         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3348         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3349         * modules/powf: New file.
3350         * tests/test-math-c++.cc: Check the declaration of powf.
3351         * doc/posix-functions/powf.texi: Mention the new module.
3352
3353         pow: Use a .m4 file.
3354         * m4/pow.m4: New file.
3355         * modules/pow (Files): Add it.
3356         (configure.ac): Just invoke gl_FUNC_POW.
3357
3358 2011-10-08  Bruno Haible  <bruno@clisp.org>
3359
3360         Tests for module 'log10f'.
3361         * modules/log10f-tests: New file.
3362         * tests/test-log10f.c: New file.
3363
3364         New module 'log10f'.
3365         * lib/math.in.h (log10f): New declaration.
3366         * lib/log10f.c: New file.
3367         * m4/log10f.m4: New file.
3368         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3370         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3371         * modules/log10f: New file.
3372         * tests/test-math-c++.cc: Check the declaration of log10f.
3373         * doc/posix-functions/log10f.texi: Mention the new module.
3374
3375         log10: Use a .m4 file.
3376         * m4/log10.m4: New file.
3377         * modules/log10 (Files): Add it.
3378         (configure.ac): Just invoke gl_FUNC_LOG10.
3379
3380 2011-10-08  Bruno Haible  <bruno@clisp.org>
3381
3382         Tests for module 'logf'.
3383         * modules/logf-tests: New file.
3384         * tests/test-logf.c: New file.
3385
3386         New module 'logf'.
3387         * lib/math.in.h (logf): New declaration.
3388         * lib/logf.c: New file.
3389         * m4/logf.m4: New file.
3390         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3392         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3393         * modules/logf: New file.
3394         * tests/test-math-c++.cc: Check the declaration of logf.
3395         * doc/posix-functions/logf.texi: Mention the new module.
3396
3397         log: Use a .m4 file.
3398         * m4/log.m4: New file.
3399         * modules/log (Files): Add it.
3400         (configure.ac): Just invoke gl_FUNC_LOG.
3401
3402 2011-10-08  Bruno Haible  <bruno@clisp.org>
3403
3404         Tests for module 'expf'.
3405         * modules/expf-tests: New file.
3406         * tests/test-expf.c: New file.
3407
3408         New module 'expf'.
3409         * lib/math.in.h (expf): New declaration.
3410         * lib/expf.c: New file.
3411         * m4/expf.m4: New file.
3412         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3414         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3415         * modules/expf: New file.
3416         * tests/test-math-c++.cc: Check the declaration of expf.
3417         * doc/posix-functions/expf.texi: Mention the new module.
3418
3419         exp: Use a .m4 file.
3420         * m4/exp.m4: New file.
3421         * modules/exp (Files): Add it.
3422         (configure.ac): Just invoke gl_FUNC_EXP.
3423
3424 2011-10-08  Bruno Haible  <bruno@clisp.org>
3425
3426         Tests for module 'sqrtf'.
3427         * modules/sqrtf-tests: New file.
3428         * tests/test-sqrtf.c: New file.
3429
3430         New module 'sqrtf'.
3431         * lib/math.in.h (sqrtf): New declaration.
3432         * lib/sqrtf.c: New file.
3433         * m4/sqrtf.m4: New file.
3434         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3436         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3437         * modules/sqrtf: New file.
3438         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3439         * doc/posix-functions/sqrtf.texi: Mention the new module.
3440
3441 2011-10-08  Bruno Haible  <bruno@clisp.org>
3442
3443         Tests: Avoid link failures w.r.t. libintl.
3444         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3445         $(LIBINTL).
3446         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3447         $(LIBINTL).
3448         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3449         against $(LIBINTL).
3450         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3451         $(LIBINTL).
3452         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3453         $(LIBINTL).
3454         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3455
3456 2011-10-08  Bruno Haible  <bruno@clisp.org>
3457
3458         pow tests: Defeat compiler optimizations.
3459         * tests/test-pow.c (main): Assign arguments to x and y before use.
3460
3461 2011-10-08  Bruno Haible  <bruno@clisp.org>
3462
3463         gnulib-tool: Improve last commit.
3464         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3465         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3466         ignore dependencies that are not among the modules list.
3467
3468 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3469
3470         gnulib-tool: don't follow dependencies to avoided modules
3471         This fixes a bug that is related to the previous one.
3472         * gnulib-tool (func_modules_transitive_closure)
3473         (func_emit_autoconf_snippets):
3474         Check whether a dependency is acceptable before using it.
3475         (--extract-dependencies): Report an error if --avoid is also used,
3476         since this combination of options is not yet supported.
3477
3478         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3479         Problem reported by Peter Dyballa in
3480         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3481         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3482         when echoing "$condition".
3483
3484 2011-10-07  Bruno Haible  <bruno@clisp.org>
3485
3486         Fix documentation about math functions on MacOS X.
3487         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3488         MacOS X 10.5.
3489         * doc/posix-functions/fdim.texi: Likewise.
3490         * doc/posix-functions/feclearexcept.texi: Likewise.
3491         * doc/posix-functions/fegetenv.texi: Likewise.
3492         * doc/posix-functions/fegetround.texi: Likewise.
3493         * doc/posix-functions/feholdexcept.texi: Likewise.
3494         * doc/posix-functions/feraiseexcept.texi: Likewise.
3495         * doc/posix-functions/fesetenv.texi: Likewise.
3496         * doc/posix-functions/fesetround.texi: Likewise.
3497         * doc/posix-functions/fetestexcept.texi: Likewise.
3498         * doc/posix-functions/feupdateenv.texi: Likewise.
3499         * doc/posix-functions/fmax.texi: Likewise.
3500         * doc/posix-functions/fmin.texi: Likewise.
3501         * doc/posix-functions/log2.texi: Likewise.
3502         * doc/posix-functions/modff.texi: Likewise.
3503         * doc/posix-functions/nan.texi: Likewise.
3504         * doc/posix-functions/nanf.texi: Likewise.
3505         * doc/posix-functions/nextafterf.texi: Likewise.
3506         * doc/posix-functions/remquo.texi: Likewise.
3507
3508 2011-10-07  Bruno Haible  <bruno@clisp.org>
3509
3510         modff: Drop assumption about library that defines modff.
3511         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3512         AC_CHECK_FUNCS.
3513         * modules/modff (Files): Add m4/mathfunc.m4.
3514
3515 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3516
3517         raise tests: Avoid a GCC warning.
3518         * tests/test-raise.c (handler): Use _Noreturn.
3519
3520 2011-10-07  Bruno Haible  <bruno@clisp.org>
3521
3522         Tests for module 'ldexpf'.
3523         * modules/ldexpf-tests: New file.
3524         * tests/test-ldexpf.c: New file.
3525
3526         New module 'ldexpf'.
3527         * lib/math.in.h (ldexpf): New declaration.
3528         * lib/ldexpf.c: New file.
3529         * m4/ldexpf.m4: New file.
3530         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3532         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3533         * modules/ldexpf: New file.
3534         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3535         * doc/posix-functions/ldexpf.texi: Mention the new module.
3536
3537 2011-10-06  Bruno Haible  <bruno@clisp.org>
3538
3539         frexpf: Work around problems on IRIX and mingw.
3540         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3542         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3543         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3544         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3545         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3546         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3547
3548 2011-10-06  Bruno Haible  <bruno@clisp.org>
3549
3550         fabsf: Drop assumption about library that defines fabsf.
3551         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3552         AC_CHECK_FUNCS.
3553         * modules/fabsf (Files): Add m4/mathfunc.m4.
3554
3555 2011-10-06  Bruno Haible  <bruno@clisp.org>
3556
3557         frexpf: Drop assumption about library that defines frexpf.
3558         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3559         'int *', 'float *', 'long double *', 'float', 'long double'.
3560         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3561         AC_CHECK_FUNCS.
3562         * modules/frexpf (Files): Add m4/mathfunc.m4.
3563
3564         Tests for module 'frexpf'.
3565         * modules/frexpf-tests: New file.
3566         * tests/test-frexpf.c: New file.
3567
3568         New module 'frexpf'.
3569         * lib/math.in.h (frexpf): New declaration.
3570         * lib/frexpf.c: New file.
3571         * m4/frexpf.m4: New file.
3572         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3574         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3575         * modules/frexpf: New file.
3576         * tests/test-math-c++.cc: Check the declaration of frexpf.
3577         * doc/posix-functions/frexpf.texi: Mention the new module.
3578
3579 2011-10-06  Bruno Haible  <bruno@clisp.org>
3580
3581         math: Sort function declarations of math.in.h.
3582         * lib/math.in.h (frexp, logb): Move declarations.
3583
3584 2011-10-05  Bruno Haible  <bruno@clisp.org>
3585
3586         Tests for module 'modff'.
3587         * modules/modff-tests: New file.
3588         * tests/test-modff.c: New file.
3589
3590         New module 'modff'.
3591         * lib/math.in.h (modff): New declaration.
3592         * lib/modff.c: New file.
3593         * m4/modff.m4: New file.
3594         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3596         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3597         * modules/modff: New file.
3598         * tests/test-math-c++.cc: Check the declaration of modff.
3599         * doc/posix-functions/modff.texi: Mention the new module.
3600
3601         modf tests: Make test sharper.
3602         * tests/test-modf.c (main): Strengthen upper bound.
3603
3604         modf: Use a .m4 file.
3605         * m4/modf.m4: New file.
3606         * modules/modf (Files): Add it.
3607         (configure.ac): Just invoke gl_FUNC_MODF.
3608
3609 2011-10-05  Bruno Haible  <bruno@clisp.org>
3610
3611         Tests for module 'fmodf'.
3612         * modules/fmodf-tests: New file.
3613         * tests/test-fmodf.c: New file.
3614
3615         New module 'fmodf'.
3616         * lib/math.in.h (fmodf): New declaration.
3617         * lib/fmodf.c: New file.
3618         * m4/fmodf.m4: New file.
3619         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3621         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3622         * modules/fmodf: New file.
3623         * tests/test-math-c++.cc: Check the declaration of fmodf.
3624         * doc/posix-functions/fmodf.texi: Mention the new module.
3625
3626         fmod: Use a .m4 file.
3627         * m4/fmod.m4: New file.
3628         * modules/fmod (Files): Add it.
3629         (configure.ac): Just invoke gl_FUNC_FMOD.
3630
3631 2011-10-05  Bruno Haible  <bruno@clisp.org>
3632
3633         Tests for module 'fabsf'.
3634         * modules/fabsf-tests: New file.
3635         * tests/test-fabsf.c: New file.
3636
3637         New module 'fabsf'.
3638         * lib/math.in.h (fabsf): New declaration.
3639         * lib/fabsf.c: New file.
3640         * m4/fabsf.m4: New file.
3641         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3643         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3644         * modules/fabsf: New file.
3645         * tests/test-math-c++.cc: Check the declaration of fabsf.
3646         * doc/posix-functions/fabsf.texi: Mention the new module.
3647
3648         fabs: Use a .m4 file.
3649         * m4/fabs.m4: New file.
3650         * modules/fabs (Files): Add it.
3651         (configure.ac): Just invoke gl_FUNC_FABS.
3652
3653 2011-10-05  Jim Meyering  <meyering@redhat.com>
3654
3655         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3656         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3657         ls -lL regression introduced in coreutils-8.12, it does so at the
3658         cost of an additional stat call in the common case.  Besides, now
3659         that the kernel change that prompted commit 95f7c57f has been reverted
3660         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3661         we have no use for commit 95f7c57f, "file-has-acl: use
3662         acl_extended_file_nofollow if available".
3663
3664 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3665
3666         file-has-acl: revert unintended change in behavior of ls -L
3667         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3668         derived from...
3669         (file_has_acl): ...code here.  Call it.
3670         This problem was introduced with 2011-07-22 commit 95f7c57f,
3671         "file-has-acl: use acl_extended_file_nofollow if available".
3672         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3673
3674 2011-10-03  Bruno Haible  <bruno@clisp.org>
3675
3676         poll: Avoid link errors on MSVC.
3677         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3678         * modules/poll (Depends-on): Add sockets.
3679         (Link): New section.
3680         * NEWS: Mention the change.
3681         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3682         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3683         $(LIB_POLL) instead of $(LIBSOCKET).
3684
3685 2011-10-03  Bruno Haible  <bruno@clisp.org>
3686
3687         sys_select tests: Fix link error on MSVC 9.
3688         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3689         with $(LIB_SELECT) instead of $(LIBSOCKET).
3690
3691 2011-10-03  Bruno Haible  <bruno@clisp.org>
3692
3693         sys_select: Fix compilation error on mingw.
3694         * lib/sys_select.in.h: On native Windows, include <io.h>.
3695
3696 2011-10-03  Bruno Haible  <bruno@clisp.org>
3697
3698         wmemset: Support for MSVC.
3699         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3700         whether wmemset() exists.
3701
3702 2011-10-03  Bruno Haible  <bruno@clisp.org>
3703
3704         wmemmove: Support for MSVC.
3705         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3706         whether wmemmove() exists.
3707
3708 2011-10-03  Bruno Haible  <bruno@clisp.org>
3709
3710         wmemcpy: Support for MSVC.
3711         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3712         whether wmemcpy() exists.
3713
3714 2011-10-03  Bruno Haible  <bruno@clisp.org>
3715
3716         wmemcmp: Support for MSVC.
3717         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3718         whether wmemcmp() exists.
3719
3720 2011-10-03  Bruno Haible  <bruno@clisp.org>
3721
3722         wmemchr: Support for MSVC.
3723         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3724         whether wmemchr() exists.
3725
3726 2011-10-03  Bruno Haible  <bruno@clisp.org>
3727
3728         glthread/*, strsignal: Support for MSVC.
3729         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3730         including <winsock.h> on MSVC 9.
3731         * lib/glthread/lock.h: Likewise.
3732         * lib/glthread/thread.h: Likewise.
3733         * lib/glthread/tls.h: Likewise.
3734         * lib/glthread/yield.h: Likewise.
3735         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3736         if HAVE_UNISTD_H is false.
3737         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3738
3739 2011-10-03  Bruno Haible  <bruno@clisp.org>
3740
3741         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3742         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3743         Set to 100000.
3744
3745 2011-10-03  Bruno Haible  <bruno@clisp.org>
3746
3747         acl: Fix specification.
3748         * lib/file-has-acl.c (file_has_acl): Fix specification.
3749
3750 2011-10-03  Bruno Haible  <bruno@clisp.org>
3751
3752         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3753         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3754         (compute_curr_prefix, shared_library_fullname,
3755         find_shared_library_fullname, get_shared_library_fullname, relocate):
3756         Use it together with PIC && INSTALLDIR.
3757         Reported by <jojelino@gmail.com>
3758         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3759
3760 2011-10-01  Jim Meyering  <meyering@redhat.com>
3761
3762         maint.mk: adjust a release-related rule not to require use of gzip
3763         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3764         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3765         projects that build only .tar.xz files.  Also fix an erroneous test.
3766
3767         test-linkat: don't leave behind a temporary file
3768         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3769         Otherwise, coreutils' "make distcheck" would fail with this:
3770           Only in /c/cu/tests/torture/coreutils/test/\
3771             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3772           make[2]: *** [my-distcheck] Error 1
3773
3774         float, math: add omitted file
3775         * lib/itold.c: Add file, required for yesterday's float change.
3776
3777 2011-10-01  Bruno Haible  <bruno@clisp.org>
3778
3779         isinf: Fix for OpenBSD/x86.
3780         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3781         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3782         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3783
3784 2011-10-01  Bruno Haible  <bruno@clisp.org>
3785
3786         isfinite: Fix syntax error in configure test.
3787         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3788
3789         isfinite: Fix typo.
3790         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3791         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3792
3793 2011-10-01  Bruno Haible  <bruno@clisp.org>
3794
3795         nonblocking tests: Fix test failure on Linux/IA-64.
3796         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3797         Set to 270000.
3798
3799 2011-10-01  Bruno Haible  <bruno@clisp.org>
3800
3801         mkfifoat tests: Fix a test failure on mingw.
3802         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3803         with error ENOSYS.
3804
3805 2011-09-30  Bruno Haible  <bruno@clisp.org>
3806
3807         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3808         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3809         'long double'. Set REPLACE_ITOLD.
3810         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3811         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3812         * lib/itold.c: New file.
3813         * modules/float (Files): Add lib/itold.c.
3814         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3815         (Makefile.am): Substitute REPLACE_ITOLD.
3816         * modules/math (Depends-on): Add float.
3817         (Makefile.am): Substitute REPLACE_ITOLD.
3818         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3819         * doc/posix-headers/math.texi: Likewise.
3820         * doc/posix-functions/logl.texi: Likewise.
3821
3822 2011-09-30  Bruno Haible  <bruno@clisp.org>
3823
3824         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3825         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3826         Set to 140000.
3827
3828 2011-09-30  Bruno Haible  <bruno@clisp.org>
3829
3830         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3831         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3832         invocation, say "right after AC_PROG_CC_STDC", not "right after
3833         AC_PROG_CC".
3834         Reported by Gary V. Vaughan <gary@gnu.org>.
3835
3836 2011-09-30  Bruno Haible  <bruno@clisp.org>
3837
3838         Centralize C99 requirement.
3839         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3840         * modules/stdarg (configure.ac-early): Invoke it instead of
3841         AC_PROG_CC_STDC.
3842         Reported by Gary V. Vaughan and Paul Eggert.
3843
3844 2011-09-29  Bruno Haible  <bruno@clisp.org>
3845
3846         float: Fix LDBL_MAX value on Linux/PowerPC.
3847         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3848         on Linux/PowerPC.
3849         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3850         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3851         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3852         platform.
3853         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3854
3855 2011-09-29  Bruno Haible  <bruno@clisp.org>
3856
3857         doc: Improve doc about gl_EARLY.
3858         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3859         AC_PROG_CC_STDC invocation.
3860         Reported by Gary V. Vaughan <gary@gnu.org>.
3861
3862 2011-09-28  Bruno Haible  <bruno@clisp.org>
3863
3864         fgetc, fputc, fread, fwrite tests: Fix link error.
3865         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3866         on non-MSVC platforms.
3867         * tests/test-fputc.c (main): Likewise.
3868         * tests/test-fread.c (main): Likewise.
3869         * tests/test-fwrite.c (main): Likewise.
3870         Reported by Jim Meyering.
3871
3872 2011-09-27  Bruno Haible  <bruno@clisp.org>
3873
3874         fputc, fwrite tests: Avoid test failure on MSVC.
3875         * tests/test-fgetc.c: Include msvc-inval.h.
3876         (main): Invoke gl_msvc_inval_ensure_handler.
3877         * tests/test-fputc.c: Include msvc-inval.h.
3878         (main): Invoke gl_msvc_inval_ensure_handler.
3879         * tests/test-fread.c: Include msvc-inval.h.
3880         (main): Invoke gl_msvc_inval_ensure_handler.
3881         * tests/test-fwrite.c: Include msvc-inval.h.
3882         (main): Invoke gl_msvc_inval_ensure_handler.
3883         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3884         * modules/fputc-tests (Depends-on): Likewise.
3885         * modules/fread-tests (Depends-on): Likewise.
3886         * modules/fwrite-tests (Depends-on): Likewise.
3887
3888 2011-09-27  Bruno Haible  <bruno@clisp.org>
3889
3890         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3891         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3892         (raise): Remove older, duplicated declaration.
3893         (_gl_raise_SIGPIPE): New declaration.
3894         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3895         (rpl_raise): Remove function.
3896         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3897         a gnulib-defined SIGPIPE here.
3898         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3899         'sigprocmask' has detected missing signal-blocking and the module
3900         'sigpipe' is enabled.
3901         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3902
3903 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3904
3905         base64-tests: avoid memory leak
3906         * tests/test-base64.c (main): Plug memory leak.
3907
3908         base32: new module
3909         * modules/base32: New module.
3910         * lib/base32.c: New file.
3911         * lib/base32.h: Likewise.
3912         * m4/base32.m4: Likewise.
3913         * modules/base32-tests: New test.
3914         * tests/test-base32.c: Likewise.
3915         * MODULES.html.sh (Misc): Mention it.
3916
3917 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3918
3919         gnulib: use more-standard license notice wording
3920         * gnulib-tool (func_emit_copyright_notice): When emitting a
3921         license notice into a file, use the standard wording as suggested
3922         by the current information for GNU maintainers, except say "file"
3923         rather than "program".  The new wording gives a license version
3924         number, which addresses an issue raised by Glenn Morris in
3925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3926         * m4/onceonly.m4: Use that same wording here, too.
3927
3928         dup2: minor simplification
3929         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3930         as lib/dup2.c no longer uses 'inline'.
3931
3932 2011-09-25  Bruno Haible  <bruno@clisp.org>
3933
3934         strings: Fix compilation error on MSVC.
3935         * lib/strings.in.h: Include <stddef.h> for size_t.
3936
3937 2011-09-25  Bruno Haible  <bruno@clisp.org>
3938
3939         fflush et al.: Document limitation on MSVC.
3940         * doc/posix-functions/fflush.texi: Document possible crash in handling
3941         mode other than DEFAULT_HANDLING.
3942         * doc/posix-functions/fgetc.texi: Likewise.
3943         * doc/posix-functions/fputc.texi: Likewise.
3944         * doc/posix-functions/fread.texi: Likewise.
3945         * doc/posix-functions/fwrite.texi: Likewise.
3946
3947 2011-09-25  Bruno Haible  <bruno@clisp.org>
3948
3949         msvc-inval: Allow three invalid parameter handling modes.
3950         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3951         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3952         macros.
3953         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3954         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3955         SANE_LIBRARY_HANDLING as a no-op.
3956         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3957         <stdlib.h>.
3958         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3959
3960 2011-09-25  Bruno Haible  <bruno@clisp.org>
3961
3962         msvc-inval: Make handler multithread-safe.
3963         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3964         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3965         declarations.
3966         (gl_msvc_inval_current): New declaration.
3967         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3968         Operate on the structure returned by gl_msvc_inval_current().
3969         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3970         Remove varaiables.
3971         (tls_index, tls_initialized): New variables.
3972         (not_per_thread): New variable.
3973         (gl_msvc_inval_current): New function.
3974         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3975         returned by gl_msvc_inval_current().
3976
3977 2011-09-25  Bruno Haible  <bruno@clisp.org>
3978
3979         msvc-inval: Install handler globally.
3980         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3981         !_MSC_VER.
3982         (gl_msvc_invalid_parameter_handler): Remove declaration.
3983         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3984         declarations.
3985         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3986         Install the handler globally, don't uninstall it.
3987         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3988         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3989         currently valid, call RaiseException instead.
3990         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3991         for !_MSC_VER.
3992
3993 2011-09-25  Bruno Haible  <bruno@clisp.org>
3994
3995         strerror_r-posix: Fix for MSVC 9.
3996         * lib/strerror_r.c (local_snprintf): New function.
3997         (snprintf): Define to local_snprintf, not to _snprintf.
3998
3999 2011-09-25  Bruno Haible  <bruno@clisp.org>
4000
4001         ftruncate: Support for MSVC 9.
4002         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4003         (chsize_nothrow): New function.
4004         (chsize): Redefine as a macro.
4005         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4006         * modules/ftruncate (Depends-on): Add msvc-inval.
4007
4008 2011-09-25  Bruno Haible  <bruno@clisp.org>
4009
4010         New module 'fstat'.
4011         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4012         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4013         * lib/fchdir.c (rpl_fstat): Remove function.
4014         * m4/fstat.m4: New file.
4015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4017         declared.
4018         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4019         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4020         * modules/fstat: New file.
4021         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4022         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4023         is set.
4024         * doc/posix-functions/fstat.texi: Mention the new module and the
4025         problem on MSVC.
4026         * NEWS: Mention the change.
4027         * modules/acl (Depends-on): Add fstat.
4028         * modules/chdir-safer (Depends-on): Likewise.
4029         * modules/chown (Depends-on): Likewise.
4030         * modules/copy-file (Depends-on): Likewise.
4031         * modules/fchdir (Depends-on): Likewise.
4032         * modules/fdopendir (Depends-on): Likewise.
4033         * modules/fopen (Depends-on): Likewise.
4034         * modules/fts (Depends-on): Likewise.
4035         * modules/getcwd (Depends-on): Likewise.
4036         * modules/isapipe (Depends-on): Likewise.
4037         * modules/linkat (Depends-on): Likewise.
4038         * modules/lseek (Depends-on): Likewise.
4039         * modules/mkdir-p (Depends-on): Likewise.
4040         * modules/open (Depends-on): Likewise.
4041         * modules/openat (Depends-on): Likewise.
4042         * modules/read-file (Depends-on): Likewise.
4043         * modules/renameat (Depends-on): Likewise.
4044         * modules/utimens (Depends-on): Likewise.
4045
4046 2011-09-25  Bruno Haible  <bruno@clisp.org>
4047
4048         linkat: Fix compilation on MSVC 9.
4049         * lib/linkat.c: Don't include <stdint.h>.
4050
4051 2011-09-25  Bruno Haible  <bruno@clisp.org>
4052
4053         fclose: Support for MSVC 9.
4054         * lib/fclose.c: Include msvc-inval.h.
4055         (fclose_nothrow): New function.
4056         (rpl_fclose): Use it.
4057         * modules/fclose (Depends-on): Add msvc-inval.
4058         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4059
4060 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4061
4062         dup2: minor simplifications
4063         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4064         that it's a performance win.
4065         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4066         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4067
4068 2011-09-24  Jim Meyering  <meyering@redhat.com>
4069
4070         test-futimens: avoid a warning from gcc -Wshadow
4071         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4072         to avoid a shadowing warning.
4073
4074 2011-09-24  Bruno Haible  <bruno@clisp.org>
4075
4076         fdopen: Support for MSVC 9.
4077         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4078         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4079         * lib/fdopen.c: Include msvc-inval.h.
4080         (fdopen_nothrow): New function.
4081         (rpl_fdopen): Use it.
4082         * modules/fdopen (Depends-on): Add msvc-inval.
4083         * modules/fclose-tests (Depends-on): Add fdopen.
4084         * modules/fflush-tests (Depends-on): Likewise.
4085         * modules/fgetc-tests (Depends-on): Likewise.
4086         * modules/fputc-tests (Depends-on): Likewise.
4087         * modules/fread-tests (Depends-on): Likewise.
4088         * modules/freopen-tests (Depends-on): Likewise.
4089         * modules/fseeko-tests (Depends-on): Likewise.
4090         * modules/ftello-tests (Depends-on): Likewise.
4091         * modules/fwrite-tests  (Depends-on): Likewise.
4092         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4093
4094 2011-09-24  Bruno Haible  <bruno@clisp.org>
4095
4096         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4097         * modules/fgetc-tests (Depends-on): Add unistd.
4098         * modules/fputc-tests (Depends-on): Likewise.
4099         * modules/fread-tests (Depends-on): Likewise.
4100         * modules/fwrite-tests (Depends-on): Likewise.
4101
4102 2011-09-24  Bruno Haible  <bruno@clisp.org>
4103
4104         dup: Simplify autoconf test.
4105         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4106         on gl_MSVC_INVAL's result.
4107
4108 2011-09-24  Bruno Haible  <bruno@clisp.org>
4109
4110         Tests for function fwrite().
4111         * modules/fwrite-tests: New file.
4112         * tests/test-fwrite.c: New file.
4113         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4114
4115         Tests for function fread().
4116         * modules/fread-tests: New file.
4117         * tests/test-fread.c: New file.
4118         * modules/stdio-tests (Depends-on): Add fread-tests.
4119
4120         Activate fputc tests.
4121         * modules/stdio-tests (Depends-on): Add fputc-tests.
4122
4123         Enhance fgetc, fputc tests.
4124         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4125         * tests/test-fputc.c (main): Likewise.
4126
4127 2011-09-24  Bruno Haible  <bruno@clisp.org>
4128
4129         write: Support for MSVC 9.
4130         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4131         is not 1.
4132         * lib/write.c (write_nothrow): New function.
4133         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4134         not 1. Use write_nothrow.
4135         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4136         invalid parameter handler.
4137         (gl_PREREQ_WRITE): New macro.
4138         * modules/write (Depends-on): Add msvc-inval.
4139         (configure.ac): Invoke gl_PREREQ_WRITE.
4140         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4141
4142 2011-09-24  Bruno Haible  <bruno@clisp.org>
4143
4144         read: Fix last commit.
4145         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4146
4147 2011-09-24  Bruno Haible  <bruno@clisp.org>
4148
4149         dup2: Fix last commit.
4150         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4151         (rpl_dup2): Disable fcntl workaround on native Windows.
4152
4153         sigprocmask: Make code safer.
4154         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4155         section that changes macro definitions for this compilation unit.
4156
4157 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4158
4159         dup2: clarify by coalescing Windows-specific material
4160         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4161         "msvc-nothrow.h"' to the Windows-specific section, so that the
4162         Emacs source need not contain these include files.
4163         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4164         Windows-specific fixes into this function rather than just the
4165         nothrow fix, as this shortens and clarifies the code.  Always
4166         define as a function, as that's a bit cleaner than having it be
4167         sometimes a function and sometimes a macro.
4168         (rpl_dup2): Move the Windows-specific stuff out of here and into
4169         ms_windows_dup2.  Don't protect the Haiku-related fix with
4170         "#if !defined __linux__", as the same code also works around
4171         a Linux kernel bug, and it doesn't add any system calls on any
4172         platform.  Add comment about FreeBSD 6.1.
4173
4174         sigprocmask: move #include directive
4175         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4176         Windows-specific section, so that the Emacs source need not
4177         contain msvc-inval.h.
4178
4179 2011-09-23  Bruno Haible  <bruno@clisp.org>
4180
4181         read: Support for MSVC 9.
4182         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4183         is not 1.
4184         * lib/read.c (read_nothrow): New function.
4185         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4186         read_nothrow.
4187         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4188         invalid parameter handler.
4189         (gl_PREREQ_READ): New macro.
4190         * modules/read (Depends-on): Add msvc-inval.
4191         (configure.ac): Invoke gl_PREREQ_READ.
4192         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4193
4194 2011-09-23  Bruno Haible  <bruno@clisp.org>
4195
4196         close: Support for MSVC 9.
4197         * lib/close.c: Include <errno.h>, msvc-inval.h.
4198         (close_nothrow): New function.
4199         (rpl_close): Use it.
4200         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4201         invalid parameter handler.
4202         * modules/close (Depends-on): Add msvc-inval.
4203         * modules/dup2-tests (Depends-on): Add close.
4204         * modules/dup3-tests (Depends-on): Likewise.
4205         * modules/fcntl-tests (Depends-on): Likewise.
4206         * modules/spawn-pipe-tests (Depends-on): Likewise.
4207         * modules/unistd-safer-tests (Depends-on): Likewise.
4208         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4209
4210 2011-09-23  Bruno Haible  <bruno@clisp.org>
4211
4212         New module 'dup'.
4213         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4214         Allow replacement.
4215         * lib/dup.c: New file.
4216         * lib/fchdir.c (rpl_dup): Remove function.
4217         * m4/dup.m4: New file.
4218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4219         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4220         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4221         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4222         * modules/dup: New file.
4223         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4224         'dup' module is in use.
4225         * modules/fdopendir (Depends-on): Add dup.
4226         * modules/fdutimensat-tests (Depends-on): Likewise.
4227         * modules/fts (Depends-on): Likewise.
4228         * modules/futimens-tests (Depends-on): Likewise.
4229         * modules/posix_spawnp-tests (Depends-on): Likewise.
4230         * modules/unistd-safer-tests (Depends-on): Likewise.
4231         * modules/utimens-tests (Depends-on): Likewise.
4232         * doc/posix-functions/dup.texi: Mention the new module and the problem
4233         on MSVC.
4234
4235 2011-09-23  Bruno Haible  <bruno@clisp.org>
4236
4237         getdtablesize: Support for MSVC 9.
4238         * lib/getdtablesize.c: Include msvc-inval.h.
4239         (_setmaxstdio_nothrow): New function.
4240         (_setmaxstdio): Redefine it.
4241         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4242         * modules/getdtablesize (Depends-on): Add msvc-inval.
4243         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4244
4245 2011-09-23  Bruno Haible  <bruno@clisp.org>
4246
4247         signal-h: Rename from signal.
4248         * modules/signal-h: Renamed from modules/signal.
4249         * modules/pthread_sigmask (Depends-on): Update.
4250         * modules/raise (Depends-on): Likewise.
4251         * modules/sigaction (Depends-on): Likewise.
4252         * modules/sigpipe (Depends-on): Likewise.
4253         * modules/sigprocmask (Depends-on): Likewise.
4254         * modules/sys_select (Depends-on): Likewise.
4255         * modules/signal-h-tests: Renamed from modules/signal-tests.
4256         (Files, Depends-on, Makefile.am): Update.
4257         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4258         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4259         (Files, Makefile.am): Update.
4260         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4261         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4262         * modules/signal: New placeholder file.
4263         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4264         * doc/posix-headers/signal.texi: Update.
4265         * NEWS: Mention the change.
4266
4267 2011-09-23  Bruno Haible  <bruno@clisp.org>
4268
4269         sigprocmask: Avoid crashes through signal() on MSVC 9.
4270         * lib/sigprocmask.c: Include msvc-inval.h.
4271         (signal_nothrow): New function.
4272         (signal): Redefine it.
4273         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4274         * modules/sigprocmask (Depends-on): Add msvc-inval.
4275         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4276
4277 2011-09-23  Bruno Haible  <bruno@clisp.org>
4278
4279         Tests for module 'raise'.
4280         * modules/raise-tests: New file.
4281         * tests/test-raise.c: New file.
4282
4283         raise: Support for MSVC.
4284         * lib/signal.in.h (raise): New declaration.
4285         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4286         for native Windows platforms.
4287         * m4/raise.m4: New file.
4288         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4289         HAVE_RAISE, REPLACE_RAISE.
4290         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4291         REPLACE_RAISE.
4292         * modules/raise (Status, Notice): Remove fields.
4293         (Files): Add m4/raise.m4.
4294         (Depends-on): Add signal, msvc-inval.
4295         (configure.ac): Use the common idioms.
4296         (Maintainer): Add me.
4297         * tests/test-signal-c++.cc: Check the signature of raise.
4298         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4299
4300 2011-09-23  Bruno Haible  <bruno@clisp.org>
4301
4302         pipe2: Fix compilation on pre-C99 compilers.
4303         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4304
4305 2011-09-23  Bruno Haible  <bruno@clisp.org>
4306
4307         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4308         * lib/msvc-nothrow.h: New file.
4309         * lib/msvc-nothrow.c: New file.
4310         * m4/msvc-nothrow.m4: New file.
4311         * modules/msvc-nothrow: New file.
4312         * lib/dup2.c: Include msvc-nothrow.h.
4313         (rpl_dup2): No need to protect _get_osfhandle call here.
4314         * lib/accept4.c: Include msvc-nothrow.h.
4315         * lib/error.c: Likewise.
4316         * lib/fcntl.c: Likewise.
4317         * lib/lseek.c: Likewise.
4318         * lib/nonblocking.c: Likewise.
4319         * lib/poll.c: Likewise.
4320         * lib/read.c: Likewise.
4321         * lib/select.c: Likewise.
4322         * lib/sockets.h: Likewise.
4323         * lib/sockets.c: Likewise.
4324         * lib/stdio-read.c: Likewise.
4325         * lib/stdio-write.c: Likewise.
4326         * lib/write.c: Likewise.
4327         * lib/w32sock.h: Likewise.
4328         * lib/w32spawn.h: Likewise.
4329         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4330         * lib/fsync.c: Likewise.
4331         * lib/isapipe.c: Likewise.
4332         * modules/dup2 (Depends-on): Add msvc-nothrow.
4333         * modules/accept4 (Depends-on): Likewise.
4334         * modules/error (Depends-on): Likewise.
4335         * modules/fcntl (Depends-on): Likewise.
4336         * modules/lseek (Depends-on): Likewise.
4337         * modules/nonblocking (Depends-on): Likewise.
4338         * modules/poll (Depends-on): Likewise.
4339         * modules/read (Depends-on): Likewise.
4340         * modules/select (Depends-on): Likewise.
4341         * modules/sockets (Depends-on): Likewise.
4342         * modules/sigpipe (Depends-on): Likewise.
4343         * modules/write (Depends-on): Likewise.
4344         * modules/accept (Depends-on): Likewise.
4345         * modules/bind (Depends-on): Likewise.
4346         * modules/connect (Depends-on): Likewise.
4347         * modules/gethostname (Depends-on): Likewise.
4348         * modules/getpeername (Depends-on): Likewise.
4349         * modules/getsockname (Depends-on): Likewise.
4350         * modules/getsockopt (Depends-on): Likewise.
4351         * modules/ioctl (Depends-on): Likewise.
4352         * modules/listen (Depends-on): Likewise.
4353         * modules/recv (Depends-on): Likewise.
4354         * modules/recvfrom (Depends-on): Likewise.
4355         * modules/send (Depends-on): Likewise.
4356         * modules/sendto (Depends-on): Likewise.
4357         * modules/setsockopt (Depends-on): Likewise.
4358         * modules/shutdown (Depends-on): Likewise.
4359         * modules/socket (Depends-on): Likewise.
4360         * modules/execute (Depends-on): Likewise.
4361         * modules/spawn-pipe (Depends-on): Likewise.
4362         * modules/flock (Depends-on): Likewise.
4363         * modules/fsync (Depends-on): Likewise.
4364         * modules/isapipe (Depends-on): Likewise.
4365         * tests/test-cloexec.c: Include msvc-nothrow.h.
4366         * tests/test-dup-safer.c: Likewise.
4367         * tests/test-dup2.c: Likewise.
4368         * tests/test-dup3.c: Likewise.
4369         * tests/test-fcntl.c: Likewise.
4370         * tests/test-pipe.c: Likewise.
4371         * tests/test-pipe2.c: Likewise.
4372         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4373         * modules/unistd-safer-tests (Depends-on): Likewise.
4374         * modules/dup2-tests (Depends-on): Likewise.
4375         * modules/dup3-tests (Depends-on): Likewise.
4376         * modules/fcntl-tests (Depends-on): Likewise.
4377         * modules/pipe-posix-tests (Depends-on): Likewise.
4378         * modules/pipe2-tests (Depends-on): Likewise.
4379
4380 2011-09-23  Bruno Haible  <bruno@clisp.org>
4381
4382         dup2: Make code more maintainable.
4383         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4384         (rpl_dup2): Use it.
4385         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4386         * modules/dup2 (configure.ac): Invoke it.
4387         Reported by Paul Eggert.
4388
4389 2011-09-23  Bruno Haible  <bruno@clisp.org>
4390
4391         msvc-inval: Fix compilation error.
4392         * lib/msvc-inval.h: Include <excpt.h>.
4393
4394 2011-09-23  Bruno Haible  <bruno@clisp.org>
4395
4396         mkdir: Tweak for MSVC 9.
4397         * lib/sys_stat.in.h: Update comments.
4398         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4399
4400         Tests for module 'chdir'.
4401         * modules/chdir-tests: New file.
4402         * tests/test-chdir.c: New file.
4403
4404         New module 'chdir'.
4405         * modules/chdir: New file.
4406         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4407         (chdir): New declaration.
4408         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4409         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4410         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4411         * tests/test-unistd-c++.cc: Check signature of chdir.
4412         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4413         * modules/chdir-long (Depends-on): Add chdir.
4414         * modules/fchdir (Depends-on): Likewise.
4415         * modules/rename (Depends-on): Likewise.
4416         * modules/savewd (Depends-on): Likewise.
4417
4418         rmdir: Support for mingw, MSVC 9.
4419         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4420         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4421
4422         getcwd: Tweak for MSVC 9.
4423         * lib/unistd.in.h: Update comments.
4424         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4425
4426 2011-09-22  Bruno Haible  <bruno@clisp.org>
4427
4428         strerror_r-posix: Avoid a link error on MSVC.
4429         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4430         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4431
4432 2011-09-22  Bruno Haible  <bruno@clisp.org>
4433
4434         select: Avoid link errors on MSVC.
4435         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4436         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4437         * modules/pselect (Link): Likewise.
4438         * NEWS: Mention the change.
4439         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4440         test-select-stdin against $(LIB_SELECT).
4441         * modules/pselect-tests (Makefile.am): Link test-pselect against
4442         $(LIB_SELECT).
4443
4444 2011-09-22  Bruno Haible  <bruno@clisp.org>
4445
4446         select: Avoid compilation error on MSVC.
4447         * lib/select.c: Don't include <stdbool.h>.
4448
4449 2011-09-21  Bruno Haible  <bruno@clisp.org>
4450
4451         Consolidate all uses of PATH_MAX in *.m4 files.
4452         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4453         macros.
4454         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4455         and gl_PATHMAX_SNIPPET.
4456         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4458         * modules/chdir-long (Files): Add m4/pathmax.m4.
4459         * modules/getcwd (Files): Likewise.
4460
4461 2011-09-21  Bruno Haible  <bruno@clisp.org>
4462
4463         ftruncate: Un-deprecate, concentrate on Win32 support.
4464         * modules/ftruncate (Status, Notice): Remove sections.
4465         (Depends-on): Add largefile.
4466         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4467         non-mingw platforms.
4468         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4469         include <io.h>.
4470         * modules/perror-tests (Depends-on): Add ftruncate.
4471         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4472         'ftruncate' module.
4473
4474 2011-09-21  Bruno Haible  <bruno@clisp.org>
4475
4476         Add dependencies to new dirent related modules.
4477         * modules/opendir (Depends-on): Add closedir.
4478         * modules/getcwd (Depends-on): Add opendir, closedir.
4479         * modules/dirent-safer-tests (Depends-on): Likewise.
4480         * modules/fdopendir-tests (Depends-on): Likewise.
4481         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4482         * modules/renameat-tests (Depends-on): Likewise.
4483
4484 2011-09-21  Bruno Haible  <bruno@clisp.org>
4485
4486         opendir: Avoid compilation error on mingw.
4487         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4488         * modules/opendir (Depends-on): Add unistd.
4489
4490 2011-09-21  Bruno Haible  <bruno@clisp.org>
4491
4492         ftruncate tests: Avoid a test failure on mingw.
4493         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4494
4495 2011-09-21  Bruno Haible  <bruno@clisp.org>
4496
4497         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4498         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4499         native Windows.
4500
4501 2011-09-21  Bruno Haible  <bruno@clisp.org>
4502
4503         New module 'fdopen'.
4504         * lib/stdio.in.h (fdopen): New declaration.
4505         * lib/fdopen.c: New file.
4506         * m4/fdopen.m4: New file.
4507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4508         REPLACE_FDOPEN.
4509         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4510         REPLACE_FDOPEN.
4511         * modules/fdopen: New file.
4512         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4513         * tests/test-stdio-c++.cc: Check signature of fdopen.
4514         * doc/posix-functions/fdopen.texi: Mention the new module.
4515
4516 2011-09-21  Bruno Haible  <bruno@clisp.org>
4517
4518         unlockpt tests: Avoid test failure on NetBSD 5.1.
4519         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4520         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4521
4522 2011-09-21  Bruno Haible  <bruno@clisp.org>
4523
4524         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4525         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4526         * tests/test-getlogin_r.c (main): Likewise.
4527
4528 2011-09-20  Bruno Haible  <bruno@clisp.org>
4529
4530         time tests: Don't require pid_t.
4531         * doc/posix-headers/time.texi: Revert last change.
4532         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4533         * tests/test-time.c: Comment out the check for pid_t.
4534
4535 2011-09-20  Bruno Haible  <bruno@clisp.org>
4536
4537         fsync tests: Avoid a test failure on mingw.
4538         * tests/test-fsync.c (main): Allow a failure with EIO.
4539
4540 2011-09-20  Bruno Haible  <bruno@clisp.org>
4541
4542         euidaccess: Update comments.
4543         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4544
4545 2011-09-20  Bruno Haible  <bruno@clisp.org>
4546
4547         Ensure EBADF returns for socket functions on mingw.
4548         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4549         descriptor is invalid.
4550         * lib/bind.c (rpl_bind): Likewise.
4551         * lib/connect.c (rpl_connect): Likewise.
4552         * lib/getpeername.c (rpl_getpeername): Likewise.
4553         * lib/getsockname.c (rpl_getsockname): Likewise.
4554         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4555         * lib/listen.c (rpl_listen): Likewise.
4556         * lib/recv.c (rpl_recv): Likewise.
4557         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4558         * lib/send.c (rpl_send): Likewise.
4559         * lib/sendto.c (rpl_sendto): Likewise.
4560         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4561         * lib/shutdown.c (rpl_shutdown): Likewise.
4562
4563 2011-09-20  Bruno Haible  <bruno@clisp.org>
4564
4565         select tests: EBADF tests.
4566         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4567         test_bad_fd): New functions.
4568         (test_function): Invoke also test_bad_fd.
4569
4570 2011-09-20  Bruno Haible  <bruno@clisp.org>
4571
4572         Tests for module 'posix_spawn_file_actions_addopen.
4573         * modules/posix_spawn_file_actions_addopen-tests: New file.
4574         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4575
4576         Tests for module 'posix_spawn_file_actions_adddup2'.
4577         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4578         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4579
4580         Tests for module 'posix_spawn_file_actions_addclose'.
4581         * modules/posix_spawn_file_actions_addclose-tests: New file.
4582         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4583
4584 2011-09-20  Bruno Haible  <bruno@clisp.org>
4585
4586         Tests for module 'unlockpt'.
4587         * modules/unlockpt-tests: New file.
4588         * tests/test-unlockpt.c: New file.
4589         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4590
4591         Tests for module 'grantpt'.
4592         * modules/grantpt-tests: New file.
4593         * tests/test-grantpt.c: New file.
4594         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4595
4596 2011-09-20  Bruno Haible  <bruno@clisp.org>
4597
4598         freopen tests: EBADF tests.
4599         * tests/test-freopen.c: Include errno.h, unistd.h.
4600         (main): Add tests for EBADF, commented out for the moment.
4601
4602         fclose tests: EBADF tests.
4603         * tests/test-fclose.c (main): Add tests for EBADF.
4604
4605         fflush tests: EBADF tests.
4606         * tests/test-fflush.c: Include errno.h, macros.h.
4607         (main): Add tests for EBADF.
4608
4609         ftello tests: EBADF tests.
4610         * tests/test-ftello4.sh: New file.
4611         * tests/test-ftello4.c: New file.
4612         * modules/ftello-tests (Files): Add them.
4613         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4614
4615         fseeko tests: EBADF tests.
4616         * tests/test-fseeko4.sh: New file.
4617         * tests/test-fseeko4.c: New file.
4618         * modules/fseeko-tests (Files): Add them.
4619         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4620
4621         Tests for function fputc().
4622         * modules/fputc-tests: New file.
4623         * tests/test-fputc.c: New file.
4624         * modules/stdio-tests (Depends-on): Add fputc-tests.
4625
4626         Tests for function fgetc().
4627         * modules/fgetc-tests: New file.
4628         * tests/test-fgetc.c: New file.
4629         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4630
4631         Tests for function fdopen().
4632         * modules/fdopen-tests: New file.
4633         * tests/test-fdopen.c: New file.
4634         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4635
4636         Tests for module 'vdprintf'.
4637         * modules/vdprintf-tests: New file.
4638         * tests/test-vdprintf.c: New file.
4639
4640         Tests for module 'dprintf'.
4641         * modules/dprintf-tests: New file.
4642         * tests/test-dprintf.c: New file.
4643
4644 2011-09-20  Bruno Haible  <bruno@clisp.org>
4645
4646         Tests for module 'ioctl'.
4647         * modules/ioctl-tests: New file.
4648         * tests/test-ioctl.c: New file.
4649
4650 2011-09-20  Bruno Haible  <bruno@clisp.org>
4651
4652         fcntl tests: EBADF tests.
4653         * tests/test-fcntl.c (main): Add more tests for EBADF.
4654
4655 2011-09-20  Bruno Haible  <bruno@clisp.org>
4656
4657         utimensat tests: EBADF tests.
4658         * tests/test-utimensat.c (main): Add tests for EBADF.
4659
4660         renameat tests: EBADF tests.
4661         * tests/test-renameat.c (main): Add tests for EBADF.
4662
4663         mkfifoat tests: EBADF tests.
4664         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4665
4666         readlinkat tests: EBADF tests.
4667         * tests/test-readlinkat.c (main): Add tests for EBADF.
4668
4669         symlinkat tests: EBADF tests.
4670         * tests/test-symlinkat.c (main): Add tests for EBADF.
4671
4672         linkat tests: EBADF tests.
4673         * tests/test-linkat.c (main): Add tests for EBADF.
4674
4675         Tests for module 'faccessat'.
4676         * modules/faccessat-tests: New file.
4677         * tests/test-faccessat.c: New file.
4678
4679         fdopendir tests: EBADF tests.
4680         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4681
4682         openat tests: EBADF tests.
4683         * tests/test-fchownat.c (main): Add tests for EBADF.
4684         * tests/test-fstatat.c (main): Likewise.
4685         * tests/test-mkdirat.c (main): Likewise.
4686         * tests/test-openat.c (main): Likewise.
4687         * tests/test-unlinkat.c (main): Likewise.
4688         * tests/test-fchmodat.c: New file.
4689         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4690         (Makefile.am): Also run 'test-fchmodat'.
4691
4692 2011-09-20  Bruno Haible  <bruno@clisp.org>
4693
4694         utimens, futimens, fdutimensat tests: EBADF tests.
4695         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4696
4697         Tests for function fstat().
4698         * modules/fstat-tests: New file.
4699         * tests/test-fstat.c: New file.
4700         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4701
4702 2011-09-20  Bruno Haible  <bruno@clisp.org>
4703
4704         test-ttyname_r tests: EBADF tests.
4705         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4706
4707         Tests for module 'isatty'.
4708         * modules/isatty-tests: New file.
4709         * tests/test-isatty.c: New file.
4710
4711         Tests for module 'write'.
4712         * modules/write-tests: New file.
4713         * tests/test-write.c: New file.
4714
4715         Tests for module 'read'.
4716         * modules/read-tests: New file.
4717         * tests/test-read.c: New file.
4718
4719         pwrite tests: EBADF tests.
4720         * tests/test-pwrite.c (main): Add tests for EBADF.
4721
4722         pread tests: EBADF tests.
4723         * tests/test-pread.c (main): Add tests for EBADF.
4724
4725         lseek tests: EBADF tests.
4726         * tests/test-lseek.c (main): Add more tests for EBADF.
4727
4728         Tests for module 'ftruncate'.
4729         * modules/ftruncate-tests: New file.
4730         * tests/test-ftruncate.sh: New file.
4731         * tests/test-ftruncate.c: New file.
4732
4733         fsync tests: EBADF tests.
4734         * tests/test-fsync.c (main): Add more tests for EBADF.
4735
4736         fdatasync tests: EBADF tests.
4737         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4738
4739         Tests for module 'fchown'.
4740         * modules/fchown-tests: New file.
4741         * tests/test-fchown.c: New file.
4742
4743         Tests for module 'fchmod'.
4744         * modules/fchmod-tests: New file.
4745         * tests/test-fchmod.c: New file.
4746
4747         fchdir tests: EBADF tests.
4748         * tests/test-fchdir.c (main): Add more tests for EBADF.
4749
4750         dup2 tests: EBADF tests.
4751         * tests/test-dup2.c (main): Add more tests for EBADF.
4752
4753         Tests for module 'dup'.
4754         * modules/dup-tests: New file.
4755         * tests/test-dup.c: New file.
4756
4757         Tests for module 'close'.
4758         * modules/close-tests: New file.
4759         * tests/test-close.c: New file.
4760
4761 2011-09-20  Bruno Haible  <bruno@clisp.org>
4762
4763         Tests for module 'shutdown'.
4764         * modules/shutdown-tests: New file.
4765         * tests/test-shutdown.c: New file.
4766
4767         Tests for module 'setsockopt'.
4768         * modules/setsockopt-tests: New file.
4769         * tests/test-setsockopt.c: New file.
4770
4771         Tests for module 'sendto'.
4772         * modules/sendto-tests: New file.
4773         * tests/test-sendto.c: New file.
4774
4775         Tests for module 'send'.
4776         * modules/send-tests: New file.
4777         * tests/test-send.c: New file.
4778
4779         Tests for module 'recvfrom'.
4780         * modules/recvfrom-tests: New file.
4781         * tests/test-recvfrom.c: New file.
4782
4783         Tests for module 'recv'.
4784         * modules/recv-tests: New file.
4785         * tests/test-recv.c: New file.
4786
4787         Tests for module 'listen'.
4788         * modules/listen-tests: New file.
4789         * tests/test-listen.c: New file.
4790
4791         Tests for module 'getsockopt'.
4792         * modules/getsockopt-tests: New file.
4793         * tests/test-getsockopt.c: New file.
4794
4795         Tests for module 'getsockname'.
4796         * modules/getsockname-tests: New file.
4797         * tests/test-getsockname.c: New file.
4798
4799         Tests for module 'getpeername'.
4800         * modules/getpeername-tests: New file.
4801         * tests/test-getpeername.c: New file.
4802
4803         Tests for module 'connect'.
4804         * modules/connect-tests: New file.
4805         * tests/test-connect.c: New file.
4806
4807         Tests for module 'bind'.
4808         * modules/bind-tests: New file.
4809         * tests/test-bind.c: New file.
4810
4811         accept4 tests: Fix for native Windows.
4812         * tests/test-accept4.c: Include sockets.h.
4813         (main): Invoke gl_sockets_startup.
4814         * modules/accept4-tests (Depends-on): Add sockets.
4815
4816         accept tests: Fix for native Windows.
4817         * tests/test-accept.c: Include sockets.h.
4818         (main): Invoke gl_sockets_startup.
4819         * modules/accept-tests (Depends-on): Add sockets.
4820
4821 2011-09-19  Bruno Haible  <bruno@clisp.org>
4822
4823         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4824         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4825         do...while(0).
4826         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4827         Suggested by Paul Eggert.
4828
4829 2011-09-19  Bruno Haible  <bruno@clisp.org>
4830
4831         sched: Ensure pid_t is defined.
4832         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4833         not define pid_t.
4834         * lib/sched.in.h: Include <sys/types.h>.
4835         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4837
4838 2011-09-19  Bruno Haible  <bruno@clisp.org>
4839
4840         msvc-inval: Ensure the entire expansion is a single statement.
4841         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4842         of braces.
4843
4844 2011-09-19  Jim Meyering  <meyering@redhat.com>
4845
4846         tests: use printf, not echo in init.sh's warn_ function
4847         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4848         misbehave when given strings containing a backslash or starting
4849         with e.g., -n.  James Youngman suggested setting IFS.
4850
4851 2011-09-19  Eric Blake  <eblake@redhat.com>
4852
4853         futimens: enhance test
4854         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4855         closed non-negative fd.
4856
4857         date: accept 'hence' as opposite of 'ago'
4858         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4859         * tests/test-parse-datetime.c (main): Enhance test.
4860         Suggested by Jesse Wilson.
4861
4862 2011-09-19  Jim Meyering  <meyering@redhat.com>
4863
4864         getcwd: don't fail in a deep directory on a system without openat
4865         Before this change, getcwd would fail when called from a directory
4866         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4867         the non-openat implementation used "..", "../..", "../../..", etc.
4868         to access ancestor directories.  With too many, that string would
4869         be longer than PATH_MAX.
4870         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4871         using gnulib's openat replacement.
4872         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4873         we're using the replacement function.
4874
4875 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4876
4877         maint.mk: avoid warnings from perl about missing files
4878         * top/maint.mk (def_sym_regex): Ignore files listed in
4879         $(gl_other_headers_) that do not exist, say because a project
4880         does not use a corresponding module.
4881
4882 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4883
4884         stat: use pathmax.h only if needed
4885         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4886         This is better for Emacs, which does not have a mingw port and
4887         therefore can avoid the pathmax module.
4888
4889         utimens: remove dependency on dup2
4890         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4891         to work around the Linux kernel bug.
4892         * modules/utimens (Depends-on): Remove dup2.
4893
4894 2011-09-18  Bruno Haible  <bruno@clisp.org>
4895
4896         inet_ntop, inet_pton: Look for it also in libresolv.
4897         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4898         libnsl, search for it in libresolv.
4899         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4900         Needed on Solaris 7.
4901
4902 2011-09-18  Bruno Haible  <bruno@clisp.org>
4903
4904         accept, accept4 tests: Avoid link error on Solaris.
4905         * modules/accept-tests (Makefile.am): Link test-accept against
4906         $(LIBSOCKET).
4907         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4908         $(LIBSOCKET).
4909
4910         accept4: Avoid link error on Solaris.
4911         * modules/accept4 (Link): New section.
4912
4913         socket functions: Avoid link errors on Solaris.
4914         * modules/accept (Depends-on): Add socketlib.
4915         (Link): New section.
4916         * modules/bind (Depends-on): Add socketlib.
4917         (Link): New section.
4918         * modules/connect (Depends-on): Add socketlib.
4919         (Link): New section.
4920         * modules/getpeername (Depends-on): Add socketlib.
4921         (Link): New section.
4922         * modules/getsockname (Depends-on): Add socketlib.
4923         (Link): New section.
4924         * modules/getsockopt (Depends-on): Add socketlib.
4925         (Link): New section.
4926         * modules/listen (Depends-on): Add socketlib.
4927         (Link): New section.
4928         * modules/recv (Depends-on): Add socketlib.
4929         (Link): New section.
4930         * modules/recvfrom (Depends-on): Add socketlib.
4931         (Link): New section.
4932         * modules/send (Depends-on): Add socketlib.
4933         (Link): New section.
4934         * modules/sendto (Depends-on): Add socketlib.
4935         (Link): New section.
4936         * modules/setsockopt (Depends-on): Add socketlib.
4937         (Link): New section.
4938         * modules/shutdown (Depends-on): Add socketlib.
4939         (Link): New section.
4940         * modules/socket (Depends-on): Add socketlib.
4941         (Link): New section.
4942
4943 2011-09-18  Bruno Haible  <bruno@clisp.org>
4944
4945         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4946         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4947         than 5 seconds.
4948         * modules/ptsname-tests (configure.ac): Test for alarm.
4949
4950 2011-09-18  Bruno Haible  <bruno@clisp.org>
4951
4952         posix_spawn_file_actions_add*: Fix module dependencies.
4953         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4954         posix_spawn_file_actions_init.
4955         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4956         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4957
4958 2011-09-18  Bruno Haible  <bruno@clisp.org>
4959
4960         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4961         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4962         * tests/test-renameat.c (main): Likewise.
4963
4964 2011-09-18  Bruno Haible  <bruno@clisp.org>
4965
4966         Tests for module 'accept4'.
4967         * modules/accept4-tests: New file.
4968         * tests/test-accept4.c: New file.
4969
4970 2011-09-18  Bruno Haible  <bruno@clisp.org>
4971
4972         Tests for module 'accept'.
4973         * modules/accept-tests: New file.
4974         * tests/test-accept.c: New file.
4975
4976 2011-09-18  Bruno Haible  <bruno@clisp.org>
4977
4978         dup2: Support for MSVC.
4979         * lib/dup2.c: Include msvc-inval.h.
4980         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4981         _get_osfhandle calls.
4982         * modules/dup2 (Depends-on): Add msvc-inval.
4983         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4984
4985         New module 'msvc-inval'.
4986         * lib/msvc-inval.h: New file.
4987         * lib/msvc-inval.c: New file.
4988         * m4/msvc-inval.m4: New file.
4989         * modules/msvc-inval: New file.
4990
4991 2011-09-17  Bruno Haible  <bruno@clisp.org>
4992
4993         Tests for module 'pclose'.
4994         * modules/pclose-tests: New file.
4995
4996         New module 'pclose'.
4997         * lib/stdio.in.h (pclose): New declaration.
4998         * lib/pclose.c: New file.
4999         * m4/pclose.m4: New file.
5000         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5001         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5002         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5003         * modules/pclose: New file.
5004         * modules/popen-tests (Depends-on): Add pclose.
5005         * modules/popen-safer-tests (Depends-on): Likewise.
5006         * doc/posix-functions/pclose.texi: Mention the new module.
5007
5008 2011-09-17  Bruno Haible  <bruno@clisp.org>
5009
5010         popen: Support for MSVC.
5011         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5012         * lib/popen.c (popen): Provide alternate definition for native Windows.
5013         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5015         * modules/popen (Depends-on, configure.ac): Update condition.
5016         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5017         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5018         fixed.
5019
5020 2011-09-17  Bruno Haible  <bruno@clisp.org>
5021
5022         isnanl, isnand, isnanf: Work around MSVC bug.
5023         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5024
5025 2011-09-17  Bruno Haible  <bruno@clisp.org>
5026
5027         sys_socket tests: Fix recent mistake.
5028         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5029
5030 2011-09-17  Bruno Haible  <bruno@clisp.org>
5031
5032         putenv: Support for MSVC.
5033         * modules/putenv (Depends-on): Add environ.
5034         * lib/putenv.c (environ): Disable declaration.
5035         * lib/unistd.in.h: Update comment.
5036
5037 2011-09-17  Bruno Haible  <bruno@clisp.org>
5038
5039         math: Avoid macro redefinition warnings on MSVC.
5040         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5041         Undefine before redefining.
5042
5043 2011-09-17  Bruno Haible  <bruno@clisp.org>
5044
5045         doc: Mention functions which are declared as macros.
5046         * doc/posix-functions/*[fl].texi: Mention that some functions are
5047         defined as macros with arguments only.
5048
5049 2011-09-17  Bruno Haible  <bruno@clisp.org>
5050
5051         Add dependencies to new dirent related modules.
5052         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5053         * modules/fts (Depends-on): Likewise.
5054         * modules/glob (Depends-on): Likewise.
5055         * modules/savedir (Depends-on): Likewise.
5056         * modules/scandir (Depends-on): Likewise.
5057         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5058         * modules/fdopendir (Depends-on): Add opendir.
5059
5060 2011-09-17  Bruno Haible  <bruno@clisp.org>
5061
5062         inet_pton: Support for MSVC on Windows Vista or newer.
5063         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5064         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5065         HAVE_DECL_INET_PTON is defined.
5066         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5067         On platforms with <winsock2.h>, test whether inet_pton is declared in
5068         <ws2tcpip.h>. If so, arrange to replace it.
5069         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5070         REPLACE_INET_PTON.
5071         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5072         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5073         (Depends-on, configure.ac): Update condition.
5074         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5075
5076 2011-09-17  Bruno Haible  <bruno@clisp.org>
5077
5078         inet_ntop: Support for MSVC on Windows Vista or newer.
5079         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5080         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5081         HAVE_DECL_INET_NTOP is defined.
5082         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5083         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5084         <ws2tcpip.h>. If so, arrange to replace it.
5085         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5086         REPLACE_INET_NTOP.
5087         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5088         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5089         (Depends-on, configure.ac): Update condition.
5090         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5091
5092 2011-09-16  Eric Blake  <eblake@redhat.com>
5093
5094         test-fsync: yet another enhancement
5095         * tests/test-fsync.c (main): Also test behavior on read-only text
5096         file.
5097
5098 2011-09-16  Bruno Haible  <bruno@clisp.org>
5099
5100         Enhance fsync, fdatasync tests.
5101         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5102         * tests/test-fdatasync.c (main): Likewise.
5103
5104 2011-09-16  Bruno Haible  <bruno@clisp.org>
5105
5106         Support for MSVC compiler: Ensure mode_t gets defined.
5107         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5108         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5110         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5111         * tests/test-fcntl-h.c: Check that mode_t is defined.
5112         * tests/test-sys_stat.c: Likewise.
5113         * tests/test-sys_types.c: Likewise.
5114         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5115         * doc/posix-headers/sys_stat.texi: Likewise.
5116         * doc/posix-headers/sys_types.texi: Likewise.
5117
5118 2011-09-16  Bruno Haible  <bruno@clisp.org>
5119
5120         sys_stat: Support for MSVC.
5121         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5122         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5123         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5124         MSVC.
5125
5126 2011-09-16  Bruno Haible  <bruno@clisp.org>
5127
5128         Support for MSVC compiler: Ensure off_t gets defined.
5129         * lib/unistd.in.h: Include <sys/types.h>.
5130         * tests/test-fcntl-h.c: Check that off_t is defined.
5131         * tests/test-sys_stat.c: Likewise.
5132         * tests/test-sys_types.c: Likewise.
5133
5134 2011-09-16  Eric Blake  <eblake@redhat.com>
5135
5136         fdatasync: port to Solaris
5137         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5138         * modules/fdatasync (Link): Document it.
5139         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5140
5141         fdatasync: port to MacOS X 10.7
5142         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5143         declared.
5144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5145         * modules/unistd (Makefile.am): Substitute it.
5146         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5147         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5148
5149         fdatasync: minor improvements
5150         * modules/fdatasync (Depends-on): Add condition for fsync.
5151         * lib/fdatasync.c (fdatasync): Add comment.
5152         * tests/test-unistd-c++.cc: Test fdatasync.
5153
5154         unistd: update refs to newer POSIX
5155         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5156         Suggested by Bruno Haible.
5157
5158         fdatasync: new module
5159         * modules/fsync (Description): Document difference to fdatasync.
5160         * modules/fdatasync: New module.
5161         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5162         * lib/fdatasync.c (fdatasync): Likewise.
5163         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5164         defaults.
5165         * modules/unistd (Makefile.am): Set witnesses.
5166         * lib/unistd.in.h (fdatasync): Declare.
5167         * MODULES.html.sh: Document it.
5168         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5169         * modules/fdatasync-tests: New test.
5170         * tests/test-fdatasync.c: Likewise.
5171
5172 2011-09-16  Eric Blake  <eblake@redhat.com>
5173
5174         test-fsync: enhance tests
5175         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5176         * tests/test-fsync.c (main): Enhance test.
5177
5178 2011-09-15  Bruno Haible  <bruno@clisp.org>
5179
5180         Support for MSVC compiler: Ensure ssize_t gets defined.
5181         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5182         * doc/posix-headers/stdio.texi: Likewise.
5183         * modules/stdio (Depends-on): Add ssize_t.
5184         * modules/sys_socket (Depends-on): Likewise.
5185         * modules/sys_types (Depends-on): Likewise.
5186         * modules/sys_uio (Depends-on): Likewise.
5187         * modules/unistd (Depends-on): Likewise.
5188         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5189         * tests/test-sys_types.c: Check that ssize_t is defined.
5190
5191 2011-09-14  Bruno Haible  <bruno@clisp.org>
5192
5193         Avoid using #, the m4 comment starter character, near brackets.
5194         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5195         delimiter character in sed expressions.
5196         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5197         Suggested by Eric Blake.
5198
5199         Properly quote AC_CHECK_DECLS' 4th argument.
5200         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5201         argument.
5202         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5203         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5204         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5205         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5206         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5207         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5209         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5210         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5211         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5212         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5213         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5214         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5215         * m4/isinf.m4 (gl_ISINF): Likewise.
5216         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5217         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5218         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5219         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5221         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5222         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5223         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5224         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5225         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5226         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5227         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5229         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5231         Reported by Eric Blake.
5232
5233         Properly quote AC_CHECK_DECL's 4th argument.
5234         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5235         argument.
5236         * m4/argp.m4 (gl_ARGP): Likewise.
5237         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5238         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5239         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5240         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5241         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5242         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5243         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5244         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5245         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5246         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5247         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5248         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5249         Reported by Eric Blake.
5250
5251 2011-09-14  Eric Blake  <eblake@redhat.com>
5252
5253         opendir: avoid compile warning
5254         * lib/opendir.c (includes): Always include errno.h.
5255         Reported by Tatsuro MATSUOKA.
5256
5257 2011-09-14  Jim Meyering  <meyering@redhat.com>
5258
5259         maint.mk: sc_tight_scope: propagate failure from sub-make
5260         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5261         Reported by Martin von Gagern.
5262
5263 2011-09-13  Bruno Haible  <bruno@clisp.org>
5264
5265         tempname: Support for MSVC.
5266         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5267         MSVC.
5268         * modules/tempname (Depends-on): Add fcntl-h.
5269
5270 2011-09-13  Bruno Haible  <bruno@clisp.org>
5271
5272         sys_time: Support for MSVC.
5273         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5274         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5275         include <winsock2.h>.
5276         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5277         function declarations that collide with POSIX.
5278         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5279         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5280
5281 2011-09-13  Bruno Haible  <bruno@clisp.org>
5282
5283         stat: Support for MSVC.
5284         * lib/stat.c: Include pathmax.h.
5285         * modules/stat (Depends-on): Add pathmax.
5286
5287         pathmax: Support for native Windows.
5288         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5289
5290 2011-09-12  Bruno Haible  <bruno@clisp.org>
5291
5292         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5293         * lib/dirent.in.h (struct dirent): New type.
5294         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5295         DT_WHT): New macros.
5296         (DIR): New type.
5297         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5298         (readdir, rewinddir): New declarations.
5299         * lib/dirent-private.h: New file.
5300         * lib/opendir.c: New file.
5301         * lib/readdir.c: New file.
5302         * lib/rewinddir.c: New file.
5303         * lib/closedir.c: New file.
5304         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5305         * m4/opendir.m4: New file.
5306         * m4/readdir.m4: New file.
5307         * m4/rewinddir.m4: New file.
5308         * m4/closedir.m4: New file.
5309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5310         REPLACE_CLOSEDIR here.
5311         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5312         readdir, rewinddir are declared.
5313         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5314         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5315         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5316         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5317         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5318         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5319         * modules/opendir: New file.
5320         * modules/readdir: New file.
5321         * modules/rewinddir: New file.
5322         * modules/closedir: New file.
5323         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5324         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5325         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5326         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5327         * NEWS: Mention the 'fchdir' change.
5328
5329 2011-09-11  Bruno Haible  <bruno@clisp.org>
5330
5331         asm-underscore.m4: Support for MSVC.
5332         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5333         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5334
5335 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5336
5337         Doc about crypt functions.
5338         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5339         needing for _GNU_SOURCE to get crypt.
5340         * doc/posix-functions/encrypt.texi: Likewise.
5341         * doc/posix-functions/setkey.texi: Likewise.
5342
5343 2011-09-11  Bruno Haible  <bruno@clisp.org>
5344
5345         doc: Update regarding MSVC 9.
5346         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5347         tested".
5348         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5349         * doc/posix-headers/*.texi: Likewise.
5350         * doc/pastposix-functions/*.texi: Likewise.
5351         * doc/glibc-functions/*.texi: Likewise.
5352         * doc/glibc-headers/*.texi: Likewise.
5353
5354 2011-09-11  Bruno Haible  <bruno@clisp.org>
5355
5356         unistd et al.: Don't assume <unistd.h> exists.
5357         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5358         does not exist.
5359         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5360         exist. But include <stdlib.h>.
5361         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5362         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5363         symlink() does not exist.
5364         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5365         include <io.h> instead.
5366         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5368         include <direct.h> instead.
5369         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5371         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5372         <io.h> instead.
5373         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5374         correctly if the system does not have hard links.
5375         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5376         <direct.h> instead.
5377         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5378         it when looking for function declarations.
5379         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5380         <direct.h> and <io.h> instead.
5381         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5382
5383 2011-09-11  Bruno Haible  <bruno@clisp.org>
5384
5385         strcase: Support for MSVC.
5386         * modules/strcase (Status, Notice): Remove obsoletion mark.
5387         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5388         * doc/posix-functions/strncasecmp.texi: Likewise.
5389
5390         strings: Don't assume <strings.h> exists.
5391         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5392         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5393         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5394         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5395
5396 2011-09-11  Bruno Haible  <bruno@clisp.org>
5397
5398         dirent: Don't assume <dirent.h> exists.
5399         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5400         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5401         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5402         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5403
5404 2011-09-11  Bruno Haible  <bruno@clisp.org>
5405
5406         Fix wint_t on MSVC.
5407         * lib/wchar.in.h (wint_t): On MSVC, override it.
5408         * lib/wctype.in.h (wint_t): Likewise.
5409         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5410         MSVC.
5411         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5412         * doc/posix-headers/wctype.texi: Likewise.
5413
5414 2011-09-11  Bruno Haible  <bruno@clisp.org>
5415
5416         sys_types: Fix typo.
5417         * lib/sys_types.in.h: Fix typo in comment.
5418         Reported by Paul Eggert.
5419
5420         Support for MSVC compiler: Ensure size_t gets defined.
5421         * modules/strings (Depends-on): Add 'sys_types'.
5422         * modules/sys_uio (Depends-on): Likewise.
5423         * lib/sys_uio.in.h: Update comment.
5424
5425         C++ tests for module 'sys_types'.
5426         * modules/sys_types-c++-tests: New file.
5427         * tests/test-sys_types-c++.cc: New file.
5428
5429         Tests for module 'sys_types'.
5430         * modules/sys_types-tests: New file.
5431         * tests/test-sys_types.c: New file.
5432
5433         New module 'sys_types'.
5434         * lib/sys_types.in.h: New file.
5435         * m4/sys_types_h.m4: New file.
5436         * modules/sys_types: New file.
5437         * doc/posix-headers/sys_types.texi: Mention the new module and the
5438         size_t problem on MSVC 9.
5439
5440 2011-09-11  Bruno Haible  <bruno@clisp.org>
5441
5442         Support for MSVC compiler: Avoid division by a literal 0.
5443         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5444         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5445         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5446         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5447         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5448         * tests/infinity.h: New file.
5449         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5450         on MSVC.
5451         * tests/test-ceilf1.c: Include infinity.h.
5452         (main): Use Infinityf.
5453         * tests/test-ceil1.c: Include infinity.h.
5454         (main): Use Infinityd.
5455         * tests/test-ceill.c: Include infinity.h.
5456         (main): Use Infinityl.
5457         * tests/test-dprintf-posix.c: Include infinity.h.
5458         (test_function): Use Infinityd.
5459         * tests/test-floorf1.c: Include infinity.h.
5460         (main): Use Infinityf.
5461         * tests/test-floor1.c: Include infinity.h.
5462         (main): Use Infinityd.
5463         * tests/test-floorl.c: Include infinity.h.
5464         (main): Use Infinityl.
5465         * tests/test-fprintf-posix.c: Include infinity.h.
5466         (test_function): Use Infinityd.
5467         * tests/test-frexp.c: Include infinity.h.
5468         (main): Use Infinityd.
5469         * tests/test-frexpl.c: Include infinity.h.
5470         (main): Use Infinityl.
5471         * tests/test-isfinite.c: Include infinity.h.
5472         (test_isfinitef): Use Infinityf.
5473         (test_isfinited): Use Infinityd.
5474         (test_isfinitel): Use Infinityl.
5475         * tests/test-isinf.c: Include infinity.h.
5476         (test_isinff): Use Infinityf.
5477         (test_isinfd): Use Infinityd.
5478         (test_isinfl): Use Infinityl.
5479         * tests/test-isnan.c: Include infinity.h.
5480         (test_float): Use Infinityf.
5481         (test_double): Use Infinityd.
5482         (test_long_double): Use Infinityl.
5483         * tests/test-isnanf.h: Include infinity.h.
5484         (main): Use Infinityf.
5485         * tests/test-isnand.h: Include infinity.h.
5486         (main): Use Infinityd.
5487         * tests/test-isnanl.h: Include infinity.h.
5488         (main): Use Infinityl.
5489         * tests/test-ldexpl.c: Include infinity.h.
5490         (main): Use Infinityl.
5491         * tests/test-printf-posix.h: Include infinity.h.
5492         (test_function): Use Infinityd.
5493         * tests/test-roundf1.c: Include infinity.h.
5494         (main): Use Infinityf.
5495         * tests/test-round1.c: Include infinity.h.
5496         (main): Use Infinityd.
5497         * tests/test-roundl.c: Include infinity.h.
5498         (main): Use Infinityl.
5499         * tests/test-signbit.c: Include infinity.h.
5500         (test_signbitf): Use Infinityf.
5501         (test_signbitd): Use Infinityd.
5502         (test_signbitl): Use Infinityl.
5503         * tests/test-snprintf-posix.h: Include infinity.h.
5504         (test_function): Use Infinityd, Infinityl.
5505         * tests/test-sprintf-posix.h: Include infinity.h.
5506         (test_function): Use Infinityd, Infinityl.
5507         * tests/test-truncf1.c: Include infinity.h.
5508         (main): Use Infinityf.
5509         * tests/test-trunc1.c: Include infinity.h.
5510         (main): Use Infinityd.
5511         * tests/test-truncl.c: Include infinity.h.
5512         (main): Use Infinityl.
5513         * tests/test-vasnprintf-posix.c: Include infinity.h.
5514         (test_function): Use Infinityd, Infinityl.
5515         * tests/test-vasprintf-posix.c: Include infinity.h.
5516         (test_function): Use Infinityd, Infinityl.
5517         * modules/ceilf-tests (Files): Add tests/infinity.h.
5518         * modules/ceil-tests (Files): Likewise.
5519         * modules/ceill-tests (Files): Likewise.
5520         * modules/dprintf-posix-tests (Files): Likewise.
5521         * modules/floorf-tests (Files): Likewise.
5522         * modules/floor-tests (Files): Likewise.
5523         * modules/floorl-tests (Files): Likewise.
5524         * modules/fprintf-posix-tests (Files): Likewise.
5525         * modules/frexp-tests (Files): Likewise.
5526         * modules/frexp-nolibm-tests (Files): Likewise.
5527         * modules/frexpl-tests (Files): Likewise.
5528         * modules/frexpl-nolibm-tests (Files): Likewise.
5529         * modules/isfinite-tests (Files): Likewise.
5530         * modules/isinf-tests (Files): Likewise.
5531         * modules/isnan-tests (Files): Likewise.
5532         * modules/isnanf-tests (Files): Likewise.
5533         * modules/isnanf-nolibm-tests (Files): Likewise.
5534         * modules/isnand-tests (Files): Likewise.
5535         * modules/isnand-nolibm-tests (Files): Likewise.
5536         * modules/isnanl-tests (Files): Likewise.
5537         * modules/isnanl-nolibm-tests (Files): Likewise.
5538         * modules/ldexpl-tests (Files): Likewise.
5539         * modules/printf-posix-tests (Files): Likewise.
5540         * modules/roundf-tests (Files): Likewise.
5541         * modules/round-tests (Files): Likewise.
5542         * modules/roundl-tests (Files): Likewise.
5543         * modules/signbit-tests (Files): Likewise.
5544         * modules/snprintf-posix-tests (Files): Likewise.
5545         * modules/sprintf-posix-tests (Files): Likewise.
5546         * modules/truncf-tests (Files): Likewise.
5547         * modules/trunc-tests (Files): Likewise.
5548         * modules/truncl-tests (Files): Likewise.
5549         * modules/vasnprintf-posix-tests (Files): Likewise.
5550         * modules/vasprintf-posix-tests (Files): Likewise.
5551         * modules/vdprintf-posix-tests (Files): Likewise.
5552         * modules/vfprintf-posix-tests (Files): Likewise.
5553         * modules/vprintf-posix-tests (Files): Likewise.
5554         * modules/vsnprintf-posix-tests (Files): Likewise.
5555         * modules/vsprintf-posix-tests (Files): Likewise.
5556         * modules/xprintf-posix-tests (Files): Likewise.
5557
5558 2011-09-11  Bruno Haible  <bruno@clisp.org>
5559
5560         Ensure pid_t gets defined.
5561         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5562         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5563         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5564         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5565         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5566         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5567         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5568         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5569         * tests/test-fcntl-h.c: Check that pid_t is defined.
5570         * tests/test-sched.c: Likewise.
5571         * tests/test-termios.c: Likewise.
5572         * tests/test-time.c: Likewise.
5573         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5574         * doc/posix-headers/signal.texi: Likewise.
5575         * doc/posix-headers/sys_types.texi: Likewise.
5576         * doc/posix-headers/time.texi: Likewise.
5577
5578 2011-09-11  Bruno Haible  <bruno@clisp.org>
5579
5580         acl: Fix compilation on Solaris 10 (older version).
5581         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5582         of ACE_EVERYONE.
5583         * lib/set-mode-acl.c (qset_acl): Likewise.
5584         Reported by Christian Jullien <eligis@orange.fr>.
5585
5586 2011-09-10  Bruno Haible  <bruno@clisp.org>
5587
5588         iconv, unsetenv: Add support for MSVC compiler.
5589         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5590         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5591
5592 2011-09-10  Bruno Haible  <bruno@clisp.org>
5593
5594         *printf: Add support for MSVC compiler.
5595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5596         handles the exception caused by the %n directive. When cross-compiling,
5597         guess no on native Windows.
5598         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5599         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5600         emulate it through vsnprintf.
5601         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5602         * doc/posix-functions/dprintf.texi: Update documentation regarding
5603         MSVC 9.
5604         * doc/posix-functions/fprintf.texi: Likewise.
5605         * doc/posix-functions/printf.texi: Likewise.
5606         * doc/posix-functions/snprintf.texi: Likewise.
5607         * doc/posix-functions/sprintf.texi: Likewise.
5608         * doc/posix-functions/swprintf.texi: Likewise.
5609         * doc/posix-functions/vdprintf.texi: Likewise.
5610         * doc/posix-functions/vfprintf.texi: Likewise.
5611         * doc/posix-functions/vprintf.texi: Likewise.
5612         * doc/posix-functions/vsnprintf.texi: Likewise.
5613         * doc/posix-functions/vsprintf.texi: Likewise.
5614         * doc/glibc-functions/asprintf.texi: Likewise.
5615         * doc/glibc-functions/obstack_printf.texi: Likewise.
5616         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5617         * doc/glibc-functions/vasprintf.texi: Likewise.
5618
5619 2011-09-10  Bruno Haible  <bruno@clisp.org>
5620
5621         nocrash: Add support for native Windows.
5622         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5623
5624 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5625             Bruno Haible  <bruno@clisp.org>
5626
5627         absolute-header, include-next: Add support for MSVC compiler.
5628         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5629         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5630         directory separator in #line directives.
5631         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5632         recognize also backslash as directory separator in #line directives.
5633
5634 2011-09-08  Jim Meyering  <meyering@redhat.com>
5635
5636         maint.mk: mark the post-release commit log with "maint: " prefix
5637         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5638         one-line commit-log summary.
5639
5640 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5641             Bruno Haible  <bruno@clisp.org>
5642
5643         Doc about crypt functions.
5644         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5645         systems.
5646         * doc/posix-functions/encrypt.texi: Likewise.
5647         * doc/posix-functions/setkey.texi: Likewise.
5648
5649 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5650
5651         * lib/gc.h: Fix copyright header.
5652
5653 2011-09-07  Bruno Haible  <bruno@clisp.org>
5654
5655         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5656         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5657         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5658
5659 2011-09-07  Bruno Haible  <bruno@clisp.org>
5660
5661         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5662         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5663         * lib/freopen.c: Likewise.
5664         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5665         * lib/lstat.c: Likewise.
5666         * lib/stat.c: Likewise.
5667         * lib/open.c: Use different syntax for include of <fcntl.h>.
5668         * lib/openat.c: Include fcntl.h again, explicitly.
5669
5670 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5671
5672         parse-datetime: document the newly accepted format
5673         * doc/parse-datetime.texi (Combined date and time of day items):
5674         New section.
5675
5676 2011-09-06  Bruno Haible  <bruno@clisp.org>
5677
5678         acl: Fix a test failure on newer Solaris 10 with ZFS.
5679         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5680         ENOSYS as no ACL.
5681         Reported by Jim Meyering.
5682
5683 2011-09-06  Bruno Haible  <bruno@clisp.org>
5684
5685         acl: Update for AIX >= 5.3 with NFS.
5686         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5687         ENOSYS as no ACL.
5688
5689         acl: Fix a test failure on AIX >= 5.3 with NFS.
5690         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5691         as no ACL.
5692
5693 2011-09-06  Bruno Haible  <bruno@clisp.org>
5694
5695         acl: Fix a test failure on IRIX 6.5 with NFS.
5696         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5697         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5698         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5699         * lib/copy-acl.c (qcopy_acl): Likewise.
5700
5701 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         openat: port to AIX 7.1 with large files
5704         AIX 7.1 does a "#define openat open64at" if large files are in use,
5705         so we can't simply #undef openat.  Use the orig_openat trick (similar
5706         to orig_open in lib/open.c) to work around the problem.  Problem
5707         reported by Kevin Brott for GNU tar, in the thread containing
5708         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5709         * lib/openat.c (__need_system_fcntl_h): Define first.
5710         Include <fcntl.h> and <sys/types.h> before undefining.
5711         (orig_openat) [HAVE_OPENAT]: New inline function.
5712         (openat) [HAVE_OPENAT]: Do not undef.
5713         (rpl_openat): Use orig_openat, not openat.
5714
5715 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5716             Bruno Haible  <bruno@clisp.org>
5717
5718         acl: Avoid errors on NonStop Kernel.
5719         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5720         ENOTSUP errors.
5721
5722 2011-09-05  Bruno Haible  <bruno@clisp.org>
5723
5724         acl: Clean up Solaris code.
5725         * lib/acl-internal.h: Remove no-op #if.
5726         * lib/file-has-acl.c: Likewise.
5727         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5728         * lib/copy-acl.c (qcopy_acl): Likewise.
5729
5730 2011-09-05  Bruno Haible  <bruno@clisp.org>
5731
5732         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5733         binaries built on the original Solaris 10.
5734         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5735         trivial.
5736
5737 2011-09-05  Bruno Haible  <bruno@clisp.org>
5738
5739         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5740         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5741         10.
5742         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5743         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5744         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5745         instead of acl_get, facl_get, acl_set, facl_set.
5746
5747 2011-09-05  Bruno Haible  <bruno@clisp.org>
5748
5749         copy-file: Try unit tests on more file systems.
5750         * tests/test-copy-file-1.sh: New file.
5751         * tests/test-copy-file-2.sh: New file.
5752         * modules/copy-file-tests (Files): Add them.
5753         (Makefile.am): Add them to TESTS.
5754
5755         acl: Try unit tests on more file systems.
5756         * tests/test-file-has-acl-1.sh: New file.
5757         * tests/test-file-has-acl-2.sh: New file.
5758         * tests/test-set-mode-acl-1.sh: New file.
5759         * tests/test-set-mode-acl-2.sh: New file.
5760         * tests/test-copy-acl-1.sh: New file.
5761         * tests/test-copy-acl-2.sh: New file.
5762         * modules/acl-tests (Files): Add them.
5763         (Makefile.am): Add them to TESTS.
5764
5765 2011-09-04  Bruno Haible  <bruno@clisp.org>
5766
5767         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5768         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5769         10.
5770         (OLD_ALLOW, OLD_DENY): New macros.
5771         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5772         ACE_ACCESS_ALLOWED_ACE_TYPE.
5773         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5774         ACE_ACCESS_DENIED_ACE_TYPE.
5775         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5776         (NEW_ACE_EXECUTE): Fix value.
5777         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5778         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5779         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5780         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5781         NEW_ACE_SYNCHRONIZE): New macros.
5782         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5783         instead of acl_fromtext, acl_set, facl_set.
5784         Fixes a coreutils/tests/cp/perm failure.
5785
5786 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5787
5788         openat: test for fstatat (..., 0) bug
5789         Further testing with tar suggests that fstatat (..., 0)
5790         does not work in general, on AIX 7.1; see
5791         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5792         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5793         replacement fstatat (which is what older AIX releases were using
5794         anyway).
5795         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5796         use is now changed to orig_fstatat.  This was probably the right
5797         thing to do anyway.
5798         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5799         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5800         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5801         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5802         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5803         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5804         if the bug is found.
5805
5806         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5807         This tests for another fstatat bug on AIX 7.1:
5808         fstatat (AT_FDCWD, ..., 0) does not work.  See
5809         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5810         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5811         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5812         (rpl_fstatat): Adjust so that it works around either (or both)
5813         bugs if present.
5814         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5815
5816 2011-09-03  Karl Berry  <karl@gnu.org>
5817
5818         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5819         in index entries.
5820
5821 2011-09-02  Bruno Haible  <bruno@clisp.org>
5822
5823         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5824         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5825         values of AR, ARFLAGS, RANLIB.
5826         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5827
5828 2011-09-02  Bruno Haible  <bruno@clisp.org>
5829
5830         Find 'ar' program that fits with --host argument.
5831         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5832
5833 2011-09-02  Bruno Haible  <bruno@clisp.org>
5834
5835         tests: init.sh: Support any non-GNU diff.
5836         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5837         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5838         Solaris 8.
5839
5840 2011-09-02  Bruno Haible  <bruno@clisp.org>
5841
5842         tests: init.sh: work also with any non-GNU diff that supports -u
5843         * tests/init.sh: Relax check for diff -u support.
5844         Rather than checking for GNU diff via --version, simply check
5845         for support for -u itself.  Useful at least on OpenBSD 4.9,
5846         AIX 7.1, IRIX 6.5, and Solaris 10.
5847
5848 2011-09-01  Bruno Haible  <bruno@clisp.org>
5849
5850         strtoimax, strtoumax: Document problem on HP-UX 11.
5851         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5852         * doc/posix-functions/strtoumax.texi: Likewise.
5853
5854 2011-09-01  Bruno Haible  <bruno@clisp.org>
5855
5856         strtoumax: Avoid link error on OSF/1 with DTK cc.
5857         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5858         defined as a function.
5859         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5860         strtoumax is defined, not whether it is declared.
5861
5862 2011-09-01  Bruno Haible  <bruno@clisp.org>
5863
5864         strtoimax: Avoid link error on OSF/1 with DTK cc.
5865         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5866         defined as a function.
5867         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5868         strtoimax is defined, not whether it is declared.
5869
5870 2011-09-01  Bruno Haible  <bruno@clisp.org>
5871
5872         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5873         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5874         as a function.
5875         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5876         whether it is declared.
5877
5878 2011-09-01  Bruno Haible  <bruno@clisp.org>
5879
5880         imaxabs: Avoid link error on OSF/1 with DTK cc.
5881         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5882         as a function.
5883         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5884         whether it is declared.
5885
5886 2011-09-01  Bruno Haible  <bruno@clisp.org>
5887
5888         Tests for module 'strtoumax'.
5889         * modules/strtoumax-tests: New file.
5890         * tests/test-strtoumax.c: New file.
5891
5892         Tests for module 'strtoimax'.
5893         * modules/strtoimax-tests: New file.
5894         * tests/test-strtoimax.c: New file.
5895
5896         Tests for module 'imaxdiv'.
5897         * modules/imaxdiv-tests: New file.
5898         * tests/test-imaxdiv.c: New file.
5899
5900         Tests for module 'imaxabs'.
5901         * modules/imaxabs-tests: New file.
5902         * tests/test-imaxabs.c: New file.
5903
5904 2011-09-01  Bruno Haible  <bruno@clisp.org>
5905
5906         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5907         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5908         pthread_create.
5909
5910 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5911
5912         openat: work around AIX 7.1 fstatat issue
5913         This should fix the problem that was not properly fixed
5914         in the previous change, dated 2011-08-30.
5915         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5916         __need_system_stat_h defined.
5917         (orig_fstatat) [HAVE_FSTATAT]: New function.
5918         (rpl_fstatat): Go back to the old way of doing things,
5919         except call orig_fstatat instead of fstatat.
5920         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5921         Remove unnecessary check whether fstatat fills in st_size etc.
5922
5923 2011-09-01  Bruno Haible  <bruno@clisp.org>
5924
5925         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5926         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5927         just include the system's header.
5928
5929 2011-08-31  Jim Meyering  <meyering@redhat.com>
5930
5931         tests: avoid spurious assertion failure in test-float.c on ppc64
5932         * tests/test-float.c (test_long_double): Comment out an assertion,
5933         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5934         with gcc-4.4.4.
5935
5936         maint: indent with spaces, not TABs
5937         I need to get in the habit of running gnulib's "make check".
5938         Both of these would have been caught.
5939         * m4/largefile.m4: Indent with spaces, not TABs.
5940         * lib/parse-datetime.y (iso_8601_time): Likewise.
5941         Spotted by Pádraig Brady.
5942
5943         test-parse-datetime.c: accommodate a relatively strict gcc warning
5944         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5945         to avoid a warning from gcc's -Werror=missing-declarations.
5946         Insert a few spaces-before-funcall-parenthesis.
5947
5948 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5949
5950         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5951         The parser now accepts ISO 8601 date-time strings with "T" as the
5952         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5953         with a space between the date and time strings.  Now it also parses
5954         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5955         variants like "2004-02-29T16:21:42.333-07:00"
5956         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5957         of day representation using the 'T' separator character.
5958         * doc/parse-datetime.texi (General date syntax): replace use of
5959         deprecated --iso-8601 option with --rfc-3339 in example of date
5960         command output formats that can be parsed.
5961         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5962         lib/parse-datetime.y.
5963         (gmt_offset): New function.
5964         (main): Add additional test cases to validate ISO8601 extended
5965         date and time of day parsing.
5966
5967 2011-08-31  Bruno Haible  <bruno@clisp.org>
5968
5969         freopen: Documentation.
5970         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5971         name.
5972         Reported by Claudio Bley <claudio.bley@gmail.com>.
5973
5974 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5975
5976         freopen: Don't crash if the filename argument is NULL.
5977         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5978         NULL.
5979
5980 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         openat: work around AIX 7.1 fstatat bug
5983         Problem reported by Kevin Brott for GNU tar, in the thread containing
5984         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5985         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5986         FSTATAT_ST_SIZE_ETC_BROKEN.
5987         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5988         rpl_fstatat.
5989         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5990         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5991         AC_CHECK_FUNCS_ONCE for fstatat.
5992         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5993         fchmodat, mkdirat, openat and unlinkat.
5994
5995 2011-08-30  Bruno Haible  <bruno@clisp.org>
5996
5997         Avoid endless recursions if config.h includes some header files.
5998         * lib/fopen.c (__need_FILE): Define already before including config.h.
5999         * lib/freopen.c (__need_FILE): Likewise.
6000         * lib/open.c (__need_system_fcntl_h): Likewise.
6001         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6002         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6003         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6004
6005 2011-08-25  Karl Berry  <karl@gnu.org>
6006
6007         * config/srclist.txt (ylwrap): new try.
6008         * build-aux/ylwrap: new file.
6009
6010 2011-08-23  Bruno Haible  <bruno@clisp.org>
6011
6012         tmpdir: Use a good default directory on native Windows.
6013         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6014         (P_tmpdir): Default to _P_tmpdir on native Windows.
6015         (path_search): On native Windows, try the value returned by GetTempPath
6016         before trying P_tmpdir.
6017         * modules/tmpdir (Depends-on): Add pathmax.
6018         Suggested by John Darrington <john@darrington.wattle.id.au>.
6019
6020 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6021
6022         doc: fix typo in README-release
6023         * top/README-release: Capitalize first word of a sentence.
6024
6025 2011-08-19  Jim Meyering  <meyering@redhat.com>
6026
6027         fts: do not exhaust memory when processing million-entry directories
6028         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6029         directory would require about 256*N bytes of memory.  Thus, it was
6030         easy to construct a directory too large to be processed by any of
6031         those tools.  With this change, fts' maximum memory utilization is
6032         now limited to around 30MB.
6033         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6034         (fts_read): When we've processed the final entry (i.e., when
6035         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6036         using the parent entry to read any remaining entries.  Dispatch
6037         depending on what fts_build returns:
6038         - NULL+stop, aka failure: stop
6039         - NULL otherwise: move up in the dir hierarchy
6040         - non-NULL: handle this new entry
6041         (fts_build): Declare and use new local, continue_readdir.
6042         Prepare to be called from fts_read, when the entries
6043         from a partially-read directory have just been exhausted.
6044         In that case, we'll skip the opendir and instead use the parent's
6045         fts_dirp and derive dir_fd from that.
6046         Finally, in the readdir loop, if we read max_entries entries,
6047         exit the loop ensuring *not* to call closedir.  This is required
6048         so that fts_dirp can be reused on a subsequent call.
6049         Prompted by Ben England's report of memory exhaustion in find
6050         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6051
6052         maint: fts: move decl of `dp' down into while loop; split a long line
6053         * lib/fts.c (fts_build): No semantic change.
6054
6055         fts: add/use new struct member, fts_dirp
6056         We are about to use this to manage any directory with
6057         too many entries to read all of them into memory at once.
6058         To do that, we'll need to save the DIR* pointer in each
6059         affected FTSENT struct.
6060         * lib/fts_.h: Include <dirent.h>.
6061         (struct FTSENT) [fts_dirp]: New member.
6062         * lib/fts.c (closedir_and_clear): Define.
6063         Use it in place of closedir so that we are sure to
6064         clear the new fts_dirp member when done with it.
6065         (fts_alloc): Initialize the new member.
6066         (fts_lfree): Free, if needed.
6067
6068         maint: fts: give __opendir2 a new parameter and rename
6069         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6070         than surreptitiously using sole caller's "dir_fd".
6071         (fts_opendir): Rename from __opendir2.
6072
6073         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6074         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6075
6076         maint: fts.c: correct off-by-one indentation
6077         * lib/fts.c (fts_build): Correct indentation, change style
6078         of a couple of block comments, and bracing style.
6079
6080         maint: fts.c: move __opendir2 #define "up" out of function body
6081         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6082
6083         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6084         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6085         out for a long time and besides was useful only on BSD systems.
6086
6087 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6088
6089         regex: port to Stratus OpenVOS
6090         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6091         define to empty, rather than attempting nonportable optimizations.
6092         Problem reported by Paul Green in:
6093         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6094         and fix suggested by Eric Blake in:
6095         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6096
6097 2011-08-17  Eric Blake  <eblake@redhat.com>
6098
6099         getcwd: fix test failures on mingw
6100         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6101         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6102         test if long directory cannot be created, and allow mingw errno.
6103
6104         getcwd-lgpl: fix m4 to match relaxed test for BSD
6105         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6106         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6107         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6108         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6109         signature problem.
6110
6111         getcwd: fix compilation on mingw64
6112         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6113         getcwd.
6114         Reported by Marc-André Lureau.
6115
6116         pipe2: silence compiler warning
6117         * lib/pipe2.c (pipe2): Hide label if it is not used.
6118
6119 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6120
6121         relocatable-prog: fix link error
6122         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6123         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6124         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6125         into modules/relocatable-lib without noticing that
6126         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6127         also needs to build relocatable.c.
6128
6129 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6130
6131         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6133         shell code: it contained a 'break' that was not in a loop.
6134         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6135         via a shell-language loop; this may have been true in old Autoconf
6136         versions, but it's not true in Autoconf 2.68.  I found this bug
6137         when testing coreutils git on Solaris 8, whose shell complains
6138         about the syntax error.
6139
6140 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6141
6142         * lib/base64.c: Fix comment to reference RFC 4648.
6143         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6144         <gvtulder@gmail.com>.
6145
6146 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6147
6148         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6149
6150         po/Makefile.in.in: fix make -q problem
6151         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6152         rule, since there's no file named 'check-macro-version' and its
6153         use as a file breaks make -q.
6154         (all): Don't depend on check-macro-version.
6155         (CHECK_MACRO_VERSION): New macro.
6156         (stamp-po): Use it.
6157
6158         configmake: fix make -q problem
6159         * modules/configmake (configmake.h): Update configmake.h's time stamp
6160         even if the file does not change.  Otherwise, 'make -q' fails.
6161         Problem reported by Simon Josefsson in
6162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6163
6164 2011-08-11  Jim Meyering  <meyering@redhat.com>
6165
6166         git-version-gen: correct the advice in a comment
6167         * build-aux/git-version-gen: Correct comment.
6168         Don't recommend to list .tarball-version in .gitignore.
6169
6170 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6171
6172         base64: fix off-by-one buffer size bug
6173         Problem and (trivial) fix reported by Gijs van Tulder in
6174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6175         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6176         * tests/test-base64.c (main): Catch the bug.
6177
6178 2011-08-10  Eric Blake  <eblake@redhat.com>
6179
6180         closein: correct comments
6181         * lib/closein.c (close_stdin): Improve comments.
6182
6183 2011-08-09  Bruno Haible  <bruno@clisp.org>
6184
6185         More tests for 'fseeko'.
6186         * tests/test-fseeko3.c: New file, from Eric Blake.
6187         * tests/test-fseeko3.sh: New file.
6188         * modules/fseeko-tests (Files): Add them.
6189         (TESTS): Add test-fseeko3.sh.
6190         (check_PROGRAMS): Add test-fseeko3.
6191
6192 2011-08-09  Eric Blake  <eblake@redhat.com>
6193
6194         fseeko: remove unneeded hack
6195         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6196
6197         fseeko: fix bug on glibc
6198         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6199         Reported by John W. Eaton.
6200
6201 2011-08-08  Bruno Haible  <bruno@clisp.org>
6202
6203         unictype/base: Fix interoperability with preinstalled libunistring.
6204         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6205         Reported by Simon Josefsson.
6206
6207 2011-08-08  Bruno Haible  <bruno@clisp.org>
6208
6209         iswblank: Detect declaration correctly.
6210         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6211         AC_CHECK_DECLS invocation.
6212
6213 2011-08-08  Bruno Haible  <bruno@clisp.org>
6214
6215         tcgetsid: Detect declaration correctly.
6216         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6217         AC_CHECK_DECLS invocation.
6218         Reported by Simon Josefsson.
6219
6220 2011-08-08  Eric Blake  <eblake@redhat.com>
6221
6222         largefile: fix typo that regressed large file support
6223         * modules/largefile (configure.ac-early): Fix section name.
6224
6225 2011-08-06  Karl Berry  <karl@gnu.org>
6226
6227         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6228         a separate module.
6229
6230 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6231
6232         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6233         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6234         get prototype for free.
6235
6236 2011-08-04  Bruno Haible  <bruno@clisp.org>
6237
6238         Tests for module 'pathmax'.
6239         * modules/pathmax-tests: New file.
6240         * tests/test-pathmax.c: New file.
6241
6242         canonicalize-lgpl: Support larger filenames on the Hurd.
6243         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6244         Reported by Paul Eggert.
6245
6246         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6247         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6248         * lib/chdir-long.h: Include pathmax.h.
6249         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6250         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6251         (PATH_MAX): Remove code that is done by pathmax.h.
6252         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6253         * lib/tmpfile.c: Add a comment.
6254         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6255         * modules/chdir-long (Depends-on): Add pathmax.
6256         * modules/getcwd (Depends-on): Add pathmax.
6257         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6258         is not defined.
6259         * doc/posix-headers/limits.texi: Mention the pathmax module.
6260         * NEWS: Mention the change.
6261
6262 2011-08-02  Bruno Haible  <bruno@clisp.org>
6263
6264         pthread_sigmask: Actually use results of gl_THREADLIB.
6265         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6266         gl_THREADLIB, not gl_[]THREADLIB.
6267         Reported by Eric Blake.
6268
6269 2011-08-02  Jim Meyering  <meyering@redhat.com>
6270
6271         maint.mk: relax the default _gl_TS_function_match regexp
6272         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6273         space between function name and "(" in an "extern" declaration.
6274         That would fail to match a decl with no space there: extern void foo();
6275
6276 2011-07-31  Iain Nicol  <iain@thenicols.net>
6277
6278         git-version-gen: document that EXTRA_DIST must include .version
6279         * build-aux/git-version-gen: In the how-to-use comment, document
6280         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6281         will fail when run from an unpacked distribution tarball.
6282
6283 2011-08-01  Bruno Haible  <bruno@clisp.org>
6284
6285         wctype-h: Fix last change.
6286         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6287         REPLACE_TOWLOWER to 0.
6288         Reported by Sam Steingold <sds@gnu.org>.
6289
6290 2011-07-31  Bruno Haible  <bruno@clisp.org>
6291
6292         frexpl: Update autoconf test.
6293         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6294         according to changes of 2011-06-20.
6295
6296 2011-07-31  Bruno Haible  <bruno@clisp.org>
6297
6298         sys_utsname: Add support for Minix.
6299         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6300         <sys/utsname.h>.
6301         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6302         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6303
6304 2011-07-31  Bruno Haible  <bruno@clisp.org>
6305
6306         strings: Add support for Minix.
6307         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6308         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6309         * doc/posix-headers/strings.texi: Document the Minix problem.
6310
6311 2011-07-31  Bruno Haible  <bruno@clisp.org>
6312
6313         wctype-h: Add support for Minix.
6314         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6315         REPLACE_TOWLOWER.
6316         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6317         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6318         REPLACE_ISWCNTRL.
6319
6320 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6321
6322         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6323         This is a performance improvement for 64-bit hosts: it causes the
6324         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6325
6326 2011-07-31  Bruno Haible  <bruno@clisp.org>
6327
6328         stdioext: Add support for Minix.
6329         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6330         * lib/fpurge.c (fpurge): Likewise.
6331         * lib/freadahead.c (freadahead): Likewise.
6332         * lib/freadable.c (freadable): Likewise.
6333         * lib/freading.c (freading): Likewise.
6334         * lib/freadptr.c (freadptr): Likewise.
6335         * lib/freadseek.c (freadptrinc): Likewise.
6336         * lib/fseeko.c (rpl_fseeko): Likewise.
6337         * lib/fseterr.c (fseterr): Likewise.
6338         * lib/fwritable.c (fwritable): Likewise.
6339         * lib/fwriting.c (fwriting): Likewise.
6340         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6341         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6342
6343 2011-07-31  Bruno Haible  <bruno@clisp.org>
6344
6345         errno: Port to Minix.
6346         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6347         ECONNABORTED are defined.
6348         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6349         GNULIB_defined_ECONNABORTED): New macros.
6350         * lib/strerror-override.h (strerror_override): Test also
6351         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6352         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6353         ECONNABORTED.
6354         * doc/posix-headers/errno.texi: Mention the Minix problem.
6355
6356 2011-07-31  Bruno Haible  <bruno@clisp.org>
6357
6358         Work around declaration collisions on Minix.
6359         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6360         defined, set REPLACE_MBSINIT.
6361         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6362         defined, set REPLACE_MBRTOWC.
6363         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6364         set REPLACE_MBRLEN.
6365         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6366         defined, set REPLACE_MBSRTOWCS.
6367         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6368         defined, set REPLACE_WCRTOMB.
6369         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6370         defined, set REPLACE_WCSRTOMBS.
6371
6372 2011-07-31  Bruno Haible  <bruno@clisp.org>
6373
6374         Add support for Minix with ACK compiler.
6375         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6376         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6377         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6378
6379 2011-07-31  Bruno Haible  <bruno@clisp.org>
6380
6381         Documentation about Minix.
6382         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6383         * doc/glibc-headers/*.texi: Likewise.
6384         * doc/posix-functions/*.texi: Likewise.
6385         * doc/glibc-functions/*.texi: Likewise.
6386
6387 2011-07-31  Bruno Haible  <bruno@clisp.org>
6388
6389         snippet/warn-on-use: Fix indentation.
6390         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6391
6392 2011-07-25  Jim Meyering  <meyering@redhat.com>
6393
6394         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6395         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6396         commands.
6397
6398 2011-07-27  Jim Meyering  <meyering@redhat.com>
6399
6400         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6401         * top/maint.mk (gl_extract_significant_defines_): Now that
6402         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6403         gnulib/lib/signal.in.h, and now that we recommend to
6404         define-if-undefined those two symbols in application code,
6405         we must filter them out of the "significant" list.
6406         This avoids a "make syntax-check" failure in coreutils.
6407
6408 2011-07-26  Eric Blake  <eblake@redhat.com>
6409
6410         warnings: add comments about previous patch
6411         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6412         * m4/include_next.m4: Likewise.
6413         * m4/warn-on-use.m4: Likewise.
6414         * m4/warnings.m4: Likewise, and simplify use.
6415         Suggested by Stefano Lattarini.
6416
6417         include-next, warnings: support older autoconf
6418         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6419         AS_VAR_PUSHDEF in a way that works with older autoconf.
6420         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6421         Reported by Daniel P. Berrange.
6422
6423 2011-07-25  Bruno Haible  <bruno@clisp.org>
6424
6425         fseek, ftell: Fix doc.
6426         * doc/posix-functions/fseek.texi: Reword statement about
6427         AC_SYS_LARGEFILE.
6428         * doc/posix-functions/ftell.texi: Likewise.
6429
6430 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6431             Bruno Haible  <bruno@clisp.org>
6432
6433         Add dependencies to the 'largefile' module.
6434         * modules/fopen (Depends-on): Add 'largefile'.
6435         * modules/freopen (Depends-on): Likewise.
6436         * modules/fseeko (Depends-on): Likewise.
6437         * modules/ftello (Depends-on): Likewise.
6438         * modules/glob (Depends-on): Likewise.
6439         * modules/lseek (Depends-on): Likewise.
6440         * modules/lstat (Depends-on): Likewise.
6441         * modules/mkostemp (Depends-on): Likewise.
6442         * modules/mkostemps (Depends-on): Likewise.
6443         * modules/mkstemp (Depends-on): Likewise.
6444         * modules/mkstemps (Depends-on): Likewise.
6445         * modules/open (Depends-on): Likewise.
6446         * modules/openat (Depends-on): Likewise.
6447         * modules/pread (Depends-on): Likewise.
6448         * modules/pwrite (Depends-on): Likewise.
6449         * modules/scandir (Depends-on): Likewise.
6450         * modules/stat (Depends-on): Likewise.
6451         * modules/tmpfile (Depends-on): Likewise.
6452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6453         since the containing module now depends on the largefile module.
6454         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6455         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6456         off_t is fixed by gnulib.
6457         * doc/posix-functions/freopen.texi: Likewise.
6458         * doc/posix-functions/fseeko.texi: Likewise.
6459         * doc/posix-functions/fstatat.texi: Likewise.
6460         * doc/posix-functions/ftello.texi: Likewise.
6461         * doc/posix-functions/glob.texi: Likewise.
6462         * doc/posix-functions/lseek.texi: Likewise.
6463         * doc/posix-functions/lstat.texi: Likewise.
6464         * doc/posix-functions/mkstemp.texi: Likewise.
6465         * doc/posix-functions/open.texi: Likewise.
6466         * doc/posix-functions/openat.texi: Likewise.
6467         * doc/posix-functions/pread.texi: Likewise.
6468         * doc/posix-functions/pwrite.texi: Likewise.
6469         * doc/posix-functions/scandir.texi: Likewise.
6470         * doc/posix-functions/stat.texi: Likewise.
6471         * doc/posix-functions/tmpfile.texi: Likewise.
6472         * doc/glibc-functions/mkostemp.texi: Likewise.
6473         * doc/glibc-functions/mkostemps.texi: Likewise.
6474         * doc/glibc-functions/mkstemps.texi: Likewise.
6475
6476 2011-07-25  Bruno Haible  <bruno@clisp.org>
6477
6478         fcntl: Move AC_LIBOBJ invocation to module description.
6479         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6480         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6481
6482         fcntl: Remove call-in from fchdir.m4.
6483         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6485
6486         dup3: Remove potential call-in from fchdir.m4.
6487         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6489
6490         dup2: Move AC_LIBOBJ invocation to module description.
6491         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6492         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6493         Don't invoke AC_LIBOBJ.
6494         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6495
6496         dup2: Remove call-in from fchdir.m4.
6497         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6499
6500         fclose: Move AC_LIBOBJ invocation to module description.
6501         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6502         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6503         to 1.
6504         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6505
6506         fclose: Remove call-in from close.m4.
6507         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6508         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6509
6510         close: Move AC_LIBOBJ invocation to module description.
6511         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6512         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6513         1.
6514         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6515
6516         close: Remove call-in from fchdir.m4.
6517         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6519
6520         open: Move AC_LIBOBJ invocation to module description.
6521         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6522         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6523         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6524
6525         open: Remove call-in from fchdir.m4.
6526         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6528
6529         fchdir: Start to remove gl_REPLACE_* idiom.
6530         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6531         (gl_FUNC_FCHDIR): Invoke it.
6532
6533 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6534
6535         * lib/ftell.c (ftell): Comment out cast.
6536
6537         close: use gl_REPLACE_FCLOSE only if defined
6538         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6539         is defined.  The close module doesn't depend on the fclose module
6540         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6542         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6543
6544 2011-07-24  Jim Meyering  <meyering@redhat.com>
6545
6546         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6547         * tests/test-select.h (test_function): Declare as "static".
6548
6549 2011-07-24  Bruno Haible  <bruno@clisp.org>
6550
6551         doc: Mention the effects of AC_SYS_LARGEFILE.
6552         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6553         on this function.
6554         * doc/posix-functions/aio_error.texi: Likewise.
6555         * doc/posix-functions/aio_fsync.texi: Likewise.
6556         * doc/posix-functions/aio_read.texi: Likewise.
6557         * doc/posix-functions/aio_return.texi: Likewise.
6558         * doc/posix-functions/aio_suspend.texi: Likewise.
6559         * doc/posix-functions/aio_write.texi: Likewise.
6560         * doc/posix-functions/fgetpos.texi: Likewise.
6561         * doc/posix-functions/fopen.texi: Likewise.
6562         * doc/posix-functions/freopen.texi: Likewise.
6563         * doc/posix-functions/fsetpos.texi: Likewise.
6564         * doc/posix-functions/fstatvfs.texi: Likewise.
6565         * doc/posix-functions/ftruncate.texi: Likewise.
6566         * doc/posix-functions/ftw.texi: Likewise.
6567         * doc/posix-functions/getrlimit.texi: Likewise.
6568         * doc/posix-functions/glob.texi: Likewise.
6569         * doc/posix-functions/lio_listio.texi: Likewise.
6570         * doc/posix-functions/lockf.texi: Likewise.
6571         * doc/posix-functions/mkstemp.texi: Likewise.
6572         * doc/posix-functions/mmap.texi: Likewise.
6573         * doc/posix-functions/nftw.texi: Likewise.
6574         * doc/posix-functions/openat.texi: Likewise.
6575         * doc/posix-functions/opendir.texi: Likewise.
6576         * doc/posix-functions/posix_fadvise.texi: Likewise.
6577         * doc/posix-functions/posix_fallocate.texi: Likewise.
6578         * doc/posix-functions/pread.texi: Likewise.
6579         * doc/posix-functions/pwrite.texi: Likewise.
6580         * doc/posix-functions/readdir.texi: Likewise.
6581         * doc/posix-functions/readdir_r.texi: Likewise.
6582         * doc/posix-functions/rewinddir.texi: Likewise.
6583         * doc/posix-functions/scandir.texi: Likewise.
6584         * doc/posix-functions/seekdir.texi: Likewise.
6585         * doc/posix-functions/setrlimit.texi: Likewise.
6586         * doc/posix-functions/statvfs.texi: Likewise.
6587         * doc/posix-functions/telldir.texi: Likewise.
6588         * doc/posix-functions/tmpfile.texi: Likewise.
6589         * doc/posix-functions/truncate.texi: Likewise.
6590         * doc/glibc-functions/fallocate.texi: Likewise.
6591         * doc/glibc-functions/fstatfs.texi: Likewise.
6592         * doc/glibc-functions/fts_children.texi: Likewise.
6593         * doc/glibc-functions/fts_read.texi: Likewise.
6594         * doc/glibc-functions/getdirentries.texi: Likewise.
6595         * doc/glibc-functions/mkostemp.texi: Likewise.
6596         * doc/glibc-functions/mkostemps.texi: Likewise.
6597         * doc/glibc-functions/mkstemps.texi: Likewise.
6598         * doc/glibc-functions/preadv.texi: Likewise.
6599         * doc/glibc-functions/pwritev.texi: Likewise.
6600         * doc/glibc-functions/sendfile.texi: Likewise.
6601         * doc/glibc-functions/statfs.texi: Likewise.
6602
6603 2011-07-24  Bruno Haible  <bruno@clisp.org>
6604
6605         doc: Fix typo.
6606         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6607
6608 2011-07-24  Bruno Haible  <bruno@clisp.org>
6609
6610         doc: Mention fsusage.
6611         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6612
6613 2011-07-24  Bruno Haible  <bruno@clisp.org>
6614
6615         doc: Mention new glibc headers and functions.
6616         * doc/glibc-headers/gshadow.texi: New file.
6617         * doc/glibc-functions/endsgent.texi: New file.
6618         * doc/glibc-functions/fgetsgent.texi: New file.
6619         * doc/glibc-functions/fgetsgent_r.texi: New file.
6620         * doc/glibc-functions/getsgent.texi: New file.
6621         * doc/glibc-functions/getsgent_r.texi: New file.
6622         * doc/glibc-functions/getsgnam.texi: New file.
6623         * doc/glibc-functions/getsgnam_r.texi: New file.
6624         * doc/glibc-functions/putsgent.texi: New file.
6625         * doc/glibc-functions/setsgent.texi: New file.
6626         * doc/glibc-functions/sgetsgent.texi: New file.
6627         * doc/glibc-functions/sgetsgent_r.texi: New file.
6628         * doc/glibc-functions/malloc_info.texi: New file.
6629         * doc/glibc-functions/preadv.texi: New file.
6630         * doc/glibc-functions/pwritev.texi: New file.
6631         * doc/glibc-functions/register_printf_modifier.texi: New file.
6632         * doc/glibc-functions/register_printf_specifier.texi: New file.
6633         * doc/glibc-functions/register_printf_type.texi: New file.
6634         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6635         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6636         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6637         * doc/glibc-functions/pthread_getname_np.texi: New file.
6638         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6639         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6640         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6641         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6642         * doc/glibc-functions/pthread_setname_np.texi: New file.
6643         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6644         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6645         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6646         * doc/glibc-functions/qsort_r.texi: New file.
6647         * doc/glibc-functions/quick_exit.texi: New file.
6648         * doc/glibc-functions/syncfs.texi: New file.
6649         * doc/gnulib.texi: Include them.
6650         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6651         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6652         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6653         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6654         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6655         * doc/glibc-functions/execvpe.texi: Likewise.
6656
6657 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6658
6659         ftell: don't include <unistd.h>
6660         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6661         guaranteed to define off_t, and the ftell module depends on the
6662         stdio module.
6663
6664         ftell: do not assume wraparound signed arithmetic
6665         * lib/ftell.c: Include <limits.h>.
6666         (ftell): Don't assume wraparound signed arithmetic.
6667
6668 2011-07-24  Bruno Haible  <bruno@clisp.org>
6669
6670         close: No longer depend on module 'fclose'.
6671         * modules/close (Depends-on): Remove fclose.
6672         * NEWS: Mention the change.
6673         Suggested by Sam Steingold <sds@gnu.org>.
6674
6675 2011-07-24  Bruno Haible  <bruno@clisp.org>
6676
6677         fsusage: Enable large volume support on AIX >= 5.2.
6678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6679         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6680         instead of STAT_STATVFS.
6681         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6682
6683         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6685         f_blocks field only on MacOS X.
6686
6687         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6688         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6689         * modules/fsusage (Depends-on): Add largefile.
6690
6691 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6692
6693         * README: Modernize discussion of signed integers.
6694         Assuming overflow wraparound is no longer safe.
6695         Mention ones' complement and signed magnitude.
6696
6697 2011-07-22  Bruno Haible  <bruno@clisp.org>
6698
6699         select tests, pselect tests: Refactor.
6700         * tests/test-select.h: New file, extracted from tests/test-select.c.
6701         (select_fn): New type.
6702         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6703         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6704         test_pipe): Add my_select argument.
6705         (test_function): Renamed from main. Add my_select argument.
6706         * tests/test-select.c: Move most code to tests/test-select.h. Include
6707         test-select.h.
6708         * modules/select-tests (Files): Add tests/test-select.h.
6709         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6710         (my_select, main): New functions.
6711         * modules/pselect-tests (Files): Add tests/test-select.h,
6712         tests/macros.h, tests/signature.h.
6713         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6714         (configure.ac): Check for <sys/wait.h>.
6715
6716 2011-07-22  Bruno Haible  <bruno@clisp.org>
6717
6718         sys_select tests: Check the signature of FD_*.
6719         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6720         signature tests from here...
6721         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6722         here.
6723         * modules/sys_select-tests (Files): Add tests/signature.h.
6724
6725 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6726
6727         largefile: new module, replacing large-inode
6728         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6729         * MODULES.html.sh: Add largefile, remove large-inode.
6730         * modules/largefile, m4/largefile.m4: New files.
6731         * modules/large-inode, m4/large-inode.m4: Remove.
6732
6733         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6734         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6735         implementations that use only 32 bits to count blocks.
6736         On typical hosts with 1024-byte blocks, this fails with file
6737         systems as small as 4 TiB.  Problem reported by Herb Wartens
6738         <http://debbugs.gnu.org/9140> and this should also fix a similar
6739         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6740
6741         large-inode: New module
6742         * MODULES.html.sh: Add it.
6743         * modules/large-inode, m4/large-inode.m4: New files.
6744
6745         extensions: Enable extensions on MacOS X 10.5 and later.
6746         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6747
6748 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6749
6750         file-has-acl: use acl_extended_file_nofollow if available
6751         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6752         (acl_extended_file): New macro.
6753         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6754         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6755
6756 2011-07-21  Bruno Haible  <bruno@clisp.org>
6757
6758         Declare system functions in a way that works with C++.
6759         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6760         declare fdopendir as extern "C".
6761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6762         declare frexpl as extern "C".
6763         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6764         declare gai_strerror as extern "C".
6765         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6766         programs, declare gai_strerror as extern "C".
6767         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6768         declare getlogin_r as extern "C".
6769         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6770         as extern "C".
6771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6772         declare ldexpl as extern "C".
6773         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6774         as extern "C".
6775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6776         program, declare getmntinfo as extern "C".
6777         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6778         stpncpy as extern "C".
6779         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6780         program, declare __xpg_strerror_r as extern "C".
6781         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6782         strndup as extern "C".
6783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6784         declare memset and bzero as extern "C".
6785         Reported by Sam Steingold <sds@gnu.org>.
6786
6787 2011-07-12  Jim Meyering  <meyering@redhat.com>
6788
6789         maint.mk: prohibit inclusion of "verify.h" without use
6790         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6791
6792 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6793
6794         timer-time: A new module to check for timer_settime()
6795         * m4/timer_time.m4: Check for the posix function.
6796         * modules/timer-time: Add the new module.
6797         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6798         Mention it.
6799
6800 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6801             Bruno Haible  <bruno@clisp.org>
6802
6803         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6804         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6805         not defined, assume POSIX threads and look for pthread_sigmask in
6806         $LIBS, without changing $CPPFLAGS.
6807
6808 2011-07-19  Bruno Haible  <bruno@clisp.org>
6809
6810         strstr: Update cross-compilation guess.
6811         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6812         CPUs, guess no, in view of glibc
6813         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6814         Suggested by Eric Blake. Reported by Reuben Thomas.
6815
6816 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6817
6818         getopt-gnu: suppress core dumps from detection code
6819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6820         to suppress core dumps that may well occur on glibc systems.
6821         * modules/getopt-gnu: Depend on nocrash.
6822
6823 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         pthread_sigmask: ensure usleep is declared
6826         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6827         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6828
6829 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6830
6831         doc: Document NonStop portability issues.
6832         * doc/posix-functions/sigaction.texi (sigaction):
6833         * doc/posix-headers/signal.texi (signal.h):
6834         Document NonStop.  See Joachim Schmitz in
6835         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6836
6837 2011-07-15  Bruno Haible  <bruno@clisp.org>
6838
6839         ffsl, ffsll: Avoid unportable behaviour.
6840         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6841
6842 2011-07-15  Bruno Haible  <bruno@clisp.org>
6843
6844         ffs: More tests.
6845         * tests/test-ffs.c (NBITS): New macro.
6846         (main): Add more tests.
6847         * tests/test-ffsl.c (NBITS): New macro.
6848         (main): Add more tests.
6849         * tests/test-ffsll.c (NBITS): New macro.
6850         (main): Add more tests.
6851
6852 2011-07-15  Eric Blake  <eblake@redhat.com>
6853
6854         ffsl, ffsll: new modules
6855         * modules/ffsl: New file.
6856         * modules/ffsll: Likewise.
6857         * m4/ffsl.m4: Likewise.
6858         * m4/ffsll.m4: Likewise.
6859         * lib/ffsl.c: Likewise.
6860         * lib/ffsl.h: Likewise.
6861         * lib/ffsll.c: Likewise.
6862         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6863         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6864         * modules/string (Makefile.am): Substitute witnesses.
6865         * lib/strings.in.h (ffsl, ffsll): Declare.
6866         * modules/ffsl-tests: New test file.
6867         * modules/ffsll-tests: Likewise.
6868         * tests/test-ffsl.c: Likewise.
6869         * tests/test-ffsll.c: Likewise.
6870         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6871         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6872         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6873
6874         ffs: fix m4 prerequisite
6875         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6876
6877         ffs: avoid undefined behavior
6878         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6879         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6880         Reported by Bruno Haible.
6881
6882 2011-07-12  Bruno Haible  <bruno@clisp.org>
6883
6884         pthread_sigmask: Rely on module 'threadlib'.
6885         * modules/pthread_sigmask (Depends-on): Add threadlib.
6886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6887         is defined.
6888
6889 2011-07-12  Bruno Haible  <bruno@clisp.org>
6890
6891         regex: Depend on module 'strcase'.
6892         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6893
6894 2011-07-12  Jim Meyering  <meyering@redhat.com>
6895
6896         warn-on-use: fix typo in file name
6897         * modules/snippet/warn-on-use (Files): Correct file name:
6898         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6899
6900 2011-07-12  Bruno Haible  <bruno@clisp.org>
6901
6902         strings: Document module.
6903         * doc/posix-headers/strings.texi: Mention module 'strings'.
6904
6905 2011-07-12  Bruno Haible  <bruno@clisp.org>
6906
6907         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6908         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6909         (Files, Makefile.am): Update.
6910         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6911         * modules/stdlib (Depends-on): Update.
6912
6913 2011-07-12  Bruno Haible  <bruno@clisp.org>
6914
6915         * NEWS: Mention the changes.
6916
6917         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6918         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6919         (Files, Makefile.am): Update.
6920         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6921         * modules/arpa_inet (Depends-on): Update.
6922         * modules/ctype (Depends-on): Update.
6923         * modules/dirent (Depends-on): Update.
6924         * modules/fcntl-h (Depends-on): Update.
6925         * modules/glob (Depends-on): Update.
6926         * modules/iconv-h (Depends-on): Update.
6927         * modules/inttypes-incomplete (Depends-on): Update.
6928         * modules/langinfo (Depends-on): Update.
6929         * modules/locale (Depends-on): Update.
6930         * modules/math (Depends-on): Update.
6931         * modules/netdb (Depends-on): Update.
6932         * modules/poll-h (Depends-on): Update.
6933         * modules/pty (Depends-on): Update.
6934         * modules/search (Depends-on): Update.
6935         * modules/signal (Depends-on): Update.
6936         * modules/spawn (Depends-on): Update.
6937         * modules/stdio (Depends-on): Update.
6938         * modules/stdlib (Depends-on): Update.
6939         * modules/string (Depends-on): Update.
6940         * modules/strings (Depends-on): Update.
6941         * modules/sys_file (Depends-on): Update.
6942         * modules/sys_ioctl (Depends-on): Update.
6943         * modules/sys_select (Depends-on): Update.
6944         * modules/sys_socket (Depends-on): Update.
6945         * modules/sys_stat (Depends-on): Update.
6946         * modules/sys_time (Depends-on): Update.
6947         * modules/sys_times (Depends-on): Update.
6948         * modules/sys_utsname (Depends-on): Update.
6949         * modules/sys_wait (Depends-on): Update.
6950         * modules/termios (Depends-on): Update.
6951         * modules/time (Depends-on): Update.
6952         * modules/unistd (Depends-on): Update.
6953         * modules/wchar (Depends-on): Update.
6954         * modules/wctype-h (Depends-on): Update.
6955         * MODULES.html.sh (Support for building libraries and executables):
6956         Update.
6957
6958         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6959         * modules/snippet/unused-parameter: Renamed from
6960         modules/unused-parameter.
6961         (Files, Makefile.am): Update.
6962         * build-aux/snippet/unused-parameter.h: Renamed from
6963         build-aux/unused-parameter.h.
6964         * modules/selinux-h (Depends-on): Update.
6965         * modules/unistr/base (Depends-on): Update.
6966         * MODULES.html.sh (Core language properties): Update.
6967
6968         Rename module 'link-warning' to 'snippet/link-warning'.
6969         * modules/snippet/link-warning: Renamed from modules/link-warning.
6970         (Files, Makefile.am): Update.
6971         * build-aux/snippet/link-warning.h: Renamed from
6972         build-aux/link-warning.h.
6973         * MODULES.html.sh (Support for building libraries and executables):
6974         Update.
6975
6976         Rename module 'c++defs' to 'snippet/c++defs'.
6977         * modules/snippet/c++defs: Renamed from modules/c++defs.
6978         (Files, Makefile.am): Update.
6979         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6980         * modules/arpa_inet (Depends-on): Update.
6981         * modules/ctype (Depends-on): Update.
6982         * modules/dirent (Depends-on): Update.
6983         * modules/fcntl-h (Depends-on): Update.
6984         * modules/glob (Depends-on): Update.
6985         * modules/iconv-h (Depends-on): Update.
6986         * modules/langinfo (Depends-on): Update.
6987         * modules/locale (Depends-on): Update.
6988         * modules/math (Depends-on): Update.
6989         * modules/netdb (Depends-on): Update.
6990         * modules/poll-h (Depends-on): Update.
6991         * modules/pty (Depends-on): Update.
6992         * modules/search (Depends-on): Update.
6993         * modules/signal (Depends-on): Update.
6994         * modules/spawn (Depends-on): Update.
6995         * modules/stdio (Depends-on): Update.
6996         * modules/stdlib (Depends-on): Update.
6997         * modules/string (Depends-on): Update.
6998         * modules/strings (Depends-on): Update.
6999         * modules/sys_ioctl (Depends-on): Update.
7000         * modules/sys_select (Depends-on): Update.
7001         * modules/sys_socket (Depends-on): Update.
7002         * modules/sys_stat (Depends-on): Update.
7003         * modules/sys_time (Depends-on): Update.
7004         * modules/sys_wait (Depends-on): Update.
7005         * modules/termios (Depends-on): Update.
7006         * modules/time (Depends-on): Update.
7007         * modules/unistd (Depends-on): Update.
7008         * modules/wchar (Depends-on): Update.
7009         * modules/wctype-h (Depends-on): Update.
7010
7011         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7012         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7013         (Files, Makefile.am): Update.
7014         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7015         * modules/argv-iter (Depends-on): Update.
7016         * modules/arpa_inet (Depends-on): Update.
7017         * modules/dirent (Depends-on): Update.
7018         * modules/fcntl-h (Depends-on): Update.
7019         * modules/fnmatch (Depends-on): Update.
7020         * modules/getopt-posix (Depends-on): Update.
7021         * modules/glob (Depends-on): Update.
7022         * modules/iconv-h (Depends-on): Update.
7023         * modules/inttypes-incomplete (Depends-on): Update.
7024         * modules/locale (Depends-on): Update.
7025         * modules/math (Depends-on): Update.
7026         * modules/netdb (Depends-on): Update.
7027         * modules/search (Depends-on): Update.
7028         * modules/signal (Depends-on): Update.
7029         * modules/spawn (Depends-on): Update.
7030         * modules/stdio (Depends-on): Update.
7031         * modules/stdlib (Depends-on): Update.
7032         * modules/string (Depends-on): Update.
7033         * modules/strings (Depends-on): Update.
7034         * modules/sys_socket (Depends-on): Update.
7035         * modules/sys_stat (Depends-on): Update.
7036         * modules/sys_time (Depends-on): Update.
7037         * modules/sys_times (Depends-on): Update.
7038         * modules/sys_utsname (Depends-on): Update.
7039         * modules/time (Depends-on): Update.
7040         * modules/unistd (Depends-on): Update.
7041         * modules/wchar (Depends-on): Update.
7042         * MODULES.html.sh (Support for building libraries and executables):
7043         Update.
7044
7045 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7046
7047         Improvements on _Noreturn and related modules.
7048
7049         modules/_Exit-tests: test _Noreturn too
7050         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7051         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7052         (main): Use them.
7053
7054         stdnoreturn, stdnoreturn-tests: remove modules
7055         They're not needed here and a bit premature for use elsewhere.  See
7056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7057         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7058         * tests/test-stdnoreturn.c: Remove files.
7059         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7060         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7061         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7062         and using noreturn.
7063         * modules/openat, modules/sigpipe-die, modules/xalloc:
7064         * modules/xmemdup0, modules/xstrtol:
7065         Remove dependency on stdnoreturn.
7066
7067         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7068         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7069         Reparenthesize to avoid GCC warning.
7070         Support Microsoft's syntax.
7071         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7072
7073         _Noreturn-tests: remove module
7074         * modules/_Noreturn-tests: Remove.
7075         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7076         * tests/test-_Noreturn.c: Remove.
7077         * tests/test-stdnoreturn.c: Merge from the old
7078         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7079
7080 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7081
7082         _Noreturn, stdnoreturn, and related modules.
7083
7084         * top/maint.mk: Adjust to new noreturn support.
7085         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7086         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7087
7088         xalloc: use stdnoreturn.h
7089         * lib/xalloc.h: Include <stdnoreturn.h>.
7090         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7091         * modules/xalloc (Depends-on): Add stdnoreturn.
7092
7093         xstrtol: use stdnoreturn.h
7094         * lib/xstrtol.h: Include <stdnoreturn.h>.
7095         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7096         * modules/xstrtol (Depends-on): Add stdnoreturn.
7097
7098         xmemdup0: use stdnoreturn.h
7099         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7100         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7101         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7102
7103         sigpipe-die: use stdnoreturn.h
7104         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7105         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7106         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7107
7108         openat: use stdnoreturn.h
7109         * lib/openat.h: Include <stdnoreturn.h>.
7110         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7111         * modules/openat (Depends-on): Add stdnoreturn.
7112
7113         * lib/openat-die.c (openat_save_fail): Modernize comment.
7114
7115         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7116
7117         * lib/glthread/thread.h: Modernize comment.
7118
7119         obstack: use _Noreturn
7120         * lib/obstack.c (__attribute__): Remove macro.
7121         (print_and_abort): Use _Noreturn.
7122
7123         c-stack: use _Noreturn
7124         * lib/c-stack.c (die, overflow_handler, segv_handler):
7125         Use _Noreturn rather than __attribute__((noreturn)).
7126
7127         argmatch-tests, exclude_tests: use _Noreturn
7128         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7129         Remove.
7130         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7131
7132         stdlib: use _Noreturn
7133         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7134         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7135         * modules/stdlib (Depends-on): Add _Noreturn.
7136         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7137
7138         stdnoreturn-tests: new module
7139         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7140
7141         stdnoreturn: new module
7142         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7143         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7144
7145         _Noreturn-tests: new module
7146         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7147
7148         _Noreturn: new module
7149         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7150         New section, mentioning it.
7151         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7152
7153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7154
7155 2011-07-11  Eric Blake  <eblake@redhat.com>
7156
7157         ffs: new module
7158         * modules/ffs: New file.
7159         * m4/ffs.m4: Likewise.
7160         * lib/ffs.c: Likewise.
7161         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7162         * modules/strings (Makefile.am): Substitute witness.
7163         (Depends-on): Add c++defs.
7164         * lib/strings.in.h (ffs): Declare.
7165         * modules/ffs-tests: New test file.
7166         * tests/test-ffs.c: Test new module.
7167         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7168         * doc/posix-functions/ffs.texi (ffs): Likewise.
7169
7170         regex: avoid compiler warning
7171         * lib/regex.c (includes): Include <strings.h>, for use of
7172         strcasecmp in regcomp.c.
7173         Reported by Joachim Schmitz.
7174
7175 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7176
7177         stdint: respect system's intmax_t if INTMAX_MAX
7178         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7179         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7180         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7181         long but int64_t is long long, and where we will clash with the
7182         system intmax_t if we override it.  See
7183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7184         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7185         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7186         similarly for UINTMAX_C.
7187
7188 2011-07-08  Bruno Haible  <bruno@clisp.org>
7189
7190         pthread_sigmask tests: Avoid a compiler warning.
7191         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7192         non-zero.
7193
7194         sigprocmask tests: A better way to avoid a compiler warning.
7195         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7196         (main): Complain if system() returns non-zero.
7197         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7198
7199 2011-07-08  Bruno Haible  <bruno@clisp.org>
7200
7201         pthread_sigmask: Work around IRIX bug.
7202         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7203         bug.
7204         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7205         there may be unblocked pending signals.
7206         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7207
7208 2011-07-08  Bruno Haible  <bruno@clisp.org>
7209
7210         pthread_sigmask: Work around Cygwin bug.
7211         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7212         bug.
7213         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7214         the system's pthread_sigmask function.
7215         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7216
7217 2011-07-08  Bruno Haible  <bruno@clisp.org>
7218
7219         pthread_sigmask: Work around bug in single-threaded implementation.
7220         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7221         FreeBSD, HP-UX, Solaris bug.
7222         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7223         * lib/pthread_sigmask.c: Include <stddef.h>.
7224         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7225         the system's pthread_sigmask function.
7226         * modules/pthread_sigmask (configure.ac): Invoke
7227         gl_PREREQ_PTHREAD_SIGMASK.
7228         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7229         HP-UX, Solaris.
7230
7231 2011-07-08  Eric Blake  <eblake@redhat.com>
7232
7233         test-sigprocmask: avoid compiler warning
7234         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7235         * tests/test-sigprocmask.c (main): Use it to silence warning.
7236         Reported by Jim Meyering.
7237
7238         test-snprintf: avoid compiler warning
7239         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7240         * tests/test-vsnprintf.c (main): Likewise.
7241         Reported by Jim Meyering.
7242
7243 2011-07-08  Bruno Haible  <bruno@clisp.org>
7244
7245         Tests for module 'pthread_sigmask'.
7246         * modules/pthread_sigmask-tests: New file.
7247         * tests/test-pthread_sigmask1.c: New file, based on
7248         tests/test-sigprocmask.c.
7249         * tests/test-pthread_sigmask2.c: New file.
7250
7251 2011-07-08  Jim Meyering  <meyering@redhat.com>
7252
7253         test-getopt.h: avoid warning about an unused variable
7254         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7255
7256 2011-07-07  Jim Meyering  <meyering@redhat.com>
7257
7258         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7259         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7260         now that it no longer contains leading TABs.
7261         Remove unused "url=FIXME" statement.
7262
7263 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7264
7265         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7266         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7267         When gl_THREADLIB is not in use, assume that the POSIX sematics
7268         are desired.  This is better for Emacs, which uses POSIX semantics
7269         on GNUish and/or POSIXish platforms, and does not use threads at
7270         all otherwise.
7271
7272         pthread_sigmask: fix typo when testing for libraries
7273         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7274         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7275
7276 2011-07-08  Eric Blake  <eblake@redhat.com>
7277
7278         fts: introduce FTS_NOATIME
7279         * lib/fts_.h (FTS_NOATIME): New bit flag.
7280         (FTS_OPTIONMASK): Adjust.
7281         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7282         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7283
7284 2011-07-08  Bruno Haible  <bruno@clisp.org>
7285
7286         Tests for module 'thread'.
7287         * modules/thread-tests: New file.
7288         * tests/test-thread_self.c: New file.
7289         * tests/test-thread_create.cc: New file.
7290
7291 2011-07-08  Bruno Haible  <bruno@clisp.org>
7292
7293         thread: Avoid gcc warnings when using gl_thread_self().
7294         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7295         'void *'.
7296         (gl_thread_self_pointer): Update.
7297
7298 2011-07-07  Bruno Haible  <bruno@clisp.org>
7299
7300         signal-c++-tests: Check declaration of pthread_sigmask.
7301         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7302         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7303         $(LIB_PTHREAD_SIGMASK).
7304
7305 2011-07-07  Bruno Haible  <bruno@clisp.org>
7306
7307         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7308         * lib/signal.in.h (pthread_sigmask): Override if
7309         REPLACE_PTHREAD_SIGMASK is 1.
7310         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7311         REPLACE_PTHREAD_SIGMASK.
7312         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7313         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7314         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7315         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7316         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7317
7318 2011-07-07  Bruno Haible  <bruno@clisp.org>
7319
7320         pthread_sigmask: Ensure declaration in <signal.h>.
7321         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7322         include <pthread.h>.
7323         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7324         problem.
7325
7326 2011-07-07  Bruno Haible  <bruno@clisp.org>
7327
7328         pthread_sigmask: Document the module.
7329         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7330
7331 2011-07-07  Bruno Haible  <bruno@clisp.org>
7332
7333         pthread_sigmask: Follow gnulib conventions.
7334         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7335         gl_PTHREAD_SIGMASK.
7336         * modules/pthread_sigmask (configure.ac): Update.
7337
7338 2011-07-07  Bruno Haible  <bruno@clisp.org>
7339
7340         pthread_sigmask: Make declaration C++ safe.
7341         * lib/signal.in.h: In two special conditions, just do an #include_next.
7342         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7343         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7344         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7345         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7346         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7347         not REPLACE_PTHREAD_MASK.
7348         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7349         not REPLACE_PTHREAD_MASK.
7350         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7351
7352 2011-07-07  Bruno Haible  <bruno@clisp.org>
7353
7354         pthread_sigmask: Fix return value.
7355         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7356         * lib/pthread_sigmask.c: New file.
7357         * modules/pthread_sigmask (Files): Add it.
7358         (configure.ac): Invoke AC_LIBOBJ.
7359
7360 2011-07-07  Eric Blake  <eblake@redhat.com>
7361
7362         getopt: more portable argv creation
7363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7364         const, use char arrays rather than strings.
7365         Suggested by Paul Eggert.
7366
7367 2011-07-07  Bruno Haible  <bruno@clisp.org>
7368
7369         Tests for module 'sigprocmask'.
7370         * modules/sigprocmask-tests: New file.
7371         * tests/test-sigprocmask.c: New file.
7372
7373 2011-07-07  Bruno Haible  <bruno@clisp.org>
7374
7375         float tests: Tweak.
7376         * tests/test-float.c (main): Tweak skip message.
7377
7378 2011-07-07  Eric Blake  <eblake@redhat.com>
7379
7380         getopt: avoid compiler warning during configure
7381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7382         assigning string literals to non-const pointer.
7383
7384         getopt-gnu: avoid crash in glibc getopt
7385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7386         * tests/test-getopt.h (test_getopt): Enhance test.
7387         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7388         * doc/posix-functions/getopt.texi (getopt): Document it.
7389         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7390         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7391         Likewise.
7392
7393 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7394
7395         getopt: handle W; without long options in getopt [BZ #12922]
7396         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7397         but no long options are defined, just return 'W'.
7398
7399 2011-07-07  Bruno Haible  <bruno@clisp.org>
7400
7401         Avoid literal tabs.
7402         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7403         variable containing a tab instead of a literal tab.
7404         Reported by Jim Meyering.
7405
7406 2011-07-07  Bruno Haible  <bruno@clisp.org>
7407
7408         Comments.
7409         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7410
7411 2011-07-06  Bruno Haible  <bruno@clisp.org>
7412
7413         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7414         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7415         <winsock2.h>.
7416         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7417         lib/sys_socket.in.h.
7418         (close, gethostname): Hide declarations from <winsock2.h>.
7419         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7420         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7421         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7422         (select): Don't override if gnulib's <sys/select.h> was already
7423         included.
7424         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7425         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7426         setsockopt, shutdown, select): Tweak indentation.
7427
7428 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7429
7430         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7431         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7432         in an application that does not use the sys_select module.
7433
7434 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7435
7436         poll: do not return 0 on timeout=-1
7437         * lib/poll.c: Loop with yield if no events occured
7438
7439 2011-07-06  Eric Blake  <eblake@redhat.com>
7440
7441         pthread_sigmask: always replace when not using pthread
7442         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7443         replacement when using some threading other than pthread.  Fix
7444         logic bug.
7445
7446 2011-07-06  Bruno Haible  <bruno@clisp.org>
7447
7448         Comments.
7449         * m4/printf.m4: Update comments about mingw.
7450
7451 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7452
7453         sys_select: define sigset_t more portably
7454         * lib/sys_select.in.h: Always include <sys/types.h>, since
7455         we now need sigset_t and mingw defines it there.
7456         Include <signal.h> before split inclusion guard, to avoid
7457         mishaps on Solaris, whose <signal.h> eventually includes us.
7458         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7459         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7460         which come from ...
7461         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7462         gl_CHECK_TYPE_SIGSET_T.
7463         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7464         does the real work.
7465         * modules/sys_select (Depends-on): Add 'signal'.
7466
7467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7468         Suggested by Bruno Haible.
7469
7470         pselect: Use pthread_sigmask, not sigprocmask.
7471         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7472         multithreaded apps better than sigprocmask does.
7473         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7474         sigprocmask directly.
7475
7476 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7477
7478         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7479         Don't #undef,  since we don't need any underlying pselect.
7480         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7481         (Depends-on): Add select.
7482         (Link): Add $(LIBSOCKET).
7483         These changes suggested by Bruno Haible.
7484
7485         pselect: document better
7486         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7487         * doc/posix-functions/pselect.texi (pselect): Document new module.
7488
7489         pthread_sigmask: new module
7490         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7491         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7492         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7493         This is done only as a macro; I don't know how well that'll
7494         work for C++.  Move <sys/types.h> include before the include_next,
7495         to avoid mishap on Solaris.
7496         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7497         * modules/signal (Makefile.am): Substitute the check's results.
7498         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7499
7500         test-pselect: new module
7501         * modules/pselect-tests, tests/test-pselect.c: New files.
7502         * tests/test-select.c, tests/test-sys_select-c++.cc:
7503         If TEST_PSELECT is defined, test pselect instead of testing select.
7504
7505         * tests/test-sys_select.c (sigset_t): Test for it, too.
7506         Suggested by Bruno Haible.
7507
7508 2011-07-05  Eric Blake  <eblake@redhat.com>
7509
7510         snprintf: guarantee %1$d, for libintl
7511         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7512         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7513         * doc/posix-functions/snprintf.texi (snprintf): Update.
7514         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7515         * tests/test-snprintf.c (main): Enhance test.
7516         * tests/test-vsnprintf.c (main): Likewise.
7517
7518 2011-07-05  Jim Meyering  <meyering@redhat.com>
7519
7520         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7521         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7522         per Bruno's request, to accommodate this idiom (no space after "#")
7523         even when the function is inside an #if block:
7524         char *
7525         gets (char *s)
7526         #undef gets
7527         {
7528           ...
7529         }
7530
7531 2011-07-04  Jim Meyering  <meyering@redhat.com>
7532
7533         maint: indent with spaces, not TABs, and add a rule to check this
7534         * tests/test-userspec.c: Indent with spaces, not TABs.
7535         * tests/test-argp.c: Likewise.
7536         * tests/test-c-stack2.sh: Likewise.
7537         * tests/test-parse-duration.sh: Likewise
7538         * m4/strtod.m4: Likewise.
7539         * m4/alloca.m4: Likewise.
7540         * m4/pselect.m4: Likewise.
7541         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7542
7543 2011-07-03  Jim Meyering  <meyering@redhat.com>
7544
7545         maint.mk: correct omissions in prohibit_argmatch_without_use check
7546         This rule would mistakenly report that argmatch.h is included without
7547         use even when both the argmatch and invalid_arg macro were used.
7548         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7549         of argmatch and invalid_arg.
7550
7551 2011-07-03  Bruno Haible  <bruno@clisp.org>
7552
7553         Comments about EINTR.
7554         * lib/safe-read.h: Explain the purpose of this module.
7555         * lib/safe-write.h: Likewise.
7556         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7557         module.
7558         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7559         module.
7560         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7561
7562 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         xnanosleep: Rewrite to use new dtotimespec module.
7565         It has the conversion code that used to be in xnanosleep.
7566         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7567         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7568         (TIME_T_MAX): Remove.
7569         (xnanosleep): Rewrite in terms of dtotimespec.
7570         * modules/xnanosleep (Depends-on): Add dtotimespec.
7571         Remove intprops, stdbool.
7572
7573         timespec-add, timespec-sub: new modules
7574         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7575         * lib/timespec-add.c, lib/timespec-sub.c:
7576         * modules/timespec-add, modules/timespec-sub: New files.
7577
7578         dtotimespec: new module
7579         * lib/timespec.h (dtotimespec): New decl.
7580         * lib/dtotimespec.c, modules/dtotimespec: New files.
7581
7582         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7583
7584         pselect: new module
7585         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7586         (pselect): New decls.
7587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7588         since the standard pselect decl uses 'restrict'.
7589         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7590         HAVE_PSELECT, REPLACE_PSELECT.
7591         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7592         HAVE_PSELECT, REPLACE_PSELECT.
7593         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7594
7595         sys_select: don't depend on sys_socket
7596         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7598         This fix works on GNU and GNU-like platforms, but has not been tested
7599         on native Windows.
7600         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7601         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7602         gl_HEADER_SYS_SOCKET.
7603         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7604         gl_PREREQ_SYS_H_WINSOCK2.
7605
7606 2011-06-29  Eric Blake  <eblake@redhat.com>
7607
7608         pipe2: fix C89 compile problem
7609         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7610         Reported by Bruno Haible.
7611
7612         pipe, pipe2: don't corrupt fd on error
7613         * lib/pipe.c (pipe): Leave fd unchanged on error.
7614         * lib/pipe2.c (pipe2): Likewise.
7615         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7616         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7617
7618 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7619
7620         mmap-anon: do not use regular expressions inadvertently
7621         * m4/mmap-anon.m4: Remove trailing period from strings sought
7622         in the output.
7623
7624 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7625
7626         nanosleep: fix integer overflow problem
7627         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7628         arithmetic wraps around on overflow.
7629
7630         nanosleep: simplify carrying
7631         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7632         first call to the underyling nanosleep, not for the last one.
7633         This doesn't fix any bugs, but it simplifies the computation of
7634         the remaining delay.  Found while auditing integer overflow issues.
7635
7636         dup2: remove test for existence of fcntl
7637         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7638         "#if HAVE_FCNTL", in the configure-time test program.
7639         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7640         and therefore speeds up "configure" a bit.  Found while
7641         adding the dup2 module to Emacs.
7642
7643 2011-06-24  Eric Blake  <eblake@redhat.com>
7644
7645         maint.mk: enhance useless header checks
7646         * top/maint.mk (_sc_header_without_use): Check both include
7647         styles.
7648         (sc_prohibit_assert_without_use)
7649         (sc_prohibit_close_stream_without_use)
7650         (sc_prohibit_getopt_without_use)
7651         (sc_prohibit_quotearg_without_use)
7652         (sc_prohibit_quote_without_use)
7653         (sc_prohibit_long_options_without_use)
7654         (sc_prohibit_inttostr_without_use)
7655         (sc_prohibit_ignore_value_without_use)
7656         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7657         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7658         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7659         (sc_prohibit_hash_pjw_without_use)
7660         (sc_prohibit_safe_read_without_use)
7661         (sc_prohibit_argmatch_without_use)
7662         (sc_prohibit_canonicalize_without_use)
7663         (sc_prohibit_root_dev_ino_without_use)
7664         (sc_prohibit_openat_without_use)
7665         (sc_prohibit_c_ctype_without_use)
7666         (sc_prohibit_signal_without_use)
7667         (sc_prohibit_stdio--_without_use)
7668         (sc_prohibit_stdio-safer_without_use)
7669         (sc_prohibit_strings_without_use)
7670         (sc_prohibit_intprops_without_use)
7671         (sc_prohibit_stddef_without_use)
7672         (sc_prohibit_xfreopen_without_use): Update clients.
7673
7674 2011-06-24  Jim Meyering  <meyering@redhat.com>
7675
7676         syntax-check: keep one maint.mk rule in sync with its header
7677         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7678         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7679         I prefer to avoid temporary files here, so use <(...), but that
7680         is not supported by /bin/sh, so...
7681         (SHELL): Define to /bin/bash.
7682
7683 2011-06-24  Eric Blake  <eblake@redhat.com>
7684
7685         maint.mk: update sc_prohibit_intprops_without_use
7686         * top/maint.mk (_intprops_names): Match recent changes.
7687
7688 2011-06-24  Bruno Haible  <bruno@clisp.org>
7689
7690         strerror-override: No-op tweak.
7691         * lib/strerror-override.h (strerror_override): Reorder conditions,
7692         for consistency with lib/strerror-override.c.
7693
7694 2011-06-23  Eric Blake  <eblake@redhat.com>
7695
7696         maint.mk: test further PATH_MAX issues
7697         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7698         (sc_prohibit_path_max_allocation): ...and also test alloca.
7699         Suggested by Jim Meyering.
7700
7701 2011-06-22  Eric Blake  <eblake@redhat.com>
7702
7703         maint.mk: add syntax-check to avoid char[PATH_MAX]
7704         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7705
7706         stat: be robust to PATH_MAX definition
7707         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7708         * modules/stat (Depends-on): Add verify.
7709
7710         link: work around IRIX bug
7711         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7712         * lib/link.c (rpl_link): Work around it.
7713         * tests/test-link.h (test_link): Enhance test.
7714         * doc/posix-functions/link.texi (link): Document the bug.
7715
7716         getopt: silence clang warning
7717         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7718         dereference.
7719         Reported by Gustavo Martin Domato.
7720
7721 2011-06-22  Jim Meyering  <meyering@redhat.com>
7722
7723         bootstrap: do not insert a blank line into each .gitignore file
7724         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7725
7726 2011-06-21  Eric Blake  <eblake@redhat.com>
7727
7728         perror: test for output mismatch
7729         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7730         perror on IRIX.
7731
7732         strerror_r: fix OpenBSD behavior on out-of-range
7733         * lib/strerror_r.c (strerror_r): Always use maximal string.
7734         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7735
7736         strerror_r: fix OpenBSD behavior on 0
7737         * lib/strerror-override.c (strerror_override): Also override 0
7738         when needed.
7739         * lib/strerror-override.h (strerror_override): Likewise.
7740         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7741         earlier.
7742         * lib/strerror_r.c (strerror_r): Likewise.
7743         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7744         behavior...
7745         (gl_FUNC_STRERROR_0): ...into new macro.
7746         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7747         is overridden.
7748         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7749         * modules/strerror-override (Files): Add strerror.m4.
7750         (configure.ac): Also provide override for 0 when needed.
7751         * doc/posix-functions/strerror.texi (strerror): Document this.
7752         * doc/posix-functions/perror.texi (perror): Likewise.
7753
7754         perror: adjust array size
7755         * modules/perror (Depends-on): Add strerror-override.
7756         * lib/perror.c (perror): Use it to avoid magic number.
7757
7758         strerror-override: reduce size
7759         * lib/strerror-override.c (strerror_override): Use fewer lines.
7760
7761 2011-06-20  Bruno Haible  <bruno@clisp.org>
7762
7763         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7764         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7765
7766 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7767
7768         alloca: port to compilers that can optimize like GCC 4.6.0
7769         * lib/alloca.c (find_stack_direction): New signature, taken from
7770         Autoconf git.  This works with GCC 4.6.0.  This code should never
7771         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7772         be used with other compilers that optimize as well as GCC 4.6.0 does.
7773         (alloca): Adjust to new signature.
7774         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7775         New macro, which patches Autoconf in a similar way.
7776
7777         c-stack: stop worrying about stack direction
7778         * lib/c-stack.c (find_stack_direction): Remove.
7779         (segv_handler): Don't worry about stack direction growth, as it's
7780         too much of a pain to configure this correctly, given how compilers
7781         are optimizing-away our stack-growth detection code.  Instead, assume
7782         that any access to just before or just after the stack is OK.
7783         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7784         Don't require AC_FUNC_ALLOCA; no longer needed.
7785
7786 2011-06-20  Eric Blake  <eblake@redhat.com>
7787
7788         test-stat: don't allocate PATH_MAX bytes
7789         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7790         PATH_MAX-sized buffer.
7791         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7792         * modules/stat-tests (Depends-on): Likewise.
7793         * tests/test-fstatat.c (includes): Drop pathmax.h.
7794         * tests/test-stat.c (includes): Likewise.
7795         Reported by Bruno Haible.
7796
7797 2011-06-20  Bruno Haible  <bruno@clisp.org>
7798
7799         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7800         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7801         * lib/float.c: New file.
7802         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7803         REPLACE_FLOAT_LDBL.
7804         * modules/float (Files): Add lib/float.c.
7805         (configure.ac): Invoke AC_LIBOBJ.
7806         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7807
7808 2011-06-20  Bruno Haible  <bruno@clisp.org>
7809
7810         Tests for module 'float'.
7811         * modules/float-tests: New file.
7812         * tests/test-float.c: New file.
7813
7814 2011-06-19  Bruno Haible  <bruno@clisp.org>
7815
7816         isinf: Coding style.
7817         * lib/isinf.c: Use GNU coding style.
7818
7819 2011-06-19  Bruno Haible  <bruno@clisp.org>
7820
7821         linkat test: Avoid test failure on AIX 7.1.
7822         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7823         * tests/test-link.h (test_link): Likewise.
7824
7825 2011-06-19  Bruno Haible  <bruno@clisp.org>
7826
7827         pread test: Avoid test failure on OpenBSD 4.9.
7828         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7829
7830 2011-06-19  Bruno Haible  <bruno@clisp.org>
7831
7832         sprintf-posix: Fix test failure on AIX 7.1.
7833         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7834         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7835         on AIX.
7836         * doc/posix-functions/fprintf.texi: Likewise.
7837         * doc/posix-functions/printf.texi: Likewise.
7838         * doc/posix-functions/snprintf.texi: Likewise.
7839         * doc/posix-functions/sprintf.texi: Likewise.
7840         * doc/posix-functions/vdprintf.texi: Likewise.
7841         * doc/posix-functions/vfprintf.texi: Likewise.
7842         * doc/posix-functions/vprintf.texi: Likewise.
7843         * doc/posix-functions/vsnprintf.texi: Likewise.
7844         * doc/posix-functions/vsprintf.texi: Likewise.
7845
7846 2011-06-19  Bruno Haible  <bruno@clisp.org>
7847
7848         roundl-ieee: Fix test failure on AIX 7.1.
7849         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7850         * doc/posix-functions/roundl.texi: Mention problem with negative
7851         arguments.
7852
7853 2011-06-19  Bruno Haible  <bruno@clisp.org>
7854
7855         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7856         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7857         * doc/posix-functions/round.texi: Mention problem with negative
7858         arguments.
7859         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7860
7861 2011-06-19  Bruno Haible  <bruno@clisp.org>
7862
7863         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7865         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7866         * doc/posix-functions/roundf.texi: Mention problem with negative
7867         arguments.
7868         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7869
7870 2011-06-19  Bruno Haible  <bruno@clisp.org>
7871
7872         ceilf-ieee: Work around bug on MacOS X 10.5.
7873         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7874
7875         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7876         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7877         IEEE compliant, avoid compiler optimizations.
7878         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7879         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7880         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7881         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7882         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7883         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7885         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7886         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7887         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7888
7889 2011-06-19  Bruno Haible  <bruno@clisp.org>
7890
7891         ceilf-ieee: Work around bug on AIX 7.1.
7892         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7893         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7894
7895 2011-06-19  Bruno Haible  <bruno@clisp.org>
7896
7897         ceil-ieee: Work around bug on AIX 7.1.
7898         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7899         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7900
7901 2011-06-18  Bruno Haible  <bruno@clisp.org>
7902
7903         fsync test: Avoid test failure on MacOS X and AIX.
7904         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7905         EINVAL.
7906
7907 2011-06-18  Bruno Haible  <bruno@clisp.org>
7908
7909         openat, fdopendir tests: Fix link errors.
7910         * modules/openat-tests (Depends-on): Add progname.
7911         * modules/fdopendir-tests (Depends-on): Likewise.
7912         * tests/test-fchownat.c: Include progname.h.
7913         (main): Call set_program_name.
7914         * tests/test-fstatat.c: Include progname.h.
7915         (main): Call set_program_name.
7916         * tests/test-mkdirat.c: Include progname.h.
7917         (main): Call set_program_name.
7918         * tests/test-openat.c: Include progname.h.
7919         (main): Call set_program_name.
7920         * tests/test-unlinkat.c: Include progname.h.
7921         (main): Call set_program_name.
7922         * tests/test-fdopendir.c: Include progname.h.
7923         (main): Call set_program_name.
7924
7925 2011-06-18  Bruno Haible  <bruno@clisp.org>
7926
7927         Doc update.
7928         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7929         HP-UX.
7930         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7931
7932 2011-06-18  Bruno Haible  <bruno@clisp.org>
7933
7934         getcwd tests: Avoid compilation error on HP-UX 11.31.
7935         * modules/getcwd-tests (Depends-on): Add pathmax.
7936         * tests/test-getcwd.c: Include pathmax.h.
7937
7938 2011-06-18  Bruno Haible  <bruno@clisp.org>
7939
7940         isfinite, isinf: Fix link error on AIX 6 and 7.
7941         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7942         needed, also test the macro with a 'float' argument.
7943         * m4/isinf.m4 (gl_ISINF): Likewise.
7944
7945 2011-06-18  Bruno Haible  <bruno@clisp.org>
7946
7947         getloadavg: Don't clobber LIBS. Regression from previous commit.
7948         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7949         AC_CHECK_LIB from here...
7950         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7951         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7952         gl_func_getloadavg_done.
7953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7954
7955 2011-06-18  Bruno Haible  <bruno@clisp.org>
7956
7957         clean-temp: Improve documentation.
7958         * lib/clean-temp.h: Explain better how to use this module.
7959         Reported by John Darrington <john@darrington.wattle.id.au>.
7960
7961 2011-06-17  Bruno Haible  <bruno@clisp.org>
7962
7963         pread, pwrite: Avoid cc warning on AIX.
7964         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7965         (pwrite): Likewise.
7966
7967 2011-06-17  Bruno Haible  <bruno@clisp.org>
7968
7969         spawn-pipe tests: Fix link error.
7970         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7972
7973 2011-06-17  Bruno Haible  <bruno@clisp.org>
7974
7975         Tests: Remove unnecessary dependency.
7976         * modules/canonicalize-tests (Depends-on): Remove progname.
7977         * modules/chown-tests (Depends-on): Likewise.
7978         * modules/dirname-tests (Depends-on): Likewise.
7979         * modules/fdopendir-tests (Depends-on): Likewise.
7980         * modules/fdutimensat-tests (Depends-on): Likewise.
7981         * modules/hash-tests (Depends-on): Likewise.
7982         * modules/lchown-tests (Depends-on): Likewise.
7983         * modules/linkat-tests (Depends-on): Likewise.
7984         * modules/renameat-tests (Depends-on): Likewise.
7985         * modules/spawn-pipe-tests (Depends-on): Likewise.
7986         * modules/utimensat-tests (Depends-on): Likewise.
7987
7988 2011-06-17  Bruno Haible  <bruno@clisp.org>
7989
7990         spawn-pipe tests: Fix link error.
7991         * tests/test-spawn-pipe-child.c: Undefine fflush.
7992
7993 2011-06-17  Bruno Haible  <bruno@clisp.org>
7994
7995         Fix tests link errors.
7996         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7997         * modules/chown-tests (Makefile.am): Don't link test-chown with
7998         LIBINTL.
7999         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8000         LIBINTL.
8001         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8002         LIBINTL.
8003         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8004         LIBINTL.
8005
8006 2011-06-16  Bruno Haible  <bruno@clisp.org>
8007
8008         crypto/gc-sha1: Fix recent regression.
8009         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8010         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8011
8012         crypto/gc-md5: Fix recent regression.
8013         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8014
8015         crypto/gc-md4: Fix recent regression.
8016         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8017         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8018
8019         crypto/gc-arctwo: Fix recent regression.
8020         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8021         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8022
8023         crypto/gc-rijndael: Fix recent regression.
8024         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8025         (configure.ac): Invoke AC_LIBOBJ here.
8026         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8028
8029         crypto/gc-hmac-sha1: Fix recent regression.
8030         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8031         (configure.ac): Invoke AC_LIBOBJ here.
8032         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8034
8035         crypto/gc-hmac-md5: Fix recent regression.
8036         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8037         (configure.ac): Invoke AC_LIBOBJ here.
8038         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8040
8041         crypto/gc-des: Fix recent regression.
8042         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8043         (configure.ac): Invoke AC_LIBOBJ here.
8044         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8046
8047         crypto/gc-arcfour: Fix recent regression.
8048         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8049         (configure.ac): Invoke AC_LIBOBJ here.
8050         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8052
8053 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8054
8055         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8056         After the 2011-05-21 change, this macro requires
8057         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8058         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8059
8060 2011-06-16  Bruno Haible  <bruno@clisp.org>
8061
8062         fprintftime: Move AC_LIBOBJ invocations to module description.
8063         * m4/fprintftime.m4: Remove file.
8064         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8065         (configure.ac): Remove gl_FPRINTFTIME call.
8066         (Makefile.am): Augment lib_SOURCES.
8067         Reported by Jim Meyering.
8068
8069 2011-06-16  Bruno Haible  <bruno@clisp.org>
8070
8071         tmpfile-safer: Finish 2011-05-23 commit.
8072         * m4/stdio-safer.m4: Really remove file.
8073         Reported by Jim Meyering.
8074
8075 2011-06-16  Bruno Haible  <bruno@clisp.org>
8076
8077         syntax-check: Fix typo.
8078         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8079         printf-posix.m4.
8080         Reported by Jim Meyering.
8081
8082 2011-06-13  Jim Meyering  <meyering@redhat.com>
8083
8084         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8085         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8086
8087 2011-05-23  Bruno Haible  <bruno@clisp.org>
8088
8089         yesno: Move AC_LIBOBJ invocations to module description.
8090         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8091         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8092
8093 2011-05-23  Bruno Haible  <bruno@clisp.org>
8094
8095         xstrtol: Move AC_LIBOBJ invocations to module description.
8096         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8097         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8098
8099 2011-05-23  Bruno Haible  <bruno@clisp.org>
8100
8101         xstrtold: Move AC_LIBOBJ invocations to module description.
8102         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8103         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8104
8105 2011-05-23  Bruno Haible  <bruno@clisp.org>
8106
8107         xstrtod: Move AC_LIBOBJ invocations to module description.
8108         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8109         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8110
8111 2011-05-23  Bruno Haible  <bruno@clisp.org>
8112
8113         xnanosleep: Move AC_LIBOBJ invocations to module description.
8114         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8115         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8116
8117 2011-05-23  Bruno Haible  <bruno@clisp.org>
8118
8119         xgetcwd: Move AC_LIBOBJ invocations to module description.
8120         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8121         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8122
8123 2011-05-23  Bruno Haible  <bruno@clisp.org>
8124
8125         xalloc: Move AC_LIBOBJ invocations to module description.
8126         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8127         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8128
8129 2011-05-23  Bruno Haible  <bruno@clisp.org>
8130
8131         write-any-file: Move AC_LIBOBJ invocations to module description.
8132         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8133         invocation.
8134         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8135
8136 2011-05-23  Bruno Haible  <bruno@clisp.org>
8137
8138         utimens: Move AC_LIBOBJ invocations to module description.
8139         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8140         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8141
8142 2011-05-23  Bruno Haible  <bruno@clisp.org>
8143
8144         utimecmp: Move AC_LIBOBJ invocations to module description.
8145         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8146         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8147
8148 2011-05-23  Bruno Haible  <bruno@clisp.org>
8149
8150         userspec: Move AC_LIBOBJ invocations to module description.
8151         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8152         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8153
8154 2011-05-23  Bruno Haible  <bruno@clisp.org>
8155
8156         unlinkdir: Move AC_LIBOBJ invocations to module description.
8157         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8158         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8159
8160 2011-05-23  Bruno Haible  <bruno@clisp.org>
8161
8162         unistd-safer: Move AC_LIBOBJ invocations to module description.
8163         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8164         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8165
8166 2011-05-23  Bruno Haible  <bruno@clisp.org>
8167
8168         tempname: Move AC_LIBOBJ invocations to module description.
8169         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8170         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8171
8172 2011-05-23  Bruno Haible  <bruno@clisp.org>
8173
8174         strftime: Move AC_LIBOBJ invocations to module description.
8175         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8176         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8177
8178 2011-05-23  Bruno Haible  <bruno@clisp.org>
8179
8180         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8181         * m4/stdlib-safer.m4: Remove file.
8182         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8183         (configure.ac): Remove gl_STDLIB_SAFER call.
8184         (Makefile.am): Augment lib_SOURCES.
8185
8186 2011-05-23  Bruno Haible  <bruno@clisp.org>
8187
8188         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8189         * m4/stdio-safer.m4: Remove file.
8190         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8191         (configure.ac): Remove gl_TMPFILE_SAFER call.
8192         (Makefile.am): Augment lib_SOURCES.
8193
8194 2011-05-23  Bruno Haible  <bruno@clisp.org>
8195
8196         popen-safer: Move AC_LIBOBJ invocations to module description.
8197         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8198         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8199         (configure.ac): Remove gl_POPEN_SAFER call.
8200         (Makefile.am): Augment lib_SOURCES.
8201
8202 2011-05-23  Bruno Haible  <bruno@clisp.org>
8203
8204         freopen-safer: Move AC_LIBOBJ invocations to module description.
8205         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8206         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8207         (configure.ac): Remove gl_FREOPEN_SAFER call.
8208         (Makefile.am): Augment lib_SOURCES.
8209
8210 2011-05-23  Bruno Haible  <bruno@clisp.org>
8211
8212         fopen-safer: Move AC_LIBOBJ invocations to module description.
8213         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8214         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8215         (configure.ac): Remove gl_FOPEN_SAFER call.
8216         (Makefile.am): Augment lib_SOURCES.
8217
8218 2011-05-23  Bruno Haible  <bruno@clisp.org>
8219
8220         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8221         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8222         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8223
8224 2011-05-23  Bruno Haible  <bruno@clisp.org>
8225
8226         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8227         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8228         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8229
8230 2011-05-23  Bruno Haible  <bruno@clisp.org>
8231
8232         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8233         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8234         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8235
8236 2011-05-23  Bruno Haible  <bruno@clisp.org>
8237
8238         settime: Move AC_LIBOBJ invocations to module description.
8239         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8240         * modules/settime (Makefile.am): Augment lib_SOURCES.
8241
8242 2011-05-23  Bruno Haible  <bruno@clisp.org>
8243
8244         savedir: Move AC_LIBOBJ invocations to module description.
8245         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8246         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8247
8248 2011-05-23  Bruno Haible  <bruno@clisp.org>
8249
8250         save-cwd: Move AC_LIBOBJ invocations to module description.
8251         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8252         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8253
8254 2011-05-23  Bruno Haible  <bruno@clisp.org>
8255
8256         same: Move AC_LIBOBJ invocations to module description.
8257         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8258         * modules/same (Makefile.am): Augment lib_SOURCES.
8259
8260 2011-05-23  Bruno Haible  <bruno@clisp.org>
8261
8262         safe-write: Move AC_LIBOBJ invocations to module description.
8263         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8264         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8265         instead of gl_SAFE_WRITE.
8266         (Makefile.am): Augment lib_SOURCES.
8267
8268 2011-05-23  Bruno Haible  <bruno@clisp.org>
8269
8270         safe-read: Move AC_LIBOBJ invocations to module description.
8271         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8272         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8273         of gl_SAFE_READ.
8274         (Makefile.am): Augment lib_SOURCES.
8275
8276 2011-05-23  Bruno Haible  <bruno@clisp.org>
8277
8278         safe-alloc: Move AC_LIBOBJ invocations to module description.
8279         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8280         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8281
8282 2011-05-23  Bruno Haible  <bruno@clisp.org>
8283
8284         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8285         * m4/rijndael.m4: Remove file.
8286         * modules/crypto/rijndael (Files): Remove it.
8287         (configure.ac): Remove gl_RIJNDAEL call.
8288         (Makefile.am): Augment lib_SOURCES.
8289
8290 2011-05-23  Bruno Haible  <bruno@clisp.org>
8291
8292         readtokens: Move AC_LIBOBJ invocations to module description.
8293         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8294         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8295
8296 2011-05-23  Bruno Haible  <bruno@clisp.org>
8297
8298         read-file: Move AC_LIBOBJ invocations to module description.
8299         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8300         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8301         of gl_FUNC_READ_FILE.
8302         (Makefile.am): Augment lib_SOURCES.
8303
8304 2011-05-23  Bruno Haible  <bruno@clisp.org>
8305
8306         quotearg: Move AC_LIBOBJ invocations to module description.
8307         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8308         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8309
8310 2011-05-23  Bruno Haible  <bruno@clisp.org>
8311
8312         quote: Move AC_LIBOBJ invocations to module description.
8313         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8314         * modules/quote (Makefile.am): Augment lib_SOURCES.
8315
8316 2011-05-23  Bruno Haible  <bruno@clisp.org>
8317
8318         posixver: Move AC_LIBOBJ invocations to module description.
8319         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8320         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8321
8322 2011-05-23  Bruno Haible  <bruno@clisp.org>
8323
8324         posixtm: Move AC_LIBOBJ invocations to module description.
8325         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8326         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         physmem: Move AC_LIBOBJ invocations to module description.
8331         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8332         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8337         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8338         invocation.
8339         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8340
8341 2011-05-23  Bruno Haible  <bruno@clisp.org>
8342
8343         mpsort: Move AC_LIBOBJ invocations to module description.
8344         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8345         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8346
8347 2011-05-23  Bruno Haible  <bruno@clisp.org>
8348
8349         modechange: Move AC_LIBOBJ invocations to module description.
8350         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8351         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8352
8353 2011-05-23  Bruno Haible  <bruno@clisp.org>
8354
8355         mkdir-p: Move AC_LIBOBJ invocations to module description.
8356         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8357         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8358
8359 2011-05-23  Bruno Haible  <bruno@clisp.org>
8360
8361         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8362         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8363         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8364
8365 2011-05-23  Bruno Haible  <bruno@clisp.org>
8366
8367         mgetgroups: Move AC_LIBOBJ invocations to module description.
8368         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8369         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8370
8371 2011-05-23  Bruno Haible  <bruno@clisp.org>
8372
8373         memxor: Move AC_LIBOBJ invocations to module description.
8374         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8375         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8376
8377 2011-05-23  Bruno Haible  <bruno@clisp.org>
8378
8379         memcoll: Move AC_LIBOBJ invocations to module description.
8380         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8381         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8382
8383 2011-05-23  Bruno Haible  <bruno@clisp.org>
8384
8385         memcasecmp: Move AC_LIBOBJ invocations to module description.
8386         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8387         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8388
8389 2011-05-23  Bruno Haible  <bruno@clisp.org>
8390
8391         crypto/md5: Move AC_LIBOBJ invocations to module description.
8392         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8393         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8394
8395 2011-05-23  Bruno Haible  <bruno@clisp.org>
8396
8397         crypto/md4: Move AC_LIBOBJ invocations to module description.
8398         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8399         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8400
8401 2011-05-23  Bruno Haible  <bruno@clisp.org>
8402
8403         crypto/md2: Move AC_LIBOBJ invocations to module description.
8404         * m4/md2.m4: Remove file.
8405         * modules/crypto/md2 (Files): Remove it.
8406         (configure.ac): Remove gl_MD2 call.
8407         (Makefile.am): Augment lib_SOURCES.
8408
8409 2011-05-23  Bruno Haible  <bruno@clisp.org>
8410
8411         long-options: Move AC_LIBOBJ invocations to module description.
8412         * m4/long-options.m4: Remove file.
8413         * modules/long-options (Files): Remove it.
8414         (configure.ac): Remove gl_LONG_OPTIONS call.
8415         (Makefile.am): Augment lib_SOURCES.
8416
8417 2011-05-23  Bruno Haible  <bruno@clisp.org>
8418
8419         i-ring: Move AC_LIBOBJ invocations to module description.
8420         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8421         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8422
8423 2011-05-23  Bruno Haible  <bruno@clisp.org>
8424
8425         idcache: Move AC_LIBOBJ invocations to module description.
8426         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8427         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8428
8429 2011-05-23  Bruno Haible  <bruno@clisp.org>
8430
8431         human: Move AC_LIBOBJ invocations to module description.
8432         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8433         * modules/human (Makefile.am): Augment lib_SOURCES.
8434
8435 2011-05-23  Bruno Haible  <bruno@clisp.org>
8436
8437         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8438         * m4/hmac-sha1.m4: Remove file.
8439         * modules/crypto/hmac-sha1 (Files): Remove it.
8440         (configure.ac): Remove gl_HMAC_SHA1 call.
8441         (Makefile.am): Augment lib_SOURCES.
8442
8443 2011-05-23  Bruno Haible  <bruno@clisp.org>
8444
8445         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8446         * m4/hmac-md5.m4: Remove file.
8447         * modules/crypto/hmac-md5 (Files): Remove it.
8448         (configure.ac): Remove gl_HMAC_MD5 call.
8449         (Makefile.am): Augment lib_SOURCES.
8450
8451 2011-05-23  Bruno Haible  <bruno@clisp.org>
8452
8453         hash: Move AC_LIBOBJ invocations to module description.
8454         * m4/hash.m4: Remove file.
8455         * modules/hash (Files): Remove it.
8456         (configure.ac): Remove gl_HASH call.
8457         (Makefile.am): Augment lib_SOURCES.
8458
8459 2011-05-23  Bruno Haible  <bruno@clisp.org>
8460
8461         hard-locale: Move AC_LIBOBJ invocations to module description.
8462         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8463         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8464
8465 2011-05-23  Bruno Haible  <bruno@clisp.org>
8466
8467         getugroups: Move AC_LIBOBJ invocations to module description.
8468         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8469         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8470
8471 2011-05-23  Bruno Haible  <bruno@clisp.org>
8472
8473         gettime: Move AC_LIBOBJ invocations to module description.
8474         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8475         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8476
8477 2011-05-23  Bruno Haible  <bruno@clisp.org>
8478
8479         getndelim2: Move AC_LIBOBJ invocations to module description.
8480         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8481         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8482
8483 2011-05-23  Bruno Haible  <bruno@clisp.org>
8484
8485         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8486         * m4/gc-pbkdf2-sha1.m4: Remove file.
8487         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8488         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8489         (Makefile.am): Augment lib_SOURCES.
8490
8491 2011-05-23  Bruno Haible  <bruno@clisp.org>
8492
8493         fts: Move AC_LIBOBJ invocations to module description.
8494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8495         * modules/fts (configure.ac): ... to here.
8496
8497 2011-05-23  Bruno Haible  <bruno@clisp.org>
8498
8499         file-type: Move AC_LIBOBJ invocations to module description.
8500         * m4/file-type.m4: Remove file.
8501         * modules/file-type (Files): Remove it.
8502         (configure.ac): Remove gl_FILE_TYPE call.
8503         (Makefile.am): Augment lib_SOURCES.
8504
8505 2011-05-23  Bruno Haible  <bruno@clisp.org>
8506
8507         filenamecat*: Respect rules for use of AC_LIBOBJ.
8508         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8509         Remove AC_LIBOBJ invocation.
8510         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8511         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8512
8513 2011-05-23  Bruno Haible  <bruno@clisp.org>
8514
8515         filemode: Move AC_LIBOBJ invocations to module description.
8516         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8517         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8518
8519 2011-05-23  Bruno Haible  <bruno@clisp.org>
8520
8521         openat-safer: Move AC_LIBOBJ invocations to module description.
8522         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8523         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8524
8525 2011-05-23  Bruno Haible  <bruno@clisp.org>
8526
8527         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8528         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8529         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8530
8531 2011-05-23  Bruno Haible  <bruno@clisp.org>
8532
8533         exclude: Move AC_LIBOBJ invocations to module description.
8534         * m4/exclude.m4: Remove file.
8535         * modules/exclude (Files): Remove it.
8536         (configure.ac): Remove gl_EXCLUDE call.
8537         (Makefile.am): Augment lib_SOURCES.
8538
8539 2011-05-23  Bruno Haible  <bruno@clisp.org>
8540
8541         dirname*: Respect rules for use of AC_LIBOBJ.
8542         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8543         invocations.
8544         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8545         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8546
8547 2011-05-23  Bruno Haible  <bruno@clisp.org>
8548
8549         dirent-safer: Move AC_LIBOBJ invocations to module description.
8550         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8551         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8552
8553 2011-05-23  Bruno Haible  <bruno@clisp.org>
8554
8555         crypto/des: Move AC_LIBOBJ invocations to module description.
8556         * m4/des.m4: Remove file.
8557         * modules/crypto/des (Files): Remove it.
8558         (configure.ac): Remove gl_DES call.
8559         (Makefile.am): Augment lib_SOURCES.
8560
8561 2011-05-23  Bruno Haible  <bruno@clisp.org>
8562
8563         cycle-check: Move AC_LIBOBJ invocations to module description.
8564         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8565         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8566
8567 2011-05-23  Bruno Haible  <bruno@clisp.org>
8568
8569         c-strtold: Move AC_LIBOBJ invocations to module description.
8570         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8571         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8572
8573 2011-05-23  Bruno Haible  <bruno@clisp.org>
8574
8575         c-strtod: Move AC_LIBOBJ invocations to module description.
8576         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8577         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8578
8579 2011-05-23  Bruno Haible  <bruno@clisp.org>
8580
8581         crc: Move AC_LIBOBJ invocations to module description.
8582         * m4/crc.m4: Remove file.
8583         * modules/crc (Files): Remove it.
8584         (configure.ac): Remove gl_CRC call.
8585         (Makefile.am): Augment lib_SOURCES.
8586
8587 2011-05-23  Bruno Haible  <bruno@clisp.org>
8588
8589         close-stream: Move AC_LIBOBJ invocations to module description.
8590         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8591         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8592
8593 2011-05-23  Bruno Haible  <bruno@clisp.org>
8594
8595         closeout: Move AC_LIBOBJ invocations to module description.
8596         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8597         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8598
8599 2011-05-23  Bruno Haible  <bruno@clisp.org>
8600
8601         closein: Move AC_LIBOBJ invocations to module description.
8602         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8603         * modules/closein (Makefile.am): Augment lib_SOURCES.
8604
8605 2011-05-23  Bruno Haible  <bruno@clisp.org>
8606
8607         cloexec: Move AC_LIBOBJ invocations to module description.
8608         * m4/cloexec.m4: Remove file.
8609         * modules/cloexec (Files): Remove it.
8610         (configure.ac): Remove gl_CLOEXEC call.
8611         (Makefile.am): Augment lib_SOURCES.
8612
8613 2011-05-23  Bruno Haible  <bruno@clisp.org>
8614
8615         check-version: Move AC_LIBOBJ invocations to module description.
8616         * m4/check-version.m4: Remove file.
8617         * modules/check-version (Files): Remove it.
8618         (configure.ac): Remove gl_CHECK_VERSION call.
8619         (Makefile.am): Augment lib_SOURCES.
8620
8621 2011-05-23  Bruno Haible  <bruno@clisp.org>
8622
8623         chdir-safer: Move AC_LIBOBJ invocations to module description.
8624         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8625         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8626
8627 2011-05-23  Bruno Haible  <bruno@clisp.org>
8628
8629         canonicalize: Move AC_LIBOBJ invocations to module description.
8630         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8631         AC_LIBOBJ invocation.
8632         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8633
8634 2011-05-23  Bruno Haible  <bruno@clisp.org>
8635
8636         canon-host: Move AC_LIBOBJ invocations to module description.
8637         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8638         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8639         instead of gl_CANON_HOST.
8640         (Makefile.am): Augment lib_SOURCES.
8641
8642 2011-05-23  Bruno Haible  <bruno@clisp.org>
8643
8644         backupfile: Move AC_LIBOBJ invocations to module description.
8645         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8646         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8647
8648 2011-05-23  Bruno Haible  <bruno@clisp.org>
8649
8650         argmatch: Move AC_LIBOBJ invocations to module description.
8651         * m4/argmatch.m4: Remove file.
8652         * modules/argmatch (Files): Remove it.
8653         (configure.ac): Remove gl_ARGMATCH call.
8654         (Makefile.am): Augment lib_SOURCES.
8655
8656 2011-05-23  Bruno Haible  <bruno@clisp.org>
8657
8658         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8659         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8660         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8661
8662 2011-05-23  Bruno Haible  <bruno@clisp.org>
8663
8664         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8665         * m4/arcfour.m4: Remove file.
8666         * modules/crypto/arcfour (Files): Remove it.
8667         (configure.ac): Remove gl_ARCFOUR call.
8668         (Makefile.am): Augment lib_SOURCES.
8669
8670 2011-05-22  Bruno Haible  <bruno@clisp.org>
8671
8672         write: Move AC_LIBOBJ invocations to module description.
8673         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8674         * modules/write (configure.ac): ... to here.
8675
8676 2011-05-22  Bruno Haible  <bruno@clisp.org>
8677
8678         wmemset: Move AC_LIBOBJ invocations to module description.
8679         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8680         here...
8681         * modules/wmemset (configure.ac): ... to here.
8682
8683 2011-05-22  Bruno Haible  <bruno@clisp.org>
8684
8685         wmemmove: Move AC_LIBOBJ invocations to module description.
8686         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8687         here...
8688         * modules/wmemmove (configure.ac): ... to here.
8689
8690 2011-05-22  Bruno Haible  <bruno@clisp.org>
8691
8692         wmemcpy: Move AC_LIBOBJ invocations to module description.
8693         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8694         here...
8695         * modules/wmemcpy (configure.ac): ... to here.
8696
8697 2011-05-22  Bruno Haible  <bruno@clisp.org>
8698
8699         wmemcmp: Move AC_LIBOBJ invocations to module description.
8700         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8701         here...
8702         * modules/wmemcmp (configure.ac): ... to here.
8703
8704 2011-05-22  Bruno Haible  <bruno@clisp.org>
8705
8706         wmemchr: Move AC_LIBOBJ invocations to module description.
8707         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8708         here...
8709         * modules/wmemchr (configure.ac): ... to here.
8710
8711 2011-05-22  Bruno Haible  <bruno@clisp.org>
8712
8713         wcswidth: Move AC_LIBOBJ invocations to module description.
8714         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8715         here...
8716         * modules/wcswidth (configure.ac): ... to here.
8717
8718 2011-05-22  Bruno Haible  <bruno@clisp.org>
8719
8720         wcwidth: Respect rules for use of AC_LIBOBJ.
8721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8722         invocation from here...
8723         * modules/wcwidth (configure.ac): ... to here.
8724         (Depends-on): Update conditions.
8725
8726 2011-05-22  Bruno Haible  <bruno@clisp.org>
8727
8728         wctype: Move AC_LIBOBJ invocations to module description.
8729         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8730         invocation from here...
8731         * modules/wctype (configure.ac): ... to here.
8732         (Depends-on): Update conditions.
8733
8734 2011-05-22  Bruno Haible  <bruno@clisp.org>
8735
8736         wctrans: Move AC_LIBOBJ invocations to module description.
8737         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8738         invocation from here...
8739         * modules/wctrans (configure.ac): ... to here.
8740
8741 2011-05-22  Bruno Haible  <bruno@clisp.org>
8742
8743         wctomb: Move AC_LIBOBJ invocations to module description.
8744         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8745         invocations from here...
8746         * modules/wctomb (configure.ac): ... to here.
8747
8748 2011-05-22  Bruno Haible  <bruno@clisp.org>
8749
8750         wctob: Move AC_LIBOBJ invocations to module description.
8751         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8752         gl_PREREQ_WCTOB invocations from here...
8753         * modules/wctob (configure.ac): ... to here.
8754         (Depends-on): Update conditions.
8755
8756 2011-05-22  Bruno Haible  <bruno@clisp.org>
8757
8758         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8759         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8760         here...
8761         * modules/wcsxfrm (configure.ac): ... to here.
8762
8763 2011-05-22  Bruno Haible  <bruno@clisp.org>
8764
8765         wcstok: Move AC_LIBOBJ invocations to module description.
8766         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8767         * modules/wcstok (configure.ac): ... to here.
8768
8769 2011-05-22  Bruno Haible  <bruno@clisp.org>
8770
8771         wcsstr: Move AC_LIBOBJ invocations to module description.
8772         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8773         * modules/wcsstr (configure.ac): ... to here.
8774
8775 2011-05-22  Bruno Haible  <bruno@clisp.org>
8776
8777         wcsspn: Move AC_LIBOBJ invocations to module description.
8778         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8779         * modules/wcsspn (configure.ac): ... to here.
8780
8781 2011-05-22  Bruno Haible  <bruno@clisp.org>
8782
8783         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8784         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8785         gl_PREREQ_WCSRTOMBS invocations from here...
8786         * modules/wcsrtombs (configure.ac): ... to here.
8787
8788 2011-05-22  Bruno Haible  <bruno@clisp.org>
8789
8790         wcsrchr: Move AC_LIBOBJ invocations to module description.
8791         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8792         here...
8793         * modules/wcsrchr (configure.ac): ... to here.
8794
8795 2011-05-22  Bruno Haible  <bruno@clisp.org>
8796
8797         wcspbrk: Move AC_LIBOBJ invocations to module description.
8798         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8799         here...
8800         * modules/wcspbrk (configure.ac): ... to here.
8801
8802 2011-05-22  Bruno Haible  <bruno@clisp.org>
8803
8804         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8805         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8806         gl_PREREQ_WCSNRTOMBS invocations from here...
8807         * modules/wcsnrtombs (configure.ac): ... to here.
8808
8809 2011-05-22  Bruno Haible  <bruno@clisp.org>
8810
8811         wcsnlen: Move AC_LIBOBJ invocations to module description.
8812         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8813         here...
8814         * modules/wcsnlen (configure.ac): ... to here.
8815
8816 2011-05-22  Bruno Haible  <bruno@clisp.org>
8817
8818         wcsncpy: Move AC_LIBOBJ invocations to module description.
8819         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8820         here...
8821         * modules/wcsncpy (configure.ac): ... to here.
8822
8823 2011-05-22  Bruno Haible  <bruno@clisp.org>
8824
8825         wcsncmp: Move AC_LIBOBJ invocations to module description.
8826         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8827         here...
8828         * modules/wcsncmp (configure.ac): ... to here.
8829
8830 2011-05-22  Bruno Haible  <bruno@clisp.org>
8831
8832         wcsncat: Move AC_LIBOBJ invocations to module description.
8833         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8834         here...
8835         * modules/wcsncat (configure.ac): ... to here.
8836
8837 2011-05-22  Bruno Haible  <bruno@clisp.org>
8838
8839         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8840         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8841         from here...
8842         * modules/wcsncasecmp (configure.ac): ... to here.
8843
8844 2011-05-22  Bruno Haible  <bruno@clisp.org>
8845
8846         wcslen: Move AC_LIBOBJ invocations to module description.
8847         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8848         * modules/wcslen (configure.ac): ... to here.
8849
8850 2011-05-22  Bruno Haible  <bruno@clisp.org>
8851
8852         wcsdup: Move AC_LIBOBJ invocations to module description.
8853         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8854         * modules/wcsdup (configure.ac): ... to here.
8855
8856 2011-05-22  Bruno Haible  <bruno@clisp.org>
8857
8858         wcscspn: Move AC_LIBOBJ invocations to module description.
8859         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8860         here...
8861         * modules/wcscspn (configure.ac): ... to here.
8862
8863 2011-05-22  Bruno Haible  <bruno@clisp.org>
8864
8865         wcscpy: Move AC_LIBOBJ invocations to module description.
8866         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8867         * modules/wcscpy (configure.ac): ... to here.
8868
8869 2011-05-22  Bruno Haible  <bruno@clisp.org>
8870
8871         wcscoll: Move AC_LIBOBJ invocations to module description.
8872         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8873         here...
8874         * modules/wcscoll (configure.ac): ... to here.
8875
8876 2011-05-22  Bruno Haible  <bruno@clisp.org>
8877
8878         wcscmp: Move AC_LIBOBJ invocations to module description.
8879         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8880         * modules/wcscmp (configure.ac): ... to here.
8881
8882 2011-05-22  Bruno Haible  <bruno@clisp.org>
8883
8884         wcschr: Move AC_LIBOBJ invocations to module description.
8885         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8886         * modules/wcschr (configure.ac): ... to here.
8887
8888 2011-05-22  Bruno Haible  <bruno@clisp.org>
8889
8890         wcscat: Move AC_LIBOBJ invocations to module description.
8891         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8892         * modules/wcscat (configure.ac): ... to here.
8893
8894 2011-05-22  Bruno Haible  <bruno@clisp.org>
8895
8896         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8897         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8898         here...
8899         * modules/wcscasecmp (configure.ac): ... to here.
8900
8901 2011-05-22  Bruno Haible  <bruno@clisp.org>
8902
8903         wcrtomb: Move AC_LIBOBJ invocations to module description.
8904         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8905         invocations from here...
8906         * modules/wcrtomb (configure.ac): ... to here.
8907
8908 2011-05-22  Bruno Haible  <bruno@clisp.org>
8909
8910         wcpncpy: Move AC_LIBOBJ invocations to module description.
8911         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8912         here...
8913         * modules/wcpncpy (configure.ac): ... to here.
8914
8915 2011-05-22  Bruno Haible  <bruno@clisp.org>
8916
8917         wcpcpy: Move AC_LIBOBJ invocations to module description.
8918         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8919         * modules/wcpcpy (configure.ac): ... to here.
8920
8921 2011-05-22  Bruno Haible  <bruno@clisp.org>
8922
8923         waitpid: Move AC_LIBOBJ invocations to module description.
8924         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8925         invocation from here...
8926         * modules/waitpid (configure.ac): ... to here.
8927
8928 2011-05-22  Bruno Haible  <bruno@clisp.org>
8929
8930         utimensat: Move AC_LIBOBJ invocations to module description.
8931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8932         here...
8933         * modules/utimensat (configure.ac): ... to here.
8934
8935 2011-05-22  Bruno Haible  <bruno@clisp.org>
8936
8937         usleep: Move AC_LIBOBJ invocations to module description.
8938         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8939         here...
8940         * modules/usleep (configure.ac): ... to here.
8941
8942 2011-05-22  Bruno Haible  <bruno@clisp.org>
8943
8944         unlockpt: Move AC_LIBOBJ invocations to module description.
8945         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8946         gl_PREREQ_UNLOCKPT invocations from here...
8947         * modules/unlockpt (configure.ac): ... to here.
8948
8949 2011-05-22  Bruno Haible  <bruno@clisp.org>
8950
8951         unlink: Respect rules for use of AC_LIBOBJ.
8952         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8953         * modules/unlink (configure.ac): ... to here.
8954
8955 2011-05-22  Bruno Haible  <bruno@clisp.org>
8956
8957         uname: Move AC_LIBOBJ invocations to module description.
8958         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8959         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8960         here...
8961         * modules/uname (configure.ac): ... to here.
8962
8963 2011-05-22  Bruno Haible  <bruno@clisp.org>
8964
8965         ttyname_r: Move AC_LIBOBJ invocations to module description.
8966         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8967         gl_PREREQ_TTYNAME_R invocations from here...
8968         * modules/ttyname_r (configure.ac): ... to here.
8969
8970 2011-05-22  Bruno Haible  <bruno@clisp.org>
8971
8972         tsearch: Move AC_LIBOBJ invocations to module description.
8973         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8974         invocations from here...
8975         * modules/tsearch (configure.ac): ... to here.
8976
8977 2011-05-22  Bruno Haible  <bruno@clisp.org>
8978
8979         towctrans: Move AC_LIBOBJ invocations to module description.
8980         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8981         AC_LIBOBJ invocation from here...
8982         * modules/towctrans (configure.ac): ... to here.
8983
8984 2011-05-22  Bruno Haible  <bruno@clisp.org>
8985
8986         tmpfile: Move AC_LIBOBJ invocations to module description.
8987         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8988         invocations from here...
8989         * modules/tmpfile (configure.ac): ... to here.
8990
8991 2011-05-22  Bruno Haible  <bruno@clisp.org>
8992
8993         times: Move AC_LIBOBJ invocations to module description.
8994         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8995         * modules/times (configure.ac): ... to here.
8996
8997 2011-05-22  Bruno Haible  <bruno@clisp.org>
8998
8999         time_r: Move AC_LIBOBJ invocations to module description.
9000         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9001         invocations from here...
9002         * modules/time_r (configure.ac): ... to here.
9003
9004 2011-05-22  Bruno Haible  <bruno@clisp.org>
9005
9006         timegm: Move AC_LIBOBJ invocations to module description.
9007         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9008         invocations from here...
9009         * modules/timegm (configure.ac): ... to here.
9010
9011 2011-05-22  Bruno Haible  <bruno@clisp.org>
9012
9013         tcgetsid: Move AC_LIBOBJ invocations to module description.
9014         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9015         and gl_PREREQ_TCGETSID invocations from here...
9016         * modules/tcgetsid (configure.ac): ... to here.
9017         (Depends-on): Update conditions.
9018
9019 2011-05-22  Bruno Haible  <bruno@clisp.org>
9020
9021         symlinkat: Move AC_LIBOBJ invocations to module description.
9022         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9023         here...
9024         * modules/symlinkat (configure.ac): ... to here.
9025
9026 2011-05-22  Bruno Haible  <bruno@clisp.org>
9027
9028         symlink: Move AC_LIBOBJ invocations to module description.
9029         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9030         here...
9031         * modules/symlink (configure.ac): ... to here.
9032
9033 2011-05-22  Bruno Haible  <bruno@clisp.org>
9034
9035         strverscmp: Move AC_LIBOBJ invocations to module description.
9036         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9038         from here...
9039         * modules/strverscmp (configure.ac): ... to here.
9040
9041 2011-05-22  Bruno Haible  <bruno@clisp.org>
9042
9043         strtok_r: Move AC_LIBOBJ invocations to module description.
9044         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9045         and gl_PREREQ_STRTOK_R invocations from here...
9046         * modules/strtok_r (configure.ac): ... to here.
9047         (Depends-on): Update conditions.
9048
9049 2011-05-22  Bruno Haible  <bruno@clisp.org>
9050
9051         strtoumax: Move AC_LIBOBJ invocations to module description.
9052         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9054         from here...
9055         * modules/strtoumax (configure.ac): ... to here.
9056
9057 2011-05-22  Bruno Haible  <bruno@clisp.org>
9058
9059         strtoimax: Move AC_LIBOBJ invocations to module description.
9060         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9062         from here...
9063         * modules/strtoimax (configure.ac): ... to here.
9064
9065 2011-05-22  Bruno Haible  <bruno@clisp.org>
9066
9067         strtoull: Move AC_LIBOBJ invocations to module description.
9068         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9069         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9070         from here...
9071         * modules/strtoull (configure.ac): ... to here.
9072
9073 2011-05-22  Bruno Haible  <bruno@clisp.org>
9074
9075         strtoll: Move AC_LIBOBJ invocations to module description.
9076         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9078         here...
9079         * modules/strtoll (configure.ac): ... to here.
9080
9081 2011-05-22  Bruno Haible  <bruno@clisp.org>
9082
9083         strtoul: Move AC_LIBOBJ invocations to module description.
9084         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9085         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9086         * modules/strtoul (configure.ac): ... to here.
9087
9088 2011-05-22  Bruno Haible  <bruno@clisp.org>
9089
9090         strtol: Move AC_LIBOBJ invocations to module description.
9091         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9092         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9093         * modules/strtol (configure.ac): ... to here.
9094
9095 2011-05-22  Bruno Haible  <bruno@clisp.org>
9096
9097         strtod: Move AC_LIBOBJ invocations to module description.
9098         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9099         invocations from here...
9100         * modules/strtod (configure.ac): ... to here.
9101
9102 2011-05-22  Bruno Haible  <bruno@clisp.org>
9103
9104         strstr*: Move AC_LIBOBJ invocations to module description.
9105         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9106         invocations from here...
9107         * modules/strstr-simple (configure.ac): ... to here.
9108         * modules/strstr (configure.ac): ... and here.
9109
9110 2011-05-22  Bruno Haible  <bruno@clisp.org>
9111
9112         strsignal: Move AC_LIBOBJ invocations to module description.
9113         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9114         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9115         * modules/strsignal (configure.ac): ... to here.
9116         (Depends-on): Update conditions.
9117
9118 2011-05-22  Bruno Haible  <bruno@clisp.org>
9119
9120         strsep: Move AC_LIBOBJ invocations to module description.
9121         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9123         here...
9124         * modules/strsep (configure.ac): ... to here.
9125
9126 2011-05-22  Bruno Haible  <bruno@clisp.org>
9127
9128         strptime: Move AC_LIBOBJ invocations to module description.
9129         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9130         gl_PREREQ_STRPTIME invocations from here...
9131         * modules/strptime (configure.ac): ... to here.
9132
9133 2011-05-22  Bruno Haible  <bruno@clisp.org>
9134
9135         strpbrk: Move AC_LIBOBJ invocations to module description.
9136         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9138         here...
9139         * modules/strpbrk (configure.ac): ... to here.
9140
9141 2011-05-22  Bruno Haible  <bruno@clisp.org>
9142
9143         strnlen: Move AC_LIBOBJ invocations to module description.
9144         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9145         invocations from here...
9146         * modules/strnlen (configure.ac): ... to here.
9147
9148 2011-05-22  Bruno Haible  <bruno@clisp.org>
9149
9150         strndup: Move AC_LIBOBJ invocations to module description.
9151         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9152         invocations from here...
9153         * modules/strndup (configure.ac): ... to here.
9154         (Depends-on): Update conditions.
9155
9156 2011-05-22  Bruno Haible  <bruno@clisp.org>
9157
9158         strncat: Move AC_LIBOBJ invocations to module description.
9159         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9160         invocations from here...
9161         * modules/strncat (configure.ac): ... to here.
9162
9163 2011-05-22  Bruno Haible  <bruno@clisp.org>
9164
9165         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9166         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9167         invocations from here...
9168         * modules/strdup (configure.ac): ... to here.
9169         * modules/strdup-posix (configure.ac): ... and here.
9170
9171 2011-05-22  Bruno Haible  <bruno@clisp.org>
9172
9173         strcspn: Move AC_LIBOBJ invocations to module description.
9174         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9176         here...
9177         * modules/strcspn (configure.ac): ... to here.
9178
9179 2011-05-22  Bruno Haible  <bruno@clisp.org>
9180
9181         strchrnul: Move AC_LIBOBJ invocations to module description.
9182         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9183         gl_PREREQ_STRCHRNUL invocations from here...
9184         * modules/strchrnul (configure.ac): ... to here.
9185
9186 2011-05-22  Bruno Haible  <bruno@clisp.org>
9187
9188         strcasestr*: Move AC_LIBOBJ invocations to module description.
9189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9190         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9191         * modules/strcasestr-simple (configure.ac): ... to here.
9192         * modules/strcasestr (configure.ac): ... and here.
9193
9194 2011-05-22  Bruno Haible  <bruno@clisp.org>
9195
9196         strcase: Move AC_LIBOBJ invocations to module description.
9197         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9198         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9199         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9200         gl_PREREQ_STRNCASECMP invocations from here...
9201         * modules/strcase (configure.ac): ... to here.
9202
9203 2011-05-22  Bruno Haible  <bruno@clisp.org>
9204
9205         stpncpy: Move AC_LIBOBJ invocations to module description.
9206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9207         here...
9208         * modules/stpncpy (configure.ac): ... to here.
9209
9210 2011-05-22  Bruno Haible  <bruno@clisp.org>
9211
9212         stpcpy: Move AC_LIBOBJ invocations to module description.
9213         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9214         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9215         here...
9216         * modules/stpcpy (configure.ac): ... to here.
9217
9218 2011-05-21  Bruno Haible  <bruno@clisp.org>
9219
9220         stat: Move AC_LIBOBJ invocations to module description.
9221         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9222         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9223         here...
9224         * modules/stat (configure.ac): ... to here.
9225
9226 2011-05-21  Bruno Haible  <bruno@clisp.org>
9227
9228         sleep: Move AC_LIBOBJ invocations to module description.
9229         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9230         * modules/sleep (configure.ac): ... to here.
9231
9232 2011-05-21  Bruno Haible  <bruno@clisp.org>
9233
9234         signbit: Move AC_LIBOBJ invocations to module description.
9235         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9236         * modules/signbit (configure.ac): ... to here.
9237
9238 2011-05-21  Bruno Haible  <bruno@clisp.org>
9239
9240         sigprocmask: Move AC_LIBOBJ invocations to module description.
9241         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9242         gl_PREREQ_SIGPROMASK invocations from here...
9243         * modules/sigprocmask (configure.ac): ... to here.
9244
9245 2011-05-21  Bruno Haible  <bruno@clisp.org>
9246
9247         sigaction: Move AC_LIBOBJ invocations to module description.
9248         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9249         gl_PREREQ_SIGACTION invocations from here...
9250         * modules/sigaction (configure.ac): ... to here.
9251
9252 2011-05-21  Bruno Haible  <bruno@clisp.org>
9253
9254         sig2str: Move AC_LIBOBJ invocations to module description.
9255         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9257         here...
9258         * modules/sig2str (configure.ac): ... to here.
9259
9260 2011-05-21  Bruno Haible  <bruno@clisp.org>
9261
9262         setlocale: Move AC_LIBOBJ invocations to module description.
9263         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9264         gl_PREREQ_SETLOCALE invocations from here...
9265         * modules/setlocale (configure.ac): ... to here.
9266
9267 2011-05-21  Bruno Haible  <bruno@clisp.org>
9268
9269         unsetenv: Move AC_LIBOBJ invocations to module description.
9270         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9271         and gl_PREREQ_UNSETENV invocations from here...
9272         * modules/unsetenv (configure.ac): ... to here.
9273         (Depends-on): Update.
9274
9275 2011-05-21  Bruno Haible  <bruno@clisp.org>
9276
9277         setenv: Move AC_LIBOBJ invocations to module description.
9278         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9279         here...
9280         * modules/setenv (configure.ac): ... to here.
9281
9282 2011-05-21  Bruno Haible  <bruno@clisp.org>
9283
9284         selinux-h: Move AC_LIBOBJ invocations to module description.
9285         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9286         AC_LIBOBJ invocation from here...
9287         * modules/selinux-h (configure.ac): ... to here.
9288
9289 2011-05-21  Bruno Haible  <bruno@clisp.org>
9290
9291         select: Respect rules for use of AC_LIBOBJ.
9292         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9293         here...
9294         * modules/select (configure.ac): ... to here.
9295
9296 2011-05-21  Bruno Haible  <bruno@clisp.org>
9297
9298         scandir: Move AC_LIBOBJ invocations to module description.
9299         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9300         invocations from here...
9301         * modules/scandir (configure.ac): ... to here.
9302
9303 2011-05-21  Bruno Haible  <bruno@clisp.org>
9304
9305         rpmatch: Move AC_LIBOBJ invocations to module description.
9306         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9308         here...
9309         * modules/rpmatch (configure.ac): ... to here.
9310
9311 2011-05-21  Bruno Haible  <bruno@clisp.org>
9312
9313         rmdir: Respect rules for use of AC_LIBOBJ.
9314         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9315         * modules/rmdir (configure.ac): ... to here.
9316
9317 2011-05-21  Bruno Haible  <bruno@clisp.org>
9318
9319         renameat: Move AC_LIBOBJ invocations to module description.
9320         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9321         here...
9322         * modules/renameat (configure.ac): ... to here.
9323
9324 2011-05-21  Bruno Haible  <bruno@clisp.org>
9325
9326         rename: Respect rules for use of AC_LIBOBJ.
9327         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9328         here...
9329         * modules/rename (configure.ac): ... to here.
9330
9331 2011-05-21  Bruno Haible  <bruno@clisp.org>
9332
9333         remove: Move AC_LIBOBJ invocations to module description.
9334         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9335         here...
9336         * modules/remove (configure.ac): ... to here.
9337
9338 2011-05-21  Bruno Haible  <bruno@clisp.org>
9339
9340         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9341         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9342         macro.
9343         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9344         * modules/relocatable-lib (configure.ac): ... to here.
9345         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9346         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9347
9348 2011-05-21  Bruno Haible  <bruno@clisp.org>
9349
9350         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9351         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9352         here...
9353         * modules/relocatable-prog (configure.ac): ... to here.
9354
9355 2011-05-21  Bruno Haible  <bruno@clisp.org>
9356
9357         regex: Move AC_LIBOBJ invocations to module description.
9358         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9359         invocations from here...
9360         * modules/regex (configure.ac): ... to here.
9361
9362 2011-05-21  Bruno Haible  <bruno@clisp.org>
9363
9364         realloc-*: Move AC_LIBOBJ invocations to module description.
9365         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9366         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9367         AC_LIBOBJ invocations from here...
9368         * modules/realloc-gnu (configure.ac): ... to here.
9369         * modules/realloc-posix (configure.ac): ... and here.
9370
9371 2011-05-21  Bruno Haible  <bruno@clisp.org>
9372
9373         readutmp: Move AC_LIBOBJ invocations to module description.
9374         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9375         * modules/readutmp (configure.ac): ... to here.
9376
9377 2011-05-21  Bruno Haible  <bruno@clisp.org>
9378
9379         readlinkat: Move AC_LIBOBJ invocations to module description.
9380         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9381         here...
9382         * modules/readlinkat (configure.ac): ... to here.
9383
9384 2011-05-21  Bruno Haible  <bruno@clisp.org>
9385
9386         readlink: Move AC_LIBOBJ invocations to module description.
9387         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9388         gl_PREREQ_READLINK invocations from here...
9389         * modules/readlink (configure.ac): ... to here.
9390
9391 2011-05-21  Bruno Haible  <bruno@clisp.org>
9392
9393         readline: Move AC_LIBOBJ invocations to module description.
9394         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9395         gl_PREREQ_READLINE invocations from here...
9396         * modules/readline (configure.ac): ... to here.
9397
9398 2011-05-21  Bruno Haible  <bruno@clisp.org>
9399
9400         read: Move AC_LIBOBJ invocations to module description.
9401         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9402         * modules/read (configure.ac): ... to here.
9403
9404 2011-05-21  Bruno Haible  <bruno@clisp.org>
9405
9406         rawmemchr: Move AC_LIBOBJ invocations to module description.
9407         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9409         from here...
9410         * modules/rawmemchr (configure.ac): ... to here.
9411
9412 2011-05-21  Bruno Haible  <bruno@clisp.org>
9413
9414         random_r: Move AC_LIBOBJ invocations to module description.
9415         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9416         gl_PREREQ_RANDOM_R invocations from here...
9417         * modules/random_r (configure.ac): ... to here.
9418
9419 2011-05-21  Bruno Haible  <bruno@clisp.org>
9420
9421         pwrite: Move AC_LIBOBJ invocations to module description.
9422         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9423         * modules/pwrite (configure.ac): ... to here.
9424
9425 2011-05-21  Bruno Haible  <bruno@clisp.org>
9426
9427         putenv: Move AC_LIBOBJ invocations to module description.
9428         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9429         * modules/putenv (configure.ac): ... to here.
9430
9431 2011-05-21  Bruno Haible  <bruno@clisp.org>
9432
9433         login_tty: Move AC_LIBOBJ invocations to module description.
9434         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9435         * modules/login_tty (configure.ac): ... to here.
9436
9437 2011-05-21  Bruno Haible  <bruno@clisp.org>
9438
9439         openpty: Move AC_LIBOBJ invocations to module description.
9440         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9441         * modules/openpty (configure.ac): ... to here.
9442
9443 2011-05-21  Bruno Haible  <bruno@clisp.org>
9444
9445         forkpty: Move AC_LIBOBJ invocations to module description.
9446         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9447         * modules/forkpty (configure.ac): ... to here.
9448
9449 2011-05-21  Bruno Haible  <bruno@clisp.org>
9450
9451         ptsname: Move AC_LIBOBJ invocations to module description.
9452         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9453         invocations from here...
9454         * modules/ptsname (configure.ac): ... to here.
9455
9456 2011-05-21  Bruno Haible  <bruno@clisp.org>
9457
9458         pread: Move AC_LIBOBJ invocations to module description.
9459         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9460         * modules/pread (configure.ac): ... to here.
9461
9462 2011-05-21  Bruno Haible  <bruno@clisp.org>
9463
9464         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9465         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9466         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9467         * modules/posix_spawn (configure.ac): ... to here.
9468         * modules/posix_spawnp (configure.ac): ... and here.
9469
9470 2011-05-21  Bruno Haible  <bruno@clisp.org>
9471
9472         popen: Move AC_LIBOBJ invocations to module description.
9473         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9474         invocations from here...
9475         * modules/popen (configure.ac): ... to here.
9476
9477 2011-05-21  Bruno Haible  <bruno@clisp.org>
9478
9479         poll: Move AC_LIBOBJ invocations to module description.
9480         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9481         invocations from here...
9482         * modules/poll (configure.ac): ... to here.
9483
9484 2011-05-21  Bruno Haible  <bruno@clisp.org>
9485
9486         pipe-posix: Move AC_LIBOBJ invocations to module description.
9487         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9488         * modules/pipe-posix (configure.ac): ... to here.
9489
9490 2011-05-21  Bruno Haible  <bruno@clisp.org>
9491
9492         openat: Respect rules for use of AC_LIBOBJ.
9493         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9494         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9495         * modules/openat (configure.ac): ... to here.
9496
9497 2011-05-21  Bruno Haible  <bruno@clisp.org>
9498
9499         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9500         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9501         invocation from here...
9502         * modules/obstack-printf (configure.ac): ... to here.
9503         * modules/obstack-printf-posix (configure.ac): ... and here.
9504
9505 2011-05-21  Bruno Haible  <bruno@clisp.org>
9506
9507         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9508         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9509         from here...
9510         * modules/nl_langinfo (configure.ac): ... to here.
9511
9512 2011-05-21  Bruno Haible  <bruno@clisp.org>
9513
9514         nanosleep: Move AC_LIBOBJ invocations to module description.
9515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9516         gl_PREREQ_NANOSLEEP invocations from here...
9517         * modules/nanosleep (configure.ac): ... to here.
9518
9519 2011-05-21  Bruno Haible  <bruno@clisp.org>
9520
9521         mountlist: Move AC_LIBOBJ invocations to module description.
9522         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9523         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9524         * modules/mountlist (configure.ac): ... to here.
9525
9526 2011-05-21  Bruno Haible  <bruno@clisp.org>
9527
9528         mktime: Respect rules for use of AC_LIBOBJ.
9529         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9530         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9531         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9532         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9533         * modules/mktime (configure.ac): ... to here.
9534         * modules/mktime-internal (configure.ac): ... and here.
9535         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9536
9537 2011-05-21  Bruno Haible  <bruno@clisp.org>
9538
9539         mkstemps: Move AC_LIBOBJ invocations to module description.
9540         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9541         here...
9542         * modules/mkstemps (configure.ac): ... to here.
9543
9544 2011-05-21  Bruno Haible  <bruno@clisp.org>
9545
9546         mkstemp: Move AC_LIBOBJ invocations to module description.
9547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9548         gl_PREREQ_MKSTEMP invocations from here...
9549         * modules/mkstemp (configure.ac): ... to here.
9550
9551 2011-05-21  Bruno Haible  <bruno@clisp.org>
9552
9553         mkostemps: Move AC_LIBOBJ invocations to module description.
9554         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9555         here...
9556         * modules/mkostemps (configure.ac): ... to here.
9557
9558 2011-05-21  Bruno Haible  <bruno@clisp.org>
9559
9560         mkostemp: Move AC_LIBOBJ invocations to module description.
9561         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9562         gl_PREREQ_MKOSTEMP invocations from here...
9563         * modules/mkostemp (configure.ac): ... to here.
9564
9565 2011-05-21  Bruno Haible  <bruno@clisp.org>
9566
9567         mknod: Move AC_LIBOBJ invocations to module description.
9568         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9569         * modules/mknod (configure.ac): ... to here.
9570
9571 2011-05-21  Bruno Haible  <bruno@clisp.org>
9572
9573         mkfifoat: Move AC_LIBOBJ invocations to module description.
9574         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9575         here...
9576         * modules/mkfifoat (configure.ac): ... to here.
9577
9578 2011-05-21  Bruno Haible  <bruno@clisp.org>
9579
9580         mkfifo: Respect rules for use of AC_LIBOBJ.
9581         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9582         here...
9583         * modules/mkfifo (configure.ac): ... to here.
9584
9585 2011-05-21  Bruno Haible  <bruno@clisp.org>
9586
9587         mkdtemp: Move AC_LIBOBJ invocations to module description.
9588         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9589         invocations from here...
9590         * modules/mkdtemp (configure.ac): ... to here.
9591
9592 2011-05-21  Bruno Haible  <bruno@clisp.org>
9593
9594         mkdir: Move AC_LIBOBJ invocations to module description.
9595         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9596         * modules/mkdir (configure.ac): ... to here.
9597
9598 2011-05-21  Bruno Haible  <bruno@clisp.org>
9599
9600         memset: Move AC_LIBOBJ invocations to module description.
9601         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9603         here...
9604         * modules/memset (configure.ac): ... to here.
9605
9606 2011-05-21  Bruno Haible  <bruno@clisp.org>
9607
9608         memrchr: Move AC_LIBOBJ invocations to module description.
9609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9610         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9611         here...
9612         * modules/memrchr (configure.ac): ... to here.
9613
9614 2011-05-21  Bruno Haible  <bruno@clisp.org>
9615
9616         mempcpy: Move AC_LIBOBJ invocations to module description.
9617         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9618         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9619         here...
9620         * modules/mempcpy (configure.ac): ... to here.
9621
9622 2011-05-21  Bruno Haible  <bruno@clisp.org>
9623
9624         memmove: Move AC_LIBOBJ invocations to module description.
9625         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9626         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9627         here...
9628         * modules/memmove (configure.ac): ... to here.
9629
9630 2011-05-21  Bruno Haible  <bruno@clisp.org>
9631
9632         memmem*: Move AC_LIBOBJ invocations to module description.
9633         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9634         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9635         here...
9636         (gl_FUNC_MEMMEM): ... and here...
9637         * modules/memmem-simple (configure.ac): ... to here.
9638         * modules/memmem (configure.ac): ... and here.
9639
9640 2011-05-21  Bruno Haible  <bruno@clisp.org>
9641
9642         memcpy: Move AC_LIBOBJ invocations to module description.
9643         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9645         here...
9646         * modules/memcpy (configure.ac): ... to here.
9647
9648 2011-05-21  Bruno Haible  <bruno@clisp.org>
9649
9650         memcmp: Simplify autoconf macro.
9651         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9652         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9653         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9654
9655 2011-05-21  Bruno Haible  <bruno@clisp.org>
9656
9657         memcmp: Move AC_LIBOBJ invocations to module description.
9658         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9659         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9660         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9661         * modules/memcmp (configure.ac): ... to here.
9662         (Depends-on): Update conditions.
9663
9664 2011-05-21  Bruno Haible  <bruno@clisp.org>
9665
9666         memchr: Respect rules for use of AC_LIBOBJ.
9667         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9668         invocations from here...
9669         * modules/memchr (configure.ac): ... to here.
9670
9671 2011-05-21  Bruno Haible  <bruno@clisp.org>
9672
9673         mbtowc: Move AC_LIBOBJ invocations to module description.
9674         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9675         invocations from here...
9676         * modules/mbtowc (configure.ac): ... to here.
9677
9678 2011-05-21  Bruno Haible  <bruno@clisp.org>
9679
9680         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9681         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9682         gl_PREREQ_MBSRTOWCS invocations from here...
9683         * modules/mbsrtowcs (configure.ac): ... to here.
9684
9685 2011-05-21  Bruno Haible  <bruno@clisp.org>
9686
9687         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9688         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9689         gl_PREREQ_MBSNRTOWCS invocations from here...
9690         * modules/mbsnrtowcs (configure.ac): ... to here.
9691
9692 2011-05-21  Bruno Haible  <bruno@clisp.org>
9693
9694         mbsinit: Move AC_LIBOBJ invocations to module description.
9695         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9696         invocations from here...
9697         * modules/mbsinit (configure.ac): ... to here.
9698
9699 2011-05-21  Bruno Haible  <bruno@clisp.org>
9700
9701         mbrlen: Move AC_LIBOBJ invocations to module description.
9702         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9703         invocations from here...
9704         * modules/mbrlen (configure.ac): ... to here.
9705
9706 2011-05-21  Bruno Haible  <bruno@clisp.org>
9707
9708         mbrtowc: Respect rules for use of AC_LIBOBJ.
9709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9710         invocations from here...
9711         * modules/mbrtowc (configure.ac): ... to here.
9712
9713 2011-05-21  Bruno Haible  <bruno@clisp.org>
9714
9715         malloc-*: Move AC_LIBOBJ invocations to module description.
9716         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9717         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9718         AC_LIBOBJ invocations from here...
9719         * modules/malloc-gnu (configure.ac): ... to here.
9720         * modules/malloc-posix (configure.ac): ... and here.
9721
9722 2011-05-21  Bruno Haible  <bruno@clisp.org>
9723
9724         lstat, openat: Respect rules for use of AC_LIBOBJ.
9725         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9726         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9727         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9728         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9729         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9730         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9731         here.
9732         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9733
9734 2011-05-21  Bruno Haible  <bruno@clisp.org>
9735
9736         lseek: Move AC_LIBOBJ invocations to module description.
9737         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9738         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9739         * modules/lseek (configure.ac): ... to here.
9740
9741 2011-05-21  Bruno Haible  <bruno@clisp.org>
9742
9743         linkat: Move AC_LIBOBJ invocations to module description.
9744         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9745         here...
9746         * modules/linkat (configure.ac): ... to here.
9747
9748 2011-05-21  Bruno Haible  <bruno@clisp.org>
9749
9750         link: Respect rules for use of AC_LIBOBJ.
9751         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9752         * modules/link (configure.ac): ... to here.
9753
9754 2011-05-21  Bruno Haible  <bruno@clisp.org>
9755
9756         lchown: Move AC_LIBOBJ invocations to module description.
9757         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9758         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9759         * modules/lchown (configure.ac): ... to here.
9760
9761 2011-05-21  Bruno Haible  <bruno@clisp.org>
9762
9763         iswctype: Move AC_LIBOBJ invocations to module description.
9764         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9765         here...
9766         * modules/iswctype (configure.ac): ... to here.
9767
9768 2011-05-21  Bruno Haible  <bruno@clisp.org>
9769
9770         iswblank: Move AC_LIBOBJ invocations to module description.
9771         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9772         here...
9773         * modules/iswblank (configure.ac): ... to here.
9774
9775 2011-05-21  Bruno Haible  <bruno@clisp.org>
9776
9777         atanl: Move AC_LIBOBJ invocations to module description.
9778         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9779         * modules/atanl (configure.ac): ... to here.
9780
9781 2011-05-21  Bruno Haible  <bruno@clisp.org>
9782
9783         acosl: Move AC_LIBOBJ invocations to module description.
9784         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9785         * modules/acosl (configure.ac): ... to here.
9786
9787 2011-05-21  Bruno Haible  <bruno@clisp.org>
9788
9789         asinl: Respect rules for use of AC_LIBOBJ.
9790         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9791         * modules/asinl (configure.ac): ... to here.
9792
9793 2011-05-21  Bruno Haible  <bruno@clisp.org>
9794
9795         tanl: Move AC_LIBOBJ invocations to module description.
9796         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9797         * modules/tanl (configure.ac): ... to here.
9798
9799 2011-05-21  Bruno Haible  <bruno@clisp.org>
9800
9801         cosl: Move AC_LIBOBJ invocations to module description.
9802         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9803         * modules/cosl (configure.ac): ... to here.
9804
9805 2011-05-21  Bruno Haible  <bruno@clisp.org>
9806
9807         sinl: Move AC_LIBOBJ invocations to module description.
9808         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9809         * modules/sinl (configure.ac): ... to here.
9810
9811 2011-05-21  Bruno Haible  <bruno@clisp.org>
9812
9813         logl: Move AC_LIBOBJ invocations to module description.
9814         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9815         * modules/logl (configure.ac): ... to here.
9816
9817 2011-05-21  Bruno Haible  <bruno@clisp.org>
9818
9819         expl: Move AC_LIBOBJ invocations to module description.
9820         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9821         * modules/expl (configure.ac): ... to here.
9822
9823 2011-05-21  Bruno Haible  <bruno@clisp.org>
9824
9825         roundl: Move AC_LIBOBJ invocations to module description.
9826         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9827         * modules/roundl (configure.ac): ... to here.
9828
9829 2011-05-21  Bruno Haible  <bruno@clisp.org>
9830
9831         round: Move AC_LIBOBJ invocations to module description.
9832         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9833         * modules/round (configure.ac): ... to here.
9834
9835 2011-05-21  Bruno Haible  <bruno@clisp.org>
9836
9837         roundf: Move AC_LIBOBJ invocations to module description.
9838         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9839         * modules/roundf (configure.ac): ... to here.
9840
9841 2011-05-21  Bruno Haible  <bruno@clisp.org>
9842
9843         truncl: Move AC_LIBOBJ invocations to module description.
9844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9845         * modules/truncl (configure.ac): ... to here.
9846
9847 2011-05-21  Bruno Haible  <bruno@clisp.org>
9848
9849         trunc: Move AC_LIBOBJ invocations to module description.
9850         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9851         * modules/trunc (configure.ac): ... to here.
9852
9853 2011-05-21  Bruno Haible  <bruno@clisp.org>
9854
9855         truncf: Move AC_LIBOBJ invocations to module description.
9856         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9857         * modules/truncf (configure.ac): ... to here.
9858
9859 2011-05-21  Bruno Haible  <bruno@clisp.org>
9860
9861         ceill: Move AC_LIBOBJ invocations to module description.
9862         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9863         * modules/ceill (configure.ac): ... to here.
9864
9865 2011-05-21  Bruno Haible  <bruno@clisp.org>
9866
9867         ceil: Move AC_LIBOBJ invocations to module description.
9868         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9869         * modules/ceil (configure.ac): ... to here.
9870
9871 2011-05-21  Bruno Haible  <bruno@clisp.org>
9872
9873         ceilf: Move AC_LIBOBJ invocations to module description.
9874         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9875         * modules/ceilf (configure.ac): ... to here.
9876
9877 2011-05-21  Bruno Haible  <bruno@clisp.org>
9878
9879         floorl: Respect rules for use of AC_LIBOBJ.
9880         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9881         * modules/floorl (configure.ac): ... to here.
9882
9883 2011-05-21  Bruno Haible  <bruno@clisp.org>
9884
9885         floor: Respect rules for use of AC_LIBOBJ.
9886         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9887         * modules/floor (configure.ac): ... to here.
9888
9889 2011-05-21  Bruno Haible  <bruno@clisp.org>
9890
9891         floorf: Move AC_LIBOBJ invocations to module description.
9892         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9893         * modules/floorf (configure.ac): ... to here.
9894
9895 2011-05-20  Bruno Haible  <bruno@clisp.org>
9896
9897         sqrtl: Respect rules for use of AC_LIBOBJ.
9898         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9899         * modules/sqrtl (configure.ac): ... to here.
9900
9901 2011-05-20  Bruno Haible  <bruno@clisp.org>
9902
9903         ldexpl: Respect rules for use of AC_LIBOBJ.
9904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9905         * modules/ldexpl (configure.ac): ... to here.
9906
9907 2011-05-20  Bruno Haible  <bruno@clisp.org>
9908
9909         frexpl*: Respect rules for use of AC_LIBOBJ.
9910         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9911         invocation from here...
9912         * modules/frexpl (configure.ac): ... to here.
9913         * modules/frexpl-nolibm (configure.ac): ... and here.
9914
9915 2011-05-20  Bruno Haible  <bruno@clisp.org>
9916
9917         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9918         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9919         invocation from here...
9920         * modules/frexp (configure.ac): ... to here.
9921         * modules/frexp-nolibm (configure.ac): ... and here.
9922
9923 2011-05-20  Bruno Haible  <bruno@clisp.org>
9924
9925         isnan: Respect rules for use of AC_LIBOBJ.
9926         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9927         invocations here.
9928         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9929         REPLACE_ISNAN.
9930         * modules/isnand (configure.ac): Likewise.
9931         * modules/isnanl (configure.ac): Likewise.
9932
9933 2011-05-20  Bruno Haible  <bruno@clisp.org>
9934
9935         isnanl*: Respect rules for use of AC_LIBOBJ.
9936         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9937         invocation from here...
9938         * modules/isnanl (configure.ac): ... to here.
9939         * modules/isnanl-nolibm (configure.ac): ... and here.
9940
9941 2011-05-20  Bruno Haible  <bruno@clisp.org>
9942
9943         isnand*: Move AC_LIBOBJ invocations to module description.
9944         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9945         invocation from here...
9946         * modules/isnand (configure.ac): ... to here.
9947         * modules/isnand-nolibm (configure.ac): ... and here.
9948
9949 2011-05-20  Bruno Haible  <bruno@clisp.org>
9950
9951         isnanf*: Move AC_LIBOBJ invocations to module description.
9952         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9953         invocation from here...
9954         * modules/isnanf (configure.ac): ... to here.
9955         * modules/isnanf-nolibm (configure.ac): ... and here.
9956
9957 2011-05-20  Bruno Haible  <bruno@clisp.org>
9958
9959         isnan*: Separate the AC_LIBOBJ invocations.
9960         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9961         AC_LIBOBJ invocation.
9962         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9963         here.
9964         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9965         AC_LIBOBJ invocation.
9966         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9967         here.
9968         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9969         AC_LIBOBJ invocation.
9970         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9971         here.
9972         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9973
9974 2011-05-08  Bruno Haible  <bruno@clisp.org>
9975
9976         isinf: Move AC_LIBOBJ invocations to module description.
9977         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9978         * modules/isinf (configure.ac): ... to here.
9979
9980 2011-05-08  Bruno Haible  <bruno@clisp.org>
9981
9982         isfinite: Move AC_LIBOBJ invocations to module description.
9983         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9984         * modules/isfinite (configure.ac): ... to here.
9985
9986 2011-05-08  Bruno Haible  <bruno@clisp.org>
9987
9988         isblank: Move AC_LIBOBJ invocations to module description.
9989         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9990         here...
9991         * modules/isblank (configure.ac): ... to here.
9992
9993 2011-05-08  Bruno Haible  <bruno@clisp.org>
9994
9995         isapipe: Move AC_LIBOBJ invocations to module description.
9996         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9997         gl_PREREQ_ISAPIPE invocations from here...
9998         * modules/isapipe (configure.ac): ... to here.
9999         (Depends-on): Update condition.
10000
10001 2011-05-08  Bruno Haible  <bruno@clisp.org>
10002
10003         ioctl: Move AC_LIBOBJ invocations to module description.
10004         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10005         invocations from here...
10006         * modules/ioctl (configure.ac): ... to here.
10007         (Depends-on): Update condition.
10008
10009 2011-05-08  Bruno Haible  <bruno@clisp.org>
10010
10011         imaxdiv: Move AC_LIBOBJ invocations to module description.
10012         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10013         invocations from here...
10014         * modules/imaxdiv (configure.ac): ... to here.
10015
10016 2011-05-08  Bruno Haible  <bruno@clisp.org>
10017
10018         imaxabs: Move AC_LIBOBJ invocations to module description.
10019         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10020         invocations from here...
10021         * modules/imaxabs (configure.ac): ... to here.
10022
10023 2011-05-08  Bruno Haible  <bruno@clisp.org>
10024
10025         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10027         AC_LIBOBJ invocations from here...
10028         * modules/getaddrinfo (configure.ac): ... to here.
10029         (Depends-on): Add conditions.
10030
10031 2011-05-08  Bruno Haible  <bruno@clisp.org>
10032
10033         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10034         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10035         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10036         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10037         (gl_PREREQ_INET_PTON): ... from here.
10038         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10039         gl_PREREQ_INET_PTON here.
10040         (Depends-on): Update condition.
10041
10042 2011-05-08  Bruno Haible  <bruno@clisp.org>
10043
10044         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10045         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10046         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10047         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10048         (gl_PREREQ_INET_NTOP): ... from here.
10049         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10050         gl_PREREQ_INET_NTOP here.
10051         (Depends-on): Update condition.
10052
10053 2011-05-08  Bruno Haible  <bruno@clisp.org>
10054
10055         iconv_open: Move AC_LIBOBJ invocations to module description.
10056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10057         AC_LIBOBJ invocations from here...
10058         * modules/iconv_open (configure.ac): ... to here.
10059
10060 2011-05-08  Bruno Haible  <bruno@clisp.org>
10061
10062         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10063         If module 'iconv_open' is among the main modules and module
10064         'iconv_open-utf' is among the tests dependencies, then
10065         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10066         return the special iconv_t values. Therefore iconv() and iconv_close()
10067         must support these special iconv_t values, already in lib, not only in
10068         tests.
10069         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10071         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10072         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10073         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10074         (Depends-on): Add the dependencies of iconv_open-utf.
10075         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10076         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10077         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10078
10079 2011-05-08  Bruno Haible  <bruno@clisp.org>
10080
10081         group-member: Move AC_LIBOBJ invocations to module description.
10082         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10083         gl_PREREQ_GROUP_MEMBER invocations from here...
10084         * modules/group-member (configure.ac): ... to here.
10085
10086 2011-05-08  Bruno Haible  <bruno@clisp.org>
10087
10088         grantpt: Move AC_LIBOBJ invocations to module description.
10089         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10090         invocations from here...
10091         * modules/grantpt (configure.ac): ... to here.
10092
10093 2011-05-08  Bruno Haible  <bruno@clisp.org>
10094
10095         glob: Move AC_LIBOBJ invocations to module description.
10096         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10097         from here...
10098         * modules/glob (configure.ac): ... to here.
10099
10100 2011-05-08  Bruno Haible  <bruno@clisp.org>
10101
10102         getusershell: Move AC_LIBOBJ invocations to module description.
10103         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10104         Move AC_LIBOBJ invocation from here...
10105         * modules/getusershell (configure.ac): ... to here.
10106         (Depends-on): Update condition.
10107
10108 2011-05-08  Bruno Haible  <bruno@clisp.org>
10109
10110         gettimeofday: Move AC_LIBOBJ invocations to module description.
10111         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10112         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10113         gl_PREREQ_GETTIMEOFDAY invocations from here...
10114         * modules/gettimeofday (configure.ac): ... to here.
10115
10116 2011-05-08  Bruno Haible  <bruno@clisp.org>
10117
10118         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10119         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10120         just gl_FUNC_TZSET.
10121         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10122         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10124         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10125
10126 2011-05-08  Bruno Haible  <bruno@clisp.org>
10127
10128         getsubopt: Move AC_LIBOBJ invocations to module description.
10129         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10130         gl_PREREQ_GETSUBOPT invocations from here...
10131         * modules/getsubopt (configure.ac): ... to here.
10132
10133 2011-05-08  Bruno Haible  <bruno@clisp.org>
10134
10135         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10136         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10137         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10138         * modules/getpass-gnu (configure.ac): ... to here.
10139
10140 2011-05-08  Bruno Haible  <bruno@clisp.org>
10141
10142         getpass: Move AC_LIBOBJ invocations to module description.
10143         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10144         gl_PREREQ_GETPASS invocations from here...
10145         * modules/getpass (configure.ac): ... to here.
10146
10147 2011-05-08  Bruno Haible  <bruno@clisp.org>
10148
10149         getpagesize: Move AC_LIBOBJ invocations to module description.
10150         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10151         from here...
10152         * modules/getpagesize (configure.ac): ... to here.
10153
10154 2011-05-08  Bruno Haible  <bruno@clisp.org>
10155
10156         getopt: Move AC_LIBOBJ invocations to module description.
10157         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10158         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10159         invocations from here...
10160         * modules/getopt-gnu (configure.ac): ... to here.
10161         * modules/getopt-posix (configure.ac): ... and here.
10162         (Depends-on): Update condition.
10163
10164 2011-05-08  Bruno Haible  <bruno@clisp.org>
10165
10166         getopt, argp: Respect rules for use of AC_LIBOBJ.
10167         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10168         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10169         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10170         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10171
10172 2011-05-08  Bruno Haible  <bruno@clisp.org>
10173
10174         getlogin_r: Move AC_LIBOBJ invocations to module description.
10175         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10176         gl_PREREQ_GETLOGIN_R invocations from here...
10177         * modules/getlogin_r (configure.ac): ... to here.
10178
10179 2011-05-08  Bruno Haible  <bruno@clisp.org>
10180
10181         getlogin: Move AC_LIBOBJ invocations to module description.
10182         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10183         here...
10184         * modules/getlogin (configure.ac): ... to here.
10185
10186 2011-05-08  Bruno Haible  <bruno@clisp.org>
10187
10188         getloadavg: Move AC_LIBOBJ invocations to module description.
10189         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10190         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10191         * modules/getloadavg (configure.ac): ... to here.
10192
10193 2011-05-08  Bruno Haible  <bruno@clisp.org>
10194
10195         gethrxtime: Move AC_LIBOBJ invocations to module description.
10196         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10197         LIB_GETHRXTIME from here...
10198         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10199         invocations from here...
10200         * modules/gethrxtime (configure.ac): ... to here.
10201
10202 2011-05-08  Bruno Haible  <bruno@clisp.org>
10203
10204         gethostname: Move AC_LIBOBJ invocations to module description.
10205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10206         gl_PREREQ_GETHOSTNAME invocations from here...
10207         * modules/gethostname (configure.ac): ... to here.
10208
10209 2011-05-08  Bruno Haible  <bruno@clisp.org>
10210
10211         getgroups: Move AC_LIBOBJ invocations to module description.
10212         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10213         here...
10214         * modules/getgroups (configure.ac): ... to here.
10215
10216 2011-05-08  Bruno Haible  <bruno@clisp.org>
10217
10218         getdtablesize: Move AC_LIBOBJ invocations to module description.
10219         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10220         invocation from here...
10221         * modules/getdtablesize (configure.ac): ... to here.
10222
10223 2011-05-08  Bruno Haible  <bruno@clisp.org>
10224
10225         getdomainname: Move AC_LIBOBJ invocations to module description.
10226         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10227         gl_PREREQ_GETDOMAINNAME invocations from here...
10228         * modules/getdomainname (configure.ac): ... to here.
10229
10230 2011-05-08  Bruno Haible  <bruno@clisp.org>
10231
10232         getline: Move AC_LIBOBJ invocations to module description.
10233         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10234         invocations from here...
10235         * modules/getline (configure.ac): ... to here.
10236
10237 2011-05-08  Bruno Haible  <bruno@clisp.org>
10238
10239         getline: Simplify.
10240         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10241         It's already handled through the module dependency.
10242
10243 2011-05-08  Bruno Haible  <bruno@clisp.org>
10244
10245         getdelim: Move AC_LIBOBJ invocations to module description.
10246         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10247         and gl_PREREQ_GETDELIM invocations from here...
10248         * modules/getdelim (configure.ac): ... to here.
10249         (Depends-on): Fix condition.
10250
10251 2011-05-08  Bruno Haible  <bruno@clisp.org>
10252
10253         getcwd: Move AC_LIBOBJ invocations to module description.
10254         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10255         invocations from here...
10256         * modules/getcwd (configure.ac): ... to here.
10257
10258 2011-05-08  Bruno Haible  <bruno@clisp.org>
10259
10260         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10261         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10262         here...
10263         * modules/getcwd-lgpl (configure.ac): ... to here.
10264
10265 2011-05-07  Bruno Haible  <bruno@clisp.org>
10266
10267         crypto/gc: Move AC_LIBOBJ invocations to module description.
10268         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10269         * modules/crypto/gc (configure.ac): ... to here.
10270
10271 2011-05-07  Bruno Haible  <bruno@clisp.org>
10272
10273         fwriting: Move AC_LIBOBJ invocations to module description.
10274         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10275         here...
10276         * modules/fwriting (configure.ac): ... to here.
10277
10278 2011-05-07  Bruno Haible  <bruno@clisp.org>
10279
10280         fwritable: Move AC_LIBOBJ invocations to module description.
10281         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10282         here...
10283         * modules/fwritable (configure.ac): ... to here.
10284
10285 2011-05-07  Bruno Haible  <bruno@clisp.org>
10286
10287         futimens: Move AC_LIBOBJ invocations to module description.
10288         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10289         here...
10290         * modules/futimens (configure.ac): ... to here.
10291
10292 2011-05-07  Bruno Haible  <bruno@clisp.org>
10293
10294         ftruncate: Move AC_LIBOBJ invocations to module description.
10295         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10296         gl_PREREQ_FTRUNCATE invocations from here...
10297         * modules/ftruncate (configure.ac): ... to here.
10298
10299 2011-05-07  Bruno Haible  <bruno@clisp.org>
10300
10301         fsync: Move AC_LIBOBJ invocations to module description.
10302         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10303         invocations from here...
10304         * modules/fsync (configure.ac): ... to here.
10305
10306 2011-05-07  Bruno Haible  <bruno@clisp.org>
10307
10308         fsusage: Move AC_LIBOBJ invocations to module description.
10309         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10310         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10311         * modules/fsusage (configure.ac): ... to here.
10312
10313 2011-05-07  Bruno Haible  <bruno@clisp.org>
10314
10315         freopen: Move AC_LIBOBJ invocations to module description.
10316         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10317         invocations from here...
10318         * modules/freopen (configure.ac): ... to here.
10319
10320 2011-05-07  Bruno Haible  <bruno@clisp.org>
10321
10322         free: Move AC_LIBOBJ invocations to module description.
10323         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10324         invocations from here...
10325         * modules/free (configure.ac): ... to here.
10326
10327 2011-05-07  Bruno Haible  <bruno@clisp.org>
10328
10329         freadable: Move AC_LIBOBJ invocations to module description.
10330         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10331         here...
10332         * modules/freadable (configure.ac): ... to here.
10333
10334 2011-05-07  Bruno Haible  <bruno@clisp.org>
10335
10336         fpurge: Move AC_LIBOBJ invocations to module description.
10337         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10338         invocations from here...
10339         * modules/fpurge (configure.ac): ... to here.
10340
10341 2011-05-07  Bruno Haible  <bruno@clisp.org>
10342
10343         fpending: Move AC_LIBOBJ invocations to module description.
10344         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10345         gl_FUNC_FPENDING.
10346         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10347         invocations from here...
10348         * modules/fpending (configure.ac): ... to here.
10349
10350 2011-05-07  Bruno Haible  <bruno@clisp.org>
10351
10352         fopen: Move AC_LIBOBJ invocations to module description.
10353         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10354         invocations from here...
10355         * modules/fopen (configure.ac): ... to here.
10356
10357 2011-05-07  Bruno Haible  <bruno@clisp.org>
10358
10359         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10360         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10361         gl_FUNC_FNMATCH_POSIX.
10362         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10363         invocations from here...
10364         * modules/fnmatch (configure.ac): ... to here.
10365         * modules/fnmatch-gnu (configure.ac): ... and here.
10366
10367 2011-05-07  Bruno Haible  <bruno@clisp.org>
10368
10369         flock: Move AC_LIBOBJ invocations to module description.
10370         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10371         invocations from here...
10372         * modules/flock (configure.ac): ... to here.
10373
10374 2011-05-07  Bruno Haible  <bruno@clisp.org>
10375
10376         fileblocks: Move AC_LIBOBJ invocations to module description.
10377         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10378         gl_PREREQ_FILEBLOCKS invocations from here...
10379         * modules/fileblocks (configure.ac): ... to here.
10380
10381 2011-05-06  Bruno Haible  <bruno@clisp.org>
10382
10383         fflush: Move AC_LIBOBJ invocations to module description.
10384         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10385         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10386         invocations from here...
10387         * modules/fflush (configure.ac): ... to here.
10388
10389 2011-05-06  Bruno Haible  <bruno@clisp.org>
10390
10391         fdopendir: Move AC_LIBOBJ invocations to module description.
10392         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10393         here...
10394         * modules/fdopendir (configure.ac): ... to here.
10395         (Depends-on): Improve conditions.
10396
10397 2011-05-06  Bruno Haible  <bruno@clisp.org>
10398
10399         _Exit: Move AC_LIBOBJ invocations to module description.
10400         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10401         invocations from here...
10402         * modules/_Exit (configure.ac): ... to here.
10403
10404 2011-05-21  Bruno Haible  <bruno@clisp.org>
10405
10406         euidaccess: Respect rules for use of AC_LIBOBJ.
10407         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10409         from here...
10410         * modules/euidaccess (configure.ac): ... to here.
10411
10412 2011-05-06  Bruno Haible  <bruno@clisp.org>
10413
10414         error: Move AC_LIBOBJ invocations to module description.
10415         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10416         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10417         invocations from here...
10418         * modules/error (configure.ac): ... to here.
10419
10420 2011-05-06  Bruno Haible  <bruno@clisp.org>
10421
10422         duplocale: Move AC_LIBOBJ invocations to module description.
10423         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10424         gl_PREREQ_DUPLOCALE invocations from here...
10425         * modules/duplocale (configure.ac): ... to here.
10426
10427 2011-05-05  Bruno Haible  <bruno@clisp.org>
10428
10429         dirfd: Move AC_LIBOBJ invocations to module description.
10430         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10431         gl_FUNC_DIRFD.
10432         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10433         here...
10434         * modules/dirfd (configure.ac): ... to here.
10435         (Depends-on): Fix condition.
10436
10437 2011-05-05  Bruno Haible  <bruno@clisp.org>
10438
10439         chown: Respect rules for use of AC_LIBOBJ.
10440         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10441         * modules/chown (configure.ac): ... to here.
10442
10443 2011-05-05  Bruno Haible  <bruno@clisp.org>
10444
10445         chdir-long: Move AC_LIBOBJ invocations to module description.
10446         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10447         gl_PREREQ_CHDIR_LONG invocations from here...
10448         * modules/chdir-long (configure.ac): ... to here.
10449
10450 2011-05-05  Bruno Haible  <bruno@clisp.org>
10451
10452         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10453         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10454         from here...
10455         * modules/canonicalize-lgpl (configure.ac): ... to here.
10456
10457 2011-05-05  Bruno Haible  <bruno@clisp.org>
10458
10459         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10460         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10461         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10462         REPLACE_CALLOC.
10463         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10464         * modules/calloc-gnu (configure.ac): Likewise.
10465
10466 2011-05-05  Bruno Haible  <bruno@clisp.org>
10467
10468         btowc: Move AC_LIBOBJ invocations to module description.
10469         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10470         invocations from here...
10471         * modules/btowc (configure.ac): ... to here.
10472
10473 2011-05-21  Bruno Haible  <bruno@clisp.org>
10474
10475         atexit: Move AC_LIBOBJ invocations to module description.
10476         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10477         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10478         here...
10479         * modules/atexit (configure.ac): ... to here.
10480
10481 2011-05-05  Bruno Haible  <bruno@clisp.org>
10482
10483         atoll: Move AC_LIBOBJ invocations to module description.
10484         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10485         invocations from here...
10486         * modules/atoll (configure.ac): ... to here.
10487
10488 2011-05-05  Bruno Haible  <bruno@clisp.org>
10489
10490         argz: Move AC_LIBOBJ invocations to module description.
10491         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10492         * modules/argz (configure.ac): ... to here.
10493
10494 2011-05-05  Bruno Haible  <bruno@clisp.org>
10495
10496         alphasort: Move AC_LIBOBJ invocations to module description.
10497         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10498         gl_PREREQ_ALPHASORT invocations from here...
10499         * modules/alphasort (configure.ac): ... to here.
10500
10501 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10502
10503         verify: new macro verify_expr; verify_true deprecated
10504         * NEWS: Mention this.
10505         * doc/verify.texi (Compile-time Assertions): Document this.
10506         * lib/verify.h (verify_true): Deprecate.
10507         (verify_expr): New macro.
10508         * tests/test-verify.c (function): Test verify_expr.
10509
10510 2011-06-14  Jim Meyering  <meyering@redhat.com>
10511
10512         init.sh: give more portable redirection-related advice in a comment
10513         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10514         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10515         for lots of discussion.  Stefano Lattarini suggested the solution
10516         of putting "9>&2" after the command.  Reported by Bruno Haible.
10517
10518 2011-06-13  Bruno Haible  <bruno@clisp.org>
10519
10520         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10521         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10522         'none'.
10523
10524 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10525
10526         ftoastr: use strtof only if HAVE_STRTOF
10527         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10529         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10530         * modules/ftoastr (configure.ac): Check for strtof.
10531
10532 2011-06-13  Bruno Haible  <bruno@clisp.org>
10533
10534         gnulib-tool: Addendum to 2011-06-08 commit.
10535         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10536         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10537
10538 2011-06-13  Bruno Haible  <bruno@clisp.org>
10539
10540         fseeko: Provide a non-inline replacement of fseek().
10541         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10542         * modules/fseeko (Depends-on): Add fseek.
10543         * modules/fseek (License): Change to LGPLv2+.
10544
10545 2011-06-13  Bruno Haible  <bruno@clisp.org>
10546
10547         ftello: Provide a non-inline replacement of ftell().
10548         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10549         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10550         not have ftello() (such as on mingw).
10551         * modules/ftello (Depends-on): Add ftell.
10552         * modules/ftell (License): Change to LGPLv2+.
10553
10554 2011-05-07  Bruno Haible  <bruno@clisp.org>
10555
10556         ftell: Move AC_LIBOBJ invocations to module description.
10557         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10558         * modules/ftell (configure.ac): ... to here.
10559
10560 2011-05-07  Bruno Haible  <bruno@clisp.org>
10561
10562         ftello: Respect rules for use of AC_LIBOBJ.
10563         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10564         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10565         here...
10566         * modules/ftello (configure.ac): ... to here.
10567
10568 2011-05-07  Bruno Haible  <bruno@clisp.org>
10569
10570         fseeko: Simplify.
10571         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10572         (gl_FUNC_FSEEKO): Inline it here.
10573
10574 2011-05-07  Bruno Haible  <bruno@clisp.org>
10575
10576         fseek: Move AC_LIBOBJ invocations to module description.
10577         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10578         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10579         * modules/fseek (configure.ac): ... to here.
10580
10581 2011-05-07  Bruno Haible  <bruno@clisp.org>
10582
10583         fseek: Respect rules for use of AC_LIBOBJ.
10584         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10585         here...
10586         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10587
10588 2011-05-07  Bruno Haible  <bruno@clisp.org>
10589
10590         fseeko: Respect rules for use of AC_LIBOBJ.
10591         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10592         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10593         here...
10594         * modules/fseeko (configure.ac): ... to here.
10595
10596 2011-06-13  Bruno Haible  <bruno@clisp.org>
10597
10598         gnulib-tool: Allow comments in the 'Depends-on' section.
10599         * doc/gnulib.texi (Module description): Mention comment syntax in the
10600         Depends-on section.
10601         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10602
10603 2011-06-13  Bruno Haible  <bruno@clisp.org>
10604
10605         file-set.h: guard __attibute__ use, now that it's not always defined
10606         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10607         versions that support it.  This fixes a coreutils build failure with
10608         the vendor cc on HP-UX 11.31.
10609
10610 2011-06-12  Bruno Haible  <bruno@clisp.org>
10611
10612         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10613         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10614         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10615         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10616         (acl, aclsort): New declarations.
10617         (aclv_nontrivial): New declaration.
10618         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10619         (file_has_acl): Read also the second kind of HP-UX ACLs.
10620         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10621         kind of HP-UX ACLs if the first kind fails.
10622         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10623         second kind of HP-UX ACLs.
10624         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10625         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10626         agree.
10627         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10628         hpuxjfs.
10629         Handle hpuxjfs.
10630         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10631         hpuxjfs.
10632         Handle hpuxjfs.
10633         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10634         (func_test_same_acls): Use both lsacl and getacl.
10635         Handle hpuxjfs.
10636         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10637         (func_test_same_acls): Use both lsacl and getacl.
10638         Handle hpuxjfs.
10639
10640 2011-06-12  Bruno Haible  <bruno@clisp.org>
10641
10642         acl: Complete the 2010-08-10 fix.
10643         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10644         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10645         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10646         explicitly.
10647         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10648         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10649
10650 2011-06-12  Bruno Haible  <bruno@clisp.org>
10651
10652         spawn-pipe tests: Comments.
10653         * tests/test-spawn-pipe-child.c (main): Update comment.
10654         Reported by James Youngman <jay@gnu.org>.
10655
10656 2011-06-11  James Youngman  <jay@gnu.org>
10657
10658         New module 'stat-size'.
10659         * modules/stat-size: New module.  Provides macros for accessing
10660         file size information in instances of struct stat.  Depends on the
10661         fileblocks module because it calls st_blocks.
10662         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10663         * doc/gnulib.texi: Include stat-size.texi.
10664         * doc/stat-size.texi: Documentation for this module.
10665         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10666         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10667         AC_STRUCT_ST_BLOCKS.
10668
10669 2011-06-09  Bruno Haible  <bruno@clisp.org>
10670
10671         thread: Support pthreads-win32.
10672         * lib/glthread/thread.h (gl_thread_self): Define differently on
10673         pthreads-win32.
10674         (gl_null_thread): New declaration.
10675         (gl_thread_self_pointer): New macro.
10676         * lib/glthread/thread.c (gl_null_thread): New constant.
10677         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10678         gl_thread_self.
10679         * tests/test-tls.c: Likewise.
10680         Suggested by Paul Eggert. Reported by Eric Blake.
10681
10682 2011-06-09  Bruno Haible  <bruno@clisp.org>
10683
10684         thread: Fix confusion between NULL and 0.
10685         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10686         Reported by Paul Eggert.
10687
10688 2011-06-09  Bruno Haible  <bruno@clisp.org>
10689
10690         spawn-pipe tests: Avoid test failure on HP-UX 11.
10691         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10692         is closed.
10693
10694 2011-06-09  Bruno Haible  <bruno@clisp.org>
10695
10696         acl tests: Fix compilation error on HP-UX 11.
10697         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10698
10699 2011-06-09  Bruno Haible  <bruno@clisp.org>
10700
10701         rmdir: Avoid test failure on HP-UX 10.20.
10702         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10703         EEXIST.
10704
10705 2011-06-08  Eric Blake  <eblake@redhat.com>
10706
10707         perror: fix test on mingw
10708         * modules/perror-tests (Depends-on): Add dup2.
10709
10710         strerror_r-posix: fix on MacOS
10711         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10712         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10713         logic bug.
10714         * lib/strerror_r.c (strerror_r): Fix the bug.
10715         * lib/strerror.c (strerror): Likewise.
10716         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10717         problem.
10718         * doc/posix-functions/strerror.texi (strerror): Likewise.
10719         * doc/posix-functions/perror.texi (perror): Likewise.
10720         * tests/test-strerror.c (main): Enhance test.
10721         * tests/test-strerror_r.c (main): Likewise.
10722
10723 2011-06-08  Bruno Haible  <bruno@clisp.org>
10724
10725         gnulib-tool: Better isolation between different gnulib-tool invocations.
10726         * gnulib-tool: New option --witness-c-macro.
10727         (witness_c_macro): New variable.
10728         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10729         AM_CPPFLAGS define it as a C macro.
10730         (func_emit_tests_Makefile_am): Likewise.
10731         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10732         read it from there.
10733         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10734         m4_define, not AC_DEFUN.
10735         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10736         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10737         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10738         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10739         s|...|...|, to substitute the values of the GNULIB_* module indicator
10740         variables.
10741         * modules/dirent (Makefile.am): Likewise.
10742         * modules/fcntl-h (Makefile.am): Likewise.
10743         * modules/iconv-h (Makefile.am): Likewise.
10744         * modules/langinfo (Makefile.am): Likewise.
10745         * modules/locale (Makefile.am): Likewise.
10746         * modules/math (Makefile.am): Likewise.
10747         * modules/netdb (Makefile.am): Likewise.
10748         * modules/poll-h (Makefile.am): Likewise.
10749         * modules/pty (Makefile.am): Likewise.
10750         * modules/search (Makefile.am): Likewise.
10751         * modules/signal (Makefile.am): Likewise.
10752         * modules/spawn (Makefile.am): Likewise.
10753         * modules/stdio (Makefile.am): Likewise.
10754         * modules/stdlib (Makefile.am): Likewise.
10755         * modules/string (Makefile.am): Likewise.
10756         * modules/sys_ioctl (Makefile.am): Likewise.
10757         * modules/sys_select (Makefile.am): Likewise.
10758         * modules/sys_socket (Makefile.am): Likewise.
10759         * modules/sys_stat (Makefile.am): Likewise.
10760         * modules/sys_times (Makefile.am): Likewise.
10761         * modules/sys_utsname (Makefile.am): Likewise.
10762         * modules/sys_wait (Makefile.am): Likewise.
10763         * modules/termios (Makefile.am): Likewise.
10764         * modules/time (Makefile.am): Likewise.
10765         * modules/unistd (Makefile.am): Likewise.
10766         * modules/wchar (Makefile.am): Likewise.
10767
10768 2011-06-08  Eric Blake  <eblake@redhat.com>
10769
10770         strerror: simplify replacement
10771         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10772         * modules/strerror (configure.ac): No prereqs needed here...
10773         * modules/strerror-override (configure.ac): ...but this needs it.
10774         (Files): Add file for needed prereq macro.
10775
10776 2011-06-08  Bruno Haible  <bruno@clisp.org>
10777
10778         strerror_r-posix: Tweaks.
10779         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10780         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10781         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10782         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10783         (gl_FUNC_STRERROR_R): ... to here.
10784         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10785
10786 2011-06-07  Eric Blake  <eblake@redhat.com>
10787
10788         perror: document fixed bugs
10789         * doc/posix-functions/perror.texi (perror): Document recent
10790         patches.
10791
10792 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10793
10794         stat-time: get_stat_birthtime failure is better-defined
10795         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10796         return a timestamp whose tv_sec and tv_nsec values are both -1.
10797         Previously, the spec said only that the tv_nsec value was negative.
10798         This upward-compatible change simplifies GNU tar a bit.
10799
10800 2011-06-07  Eric Blake  <eblake@redhat.com>
10801
10802         strerror_r-posix: work around cygwin 1.7.9
10803         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10804         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10805         bug without replacing strerror_r.
10806         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10807         strerror_r is buggy, but without requiring strerror_r compilation.
10808         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10809
10810         test-perror: relax test to ignore cygwin bug
10811         * tests/test-perror2.c (main): Relax test on requiring detection
10812         of stream errors, and use unbuffered stream.
10813         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10814         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10815         * doc/posix-functions/fputc.texi (fputc): Likewise.
10816         * doc/posix-functions/fputs.texi (fputs): Likewise.
10817         * doc/posix-functions/fputws.texi (fputws): Likewise.
10818         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10819         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10820         * doc/posix-functions/getopt.texi (getopt): Likewise.
10821         * doc/posix-functions/perror.texi (perror): Likewise.
10822         * doc/posix-functions/printf.texi (printf): Likewise.
10823         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10824         * doc/posix-functions/psignal.texi (psignal): Likewise.
10825         * doc/posix-functions/putc.texi (putc): Likewise.
10826         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10827         Likewise.
10828         * doc/posix-functions/putchar.texi (putchar): Likewise.
10829         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10830         Likewise.
10831         * doc/posix-functions/puts.texi (puts): Likewise.
10832         * doc/posix-functions/putwc.texi (putwc): Likewise.
10833         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10834         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10835         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10836         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10837         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10838         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10839         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10840         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10841
10842 2011-05-22  Bruno Haible  <bruno@clisp.org>
10843
10844         strerror: Move AC_LIBOBJ invocations to module description.
10845         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10846         gl_PREREQ_STRERROR invocations from here...
10847         * modules/strerror (configure.ac): ... to here.
10848
10849 2011-05-21  Bruno Haible  <bruno@clisp.org>
10850
10851         perror: Use common idiom.
10852         * modules/perror (configure.ac): Reorder statements.
10853
10854 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10855
10856         tests: fix usage message in 'mktempd_'
10857         * tests/init.sh (mktempd_): In the usage message, use literal
10858         'mktempd_', not '$ME' (which is even undefined), as the name of
10859         the subroutine.
10860
10861 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10862
10863         tests init: new function 'fatal_', for hard errors
10864         Before this patch, the only way offered by tests/init.sh to
10865         properly signal a hard error was the `framework_failure_'
10866         function.  But the error message issued by that function,
10867         as its name would suggest, refers to a set-up failure in the
10868         testsuite, while hard errors can obviously also be due to
10869         other reasons.  The best way to fix this inconsistency is to
10870         introduce a new function with a more general error message.
10871         * tests/init.sh (fatal_): New function.
10872
10873 2011-06-06  Eric Blake  <eblake@redhat.com>
10874
10875         canonicalize-lgpl: use common idiom
10876         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10877         over newer POSIX -Rf.
10878         Reported by Bruno Haible.
10879
10880         canonicalize-lgpl: work around AIX realpath bug
10881         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10882         * doc/posix-functions/realpath.texi (realpath): Document it.
10883         Reported by Bruno Haible.
10884
10885         strerror: work around FreeBSD bug
10886         * lib/strerror.c (strerror): Special case 0.
10887         Reported by Bruno Haible.
10888
10889         strerror-override: avoid bloating errno module
10890         * modules/errno (Files, configure.ac): Move replacement strings...
10891         * modules/strerror-override: ...to new module.
10892         * modules/strerror (Depends-on): Add strerror-override.
10893         * modules/strerror_r-posix (Depends-on): Likewise.
10894         * MODULES.html.sh: Document new module.
10895         Reported by Bruno Haible.
10896
10897 2011-06-06  Bruno Haible  <bruno@clisp.org>
10898
10899         spawn-pipe tests: Rename program.
10900         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10901         * tests/test-spawn-pipe-child.c: Update comment.
10902         * tests/test-spawn-pipe.sh: Update.
10903         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10904
10905         spawn-pipe tests: Link the child program only against libc.
10906         * tests/test-spawn-pipe-child.c: New file, extracted from
10907         tests/test-spawn-pipe.c.
10908         (main): Expect only one argument.
10909         (is_open): New function, copied from tests/test-pipe.c.
10910         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10911         (child_main): Remove function.
10912         (test_pipe): Pass only one argument to the child program.
10913         (main): Remove child process code. Expect the child program's name as
10914         first argument.
10915         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10916         argument.
10917         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10918         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10919         test-spawn-pipe-child against no libraries.
10920
10921 2011-06-06  Bruno Haible  <bruno@clisp.org>
10922
10923         careadlinkat: Avoid mismatch between ssize_t and int.
10924         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10925         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10926
10927 2011-06-06  Jim Meyering  <meyering@redhat.com>
10928
10929         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10930         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10931         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10932
10933 2011-06-05  Bruno Haible  <bruno@clisp.org>
10934
10935         ansi-c++-opt: Interoperability with libtool.
10936         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10937         set the variable to "no", not to ":".
10938         * NEWS: Mention the change.
10939
10940 2011-06-05  Bruno Haible  <bruno@clisp.org>
10941
10942         acl: Fix test failure on AIX 7.
10943         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10944         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10945
10946 2011-06-05  Bruno Haible  <bruno@clisp.org>
10947
10948         pipe-filter-ii: Fix test failure on AIX and IRIX.
10949         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10950         with EAGAIN, retry with a smaller buffer size.
10951
10952 2011-06-05  Bruno Haible  <bruno@clisp.org>
10953
10954         localename: Fix link dependencies.
10955         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10956         * modules/localename-tests (Makefile.am): Link test-localename with
10957         $(LIBTHREAD).
10958
10959 2011-06-05  Bruno Haible  <bruno@clisp.org>
10960
10961         error: Avoid gcc warning.
10962         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10963
10964 2011-06-05  Bruno Haible  <bruno@clisp.org>
10965
10966         unsetenv: Avoid gcc warning.
10967         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10968
10969 2011-06-05  Bruno Haible  <bruno@clisp.org>
10970
10971         setenv: Avoid gcc warning.
10972         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10973
10974 2011-06-05  Bruno Haible  <bruno@clisp.org>
10975
10976         sys_select: Ensure memset is declared also on AIX 7.
10977         * lib/sys_select.in.h: Include <string.h> also on AIX.
10978         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10979         self-contained also on AIX 7.1.
10980
10981 2011-06-04  Jim Meyering  <meyering@redhat.com>
10982
10983         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10984         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10985         function name, "error".
10986         (_gl_translatable_diag_func_re): New configurable variable.
10987
10988 2011-06-04  Bruno Haible  <bruno@clisp.org>
10989
10990         getopt: Avoid gcc warning.
10991         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10992
10993 2011-06-04  Bruno Haible  <bruno@clisp.org>
10994
10995         strerror_r: Fix comments.
10996         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10997         commit.
10998
10999 2011-06-04  Bruno Haible  <bruno@clisp.org>
11000
11001         perror: Fix compilation error.
11002         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11003         Undefine fprintf, not sprintf.
11004         * modules/perror (Depends-on): Remove intprops, verify.
11005
11006 2011-06-04  Bruno Haible  <bruno@clisp.org>
11007
11008         setlocale: Enable replacement on Cygwin 1.5.
11009         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11010         Cygwin 1.5.x.
11011         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11012         LC_CTYPE category also exists on Cygwin 1.5.x.
11013
11014 2011-06-04  Bruno Haible  <bruno@clisp.org>
11015
11016         strerror-override: Don't disable symbol renamings.
11017         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11018         * lib/strerror-override.c: Include config.h.
11019         (strerror_override): Don't undefine.
11020
11021 2011-06-03  Bruno Haible  <bruno@clisp.org>
11022
11023         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11024         * lib/localename.h: Update copyright header.
11025         * lib/localename.c: Likewise.
11026         * lib/relocatable.h: Likewise.
11027         * lib/relocatable.c: Likewise.
11028
11029 2011-06-02  Bruno Haible  <bruno@clisp.org>
11030
11031         doc: Fix a module name.
11032         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11033
11034 2011-06-02  Bruno Haible  <bruno@clisp.org>
11035
11036         pipe2: Remove dependency on 'nonblocking' module.
11037         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11038         O_NONBLOCK is defined by gnulib.
11039         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11040         is zero.
11041         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11042         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11043         defined by gnulib.
11044         (get_nonblocking_flag): New function.
11045         (main): Test O_NONBLOCK flag only if it is nonzero.
11046         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11047
11048 2011-06-03  Jim Meyering  <meyering@redhat.com>
11049
11050         maint: three new prohibit-header-without-use rules
11051         Prohibit use of cloexec.h, posixver.h, same.h without use.
11052         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11053         (sc_prohibit_posixver_without_use): Likewise.
11054         (sc_prohibit_same_without_use): Likewise.
11055
11056 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11057
11058         allocator: 'die' routine is now given requested size
11059         * lib/allocator.h (struct allocator.die): New size arg.
11060         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11061         If the actual problem is an ssize_t limitation, not a size_t or
11062         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11063
11064 2011-06-01  Eric Blake  <eblake@redhat.com>
11065
11066         strerror: drop strerror_r dependency
11067         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11068         * lib/strerror-override.c (strerror_override): ...to new file.
11069         * lib/strerror-override.h: Add prototype.
11070         * lib/strerror-impl.h: Delete.
11071         * lib/strerror.c (strerror): New implementation.
11072         * modules/errno (Files): Add new files.
11073         (configure.ac): Compile new file as appropriate.
11074         * modules/strerror (Files): Drop unused file.
11075         (Depends-on): Drop strerror_r-posix.
11076         * MODULES.html.sh: Document strerror_r-posix.
11077         Requested by Sam Steingold.
11078
11079         perror: call strerror_r directly
11080         * modules/perror (Files): Drop strerror-impl.h.
11081         * lib/perror.c (perror): Use our own stack buffer, rather than
11082         calling a wrapper that uses static storage.
11083         * doc/posix-functions/perror.texi (perror): Document a limitation
11084         of our replacement.
11085
11086         strerror_r: fix includes for FreeBSD
11087         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11088         since we use abort on some platforms.
11089         Reported by Matthias Bolte.
11090
11091 2011-05-31  Bruno Haible  <bruno@clisp.org>
11092
11093         Fix link errors in tests: openat-die uses gettext-h.
11094         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11095         against $(LIBINTL).
11096         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11097         against $(LIBINTL).
11098         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11099         $(LIBINTL).
11100         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11101         against $(LIBINTL).
11102         * modules/linkat-tests (Makefile.am): Link test-linkat against
11103         $(LIBINTL).
11104         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11105         $(LIBINTL).
11106         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11107         against $(LIBINTL).
11108         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11109         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11110         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11111         $(LIBINTL).
11112         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11113         $(LIBINTL).
11114         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11115         $(LIBINTL).
11116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11117
11118 2011-05-31  Bruno Haible  <bruno@clisp.org>
11119
11120         Fix link errors in tests: wait-process uses gettext-h.
11121         * modules/nonblocking-pipe-tests (Makefile.am): Set
11122         test_nonblocking_pipe_main_LDADD.
11123         * modules/nonblocking-socket-tests (Makefile.am): Link
11124         test-nonblocking-socket-main against $(LIBINTL).
11125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11126
11127 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         assert-h: work around 'verify' incompatibility
11130         * lib/verify.h: Use @...@ directives, not ifdef.
11131         * modules/assert-h (assert.h): Implement the directives.
11132         (assert.h): Substitute the symbol-prefix more consistently.
11133
11134 2011-05-29  Jim Meyering  <meyering@redhat.com>
11135
11136         trim: remove three superfluous assignments
11137         * lib/trim.c (trim2): Remove three superfluous assignments
11138         and correct brace positioning.
11139
11140 2011-05-29  Bruno Haible  <bruno@clisp.org>
11141
11142         wctype-h: Avoid namespace pollution on Solaris 2.6.
11143         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11144         identifiers.
11145         * doc/posix-headers/wctype.texi: Mention the problem.
11146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11147
11148 2011-05-28  Jim Meyering  <meyering@redhat.com>
11149
11150         parse-datetime.y: accommodate -Wstrict-overflow
11151         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11152         placate -Wstrict-overflow.
11153
11154         trim: avoid a warning from -O2 -Wstrict-overflow
11155         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11156
11157 2011-05-29  Bruno Haible  <bruno@clisp.org>
11158
11159         gnulib-tool: Fix bug in yesterday's commit.
11160         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11161         twice.
11162
11163 2011-05-29  Bruno Haible  <bruno@clisp.org>
11164
11165         Allow multiple gnulib generated include files to be combined.
11166         * gnulib-tool (func_compute_include_guard_prefix): New function.
11167         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11168         ${gl_include_guard_prefix} references.
11169         (func_import, func_create_testdir): Invoke
11170         func_compute_include_guard_prefix.
11171         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11172         * lib/ctype.in.h: Likewise.
11173         * lib/dirent.in.h: Likewise.
11174         * lib/errno.in.h: Likewise.
11175         * lib/fcntl.in.h: Likewise.
11176         * lib/float.in.h: Likewise.
11177         * lib/getopt.in.h: Likewise.
11178         * lib/iconv.in.h: Likewise.
11179         * lib/langinfo.in.h: Likewise.
11180         * lib/locale.in.h: Likewise.
11181         * lib/math.in.h: Likewise.
11182         * lib/netdb.in.h: Likewise.
11183         * lib/netinet_in.in.h: Likewise.
11184         * lib/poll.in.h: Likewise.
11185         * lib/pthread.in.h: Likewise.
11186         * lib/pty.in.h: Likewise.
11187         * lib/sched.in.h: Likewise.
11188         * lib/se-selinux.in.h: Likewise.
11189         * lib/search.in.h: Likewise.
11190         * lib/signal.in.h: Likewise.
11191         * lib/spawn.in.h: Likewise.
11192         * lib/stdarg.in.h: Likewise.
11193         * lib/stddef.in.h: Likewise.
11194         * lib/stdint.in.h: Likewise.
11195         * lib/stdio.in.h: Likewise.
11196         * lib/stdlib.in.h: Likewise.
11197         * lib/string.in.h: Likewise.
11198         * lib/strings.in.h: Likewise.
11199         * lib/sys_file.in.h: Likewise.
11200         * lib/sys_ioctl.in.h: Likewise.
11201         * lib/sys_select.in.h: Likewise.
11202         * lib/sys_socket.in.h: Likewise.
11203         * lib/sys_stat.in.h: Likewise.
11204         * lib/sys_time.in.h: Likewise.
11205         * lib/sys_times.in.h: Likewise.
11206         * lib/sys_uio.in.h: Likewise.
11207         * lib/sys_utsname.in.h: Likewise.
11208         * lib/sys_wait.in.h: Likewise.
11209         * lib/sysexits.in.h: Likewise.
11210         * lib/termios.in.h: Likewise.
11211         * lib/time.in.h: Likewise.
11212         * lib/unistd.in.h: Likewise.
11213         * lib/wchar.in.h: Likewise.
11214         * lib/wctype.in.h: Likewise.
11215         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11216         * modules/ctype (Makefile.am): Likewise.
11217         * modules/dirent (Makefile.am): Likewise.
11218         * modules/errno (Makefile.am): Likewise.
11219         * modules/fcntl-h (Makefile.am): Likewise.
11220         * modules/float (Makefile.am): Likewise.
11221         * modules/getopt-posix (Makefile.am): Likewise.
11222         * modules/iconv-h (Makefile.am): Likewise.
11223         * modules/langinfo (Makefile.am): Likewise.
11224         * modules/locale (Makefile.am): Likewise.
11225         * modules/math (Makefile.am): Likewise.
11226         * modules/netdb (Makefile.am): Likewise.
11227         * modules/netinet_in (Makefile.am): Likewise.
11228         * modules/poll-h (Makefile.am): Likewise.
11229         * modules/pthread (Makefile.am): Likewise.
11230         * modules/pty (Makefile.am): Likewise.
11231         * modules/sched (Makefile.am): Likewise.
11232         * modules/search (Makefile.am): Likewise.
11233         * modules/selinux-h (Makefile.am): Likewise.
11234         * modules/signal (Makefile.am): Likewise.
11235         * modules/spawn (Makefile.am): Likewise.
11236         * modules/stdarg (Makefile.am): Likewise.
11237         * modules/stddef (Makefile.am): Likewise.
11238         * modules/stdint (Makefile.am): Likewise.
11239         * modules/stdio (Makefile.am): Likewise.
11240         * modules/stdlib (Makefile.am): Likewise.
11241         * modules/string (Makefile.am): Likewise.
11242         * modules/strings (Makefile.am): Likewise.
11243         * modules/sys_file (Makefile.am): Likewise.
11244         * modules/sys_ioctl (Makefile.am): Likewise.
11245         * modules/sys_select (Makefile.am): Likewise.
11246         * modules/sys_socket (Makefile.am): Likewise.
11247         * modules/sys_stat (Makefile.am): Likewise.
11248         * modules/sys_time (Makefile.am): Likewise.
11249         * modules/sys_times (Makefile.am): Likewise.
11250         * modules/sys_uio (Makefile.am): Likewise.
11251         * modules/sys_utsname (Makefile.am): Likewise.
11252         * modules/sys_wait (Makefile.am): Likewise.
11253         * modules/sysexits (Makefile.am): Likewise.
11254         * modules/termios (Makefile.am): Likewise.
11255         * modules/time (Makefile.am): Likewise.
11256         * modules/unistd (Makefile.am): Likewise.
11257         * modules/wchar (Makefile.am): Likewise.
11258         * modules/wctype-h (Makefile.am): Likewise.
11259         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11260
11261 2011-05-29  Bruno Haible  <bruno@clisp.org>
11262
11263         assert-h: Allow multiple gnulib generated replacements to coexist.
11264         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11265
11266 2011-05-29  Bruno Haible  <bruno@clisp.org>
11267
11268         argp: Allow coexistence with strerror_r-posix module.
11269         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11270         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11271         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11272         not the glibc signature.
11273
11274 2011-05-28  Bruno Haible  <bruno@clisp.org>
11275
11276         gnulib-tool: Alternative structure of testdirs, similar to --import.
11277         * gnulib-tool: New option --single-configure.
11278         (func_usage): Document it.
11279         (single_configure): New variable.
11280         (func_modules_transitive_closure_separately,
11281         func_modules_transitive_closure_separately,
11282         func_determine_use_libtests, func_modules_add_dummy_separately,
11283         func_modules_to_filelist_separately): New functions, extracted from
11284         func_import.
11285         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11286         (func_import): Use the new functions.
11287         (func_create_testdir): Set final_modules. Handle $single_configure =
11288         true case.
11289
11290 2011-05-28  Bruno Haible  <bruno@clisp.org>
11291
11292         getloadavg: Remove an unreliable safety check.
11293         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11294         getloadavg.c is in place.
11295         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11296         Reported by Sam Steingold <sds@gnu.org>.
11297
11298 2011-05-28  Bruno Haible  <bruno@clisp.org>
11299
11300         doc: Cleanup yet another file produced by texinfo.tex.
11301         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11302
11303 2011-05-28  Bruno Haible  <bruno@clisp.org>
11304
11305         Finish the conditional dependencies mechanism.
11306         * gnulib-tool: New option --no-conditional-dependencies.
11307         (func_usage): Document it. Don't mark --conditional-dependencies as
11308         experimental.
11309         (cond_dependencies): The possible values can now be true, false, empty.
11310         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11311         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11312         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11313
11314 2011-05-28  Bruno Haible  <bruno@clisp.org>
11315
11316         doc: Use a recent texinfo.tex.
11317         * doc/Makefile (tex_opts): New variable.
11318         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11319
11320 2011-05-28  Jim Meyering  <meyering@redhat.com>
11321
11322         intprops.h: adjust comment to match code change
11323         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11324         only once, it *may* have side effects.  Also fix an unrelated typo.
11325         (_GL_INT_SIGNED): Likewise.
11326
11327 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11328
11329         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11330
11331 2011-05-26  Bruno Haible  <bruno@clisp.org>
11332
11333         mbsrchr: Avoid collision with system function on Interix.
11334         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11335         Reported by Markus Duft <mduft@gentoo.org>.
11336
11337 2011-05-15  James Youngman  <jay@gnu.org>
11338
11339         getopt: for ambiguous options, enumerate the possibilities.
11340         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11341         the ambiguous options when an ambiguous prefix is given. This was
11342         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11343         glibc change was
11344         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11345
11346 2011-05-25  Eric Blake  <eblake@redhat.com>
11347
11348         getcwd: work around mingw bug
11349         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11350         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11351         Reported by Matthias Bolte.
11352
11353 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11354
11355         test-intprops: disable -Wtype-limits diagnostics
11356         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11357         diagnostics.  Otherwise, the integer overflow macros generate many
11358         diagnostics.  Reported by Jim Meyering in
11359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11360
11361         intprops: shorten, to pacify gcc -Woverlength-strings
11362         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11363         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11364         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11365         likely to run afoul of C compiler limits for string constant lengths.
11366         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11367
11368 2011-05-24  Eric Blake  <eblake@redhat.com>
11369
11370         docs: document recently fixed glibc printf bug
11371         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11372         * doc/posix-functions/printf.texi (printf): Likewise.
11373         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11374         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11375
11376         closein-tests: convert to init.sh
11377         * modules/closein-tests (Files): Add init.sh
11378         * tests/test-closein.sh Use it.
11379
11380         yesno-tests: convert to init.sh
11381         * modules/yesno-tests (Files): Add init.sh.
11382         * tests/test-yesno.sh: Use it.
11383
11384         atexit-tests: ensure reliable exit status
11385         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11386         Reported by Bruno Haible.
11387
11388 2011-05-24  Bruno Haible  <bruno@clisp.org>
11389
11390         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11392         gl_PREREQ_STRERROR_R invocations from here...
11393         * modules/strerror_r-posix (configure.ac): ... to here.
11394
11395 2011-05-24  Eric Blake  <eblake@redhat.com>
11396
11397         strerror_r: fix missing header
11398         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11399
11400         strerror_r: fix AIX test failures
11401         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11402         ERANGE failure.
11403
11404         strerror_r: fix Solaris test failures
11405         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11406         failures.
11407         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11408
11409         strerror_r: enforce POSIX recommendations
11410         * lib/strerror_r.c (safe_copy): New helper method.
11411         (strerror_r): Guarantee a non-empty string.
11412         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11413         recent POSIX rulings and to match our strerror guarantees.
11414         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11415
11416 2011-05-24  Jim Meyering  <meyering@redhat.com>
11417
11418         test-perror2.c: avoid warning about unused variable
11419         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11420
11421 2011-05-24  Eric Blake  <eblake@redhat.com>
11422
11423         perror: avoid spurious test failure on HP-UX
11424         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11425
11426         tests: fix logic bug in init.sh
11427         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11428         shell.
11429
11430 2011-05-24  Jim Meyering  <meyering@redhat.com>
11431
11432         utimensat: do not reference an out-of-scope buffer
11433         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11434         declared in an inner scope, yet "times" would be dereferenced outside
11435         the scope in which "ts" was valid.
11436         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11437         of ts[2] "out/up", so that the use of aliased "times" (via
11438         "times = ts;") does not end up referencing an out-of-scope "ts"
11439
11440         opendir-safer.c: don't clobber errno; don't close negative FD
11441         * lib/opendir-safer.c (opendir_safer):
11442         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11443         file descriptor, and more importantly, don't clobber the
11444         offending errno value with EINVAL.  Before, upon failure
11445         of dup_safer, we would pass the negative file descriptor to
11446         fdopendir, which would clobber errno.
11447
11448 2011-05-23  Bruno Haible  <bruno@clisp.org>
11449
11450         idcache: Fix module description.
11451         * modules/idcache (Include): Set to "idcache.h".
11452
11453 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11454
11455         gnulib-tool: fix portability problem with MacOS sed
11456         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11457         before the "}".  Problem reported by Leo in
11458         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11459         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11460         sed_extract_condition1, sed_extract_condition2.
11461
11462 2011-05-23  Bruno Haible  <bruno@clisp.org>
11463
11464         hash: Simplify autoconf macro.
11465         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11466
11467 2011-05-23  Bruno Haible  <bruno@clisp.org>
11468
11469         getugroups: Fix module description.
11470         * modules/getugroups (Include): Set to "getugroups.h".
11471
11472 2011-05-23  Bruno Haible  <bruno@clisp.org>
11473
11474         linkat: Simplify autoconf macro.
11475         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11476
11477 2011-05-23  Bruno Haible  <bruno@clisp.org>
11478             Eric Blake  <eblake@redhat.com>
11479
11480         linkat, renameat: Update dependencies.
11481         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11482         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11483         symlinkat.
11484
11485 2011-05-23  Jim Meyering  <meyering@redhat.com>
11486
11487         maint.mk: more tight_scope improvements
11488         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11489         (_gl_TS_headers): Define only in if-0'd block.
11490         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11491         sometimes we must *not* use it.  Adjust uses accordingly.
11492         (sc_tight_scope): Use much simpler grep-based test to determine
11493         whether we skip this rule.
11494
11495         maint.mk: generalize/improve the tight-scope rule
11496         * top/maint.mk: Emit a warning when the test is skipped.
11497         (_gl_TS_dir): Add $(srcdir)/ prefix.
11498         (_gl_TS_function_match): Simplify, rather than trying
11499         to enumerate common types.  Otherwise, it would fail to match an
11500         "extern unsigned char const *" declaration in idutils.
11501         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11502         a way to support use of that type of macro.
11503         (_gl_TS_var_match): Simplify regexp.
11504         (_gl_TS_obj_files): New configurable variable.
11505         (_gl_TS_headers): Likewise.
11506
11507 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11508
11509         verify: fix bug when gnulib <assert.h> is also included
11510         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11511         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11512         Perhaps there's a better way, but this fixes the immediate problem.
11513         Problem reported by Bruno Haible in
11514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11515
11516 2011-05-22  Bruno Haible  <bruno@clisp.org>
11517
11518         xgetcwd: Simplify autoconf macro.
11519         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11520
11521 2011-05-22  Bruno Haible  <bruno@clisp.org>
11522
11523         New module 'mktime-internal'.
11524         * modules/mktime-internal: New file.
11525         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11526         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11527         mktime_internal as a C macro if libc has __mktime_internal.
11528         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11529         conditions.
11530         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11531
11532 2011-05-22  Bruno Haible  <bruno@clisp.org>
11533
11534         timegm: Correct mktime replacement statements.
11535         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11536         defining mktime as a C macro. This completes a 2009-07-28 commit.
11537
11538 2011-05-22  Bruno Haible  <bruno@clisp.org>
11539
11540         timegm: Simplify autoconf macro.
11541         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11542
11543 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11544
11545         clock-time: change to LGPLv2+.
11546         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11547         BSD-like but we have no mark for that; this is good enough for now.
11548
11549 2011-05-21  Bruno Haible  <bruno@clisp.org>
11550
11551         strerror_r: Fix comments.
11552         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11553
11554 2011-05-21  Bruno Haible  <bruno@clisp.org>
11555
11556         relocatable-prog-wrapper: Fix possible link error.
11557         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11558         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11559         (gl_FUNC_SETENV): ... to here.
11560         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11561         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11562
11563 2011-05-21  Bruno Haible  <bruno@clisp.org>
11564
11565         relocatable-prog-wrapper: Assume strerror() exists.
11566         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11567         m4/strerror.m4.
11568         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11569         * lib/relocwrapper.c: Remove mention of strerror module.
11570         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11571         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11572         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11573         C macro.
11574
11575 2011-05-21  Bruno Haible  <bruno@clisp.org>
11576
11577         select: Simplify replacement idiom.
11578         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11579         Win32 platforms.
11580         * lib/sys_select.in.h (select): Simplify accordingly.
11581         * modules/select (Depends-on): Likewise.
11582
11583 2011-05-21  Bruno Haible  <bruno@clisp.org>
11584
11585         mkdir-p: Simplify autoconf macro.
11586         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11587         gl_FUNC_LCHOWN.
11588
11589 2011-05-21  Eric Blake  <eblake@redhat.com>
11590
11591         strerror_r: avoid clobbering strerror on cygwin
11592         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11593         fall back instead to sys_errlist.
11594         * modules/strerror (configure.ac): Add witness.
11595         * tests/test-strerror_r.c (main): Enhance test.
11596         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11597         * tests/test-perror2.c (main): Free memory before exit.
11598
11599 2011-05-21  Bruno Haible  <bruno@clisp.org>
11600
11601         mkdtemp: Use gnulib naming conventions.
11602         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11603         * modules/mkdtemp (configure.ac): Update.
11604
11605 2011-05-20  Eric Blake  <eblake@redhat.com>
11606
11607         strerror_r: avoid corrupting errno on Solaris
11608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11609         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11610
11611         strerror_r: avoid compiler warning
11612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11613
11614         strerror_r: simplify AIX code
11615         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11616
11617         test-perror: avoid spurious failure on FreeBSD
11618         * modules/perror-tests (Depends-on): Add strerror, now that
11619         strerror_r no longer pulls it in.
11620
11621 2011-05-20  Bruno Haible  <bruno@clisp.org>
11622
11623         strerror_r-posix: Remove unused dependencies.
11624         * modules/strerror_r-posix (Depends-on): Remove strerror.
11625         Reported by Eric Blake.
11626
11627 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11628
11629         intprops: remove assumption about A|B representation
11630         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11631         is a valid integer if both A and B are.  Although this is true for
11632         all known practical hosts, the C standard doesn't guarantee it,
11633         and the code need not assume it.  Also, this change may work around
11634         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11636
11637 2011-05-20  Eric Blake  <eblake@redhat.com>
11638
11639         perror: work around FreeBSD bug
11640         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11641         is broken.  Move AC_LIBOBJ...
11642         * modules/perror (configure.ac): Here.
11643         * doc/posix-functions/perror.texi (perror): Document this.
11644         * tests/test-perror2.c (main): Enhance test.
11645
11646         test-perror: check for strerror interactions
11647         * tests/macros.h (STREQ): Add macro.
11648         * modules/perror-tests (Files): Add second test.
11649         * tests/test-perror2.c (main): New file.
11650         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11651
11652         test-perror: rewrite to use init script
11653         * modules/perror-tests (Files): Add init.sh.
11654         * tests/test-perror.sh: Use temporary directory.
11655
11656 2011-05-20  Jim Meyering  <meyering@redhat.com>
11657
11658         maint: replace misused "a" with "an"
11659         * doc/intprops.texi: "a integer"
11660         * doc/regex.texi: "a explanation"
11661         * lib/alignof.h: "a object"
11662         * lib/argmatch.h: "a explanation"
11663         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11664         * lib/stdint.in.h: "a integer"
11665         * lib/userspec.c: "a owner"
11666         * doc/gnulib.texi: Fix "a idea", and reword.
11667
11668 2011-05-19  Jim Meyering  <meyering@redhat.com>
11669
11670         maint: correct misuse of "a" and "an"
11671         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11672         * lib/argp-help.c: "an docum...": s/an/a/
11673         * lib/argp-parse.c: "An vector": s/An/A/
11674         * lib/execute.c: "an native": s/an/a/
11675         * lib/spawn-pipe.c: Likewise.
11676         * lib/gc.h: "an Gc_rc": s/an/a/
11677         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11678         * lib/fts.c: "an stat.st_dev": s/an/a/
11679
11680 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11681
11682         intprops-tests: work around HP-UX 11.23 cc bug with constants
11683         * tests/test-intprops.c (VERIFY): New macro.
11684         (main): Use it, instead of verify, to work around the compiler bug; see
11685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11686
11687         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11688         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11689         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11690         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11691         (_GL_REMAINDER_OVERFLOW): Use it.
11692
11693         intprops-tests: revert unsigned part of previous change
11694         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11695         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11696         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11698
11699 2011-05-19  Bruno Haible  <bruno@clisp.org>
11700
11701         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11702         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11703         strerror_r() returned without filling the buffer.
11704         Reported by Eric Blake.
11705
11706 2011-05-19  Eric Blake  <eblake@redhat.com>
11707
11708         strerror_r: guarantee unchanged errno
11709         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11710         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11711         failure.
11712         * tests/test-strerror_r.c (main): Enhance test.
11713
11714 2011-05-19  Bruno Haible  <bruno@clisp.org>
11715
11716         strerror_r: Reorder #if blocks.
11717         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11718         for consistency with the previous commit.
11719
11720 2011-05-19  Bruno Haible  <bruno@clisp.org>
11721
11722         perror: Avoid clobbering the strerror buffer when possible.
11723         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11724         * lib/strerror.c: Include it.
11725         * modules/strerror (Files): Add lib/strerror-impl.h.
11726         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11727         (my_strerror): New function, defined through lib/strerror-impl.h.
11728         (perror): Use it instead of strerror.
11729         * modules/perror (Files): Add lib/strerror-impl.h.
11730         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11731
11732 2011-05-19  Eric Blake  <eblake@redhat.com>
11733
11734         strerror_r: fix on newer cygwin
11735         * lib/strerror_r.c (strerror_r): Cygwin now has
11736         __xpg_strerror_r, use it.
11737
11738 2011-05-19  Bruno Haible  <bruno@clisp.org>
11739
11740         strerror_r: Avoid clobbering the strerror buffer when possible.
11741         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11742         (sys_nerr, sys_errlist): New declarations.
11743         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11744         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11745         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11746
11747 2011-05-19  Bruno Haible  <bruno@clisp.org>
11748
11749         strerror_r: Fix test failure on mingw.
11750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11751         EXTEND_STRERROR_R.
11752         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11753         macros from errno.in.h instead.
11754
11755 2011-05-19  Eric Blake  <eblake@redhat.com>
11756
11757         strerror: relax test for Solaris
11758         * tests/test-strerror.c (main): Permit Solaris behavior.
11759         * tests/test-strerror_r.c (main): Likewise.
11760
11761         strerror: enforce POSIX ruling on strerror(0)
11762         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11764         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11765         * doc/posix-functions/strerror.texi (strerror): Document it.
11766         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11767         * tests/test-strerror.c (main): Strengthen test.
11768         * tests/test-strerror_r.c (main): Likewise.
11769
11770 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11771
11772         intprop-tests: port to older and more-pedantic compilers
11773         * modules/intprops-tests (Files): Add tests/macros.h.
11774         * tests/test-intprops.c: Include macros.h.
11775         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11776         it's no longer documented to expand to an integer constant expression.
11777         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11778         argument is floating point, as it's no longer documented to expand
11779         to an integer constant expression in that case.
11780         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11781         compiler bugs reported by Bruno Haible.  See
11782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11783         (U0, U1): New constants, to work around the same bugs.  Also,
11784         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11785
11786         intprops: work around C compiler bugs
11787         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11788         bug in Sun C 5.11 2010/08/13 and other compilers; see
11789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11790
11791         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11792         * doc/intprops.texi (Integer Type Determination): Fix
11793         documentation for TYPE_IS_INTEGER: it returns an constant
11794         expression, not an integer constant expression.  Fix doc for
11795         TYPE_SIGNED: it returns an integer constant expression only if its
11796         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11797         hardly worth documented that way....)
11798
11799 2011-05-18  Bruno Haible  <bruno@clisp.org>
11800
11801         strerror_r: Avoid clobbering the strerror buffer when possible.
11802         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11803         Handle gnulib defined errno values here. When strerror() returns NULL
11804         or an empty string, return EINVAL.
11805         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11806         gnulib defined errno values here.
11807         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11808
11809 2011-05-18  Eric Blake  <eblake@redhat.com>
11810
11811         fnmatch: avoid compiler warning
11812         * lib/fnmatch_loop.c (FCT): Use correct type.
11813         Reported by Matthias Bolte.
11814
11815 2011-05-13  Jim Meyering  <meyering@redhat.com>
11816
11817         maint.mk: three new prohibit_<HDR>_without_use rules
11818         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11819         (sc_prohibit_stdio-safer_without_use): Likewise.
11820         (sc_prohibit_xfreopen_without_use): Likewise.
11821
11822 2011-05-17  Jim Meyering  <meyering@redhat.com>
11823
11824         announce-gen: fail if the NEWS delta is empty
11825         If there's nothing noteworthy in NEWS, then either you forgot
11826         or you shouldn't be releasing.
11827         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11828
11829 2011-05-17  Pádraig Brady <P@draigBrady.com>
11830
11831         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11832         reserved symbols starting with double underscore from the check.
11833
11834 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11835
11836         intprops: add doc
11837         * doc/intprops.texi: New file, documenting intprops.
11838         * doc/gnulib.texi (Particular Modules): Include it.
11839
11840         verify: add doc to gnulib manual and fix example
11841         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11842         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11843         (Compile-time Assertions): Fix example so it can't overflow.
11844
11845 2011-05-17  Jim Meyering  <meyering@redhat.com>
11846
11847         warnings.m4: don't usurp save_CPPFLAGS variable name
11848         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11849
11850         doc: fix typo
11851         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11852
11853 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11854             Bruno Haible  <bruno@clisp.org>
11855
11856         doc: Tweak recent change.
11857         * README (Portability guidelines): Tweak new text.
11858         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11859         Interix 6.1.
11860
11861 2011-05-16  Eric Blake  <eblake@redhat.com>
11862
11863         inttypes: avoid autoconf warning
11864         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11865         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11866
11867 2011-05-16  Sam Steingold <sds@gnu.org>
11868         and Eric Blake  <eblake@redhat.com>
11869
11870         vc-list-files: accept multiple directory operands
11871         * build-aux/vc-list-files: Iterate over all remaining operands.
11872
11873 2011-05-16  Bruno Haible  <bruno@clisp.org>
11874
11875         Fix confusion regarding deprecated modules.
11876         * modules/calloc (Status, Notice): Mark module as deprecated, not
11877         obsolete.
11878         * modules/fnmatch-posix (Status, Notice): Likewise.
11879         * modules/getdate (Status, Notice): Likewise.
11880         * modules/getopt (Status, Notice): Likewise.
11881         * modules/malloc (Status, Notice): Likewise.
11882         * modules/pipe (Status, Notice): Likewise.
11883         * modules/realloc (Status, Notice): Likewise.
11884         * modules/rename-dest-slash (Status, Notice): Likewise.
11885         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11886         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11887         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11888         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11889         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11890
11891 2011-05-16  Bruno Haible  <bruno@clisp.org>
11892
11893         doc: List the target platforms.
11894         * doc/gnulib-intro.texi (Target Platforms): New section.
11895         * doc/gnulib.texi (Introduction): Update menu.
11896         * README (Portability guidelines): Refer to the new section. Update
11897         statement about oldest supported environment. Remove rationale why
11898         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11899         unportable C89 function.
11900         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11901         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11902
11903 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11904
11905         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11906
11907 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11908
11909         intprops-tests: new module
11910         * modules/intprops-tests, tests/test-intprops.c: New files.
11911
11912         intprops: add safe, portable integer overflow checking
11913         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11914         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11915         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11916         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11917         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11918         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11919         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11920         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11921         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11922         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11923         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11924
11925 2011-05-12  James Youngman  <jay@gnu.org>
11926
11927         Add a test for glibc's Bugzilla bug #12378.
11928         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11929         doesn't allow the literal matching of a lone "[" (which is
11930         required by POSIX).
11931         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11932
11933 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11934
11935         Sync glibc change fixing Bugzilla bug #12378.
11936         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11937         beginning and fall back to matching as normal character if the
11938         string ends before the matching ']' is found.  This is what POSIX
11939         requires.
11940
11941 2011-05-13  Eric Blake  <eblake@redhat.com>
11942
11943         getcwd-lgpl: relax test for FreeBSD
11944         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11945         issue.
11946         * tests/test-getcwd-lgpl.c (main): Relax test.
11947         Reported by Matthias Bolte.
11948
11949 2011-05-11  Eric Blake  <eblake@redhat.com>
11950
11951         test-fflush: silence compiler warning
11952         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11953
11954 2011-05-11  Bruno Haible  <bruno@clisp.org>
11955
11956         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11957         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11958         * modules/canonicalize (Depends-on): Add 'nocrash'.
11959         * modules/canonicalize-lgpl (Depends-on): Likewise.
11960         * doc/posix-functions/realpath.texi: Update platforms list.
11961         Reported by Ryan Schmidt <ryandesign@macports.org>.
11962
11963 2011-05-11  Bruno Haible  <bruno@clisp.org>
11964
11965         group-member: Declare function in <unistd.h>.
11966         * lib/unistd.in.h (group_member): New declaration.
11967         * lib/group-member.h: Remove file.
11968         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11969         * tests/test-unistd-c++.cc: Check signature of group_member.
11970         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11971         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11972         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11973         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11974         HAVE_GROUP_MEMBER.
11975         * modules/group-member (Files): Remove lib/group-member.h.
11976         (Depends-on): Add unistd. Specify conditions.
11977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11978         (Include): Change to <unistd.h>.
11979         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11980         HAVE_GROUP_MEMBER.
11981         * NEWS: Mention the change.
11982         * lib/euidaccess.c: Don't include group-member.h.
11983
11984 2011-05-11  Bruno Haible  <bruno@clisp.org>
11985
11986         group-member: Document module.
11987         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11988         module.
11989
11990 2011-05-11  Bruno Haible  <bruno@clisp.org>
11991
11992         fclose: Fix mistake earlier today.
11993         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11994
11995 2011-05-11  Eric Blake  <eblake@redhat.com>
11996
11997         fclose: preserve fflush errors
11998         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11999         Reported by Jim Meyering.
12000
12001         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12002         * build-aux/bootstrap (check_versions): When no specific version
12003         is required, merely check that the app produces an exit status
12004         that indicates its existence.
12005
12006         maint.mk: drop redundant check
12007         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12008         the same but better.
12009
12010 2011-05-11  Bruno Haible  <bruno@clisp.org>
12011
12012         fclose: Fix possible link error.
12013         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12014         unregister_shadow_fd. Improve comments.
12015         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12016         Eric Blake.
12017
12018 2011-05-11  Jim Meyering  <meyering@redhat.com>
12019
12020         maint.mk: improve "can not" detection and generalize rule name
12021         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12022         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12023         Use the same technique as in sc_prohibit_doubled_word, so that
12024         we recognize "can not" also when the words are separated by a newline.
12025         Suggested by Eric Blake.
12026         (perl_filename_lineno_text_): Define.  Factored out of...
12027         (prohibit_doubled_word_): ...here.  Use the new definition.
12028         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12029         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12030         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12031
12032 2011-05-10  Eric Blake  <eblake@redhat.com>
12033
12034         fclose: avoid double close race when possible
12035         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12036         all but WINDOWS_SOCKETS.
12037
12038 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12039
12040         openat: correct new comment
12041         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12042
12043 2011-05-10  Jim Meyering  <meyering@redhat.com>
12044
12045         openat: add comments
12046         * lib/openat-proc.c (openat_proc_name): Add comments,
12047         mostly from Eric Blake.
12048
12049 2011-05-09  Eric Blake  <eblake@redhat.com>
12050
12051         openat: reduce syscalls in first probe of /proc
12052         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12053         be a directory.  Simplify the probe for .. bugs.
12054         * modules/openat (Depends-on): Drop same-inode.
12055         Reported by Bastien ROUCARIES.
12056
12057 2011-05-09  Jim Meyering  <meyering@redhat.com>
12058
12059         maint.mk: change semantics/name of tight_scope variables
12060         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12061         Rename variables to align with semantics that make them more useful.
12062
12063         maint.mk: tweak new rule's name not to impinge
12064         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12065         (sc_tight_scope): Use new rule name rather than $@-0.
12066
12067         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12068         * top/maint.mk (sc_tight_scope): New rule.
12069         (sc_tight_scope-0): New rule, ifdef'd out.
12070         (_gl_TS_dir): Default.
12071         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12072         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12073
12074 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12075
12076         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12077         Haible <bruno@clisp.org>.
12078
12079 2011-05-08  Bruno Haible  <bruno@clisp.org>
12080
12081         Comments.
12082         * m4/isnanf.m4: Add comment.
12083         * m4/isnanl.m4: Likewise.
12084
12085 2011-05-08  Bruno Haible  <bruno@clisp.org>
12086
12087         glob: Remove obsolete macro.
12088         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12089
12090 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12091
12092         intprops: Sun C 5.11 supports __typeof__
12093         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12094         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12095         which is new.
12096         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12097
12098         intprops: switch to usual gnulib indenting and naming
12099         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12100         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12101
12102         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12103
12104 2011-05-08  Jim Meyering  <meyering@redhat.com>
12105
12106         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12107         * top/maint.mk (release-prep): Use make's --no-print-directory
12108         option when generating the announcement.  This eliminates the
12109         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12110         generated announcement template.
12111
12112 2011-05-08  Bruno Haible  <bruno@clisp.org>
12113
12114         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12115         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12116         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12117
12118 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12119
12120         ignore-value, verify: Omit include files from lib_SOURCES.
12121         * modules/ignore-value, modules/verify (Makefile.am):
12122         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12123         that leads Automake to duplicate use of am__objects_... variables
12124         in Makefile.in.  See
12125         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12126
12127 2011-05-07  Bruno Haible  <bruno@clisp.org>
12128
12129         fclose: Simplify autoconf macro.
12130         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12131         defined.
12132
12133 2011-05-07  Bruno Haible  <bruno@clisp.org>
12134
12135         canonicalize-lgpl: Fix autoconf macro ordering bug.
12136         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12137         gl_STDLIB_H_DEFAULTS.
12138
12139 2011-05-06  Eric Blake  <eblake@redhat.com>
12140
12141         maintainer-makefile: make sc_po_check easier to tune
12142         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12143         to probe for strings, such as an alternate location for gnulib.
12144
12145         fclose: guarantee behavior on seekable stdin
12146         * modules/fclose (Depends-on): Add fflush.
12147         * doc/posix-functions/fclose.texi (fclose): Document this.
12148         * tests/test-fclose.c (main): Make test for this unconditional.
12149
12150 2011-05-06  Bruno Haible  <bruno@clisp.org>
12151
12152         fflush, fpurge: Relicense under LGPLv2+.
12153         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12154         * modules/fpurge (License): Likewise.
12155         With permission from Eric Blake and Jim Meyering.
12156         Suggested by Eric Blake.
12157
12158 2011-05-06  Karl Berry  <karl@gnu.org>
12159
12160         * MODULES.html.sh (func_all_modules): remove exit.
12161
12162 2011-05-06  Jim Meyering  <meyering@redhat.com>
12163
12164         maint.mk: use info-gnu@ as the default only for a stable release
12165         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12166         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12167         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12168         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12169
12170 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12171
12172         assert-h: new module, which supports C1X-style static_assert
12173         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12174         * lib/verify.h: Revamp so that this can be copied into assert.h,
12175         while retaining the ability to use it standalone as before.
12176         Rename private identifiers so as not to encroach on the
12177         standard C namespace, since this is now used by assert.h.
12178         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12179         the old verify_true.
12180         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12181         the old verify_true.  Use _GL_VERIFY_TYPE.
12182         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12183         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12184         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12185         defined when this file is copied into the replacement assert.h.
12186         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12187         and _Static_assert is not built in.
12188         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12189         defined, and use the new macros mentioned above.
12190         * doc/posix-headers/assert.texi: Document this.
12191
12192 2011-05-05  Bruno Haible  <bruno@clisp.org>
12193
12194         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12195         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12196         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12197         gl_REPLACE_FCLOSE here.
12198         * modules/fflush (Depends-on): Remove fclose.
12199         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12200         combination with module 'fclose'.
12201
12202 2011-05-05  Bruno Haible  <bruno@clisp.org>
12203
12204         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12205         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12206         gl_FUNC_FFLUSH.
12207         (gl_FUNC_FFLUSH): Use it.
12208         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12210         gl_REPLACE_FSEEKO here.
12211
12212 2011-05-05  Bruno Haible  <bruno@clisp.org>
12213
12214         tzset: Relicense under LGPL.
12215         * modules/tzset (License): Change to LGPL.
12216         No agreement needed; it's a no-op.
12217
12218         strtoimax, strtoumax: Relicense under LGPL.
12219         * modules/strtoimax (License): Change to LGPL.
12220         * modules/strtoumax (License): Likewise.
12221         With permission from Jim Meyering, Paul Eggert:
12222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12224
12225         getgroups: Relicense under LGPL.
12226         * modules/getgroups (License): Change to LGPL.
12227         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12231
12232         nanosleep: Relicense under LGPL.
12233         * modules/nanosleep (License): Change to LGPL.
12234         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12235         Haible:
12236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12240
12241         futimens: Relicense under LGPL.
12242         * modules/futimens (License): Change to LGPL.
12243         With permission from Eric Blake:
12244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12245
12246         fflush: Relicense under LGPL.
12247         * modules/fflush (License): Change to LGPL.
12248         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12252
12253         tmpfile: Relicense under LGPL.
12254         * modules/tmpfile (License): Change to LGPL.
12255         With permission from Ben Pfaff:
12256         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12257
12258         isfinite: Relicense under LGPL.
12259         * modules/isfinite (License): Change to LGPL.
12260         With permission from Ben Pfaff, Bruno Haible:
12261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12263
12264         acosl..tanl: Relicense under LGPL.
12265         * modules/acosl (License): Change to LGPL.
12266         * modules/asinl (License): Likewise.
12267         * modules/atanl (License): Likewise.
12268         * modules/cosl (License): Likewise.
12269         * modules/expl (License): Likewise.
12270         * modules/logl (License): Likewise.
12271         * modules/sinl (License): Likewise.
12272         * modules/sqrtl (License): Likewise.
12273         * modules/tanl (License): Likewise.
12274         Source code originally from glibc and Paolo Bonzini. Agreements:
12275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12277
12278 2011-05-05  Bruno Haible  <bruno@clisp.org>
12279
12280         signal: Define sighandler_t.
12281         * lib/signal.in.h (sighandler_t): New type.
12282         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12283         whether sighandler_t is defined.
12284         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12285         * modules/signal (Depends-on): Add extensions.
12286         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12287         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12288         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12289
12290 2011-05-05  Eric Blake  <eblake@redhat.com>
12291
12292         maint: remove useless REPLACE_*_H macros
12293         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12294         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12295         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12296         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12297         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12298         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12299         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12300         * m4/btowc.m4: Update callers.
12301         * m4/dirfd.m4: Likewise.
12302         * m4/duplocale.m4: Likewise.
12303         * m4/fchdir.m4: Likewise.
12304         * m4/fdopendir.m4: Likewise.
12305         * m4/inet_ntop.m4: Likewise.
12306         * m4/inet_pton.m4: Likewise.
12307         * m4/ioctl.m4: Likewise.
12308         * m4/mbrlen.m4: Likewise.
12309         * m4/mbrtowc.m4: Likewise.
12310         * m4/mbsinit.m4: Likewise.
12311         * m4/mbsnrtowcs.m4: Likewise.
12312         * m4/mbsrtowcs.m4: Likewise.
12313         * m4/poll.m4: Likewise.
12314         * m4/setlocale.m4: Likewise.
12315         * m4/wcrtomb.m4: Likewise.
12316         * m4/wcsnrtombs.m4: Likewise.
12317         * m4/wcsrtombs.m4: Likewise.
12318         * m4/wctob.m4: Likewise.
12319         * m4/wcwidth.m4: Likewise.
12320         * modules/posix_spawn: Likewise.
12321         * modules/posix_spawn_file_actions_addclose: Likewise.
12322         * modules/posix_spawn_file_actions_adddup2: Likewise.
12323         * modules/posix_spawn_file_actions_addopen: Likewise.
12324         * modules/posix_spawn_file_actions_destroy: Likewise.
12325         * modules/posix_spawn_file_actions_init: Likewise.
12326         * modules/posix_spawnattr_destroy: Likewise.
12327         * modules/posix_spawnattr_getflags: Likewise.
12328         * modules/posix_spawnattr_getpgroup: Likewise.
12329         * modules/posix_spawnattr_getschedparam: Likewise.
12330         * modules/posix_spawnattr_getschedpolicy: Likewise.
12331         * modules/posix_spawnattr_getsigdefault: Likewise.
12332         * modules/posix_spawnattr_getsigmask: Likewise.
12333         * modules/posix_spawnattr_init: Likewise.
12334         * modules/posix_spawnattr_setflags: Likewise.
12335         * modules/posix_spawnattr_setpgroup: Likewise.
12336         * modules/posix_spawnattr_setschedparam: Likewise.
12337         * modules/posix_spawnattr_setschedpolicy: Likewise.
12338         * modules/posix_spawnattr_setsigdefault: Likewise.
12339         * modules/posix_spawnattr_setsigmask: Likewise.
12340         * modules/posix_spawnp: Likewise.
12341
12342 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12343
12344         Add option to do-release-commit-and-tag to specify branch.
12345         * build-aux/do-release-commit-and-tag: Add --branch.
12346
12347 2011-05-03  Bruno Haible  <bruno@clisp.org>
12348
12349         Avoid unnecessary compilation units, through conditional dependencies.
12350         * modules/accept (Depends-on): Add conditions to the dependencies.
12351         * modules/acosl (Depends-on): Likewise.
12352         * modules/argz (Depends-on): Likewise.
12353         * modules/asinl (Depends-on): Likewise.
12354         * modules/atanl (Depends-on): Likewise.
12355         * modules/atoll (Depends-on): Likewise.
12356         * modules/bind (Depends-on): Likewise.
12357         * modules/btowc (Depends-on): Likewise.
12358         * modules/canonicalize-lgpl (Depends-on): Likewise.
12359         * modules/ceil (Depends-on): Likewise.
12360         * modules/ceilf (Depends-on): Likewise.
12361         * modules/ceill (Depends-on): Likewise.
12362         * modules/chdir-long (Depends-on): Likewise.
12363         * modules/chown (Depends-on): Likewise.
12364         * modules/close (Depends-on): Likewise.
12365         * modules/connect (Depends-on): Likewise.
12366         * modules/cosl (Depends-on): Likewise.
12367         * modules/dirfd (Depends-on): Likewise.
12368         * modules/dprintf (Depends-on): Likewise.
12369         * modules/dprintf-posix (Depends-on): Likewise.
12370         * modules/error (Depends-on): Likewise.
12371         * modules/euidaccess (Depends-on): Likewise.
12372         * modules/expl (Depends-on): Likewise.
12373         * modules/faccessat (Depends-on): Likewise.
12374         * modules/fchdir (Depends-on): Likewise.
12375         * modules/fclose (Depends-on): Likewise.
12376         * modules/fcntl (Depends-on): Likewise.
12377         * modules/fdopendir (Depends-on): Likewise.
12378         * modules/fflush (Depends-on): Likewise.
12379         * modules/floor (Depends-on): Likewise.
12380         * modules/floorf (Depends-on): Likewise.
12381         * modules/floorl (Depends-on): Likewise.
12382         * modules/fnmatch (Depends-on): Likewise.
12383         * modules/fopen (Depends-on): Likewise.
12384         * modules/fprintf-posix (Depends-on): Likewise.
12385         * modules/frexp (Depends-on): Likewise.
12386         * modules/frexp-nolibm (Depends-on): Likewise.
12387         * modules/frexpl (Depends-on): Likewise.
12388         * modules/frexpl-nolibm (Depends-on): Likewise.
12389         * modules/fseek (Depends-on): Likewise.
12390         * modules/fsusage (Depends-on): Likewise.
12391         * modules/ftell (Depends-on): Likewise.
12392         * modules/ftello (Depends-on): Likewise.
12393         * modules/futimens (Depends-on): Likewise.
12394         * modules/getcwd (Depends-on): Likewise.
12395         * modules/getcwd-lgpl (Depends-on): Likewise.
12396         * modules/getdelim (Depends-on): Likewise.
12397         * modules/getdomainname (Depends-on): Likewise.
12398         * modules/getgroups (Depends-on): Likewise.
12399         * modules/gethostname (Depends-on): Likewise.
12400         * modules/getline (Depends-on): Likewise.
12401         * modules/getlogin_r (Depends-on): Likewise.
12402         * modules/getopt-posix (Depends-on): Likewise.
12403         * modules/getpeername (Depends-on): Likewise.
12404         * modules/getsockname (Depends-on): Likewise.
12405         * modules/getsockopt (Depends-on): Likewise.
12406         * modules/getsubopt (Depends-on): Likewise.
12407         * modules/getusershell (Depends-on): Likewise.
12408         * modules/glob (Depends-on): Likewise.
12409         * modules/grantpt (Depends-on): Likewise.
12410         * modules/iconv_open (Depends-on): Likewise.
12411         * modules/iconv_open-utf (Depends-on): Likewise.
12412         * modules/inet_ntop (Depends-on): Likewise.
12413         * modules/inet_pton (Depends-on): Likewise.
12414         * modules/ioctl (Depends-on): Likewise.
12415         * modules/isapipe (Depends-on): Likewise.
12416         * modules/isfinite (Depends-on): Likewise.
12417         * modules/isinf (Depends-on): Likewise.
12418         * modules/lchown (Depends-on): Likewise.
12419         * modules/ldexpl (Depends-on): Likewise.
12420         * modules/link (Depends-on): Likewise.
12421         * modules/linkat (Depends-on): Likewise.
12422         * modules/listen (Depends-on): Likewise.
12423         * modules/logl (Depends-on): Likewise.
12424         * modules/lstat (Depends-on): Likewise.
12425         * modules/mbrlen (Depends-on): Likewise.
12426         * modules/mbrtowc (Depends-on): Likewise.
12427         * modules/mbsinit (Depends-on): Likewise.
12428         * modules/mbsnrtowcs (Depends-on): Likewise.
12429         * modules/mbsrtowcs (Depends-on): Likewise.
12430         * modules/mbtowc (Depends-on): Likewise.
12431         * modules/memcmp (Depends-on): Likewise.
12432         * modules/mkdir (Depends-on): Likewise.
12433         * modules/mkdtemp (Depends-on): Likewise.
12434         * modules/mkfifo (Depends-on): Likewise.
12435         * modules/mkfifoat (Depends-on): Likewise.
12436         * modules/mknod (Depends-on): Likewise.
12437         * modules/mkostemp (Depends-on): Likewise.
12438         * modules/mkostemps (Depends-on): Likewise.
12439         * modules/mkstemp (Depends-on): Likewise.
12440         * modules/mkstemps (Depends-on): Likewise.
12441         * modules/mktime (Depends-on): Likewise.
12442         * modules/nanosleep (Depends-on): Likewise.
12443         * modules/open (Depends-on): Likewise.
12444         * modules/openat (Depends-on): Likewise.
12445         * modules/perror (Depends-on): Likewise.
12446         * modules/poll (Depends-on): Likewise.
12447         * modules/popen (Depends-on): Likewise.
12448         * modules/posix_spawn (Depends-on): Likewise.
12449         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12450         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12451         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12452         * modules/posix_spawnp (Depends-on): Likewise.
12453         * modules/pread (Depends-on): Likewise.
12454         * modules/printf-posix (Depends-on): Likewise.
12455         * modules/ptsname (Depends-on): Likewise.
12456         * modules/putenv (Depends-on): Likewise.
12457         * modules/pwrite (Depends-on): Likewise.
12458         * modules/readline (Depends-on): Likewise.
12459         * modules/readlink (Depends-on): Likewise.
12460         * modules/readlinkat (Depends-on): Likewise.
12461         * modules/recv (Depends-on): Likewise.
12462         * modules/recvfrom (Depends-on): Likewise.
12463         * modules/regex (Depends-on): Likewise.
12464         * modules/remove (Depends-on): Likewise.
12465         * modules/rename (Depends-on): Likewise.
12466         * modules/renameat (Depends-on): Likewise.
12467         * modules/rmdir (Depends-on): Likewise.
12468         * modules/round (Depends-on): Likewise.
12469         * modules/roundf (Depends-on): Likewise.
12470         * modules/roundl (Depends-on): Likewise.
12471         * modules/rpmatch (Depends-on): Likewise.
12472         * modules/select (Depends-on): Likewise.
12473         * modules/send (Depends-on): Likewise.
12474         * modules/sendto (Depends-on): Likewise.
12475         * modules/setenv (Depends-on): Likewise.
12476         * modules/setlocale (Depends-on): Likewise.
12477         * modules/setsockopt (Depends-on): Likewise.
12478         * modules/shutdown (Depends-on): Likewise.
12479         * modules/sigaction (Depends-on): Likewise.
12480         * modules/signbit (Depends-on): Likewise.
12481         * modules/sigprocmask (Depends-on): Likewise.
12482         * modules/sinl (Depends-on): Likewise.
12483         * modules/sleep (Depends-on): Likewise.
12484         * modules/snprintf (Depends-on): Likewise.
12485         * modules/snprintf-posix (Depends-on): Likewise.
12486         * modules/socket (Depends-on): Likewise.
12487         * modules/sprintf-posix (Depends-on): Likewise.
12488         * modules/sqrtl (Depends-on): Likewise.
12489         * modules/stat (Depends-on): Likewise.
12490         * modules/strchrnul (Depends-on): Likewise.
12491         * modules/strdup-posix (Depends-on): Likewise.
12492         * modules/strerror (Depends-on): Likewise.
12493         * modules/strerror_r-posix (Depends-on): Likewise.
12494         * modules/strndup (Depends-on): Likewise.
12495         * modules/strnlen (Depends-on): Likewise.
12496         * modules/strptime (Depends-on): Likewise.
12497         * modules/strsep (Depends-on): Likewise.
12498         * modules/strsignal (Depends-on): Likewise.
12499         * modules/strstr-simple (Depends-on): Likewise.
12500         * modules/strtod (Depends-on): Likewise.
12501         * modules/strtoimax (Depends-on): Likewise.
12502         * modules/strtok_r (Depends-on): Likewise.
12503         * modules/strtoumax (Depends-on): Likewise.
12504         * modules/symlink (Depends-on): Likewise.
12505         * modules/symlinkat (Depends-on): Likewise.
12506         * modules/tanl (Depends-on): Likewise.
12507         * modules/tcgetsid (Depends-on): Likewise.
12508         * modules/tmpfile (Depends-on): Likewise.
12509         * modules/trunc (Depends-on): Likewise.
12510         * modules/truncf (Depends-on): Likewise.
12511         * modules/truncl (Depends-on): Likewise.
12512         * modules/uname (Depends-on): Likewise.
12513         * modules/unlink (Depends-on): Likewise.
12514         * modules/unlockpt (Depends-on): Likewise.
12515         * modules/unsetenv (Depends-on): Likewise.
12516         * modules/usleep (Depends-on): Likewise.
12517         * modules/utimensat (Depends-on): Likewise.
12518         * modules/vasprintf (Depends-on): Likewise.
12519         * modules/vdprintf (Depends-on): Likewise.
12520         * modules/vdprintf-posix (Depends-on): Likewise.
12521         * modules/vfprintf-posix (Depends-on): Likewise.
12522         * modules/vprintf-posix (Depends-on): Likewise.
12523         * modules/vsnprintf (Depends-on): Likewise.
12524         * modules/vsnprintf-posix (Depends-on): Likewise.
12525         * modules/vsprintf-posix (Depends-on): Likewise.
12526         * modules/wcrtomb (Depends-on): Likewise.
12527         * modules/wcscasecmp (Depends-on): Likewise.
12528         * modules/wcscspn (Depends-on): Likewise.
12529         * modules/wcsdup (Depends-on): Likewise.
12530         * modules/wcsncasecmp (Depends-on): Likewise.
12531         * modules/wcsnrtombs (Depends-on): Likewise.
12532         * modules/wcspbrk (Depends-on): Likewise.
12533         * modules/wcsrtombs (Depends-on): Likewise.
12534         * modules/wcsspn (Depends-on): Likewise.
12535         * modules/wcsstr (Depends-on): Likewise.
12536         * modules/wcstok (Depends-on): Likewise.
12537         * modules/wcswidth (Depends-on): Likewise.
12538         * modules/wctob (Depends-on): Likewise.
12539         * modules/wctomb (Depends-on): Likewise.
12540         * modules/wctype (Depends-on): Likewise.
12541         * modules/wcwidth (Depends-on): Likewise.
12542         * modules/write (Depends-on): Likewise.
12543
12544 2011-05-03  Bruno Haible  <bruno@clisp.org>
12545
12546         Support for conditional dependencies.
12547         * doc/gnulib.texi (Module description): Document the syntax of
12548         conditional dependencies.
12549         * gnulib-tool: New option --conditional-dependencies.
12550         (func_usage): Document it.
12551         (cond_dependencies): New variable.
12552         (func_get_automake_snippet_conditional,
12553         func_get_automake_snippet_unconditional): New functions, extracted from
12554         func_get_automake_snippet.
12555         (func_get_automake_snippet): Use them.
12556         (sed_first_32_chars): New variable.
12557         (func_module_shellfunc_name): New function.
12558         (func_module_shellvar_name): New function.
12559         (func_module_conditional_name): New function.
12560         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12561         func_cond_module_condition): New functions.
12562         (func_modules_transitive_closure): Add support for conditional
12563         dependencies.
12564         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12565         conditional automake snippet in an automake conditional.
12566         (func_emit_autoconf_snippets): Emit shell functions that contain the
12567         code for conditional modules.
12568         (func_import, func_create_testdir): Update specification.
12569
12570 2011-05-03  Eric Blake  <eblake@redhat.com>
12571
12572         test-getaddrinfo: report error information
12573         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12574
12575 2011-05-03  Jim Meyering  <meyering@redhat.com>
12576
12577         bootstrap: avoid build failure when $GZIP is set
12578         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12579         program name.  If defined at all, it is supposed to list gzip options.
12580         Reported by Alan Curry in http://debbugs.gnu.org/8609
12581
12582 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12583
12584         readme-release: new module with release instructions
12585         * modules/readme-release: New module.
12586         * top/README-release: New file, from coreutils, grep, diffutils.
12587         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12588
12589 2011-05-02  Eric Blake  <eblake@redhat.com>
12590
12591         fflush: also replace fclose when fixing fflush
12592         * modules/fflush (Depends-on): Add fclose.
12593         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12594         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12595         memstreams with no backing fd.
12596         * doc/posix-functions/fclose.texi (fclose): Document the use of
12597         fflush module to fix the bug.
12598         * tests/test-fclose.c (main): Relax test when fclose is used in
12599         isolation.
12600
12601         fclose: add some tests
12602         * modules/fclose-tests: New test module.
12603         * tests/test-fclose.c: New file.
12604         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12605
12606         fclose: reduced dependencies
12607         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12608         simpler lseek.
12609         * lib/fclose.c (rpl_fclose): Likewise.
12610         Reported by Simon Josefsson.
12611
12612         exit: drop remaining clients
12613         * modules/argmatch (Depends-on): Replace exit with stdlib.
12614         * modules/copy-file (Depends-on): Likewise.
12615         * modules/execute (Depends-on): Likewise.
12616         * modules/exitfail (Depends-on): Likewise.
12617         * modules/obstack (Depends-on): Likewise.
12618         * modules/pagealign_alloc (Depends-on): Likewise.
12619         * modules/pipe-filter-gi (Depends-on): Likewise.
12620         * modules/pipe-filter-ii (Depends-on): Likewise.
12621         * modules/savewd (Depends-on): Likewise.
12622         * modules/spawn-pipe (Depends-on): Likewise.
12623         * modules/wait-process (Depends-on): Likewise.
12624         * modules/xsetenv (Depends-on): Likewise.
12625         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12626         * modules/git-merge-changelog (Depends-on): Likewise.
12627         * modules/long-options (Depends-on): Likewise.
12628         * modules/pt_chown (Depends-on): Likewise.
12629         * modules/sysexits (Depends-on): Likewise.
12630
12631         freading: relax license from LGPLv3+ to LGPLv2+
12632         * modules/freading (License): Relax LGPL version.
12633
12634 2011-05-02  Bruno Haible  <bruno@clisp.org>
12635
12636         fchdir: Remove unused dependencies.
12637         * modules/fchdir (Depends-on): Remove include_next.
12638
12639 2011-05-02  Bruno Haible  <bruno@clisp.org>
12640
12641         gnulib-tool: Refactor.
12642         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12643         from func_emit_autoconf_snippets.
12644         (func_emit_autoconf_snippets): Use it.
12645
12646 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12647
12648         * NEWS: Document removal of 'exit'.
12649         * modules/exit: Remove file.
12650
12651 2011-05-01  Bruno Haible  <bruno@clisp.org>
12652
12653         Update DEPENDENCIES.
12654         * DEPENDENCIES (gettext): Recommend the newest release.
12655         Reported by Simon Josefsson.
12656
12657 2011-05-01  Bruno Haible  <bruno@clisp.org>
12658
12659         gnulib-tool: Reduce code duplication.
12660         * gnulib-tool (func_emit_autoconf_snippets): New function.
12661         (func_import, func_create_testdir): Use it.
12662
12663 2011-04-30  Eric Blake  <eblake@redhat.com>
12664
12665         fclose: don't fail on non-seekable input stream
12666         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12667         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12668         since fflush is allowed to fail in that case.
12669
12670 2011-04-30  Bruno Haible  <bruno@clisp.org>
12671
12672         dup3: cleanup
12673         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12674
12675 2011-04-30  Bruno Haible  <bruno@clisp.org>
12676
12677         netdb: Make it work in C++ mode.
12678         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12679         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12680         module.
12681         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12682         gl_MODULE_INDICATOR_FOR_TESTS.
12683         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12684         * modules/netdb-c++-tests: New file.
12685         * tests/test-netdb-c++.cc: New file.
12686
12687 2011-04-30  Bruno Haible  <bruno@clisp.org>
12688
12689         New modules 'vfscanf', 'vscanf'.
12690         * modules/vfscanf: New file.
12691         * modules/vscanf: New file.
12692         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12693         here.
12694         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12695         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12696
12697 2011-04-30  Bruno Haible  <bruno@clisp.org>
12698
12699         passfd: Add comments.
12700         * lib/passfd.c: Add comments about platforms.
12701
12702 2011-04-30  Bruno Haible  <bruno@clisp.org>
12703
12704         sys_uio: Make <sys/uio.h> self-contained.
12705         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12706         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12707
12708 2011-04-30  Bruno Haible  <bruno@clisp.org>
12709
12710         sys_socket: Ensure 'struct iovec' definition.
12711         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12712         <sys/socket.h>.
12713         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12714
12715 2011-04-30  Bruno Haible  <bruno@clisp.org>
12716
12717         sys_uio: Protect definition of 'struct iovec'.
12718         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12719         it as a C struct.
12720
12721 2011-04-30  Bruno Haible  <bruno@clisp.org>
12722
12723         manywarnings: fix indentation
12724         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12725
12726 2011-04-30  Pádraig Brady <P@draigBrady.com>
12727
12728         manywarnings: add -Wno-missing-field-initializers if needed.
12729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12730         option if it's needed to allow initialization with { 0, }
12731
12732 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12733
12734         announce-gen: cosmetic improvement
12735         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12736
12737 2011-04-29  Jim Meyering  <meyering@redhat.com>
12738
12739         vc-list-files: indent with spaces, not TABs
12740         * build-aux/vc-list-files: Convert leading TABs to spaces,
12741         to match the style of most other files in gnulib.
12742
12743         announce-gen: indent with spaces, not TABs
12744         * build-aux/announce-gen: Convert all TABs to spaces, to match
12745         the style of most other files in gnulib.
12746
12747 2011-04-29  Eric Blake  <eblake@redhat.com>
12748
12749         quotearg: avoid uninitialized variable use
12750         * lib/quotearg.c (quoting_options_from_style): Initialize
12751         remaining fields, and ensure that custom styles are only used via
12752         quoting_options rather than quoting_style.
12753
12754 2011-04-29  Jim Meyering  <meyering@redhat.com>
12755
12756         maint.mk: remove unused VC-tag variable
12757         * top/maint.mk (VC-tag): Remove unused variable.
12758
12759 2011-04-29  Bruno Haible  <bruno@clisp.org>
12760
12761         netdb: fix gai_strerror replacements
12762         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12763         * modules/netdb: Substitute it.
12764
12765 2011-04-29  Jim Meyering  <meyering@redhat.com>
12766
12767         test-getcwd.c: avoid new set-but-not-used warning
12768         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12769         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12770         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12771         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12772
12773         test-hash.c: avoid a new shadowing warning
12774         * tests/test-hash.c (main): Don't shadow "dup".
12775
12776 2011-04-28  Eric Blake  <eblake@redhat.com>
12777
12778         getaddrinfo: fix gai_strerror signature
12779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12780         and work around mingw with UNICODE defined.
12781         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12782         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12783         * modules/netdb (Makefile.am): Substitute it.
12784         * lib/netdb.in.h (gai_strerror): Declare replacement.
12785         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12786         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12787         the fix.
12788
12789         getsockopt: avoid compiler warning
12790         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12791         Reported by Matthias Bolte.
12792
12793         tests: drop unused link dependency
12794         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12795         * modules/dirent-safer-tests (Makefile.am): Likewise.
12796         * modules/fdopendir-tests (Makefile.am): Likewise.
12797         * modules/mkfifoat-tests (Makefile.am): Likewise.
12798         * modules/openat-safer-tests (Makefile.am): Likewise.
12799         * modules/openat-tests (Makefile.am): Likewise.
12800         * modules/readlinkat-tests (Makefile.am): Likewise.
12801         * modules/symlinkat-tests (Makefile.am): Likewise.
12802         * modules/linkat-tests (Makefile.am): Likewise.
12803         (Depends-on): Switch to filenamecat-lgpl.
12804         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12805         LIBINTL.
12806         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12807         * tests/test-linkat.c (main): Don't require xalloc.
12808
12809         hash, mgetgroups: drop xalloc dependency
12810         * lib/hash.c (includes): Adjust includes.
12811         * lib/mgetgroups.c (includes): Likewise.
12812         (xgetgroups): Move...
12813         * lib/xgetgroups.c: ...to new file.
12814         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12815         * modules/xgetgroups: New file, split from...
12816         * modules/mgetgroups: ...here.
12817         (Depends-on): Add xalloc-oversized.
12818         * modules/hash (Depends-on): Likewise.
12819         * modules/hash-tests (Depends-on): Drop xalloc.
12820         (test_hash_LDADD): Drop unused library.
12821         * tests/test-hash.c (main): Break xalloc dependency.
12822         (includes): Drop unused include.
12823
12824         xalloc-oversized: new module
12825         * modules/xalloc-oversized: New module.
12826         * modules/xalloc (Depends-on): Add it.
12827         * lib/xalloc.h (xalloc_oversized): Move...
12828         * lib/xalloc-oversized.h: ...into new file.
12829
12830         utimecmp: drop dependency on xmalloc
12831         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12832         due to memory pressure.
12833         * modules/utimecmp (Depends-on): Drop xalloc.
12834
12835 2011-04-27  Eric Blake  <eblake@redhat.com>
12836
12837         getcwd: fix mingw bugs
12838         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12839         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12840         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12841
12842 2011-04-27  Bruno Haible  <bruno@clisp.org>
12843
12844         mkstemps: Ensure declaration on MacOS X 10.5.
12845         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12846         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12847         MacOS X.
12848
12849 2011-04-27  Bruno Haible  <bruno@clisp.org>
12850
12851         mkstemp: More documentation.
12852         * doc/posix-functions/mkstemp.texi: Document header file problem on
12853         MacOS X.
12854
12855 2011-04-27  Bruno Haible  <bruno@clisp.org>
12856
12857         mkstemp: Tweak configure message when cross-compiling.
12858         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12859         result as a guess.
12860
12861 2011-04-27  Bruno Haible  <bruno@clisp.org>
12862
12863         clean-temp: Clarify what it does.
12864         * lib/clean-temp.h: Add more comments.
12865         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12866         module.
12867         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12868         * doc/glibc-functions/mkstemps.texi: Likewise.
12869         * doc/glibc-functions/mkostemps.texi: Likewise.
12870
12871 2011-04-27  Eric Blake  <eblake@redhat.com>
12872
12873         fchdir: avoid extra chdir and fix test
12874         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12875         getcwd-lgpl.
12876         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12877         have to be canonical.
12878         (canonicalize_file_name): Drop unused macro.
12879         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12880
12881         filenamecat-lgpl: fix licence
12882         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12883         when it was first created.
12884
12885         linkat, renameat: add missing dependency
12886         * modules/linkat (Depends-on): Require getcwd-lgpl.
12887         * modules/renameat (Depends-on): Likewise.
12888
12889         tests: reduce dependencies
12890         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12891         * tests/test-renameat.c (main): Likewise.
12892         * modules/linkat-tests (Depends-on): Relax dependency.
12893         * modules/renameat-tests (Depends-on): Likewise.
12894         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12895         dependency explicit.
12896
12897         save-cwd: reduce default dependency
12898         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12899         * lib/save-cwd.c: Update comments.
12900         * NEWS: Document the semantic change.
12901
12902         getcwd: enhance tests
12903         * tests/test-getcwd-lgpl.c: New file, taken from...
12904         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12905         repeat long path stress tests from m4 probe.
12906         * modules/getcwd-lgpl-tests: New module.
12907         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12908         * m4/getcwd-abort-bug.m4: Update comment.
12909         * m4/getcwd-path-max.m4: Likewise.
12910
12911         getcwd-lgpl: new module
12912         * modules/getcwd-lgpl: New module.
12913         * lib/getcwd-lgpl.c: New file.
12914         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12915         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12916         * modules/getcwd (configure.ac): Set C witness.
12917         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12918
12919         getcwd: tweak comments
12920         * m4/getcwd-abort-bug.m4: Fix comments.
12921         * m4/getcwd-path-max.m4: Likewise.
12922         * m4/getcwd.m4: Likewise.
12923
12924 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12925         and Eric Blake  <eblake@redhat.com>
12926
12927         mkstemp: replace if system version uses wrong permissions
12928         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12929         read/write mode bits set in file created by mkstemp.
12930         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12931
12932 2011-04-27  Eric Blake  <eblake@redhat.com>
12933
12934         passfd: avoid compiler warning
12935         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12936         Reported by Laine Stump.
12937
12938 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12939
12940         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12941         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12942
12943 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12944         and Eric Blake  <eblake@redhat.com>
12945
12946         mkstemp: mention clean-temp module
12947         * lib/mkstemp.c: Add comment.
12948         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12949
12950 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12951
12952         inttypes: also provide default values for 32-bit tests
12953         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12954         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12955
12956 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         strtoumax: remove dependency on strtoimax
12959         This is like the strtoull change of yesterday.
12960         * modules/strtoumax (Files): Add lib/strtoimax.c.
12961         (Depends-on): Remove strtoimax and add verify.
12962
12963         inttypes-incomplete: new module
12964         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12965         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12966         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12967         of gl_INTTYPES_H.
12968         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12969         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12970         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12971         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12972         * modules/strtoumax, modules/xstrtol (Depends-on):
12973         Depend on inttypes-incomplete, not inttypes.
12974         * modules/inttypes-incomplete: New module, containing the contents
12975         of the old modules/inttypes module, except that the Files: section
12976         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12977         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12978         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12979         (Depends-on): Depend only on inttypes-incomplete.
12980         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12981
12982         inttypes: omit now-redundant strtoimax and strtoumax work
12983         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12984         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12985
12986         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12987         This supports apps that need pointers to strtoimax and strtoumax,
12988         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12989         nonexistent functions.  See
12990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12991         et seq.
12992         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12993         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12994         a macro.
12995         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12996
12997 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12998
12999         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13000
13001 2011-04-25  Bruno Haible  <bruno@clisp.org>
13002
13003         strtol, strtoul: Mark modules as obsolete.
13004         * modules/strtol (Status, Notice): New sections.
13005         * modules/strtoul (Status, Notice): New sections.
13006
13007 2011-04-25  Bruno Haible  <bruno@clisp.org>
13008
13009         strtod: Remove check for strtod, unless supporting old platforms.
13010         * modules/strtod-obsolete: New file.
13011         * m4/strtod-obsolete.m4: New file.
13012         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13013         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13014         * modules/strtod (Depends-on): Add strtod-obsolete.
13015         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13016
13017 2011-04-25  Bruno Haible  <bruno@clisp.org>
13018
13019         strcase: Make module obsolete.
13020         * modules/strcase (Status, Notice): New sections.
13021
13022 2011-04-25  Bruno Haible  <bruno@clisp.org>
13023
13024         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13025         * modules/dup2-obsolete: New file.
13026         * m4/dup2-obsolete.m4: New file.
13027         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13028         gl_FUNC_DUP2_OBSOLETE is not also defined.
13029         * modules/dup2 (Depends-on): Add dup2-obsolete.
13030         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13031
13032 2011-04-25  Bruno Haible  <bruno@clisp.org>
13033
13034         strnlen: Avoid memchr related link error on old obsolete platforms.
13035         * modules/memchr-obsolete: New file.
13036         * m4/memchr-obsolete.m4: New file.
13037         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13038         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13039         * modules/memchr (Depends-on): Add memchr-obsolete.
13040         * modules/strnlen (Depends-on): Likewise.
13041         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13042
13043 2011-04-25  Jim Meyering  <meyering@redhat.com>
13044
13045         maint.mk: makefile_at_at_check extend and clean up
13046         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13047         in addition to */Makefile.am.
13048         Exempt legitimate uses of @VAR@ notation, e.g.,
13049         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13050         Remove obsolete coreutils-specific comment.
13051         Prompted by discussion here:
13052         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13053
13054 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         strtoul: remove dependency on strtol
13057         This is so that 'configure' need not check for strtol merely because
13058         the application needs strtoul.
13059         * modules/strtoul (Files): Add lib/strtol.c.
13060         (Depends-on): Remove strtol.
13061
13062         strtoull: remove dependency on strtoul
13063         This is like the strtoll change.
13064         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13065         (Depends-on): Remove strtoul.
13066
13067         strtoll: remove dependency on strtol
13068         This is so that 'configure' need not check for strtol merely because
13069         the application needs strtoll.
13070         * modules/strtoll (Files): Add lib/strtol.c.
13071         (Depends-on): Remove strtol.
13072
13073 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13074
13075         inttypes: Move some configure check to module 'imaxdiv'.
13076         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13077         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13078         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13079
13080 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13081
13082         inttypes: Move some configure check to module 'imaxabs'.
13083         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13084         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13085         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13086
13087 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13088
13089         inttypes: Remove configure tests that are not needed since 2009-12-31.
13090         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13091         gl_cv_header_working_inttypes_h.
13092
13093 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13094
13095         * modules/strnlen (Depends-on): Remove memchr.
13096         The strnlen implementation doesn't need the memchr module's fixes; see
13097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13098
13099         strtol: remove dependency on wchar
13100         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13101         * modules/strtol (Depends-on): Remove wchar.
13102
13103 2011-04-21  Eric Blake  <eblake@redhat.com>
13104
13105         passfd: fix test regression on Linux
13106         * modules/passfd-tests (configure.ac): Correct socketpair check.
13107
13108         passfd: speed up configure and drop unused code
13109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13110         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13111         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13112         Instead of probing at configure for unix_scm_rights_bsd44_way,
13113         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13114         check to a struct member probe.
13115         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13116         (sendfd, recvfd): Update preprocessor checks.
13117         * modules/passfd (Files): Reflect rename, and drop unused file.
13118         (Depends-on): Drop unused dependency.
13119
13120         passfd: allow compilation on mingw
13121         * modules/sys_socket (Depends-on): Add sys_uio.
13122         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13123         iovec and a minimal struct msghdr.
13124         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13125         * tests/test-sys_socket.c (main): Enhance test.
13126         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13127         guaranteed to provide what we need.
13128         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13129         * modules/passfd-tests (Depends-on): Add sys_wait.
13130         * tests/test-passfd.c (main): Skip test on mingw, for now.
13131         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13132         partial 'struct msghdr' implementation.
13133
13134         sys_uio: new module
13135         * modules/sys_uio: New module.
13136         * modules/sys_uio-tests: Likewise.
13137         * lib/sys_uio.in.h: New file.
13138         * m4/sys_uio_h.m4: Likewise.
13139         * tests/test-sys_uio.c: Likewise.
13140         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13141         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13142
13143 2011-04-20  Jim Meyering  <meyering@redhat.com>
13144
13145         useless-if-before-free: avoid false-positive
13146         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13147         disjunct so that it too requires a terminating ";".  Without that,
13148         this script would identify as useless one statement from gcc that
13149         was not:
13150           if (aligned_ptr)
13151             free (((void **) aligned_ptr) [-1]);
13152
13153 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13154
13155         doc: update users.txt.
13156         * users.txt: Add barcode.
13157
13158 2011-04-19  Bruno Haible  <bruno@clisp.org>
13159
13160         ioctl: Remove link dependency on native Windows.
13161         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13162         (gl_close_fn, gl_ioctl_fn): New types.
13163         (struct fd_hook): Renamed from struct close_hook. Change type of
13164         private_close_fn field. Add private_ioctl_fn field.
13165         (close_hook_fn): Add parameter for primary close method.
13166         (execute_close_hooks, execute_all_close_hooks): Likewise.
13167         (ioctl_hook_fn): New type.
13168         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13169         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13170         argument.
13171         (unregister_fd_hook): Renamed from unregister_close_hook.
13172         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13173         Don't include <unistd.h>.
13174         (close): Remove undef.
13175         (anchor): Update.
13176         (execute_close_hooks): Add argument for primary close method.
13177         (execute_all_close_hooks): Likewise.
13178         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13179         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13180         argument. Allow each argument to be NULL.
13181         (unregister_fd_hook): Renamed from unregister_close_hook.
13182         * lib/close.c (rpl_close): Pass 'close' function pointer to
13183         execute_all_close_hooks.
13184         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13185         (primary_ioctl): New function.
13186         (ioctl): Don't call ioctlsocket here. Instead, call
13187         execute_all_ioctl_hooks.
13188         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13189         close method.
13190         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13191         (fd_sockets_hook): Renamed from close_sockets_hook.
13192         (gl_sockets_startup, gl_sockets_cleanup): Update.
13193         * modules/fd-hook: Renamed from modules/close-hook. Update.
13194         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13195         * modules/sockets (Depends-on): Likewise.
13196         * modules/ioctl (Depends-on): Add fd-hook.
13197         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13198         GNULIB_SOCKET.
13199
13200 2011-04-19  Bruno Haible  <bruno@clisp.org>
13201
13202         Move the support of O_NONBLOCK in open() to the 'open' module.
13203         * modules/nonblocking (Depends-on): Remove 'open'.
13204         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13205         gl_cv_have_open_O_NONBLOCK.
13206         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13207         O_NONBLOCK support.
13208         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13209
13210 2011-04-17  Bruno Haible  <bruno@clisp.org>
13211
13212         pipe2: Simplify code.
13213         * lib/pipe2.c (pipe2): Reduce code duplication.
13214
13215 2011-04-17  Bruno Haible  <bruno@clisp.org>
13216
13217         nonblocking: Add comment.
13218         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13219
13220 2011-04-17  Bruno Haible  <bruno@clisp.org>
13221
13222         nonblocking: Add tests for sockets.
13223         * tests/test-nonblocking-socket.sh: New file.
13224         * tests/test-nonblocking-socket-main.c: New file.
13225         * tests/test-nonblocking-socket-child.c: New file.
13226         * tests/test-nonblocking-socket.h: New file.
13227         * tests/socket-server.h: New file.
13228         * tests/socket-client.h: New file.
13229         * modules/nonblocking-socket-tests: New file.
13230         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13231
13232 2011-04-17  Bruno Haible  <bruno@clisp.org>
13233
13234         nonblocking: Add tests for pipes.
13235         * tests/test-nonblocking-pipe.sh: New file.
13236         * tests/test-nonblocking-pipe-main.c: New file.
13237         * tests/test-nonblocking-pipe-child.c: New file.
13238         * tests/test-nonblocking-pipe.h: New file.
13239         * tests/test-nonblocking-writer.h: New file.
13240         * tests/test-nonblocking-reader.h: New file.
13241         * tests/test-nonblocking-misc.h: New file.
13242         * modules/nonblocking-pipe-tests: New file.
13243         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13244
13245 2011-04-16  Bruno Haible  <bruno@clisp.org>
13246
13247         gettext: Clarify the needed programmer actions.
13248         * modules/gettext (Notice): New field.
13249         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13250
13251 2011-04-16  Bruno Haible  <bruno@clisp.org>
13252
13253         strchrnul: Tweak last commit.
13254         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13255         bug.
13256         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13257         as in _GL_FUNCDECL_SYS.
13258         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13259         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13260
13261 2011-04-15  Eric Blake  <eblake@redhat.com>
13262
13263         strchrnul: work around cygwin bug
13264         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13265         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13267         * modules/string (Makefile.am): Substitute it.
13268         * lib/string.in.h (strchrnul): Use it.
13269
13270 2011-04-15  Bruno Haible  <bruno@clisp.org>
13271
13272         Don't require lib/stdio-write.c when only module 'stdio' is used.
13273         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13274         invocation.
13275         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13276
13277 2011-04-14  Bruno Haible  <bruno@clisp.org>
13278
13279         Support non-blocking pipe I/O in read() on native Windows.
13280         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13281         (read): New declaration.
13282         * lib/read.c: New file.
13283         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13284         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13285         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13286         vscanf): New declarations.
13287         * lib/stdio-read.c: New file.
13288         * m4/read.m4: New file.
13289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13290         REPLACE_READ.
13291         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13292         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13293         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13294         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13295         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13296         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13297         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13298         * modules/read: New file.
13299         * modules/nonblocking (Files): Add lib/stdio-read.c.
13300         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13301         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13302         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13303         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13304         * modules/pread (Depends-on): Add read.
13305         * modules/safe-read (Depends-on): Likewise.
13306         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13307         gets, scanf, vfscanf, vscanf): Verify signatures.
13308         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13309         problem with non-blocking pipes.
13310         * doc/posix-functions/fgetc.texi: Likewise.
13311         * doc/posix-functions/fgets.texi: Likewise.
13312         * doc/posix-functions/fread.texi: Likewise.
13313         * doc/posix-functions/fscanf.texi: Likewise.
13314         * doc/posix-functions/getc.texi: Likewise.
13315         * doc/posix-functions/getchar.texi: Likewise.
13316         * doc/posix-functions/gets.texi: Likewise.
13317         * doc/posix-functions/scanf.texi: Likewise.
13318         * doc/posix-functions/vfscanf.texi: Likewise.
13319         * doc/posix-functions/vscanf.texi: Likewise.
13320
13321 2011-04-14  Bruno Haible  <bruno@clisp.org>
13322
13323         Support non-blocking pipe I/O in write() on native Windows.
13324         * lib/write.c (rpl_write): Split a write request that failed merely
13325         because the byte count was larger than the pipe buffer's size.
13326         * doc/posix-functions/write.texi: Mention the problem with large byte
13327         counts.
13328
13329 2011-04-14  Bruno Haible  <bruno@clisp.org>
13330
13331         wchar: Ensure that wchar_t gets defined on uClibc.
13332         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13333         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13334
13335 2011-04-13  Bruno Haible  <bruno@clisp.org>
13336
13337         safe-write, full-read: Avoid unnecessary compilation units.
13338         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13339         (Depends-on): Remove safe-read. Add ssize_t.
13340         * modules/full-read (Files): Add lib/full-write.c.
13341         (Depends-on): Add full-write.
13342
13343 2011-04-13  Bruno Haible  <bruno@clisp.org>
13344
13345         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13346         * modules/pwrite (Depends-on): Add 'write'.
13347
13348 2011-04-13  Bruno Haible  <bruno@clisp.org>
13349
13350         Support non-blocking pipe I/O in write() on native Windows.
13351         * lib/unistd.in.h (write): Enable replacement also if
13352         GNULIB_UNISTD_H_NONBLOCKING is 1.
13353         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13354         (rpl_write): When failing to write on a non-blocking pipe, change
13355         errno from ENOSPC to EAGAIN.
13356         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13357         putchar, puts, vfprintf, vprintf): Enable replacement also if
13358         GNULIB_STDIO_H_NONBLOCKING is 1.
13359         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13360         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13361         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13362         CALL_WITH_SIGPIPE_EMULATION.
13363         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13364         * m4/nonblocking.m4: New file.
13365         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13366         for non-blocking I/O support.
13367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13368         GNULIB_UNISTD_H_NONBLOCKING.
13369         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13370         required for non-blocking I/O support.
13371         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13372         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13373         lib/stdio-write.c, m4/asm-underscore.m4.
13374         (Depends-on): Add stdio, unistd.
13375         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13376         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13377         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13378         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13379         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13380         problem with non-blocking pipes.
13381         * doc/posix-functions/fputc.texi: Likewise.
13382         * doc/posix-functions/fputs.texi: Likewise.
13383         * doc/posix-functions/fwrite.texi: Likewise.
13384         * doc/posix-functions/printf.texi: Likewise.
13385         * doc/posix-functions/putc.texi: Likewise.
13386         * doc/posix-functions/putchar.texi: Likewise.
13387         * doc/posix-functions/puts.texi: Likewise.
13388         * doc/posix-functions/vfprintf.texi: Likewise.
13389         * doc/posix-functions/vprintf.texi: Likewise.
13390         * doc/posix-functions/write.texi: Likewise.
13391
13392 2011-04-10  Jim Meyering  <meyering@redhat.com>
13393
13394         maint.mk: prohibit doubled words
13395         Detect them also when they're separated by a newline.
13396         There are 3 ways to customize it:
13397           - disable the test on a per file basis, as usual with rules using
13398             $(VC_LIST_EXCEPT)
13399           - replace the default doubled-word-selecting regexp (affects all files)
13400           - ignore a particular file-vs-doubled-word match
13401         I nearly used that last one to ignore the "is is" match in
13402         coreutils' NEWS file, since the text was "ls -is is ..."
13403         To do that, I would have added this line to cfg.mk:
13404           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13405         but it would have ignored any "is is" match in NEWS.
13406         Low probability, but still...
13407         Instead, I changed the text, slightly:
13408           -  ls -is is now consistent with ls -lis in ignoring values returned
13409           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13410         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13411         (prohibit_doubled_word_): Define.
13412         (sc_prohibit_doubled_word): New rule.
13413         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13414
13415 2011-04-10  Jim Meyering  <meyering@redhat.com>
13416
13417         maint: fix doubled-word typo in comment
13418         * m4/gethostname.m4: s/is is/it is/
13419         * m4/getdomainname.m4: Likewise.
13420
13421 2011-04-10  Jim Meyering  <meyering@redhat.com>
13422
13423         maint: remove doubled word: s/it it/it/
13424         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13425
13426 2011-04-10  Jim Meyering  <meyering@redhat.com>
13427
13428         maint.mk: remove useless semicolon and backslash
13429         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13430         semicolon and backslash.
13431
13432 2011-04-10  Bruno Haible  <bruno@clisp.org>
13433
13434         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13435         * modules/stdint-tests (Depends-on): Add wchar.
13436
13437 2011-04-10  Jim Meyering  <meyering@redhat.com>
13438
13439         maint: remove doubled words in comments, e.g., s/a a/a/
13440         * lib/strptime.c (day_of_the_week): s/the the/the/
13441         * tests/test-chown.h (test_chown): s/a a/a/
13442
13443         test-chown.h: correct a cast
13444         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13445         when the destination is a stat.st_gid.
13446
13447 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13448
13449         getaddrinfo: Fix test for sa_len member.
13450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13451         include <sys/types.h> before <sys/socket.h>.
13452
13453 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13454
13455         maint: change "can not" to "cannot"
13456         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13457         boundaries.
13458
13459 2011-04-09  Jim Meyering  <meyering@redhat.com>
13460
13461         maint: change "a a" to "a"
13462         * tests/test-lchown.h (test_lchown): s/a a/a/
13463
13464         maint.mk: prohibit \<the the\>
13465         * top/maint.mk (sc_prohibit_the_the): New rule.
13466
13467         maint: fix "the the" in comment
13468         * lib/count-one-bits.h: s/the the/the/
13469
13470         maint: change "can not" to "cannot"
13471         But do not change the occurrences in maintain.texi or in
13472         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13473         * doc/gnulib-tool.texi: s/can not/cannot/
13474         * doc/posix-functions/accept.texi (accept): Likewise.
13475         * doc/posix-functions/socket.texi (socket): Likewise.
13476         * lib/mbrtowc.c: Likewise.
13477
13478         maint.mk: prohibit use of "can not"
13479         * top/maint.mk (sc_prohibit_can_not): New rule.
13480         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13481
13482 2011-04-09  Bruno Haible  <bruno@clisp.org>
13483
13484         careadlinkat: Guard against misuse of careadlinkatcwd.
13485         * lib/careadlinkat.c: Include <stdlib.h>.
13486         (careadlinkatcwd): Check that the fd argument is as expected.
13487
13488 2011-04-09  Bruno Haible  <bruno@clisp.org>
13489
13490         careadlinkat: Use common coding style.
13491         * lib/careadlinkat.c: Move gnulib includes after system includes.
13492
13493 2011-04-09  Bruno Haible  <bruno@clisp.org>
13494
13495         careadlinkat: Clarify specification.
13496         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13497         (careadlinkatcwd): Add comment.
13498         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13499
13500 2011-04-09  Bruno Haible  <bruno@clisp.org>
13501
13502         areadlinkat: Avoid link error on many platforms.
13503         * modules/areadlinkat (Depends-on): Add areadlink.
13504
13505 2011-04-09  Bruno Haible  <bruno@clisp.org>
13506
13507         allocator, careadlinkat: Fix double-inclusion guard.
13508         * lib/allocator.h: Fix double-inclusion guard.
13509         * lib/careadlinkat.h: Likewise.
13510
13511 2011-04-09  Bruno Haible  <bruno@clisp.org>
13512
13513         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13514         * lib/relocwrapper.c: Update dependencies hierarchy.
13515         * build-aux/install-reloc: Update list of files to be compiled.
13516         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13517         lib/allocator.[hc].
13518
13519 2011-04-08  Eric Blake  <eblake@redhat.com>
13520
13521         strftime: silence gnulib-tool warning
13522         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13523
13524 2011-04-08  Bruno Haible  <bruno@clisp.org>
13525
13526         verify: Fix syntax error with GCC 4.6 in C++ mode.
13527         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13528         (HAVE_STATIC_ASSERT): New macro.
13529         (verify_true, verify): Use 'static_assert' if it is supported and
13530         '_Static_assert' is not supported.
13531
13532 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13533
13534         allocator: New module.
13535         * modules/allocator, lib/allocator.c: New files.
13536         * lib/allocator.h (stdlib_allocator): New decl.
13537         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13538         Remove.  Do not include <stdlib.h>.
13539         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13540         * modules/careadlinkat (Files): Remove lib/allocator.h.
13541         (Depends-on): Add allocator.
13542
13543         stdlib: let modules use system malloc, realloc
13544         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13545         if !_GL_USE_STDLIB_ALLOC.
13546         (malloc, realloc): Limit this change to a smaller scope.
13547
13548         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13549         (malloc, realloc): Don't #undef; no longer needed.
13550         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13551         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13552         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13553         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13554         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13555         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13556         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13557         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13558
13559         careadlinkat: rename members to avoid problem
13560         * lib/allocator.h (struct allocator): Rename members from
13561         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13562         and realloc are #define'd.  Reported by Eric Blake in
13563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13564         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13565
13566 2011-04-08  Eric Blake  <eblake@redhat.com>
13567
13568         nonblocking: reduce dependency
13569         * tests/test-nonblocking.c: Only test sockets when in use.
13570         * modules/nonblocking-tests (Depends-on): Drop socket.
13571         (Makefile.am): Link even if sockets are not present.
13572         * modules/pipe2-tests (Makefile.am): Likewise.
13573         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13574
13575         pipe2: fix O_NONBLOCK support on mingw
13576         * modules/pipe2 (Depends-on): Add nonblocking.
13577         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13578         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13579         * tests/test-nonblocking.c (main): Likewise.
13580         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13581
13582         fcntl-h: fix O_ACCMODE on cygwin
13583         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13584         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13585
13586         pipe-filter: drop O_NONBLOCK workarounds
13587         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13588         * modules/pipe-filter-ii (Depends-on): Likewise.
13589         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13590
13591         nonblocking: provide O_NONBLOCK for mingw
13592         * modules/nonblocking (Depends-on): Add open.
13593         (configure.ac): Set new witness macro.
13594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13595         * modules/fcntl-h (Makefile.am): Substitute it.
13596         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13597         nonblocking module is in use.
13598         * lib/nonblocking.c: Adjust portability test.
13599         * lib/open.c (open): Don't let native open see gnulib flag.
13600         * tests/test-fcntl-h.c (main): Enhance test.
13601         * tests/test-open.h (test_open): Likewise.
13602         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13603
13604         careadlinkat: fix compilation error on mingw
13605         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13606         within struct allocator.
13607
13608 2011-04-06  Eric Blake  <eblake@redhat.com>
13609
13610         binary-io: relicense under LGPLv2+
13611         * modules/binary-io (License): Relax to LGPLv2+.
13612         Requested for libvirt, and required by pipe2.
13613
13614 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13615
13616         verify: use _Static_assert if available
13617         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13618         (verify_true, verify): Use it if available.  This generates better
13619         diagnostics with GCC 4.6.0 and later.
13620
13621 2011-04-05  Bruno Haible  <bruno@clisp.org>
13622
13623         Remove leftover generated .h files after config.status changed.
13624
13625         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13626         GL_GENERATE_ALLOCA_H.
13627         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13628         GL_GENERATE_ALLOCA_H evaluates to false.
13629
13630         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13631         GL_GENERATE_ARGZ_H.
13632         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13633         evaluates to false.
13634
13635         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13636         GL_GENERATE_BYTESWAP_H.
13637         * modules/byteswap (Makefile.am): Remove byteswap.h if
13638         GL_GENERATE_BYTESWAP_H evaluates to false.
13639
13640         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13641         GL_GENERATE_ERRNO_H.
13642         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13643         evaluates to false.
13644
13645         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13646         GL_GENERATE_FLOAT_H.
13647         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13648         evaluates to false.
13649
13650         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13651         GL_GENERATE_FNMATCH_H.
13652         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13653         GL_GENERATE_FNMATCH_H evaluates to false.
13654
13655         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13656         GL_GENERATE_GLOB_H.
13657         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13658         evaluates to false.
13659
13660         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13661         automake conditional GL_GENERATE_ICONV_H.
13662         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13663         evaluates to false.
13664
13665         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13666         GL_GENERATE_NETINET_IN_H.
13667         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13668         GL_GENERATE_NETINET_IN_H evaluates to false.
13669
13670         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13671         conditional GL_GENERATE_PTHREAD_H.
13672         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13673         * modules/pthread (Makefile.am): Remove pthread.h if
13674         GL_GENERATE_PTHREAD_H evaluates to false.
13675
13676         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13677         GL_GENERATE_SCHED_H.
13678         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13679         evaluates to false.
13680
13681         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13682         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13683         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13684         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13685
13686         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13687         GL_GENERATE_STDARG_H.
13688         * modules/stdarg (Makefile.am): Remove stdarg.h if
13689         GL_GENERATE_STDARG_H evaluates to false.
13690
13691         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13692         GL_GENERATE_STDBOOL_H.
13693         * modules/stdbool (Makefile.am): Remove stdbool.h if
13694         GL_GENERATE_STDBOOL_H evaluates to false.
13695
13696         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13697         conditional GL_GENERATE_STDDEF_H.
13698         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13699         * modules/stddef (Makefile.am): Remove stddef.h if
13700         GL_GENERATE_STDDEF_H evaluates to false.
13701
13702         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13703         GL_GENERATE_STDINT_H.
13704         * modules/stdint (Makefile.am): Remove stdint.h if
13705         GL_GENERATE_STDINT_H evaluates to false.
13706
13707         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13708         GL_GENERATE_SYSEXITS_H.
13709         * modules/sysexits (Makefile.am): Remove sysexits.h if
13710         GL_GENERATE_SYSEXITS_H evaluates to false.
13711
13712         Reported by Karl Berry and Ralf Wildenhues.
13713
13714 2011-04-05  Bruno Haible  <bruno@clisp.org>
13715
13716         Ensure to rebuild generated .h files when config.status has changed.
13717         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13718         config.status.
13719         * modules/ctype (Makefile.am): Likewise.
13720         * modules/dirent (Makefile.am): Likewise.
13721         * modules/errno (Makefile.am): Likewise.
13722         * modules/fcntl-h (Makefile.am): Likewise.
13723         * modules/float (Makefile.am): Likewise.
13724         * modules/getopt-posix (Makefile.am): Likewise.
13725         * modules/glob (Makefile.am): Likewise.
13726         * modules/iconv-h (Makefile.am): Likewise.
13727         * modules/inttypes (Makefile.am): Likewise.
13728         * modules/langinfo (Makefile.am): Likewise.
13729         * modules/locale (Makefile.am): Likewise.
13730         * modules/math (Makefile.am): Likewise.
13731         * modules/netdb (Makefile.am): Likewise.
13732         * modules/netinet_in (Makefile.am): Likewise.
13733         * modules/poll-h (Makefile.am): Likewise.
13734         * modules/pthread (Makefile.am): Likewise.
13735         * modules/pty (Makefile.am): Likewise.
13736         * modules/sched (Makefile.am): Likewise.
13737         * modules/search (Makefile.am): Likewise.
13738         * modules/selinux-h (Makefile.am): Likewise.
13739         * modules/signal (Makefile.am): Likewise.
13740         * modules/spawn (Makefile.am): Likewise.
13741         * modules/stdarg (Makefile.am): Likewise.
13742         * modules/stdbool (Makefile.am): Likewise.
13743         * modules/stddef (Makefile.am): Likewise.
13744         * modules/stdint (Makefile.am): Likewise.
13745         * modules/stdio (Makefile.am): Likewise.
13746         * modules/stdlib (Makefile.am): Likewise.
13747         * modules/string (Makefile.am): Likewise.
13748         * modules/strings (Makefile.am): Likewise.
13749         * modules/sys_file (Makefile.am): Likewise.
13750         * modules/sys_ioctl (Makefile.am): Likewise.
13751         * modules/sys_select (Makefile.am): Likewise.
13752         * modules/sys_socket (Makefile.am): Likewise.
13753         * modules/sys_stat (Makefile.am): Likewise.
13754         * modules/sys_time (Makefile.am): Likewise.
13755         * modules/sys_times (Makefile.am): Likewise.
13756         * modules/sys_utsname (Makefile.am): Likewise.
13757         * modules/sys_wait (Makefile.am): Likewise.
13758         * modules/sysexits (Makefile.am): Likewise.
13759         * modules/termios (Makefile.am): Likewise.
13760         * modules/time (Makefile.am): Likewise.
13761         * modules/unistd (Makefile.am): Likewise.
13762         * modules/wchar (Makefile.am): Likewise.
13763         * modules/wctype-h (Makefile.am): Likewise.
13764         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13765
13766 2011-04-05  Bruno Haible  <bruno@clisp.org>
13767
13768         pipe2: Relicense under LGPLv2+.
13769         * modules/pipe2 (License): Change to LGPLv2+.
13770         Requested by Eric Blake, for libvirt.
13771
13772 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13773
13774         bootstrap: compute gnulib_extra_files after updating build_aux
13775         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13776         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13777
13778 2011-04-05  Eric Blake  <eblake@redhat.com>
13779
13780         bootstrap: preserve git whitelist item sorting
13781         * build-aux/bootstrap (sort_patterns): New function.
13782         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13783
13784 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13785
13786         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13787         sc_space_tab check.
13788
13789 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13790
13791         areadlink, areadlinkat: rewrite in terms of careadlinkat
13792         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13793         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13794         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13795         (malloc, realloc): Remove #undefs.
13796         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13797         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13798         readlink, ssize_t, stdint, unistd.
13799         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13800         areadlink, stdint.
13801
13802         careadlinkat: new module
13803         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13804         * modules/careadlinkat: New files, written by me with
13805         a review and feedback from Ben Pfaff in
13806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13807
13808 2011-04-01  Bruno Haible  <bruno@clisp.org>
13809
13810         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13811         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13812         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13813         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13814         Reported by Bruce Korb <bruce.korb@gmail.com>.
13815
13816 2011-04-01  Bruno Haible  <bruno@clisp.org>
13817
13818         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13819         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13820         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13821         * modules/wcpcpy (Depends-on): Add extensions.
13822         * modules/wcpncpy (Depends-on): Likewise.
13823         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13824         systems.
13825         * doc/posix-functions/wcpncpy.texi: Likewise.
13826         * doc/posix-functions/wcwidth.texi: Likewise.
13827
13828 2011-03-31  Eric Blake  <eblake@redhat.com>
13829
13830         nonblocking: fix mingw test failures
13831         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13832         non-blocking flag on regular file.
13833         (get_nonblocking_flag): Set errno on invalid fd.
13834         * tests/test-nonblocking.c (main): Avoid test failure on
13835         directories if fchdir is not active.
13836         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13837
13838 2011-03-31  Bruno Haible  <bruno@clisp.org>
13839
13840         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13841         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13842         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13843         Reported by Simon Josefsson <simon@josefsson.org>.
13844
13845 2011-03-31  Bruno Haible  <bruno@clisp.org>
13846         and Eric Blake  <eblake@redhat.com>
13847
13848         nonblocking: new module
13849         * modules/nonblocking: New module.
13850         * modules/nonblocking-tests: Likewise.
13851         * lib/nonblocking.h: New file.
13852         * lib/nonblocking.c: Likewise.
13853         * tests/test-nonblocking.c: New test.
13854         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13855
13856 2011-03-30  Bruno Haible  <bruno@clisp.org>
13857
13858         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13859         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13860         instead of 'printf' format for GCC >= 4.4.
13861         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13862         (fprintf, printf, vfprintf, vprintf): Declare with
13863         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13864         the system's vfprintf() function.
13865         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13866
13867 2011-03-30  Eric Blake  <eblake@redhat.com>
13868
13869         passfd: fix scoping bug
13870         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13871         before sendmsg/recvmsg.
13872
13873         passfd: standardize coding conventions
13874         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13875         can be learned at compile time.
13876         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13877         ifdefs.
13878         (sendfd, recvfd): Follow gnulib code conventions.
13879
13880         passfd: fix incorrect sendmsg arguments
13881         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13882         incorrect msg_controllen value.
13883         * modules/passfd-tests (Depends-on): Check for alarm.
13884         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13885         Reported by Bastien ROUCARIES.
13886
13887 2011-03-30  Bruno Haible  <bruno@clisp.org>
13888
13889         c-strcasestr: Relicense under LGPLv2+.
13890         * modules/c-strcasestr (License): Change to LGPLv2+.
13891         Requested by Eric Blake, for libvirt.
13892
13893 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13894
13895         * users.txt: Add libidn2.  Fix libtasn1 link.
13896
13897 2011-03-30  Jim Meyering  <meyering@redhat.com>
13898
13899         tests: readlink* ("",... fails with EINVAL on newer kernels
13900         readlink and readlinkat have typically failed with ENOENT for
13901         the invalid, empty file name,  "".  However, with the advent
13902         of linux-2.6.39, they fail with EINVAL.
13903         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13904         when operating on the empty file name.
13905         * tests/test-readlink.h (test_readlink): Likewise.
13906
13907 2011-03-29  Bruno Haible  <bruno@clisp.org>
13908
13909         Relicense some modules under LGPLv2+, for libidn2.
13910         * modules/array-mergesort (License): Change to LGPLv2+.
13911         * modules/c-strcaseeq (License): Likewise.
13912         * modules/striconveh (License): Likewise.
13913         * modules/striconveha (License): Likewise.
13914         * modules/uniconv/base (License): Likewise.
13915         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13916         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13917         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13918         * modules/unictype/base (License): Likewise.
13919         * modules/unictype/bidiclass-of (License): Likewise.
13920         * modules/unictype/category-M (License): Likewise.
13921         * modules/unictype/category-none (License): Likewise.
13922         * modules/unictype/category-of (License): Likewise.
13923         * modules/unictype/category-test (License): Likewise.
13924         * modules/unictype/category-test-withtable (License): Likewise.
13925         * modules/unictype/combining-class (License): Likewise.
13926         * modules/unictype/joiningtype-of (License): Likewise.
13927         * modules/unictype/scripts (License): Likewise.
13928         * modules/uninorm/base (License): Likewise.
13929         * modules/uninorm/canonical-decomposition (License): Likewise.
13930         * modules/uninorm/composition (License): Likewise.
13931         * modules/uninorm/decompose-internal (License): Likewise.
13932         * modules/uninorm/decomposition-table (License): Likewise.
13933         * modules/uninorm/nfc (License): Likewise.
13934         * modules/uninorm/nfd (License): Likewise.
13935         * modules/uninorm/u32-normalize (License): Likewise.
13936         * modules/unistr/base (License): Likewise.
13937         * modules/unistr/u32-cpy (License): Likewise.
13938         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13939         * modules/unistr/u32-to-u8 (License): Likewise.
13940         * modules/unistr/u32-uctomb (License): Likewise.
13941         * modules/unistr/u8-check (License): Likewise.
13942         * modules/unistr/u8-mblen (License): Likewise.
13943         * modules/unistr/u8-mbtouc (License): Likewise.
13944         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13945         * modules/unistr/u8-mbtoucr (License): Likewise.
13946         * modules/unistr/u8-prev (License): Likewise.
13947         * modules/unistr/u8-strlen (License): Likewise.
13948         * modules/unistr/u8-to-u32 (License): Likewise.
13949         * modules/unistr/u8-uctomb (License): Likewise.
13950         * modules/unitypes (License): Likewise.
13951         Requested by Simon Josefsson.
13952
13953 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13954
13955         lib-symbol-visibility: Add a notice.
13956         * modules/lib-symbol-visibility (Notice): New field.
13957
13958 2011-03-29  Bruno Haible  <bruno@clisp.org>
13959
13960         getaddrinfo: Doc fix.
13961         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13962         section "fixed in Gnulib".
13963
13964 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13965
13966         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13967         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13968
13969 2011-03-26  Bruno Haible  <bruno@clisp.org>
13970
13971         unictype/property-byname: Reduce the number of load-time relocations.
13972         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13973         (UC_PROPERTY_INDEX_*): New enumeration values.
13974         (uc_property_byname): Convert an index from the lookup table to an
13975         uc_property_t.
13976         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13977         values.
13978
13979 2011-03-26  Bruno Haible  <bruno@clisp.org>
13980
13981         unictype/property-byname: Allow omitted word separators and aliases.
13982         * lib/unictype/pr_byname.gperf: Add property names without word
13983         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13984         for 'space'.
13985
13986 2011-03-26  Bruno Haible  <bruno@clisp.org>
13987
13988         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13989         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13990         also hyphens to space.
13991         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13992         without spaces.
13993         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13994
13995 2011-03-26  Bruno Haible  <bruno@clisp.org>
13996
13997         unictype/joiningtype-byname: Recognize long names as well.
13998         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13999         a long name.
14000         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14001         unictype/joiningtype_byname.h.
14002         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14003         * lib/unictype/joiningtype_byname.gperf: New file.
14004         * modules/unictype/joiningtype-byname (Files): Add
14005         lib/unictype/joiningtype_byname.gperf.
14006         (Depends-on): Add gperf.
14007         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14008         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14009         long names.
14010
14011         Tests for module 'unictype/joiningtype-longname'.
14012         * modules/unictype/joiningtype-longname-tests: New file.
14013         * tests/unictype/test-joiningtype_longname.c: New file.
14014
14015         New module 'unictype/joiningtype-longname'.
14016         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14017         * lib/unictype/joiningtype_longname.c: New file.
14018         * modules/unictype/joiningtype-longname: New file.
14019         * modules/unictype/joiningtype-all (Depends-on): Add
14020         unictype/joiningtype-longname.
14021
14022 2011-03-26  Bruno Haible  <bruno@clisp.org>
14023
14024         unictype/bidiclass-byname: Recognize long names as well.
14025         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14026         name.
14027         * lib/unictype/bidi_byname.c: Include <string.h>,
14028         unictype/bidi_byname.h.
14029         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14030         * lib/unictype/bidi_byname.gperf: New file.
14031         * modules/unictype/bidiclass-byname (Files): Add
14032         lib/unictype/bidi_byname.gperf.
14033         (Depends-on): Add gperf.
14034         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14035         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14036         long names.
14037
14038         Tests for module 'unictype/bidiclass-longname'.
14039         * modules/unictype/bidiclass-longname-tests: New file.
14040         * tests/unictype/test-bidi_longname.c: New file.
14041
14042         New module 'unictype/bidiclass-longname'.
14043         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14044         * lib/unictype/bidi_longname.c: New file.
14045         * modules/unictype/bidiclass-longname: New file.
14046         * modules/unictype/bidiclass-all (Depends-on): Add
14047         unictype/bidiclass-longname.
14048
14049 2011-03-26  Bruno Haible  <bruno@clisp.org>
14050
14051         unictype/bidi*: Rename modules.
14052         * modules/unictype/bidiclass-all: Renamed from
14053         modules/unictype/bidicategory-all.
14054         * modules/unictype/bidiclass-name: Renamed from
14055         modules/unictype/bidiclass-name.
14056         (Description): Update.
14057         * modules/unictype/bidiclass-name-tests: Renamed from
14058         modules/unictype/bidicategory-name-tests.
14059         * modules/unictype/bidiclass-byname: Renamed from
14060         modules/unictype/bidicategory-byname.
14061         (Description): Update.
14062         * modules/unictype/bidiclass-byname-tests: Renamed from
14063         modules/unictype/bidicategory-byname-tests.
14064         * modules/unictype/bidiclass-of: Renamed from
14065         modules/unictype/bidicategory-of.
14066         (Description): Update.
14067         * modules/unictype/bidiclass-of-tests: Renamed from
14068         modules/unictype/bidicategory-of-tests.
14069         * modules/unictype/bidiclass-test: Renamed from
14070         modules/unictype/bidicategory-test.
14071         (Description): Update.
14072         * modules/unictype/bidiclass-test-tests: Renamed from
14073         modules/unictype/bidicategory-test-tests.
14074         * modules/unictype/bidicategory-all: New file, a simple redirection.
14075         * modules/unictype/bidicategory-name: Likewise.
14076         * modules/unictype/bidicategory-byname: Likewise.
14077         * modules/unictype/bidicategory-of: Likewise.
14078         * modules/unictype/bidicategory-test: Likewise.
14079         * modules/unictype/property-bidi-* (Dependencies): Update.
14080         * lib/unictype/bidi_*.c: Update comment.
14081
14082 2011-03-26  Bruno Haible  <bruno@clisp.org>
14083
14084         unictype/bidi*: Rename functions, part 2.
14085         * modules/unictype/bidicategory-name (configure.ac): Update required
14086         libunistring version.
14087         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14088
14089 2011-03-25  Bruno Haible  <bruno@clisp.org>
14090
14091         New module 'unictype/combining-class-all'.
14092         * modules/unictype/combining-class-all: New file.
14093
14094         Tests for module 'unictype/combining-class-byname'.
14095         * modules/unictype/combining-class-byname-tests: New file.
14096         * tests/unictype/test-combiningclass_byname.c: New file.
14097
14098         New module 'unictype/combining-class-byname'.
14099         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14100         * lib/unictype/combiningclass_byname.c: New file.
14101         * lib/unictype/combiningclass_byname.gperf: New file.
14102         * modules/unictype/combining-class-byname: New file.
14103
14104         Tests for module 'unictype/combining-class-longname'.
14105         * modules/unictype/combining-class-longname-tests: New file.
14106         * tests/unictype/test-combiningclass_longname.c: New file.
14107
14108         New module 'unictype/combining-class-longname'.
14109         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14110         * lib/unictype/combiningclass_longname.c: New file.
14111         * modules/unictype/combining-class-longname: New file.
14112
14113         Tests for module 'unictype/combining-class-name'.
14114         * modules/unictype/combining-class-name-tests: New file.
14115         * tests/unictype/test-combiningclass_name.c: New file.
14116
14117         New module 'unictype/combining-class-name'.
14118         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14119         * lib/unictype/combiningclass_name.c: New file.
14120         * modules/unictype/combining-class-name: New file.
14121
14122 2011-03-25  Bruno Haible  <bruno@clisp.org>
14123
14124         unictype/combining-class: Rename source files.
14125         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14126         of unictype/combining.h.
14127         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14128         Update.
14129         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14130         * modules/unictype/combining-class (Description): Fix.
14131         (Files, Makefile.am): Update.
14132         * tests/unictype/test-combiningclass.c: Renamed from
14133         tests/unictype/test-combining.c.
14134         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14135
14136 2011-03-25  Bruno Haible  <bruno@clisp.org>
14137
14138         unictype: Update list of canonical combining classes.
14139         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14140
14141 2011-03-25  Bruno Haible  <bruno@clisp.org>
14142
14143         unictype/category-byname: Recognize long names as well.
14144         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14145         a long name.
14146         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14147         unictype/categ_byname.h.
14148         (UC_CATEGORY_INDEX_*): New enumeration values.
14149         (uc_general_category_byname): Use uc_general_category_lookup and
14150         convert from index to value.
14151         * lib/unictype/categ_byname.gperf: New file.
14152         * modules/unictype/category-byname (Files): Add
14153         lib/unictype/categ_byname.gperf.
14154         (Depends-on): Add gperf.
14155         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14156         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14157         long names.
14158
14159         Tests for module 'unictype/category-longname'.
14160         * modules/unictype/category-longname-tests: New file.
14161         * tests/unictype/test-categ_longname.c: New file.
14162
14163         New module 'unictype/category-longname'.
14164         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14165         * lib/unictype/categ_longname.c: New file.
14166         * modules/unictype/category-longname: New file.
14167         * modules/unictype/category-all (Depends-on): Add it.
14168
14169 2011-03-25  Bruno Haible  <bruno@clisp.org>
14170
14171         Tests for module 'unictype/category-LC'.
14172         * modules/unictype/category-LC-tests: New file.
14173         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14174
14175         New module 'unictype/category-LC'.
14176         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14177         (UC_CATEGORY_LC): New declaration.
14178         (UC_CASED_LETTER): New macro.
14179         * lib/gen-uni-tables.c (is_category_LC): New function.
14180         (output_categories): Also handle category LC.
14181         (UC_CATEGORY_MASK_LC): New enumeration value.
14182         (general_category_byname): Also handle category LC.
14183         * lib/unictype/categ_LC.c: New file.
14184         * lib/unictype/categ_LC.h: New file, automatically generated.
14185         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14186         category LC.
14187         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14188         * modules/unictype/category-LC: New file.
14189         * modules/unictype/category-byname (Depends-on): Add
14190         unictype/category-LC.
14191         * modules/unictype/category-all (Depends-on): Likewise.
14192
14193 2011-03-25  Eric Blake  <eblake@redhat.com>
14194
14195         xmalloc: revert yesterday's regression
14196         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14197         realloc's underlying behavior (allowing allocation of zero-size
14198         objects, especially if malloc-gnu is also in use).
14199
14200 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14201
14202         maint.mk: add missing version to VC-tag
14203         * top/maint.mk: git tag was missing actual tag name; add it.
14204
14205         valgrind: do leak checking, and exit with code 1 on error (not 0)
14206         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14207         to VALGRIND.
14208
14209 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14210
14211         posix-modules: say what it does.
14212         * posix-modules: Add a line to the --help output saying what it does.
14213
14214 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         xmalloc: Do not leak if underlying realloc is C99 compatible.
14217         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14218         This avoids a leak on C99-based systems.  See
14219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14220
14221 2011-03-24  Eric Blake  <eblake@redhat.com>
14222
14223         realloc: document portability problem
14224         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14225         passing 0 size to realloc.
14226
14227 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14228
14229         doc: update users.txt
14230         * users.txt: Add cvsps, tmpwatch
14231
14232 2011-03-23  Matt Rice  <ratmice@gmail.com>
14233
14234         doc: update users.txt
14235         * users.txt: Add gdb.
14236
14237 2011-03-23  Jim Meyering  <meyering@redhat.com>
14238
14239         doc: update users.txt
14240         Looking through matches up to the following URL (there are still
14241         several more pages), I found several projects that use gnulib:
14242         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14243         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14244         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14245
14246 2011-03-22  Bruno Haible  <bruno@clisp.org>
14247
14248         unictype/bidi*: Rename functions.
14249         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14250         uc_bidi_class, uc_is_bidi_class): New declarations.
14251         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14252         uc_bidi_category_byname.
14253         (uc_bidi_category_byname): New function.
14254         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14255         u_bidi_category_name.
14256         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14257         (uc_bidi_category_name): New function.
14258         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14259         uc_bidi_category.
14260         (uc_bidi_category): New function.
14261         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14262         uc_is_bidi_category. Invoke uc_bidi_class.
14263         (uc_is_bidi_category): New function.
14264         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14265         instead of uc_bidi_category_byname.
14266         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14267         instead of uc_bidi_category_name.
14268         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14269         uc_bidi_category.
14270         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14271         instead of uc_is_bidi_category.
14272
14273 2011-03-21  Bruno Haible  <bruno@clisp.org>
14274
14275         New module 'unictype/joininggroup-all'.
14276         * modules/unictype/joininggroup-all: New file.
14277
14278         Tests for module 'unictype/joininggroup-of'.
14279         * modules/unictype/joininggroup-of-tests: New file.
14280         * tests/unictype/test-joininggroup_of.c: New file.
14281         * tests/unictype/test-joininggroup_of.h: New file, automatically
14282         generated by gen-uni-tables.
14283
14284         New module 'unictype/joininggroup-of'.
14285         * modules/unictype/joininggroup-of: New file.
14286         * lib/unictype/joininggroup_of.c: New file.
14287         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14288         gen-uni-tables.
14289
14290         Tests for module 'unictype/joininggroup-byname'.
14291         * modules/unictype/joininggroup-byname-tests: New file.
14292         * tests/unictype/test-joininggroup_byname.c: New file.
14293
14294         New module 'unictype/joininggroup-byname'.
14295         * modules/unictype/joininggroup-byname: New file.
14296         * lib/unictype/joininggroup_byname.c: New file.
14297         * lib/unictype/joininggroup_byname.gperf: New file.
14298
14299         Tests for module 'unictype/joininggroup-name'.
14300         * modules/unictype/joininggroup-name-tests: New file.
14301         * tests/unictype/test-joininggroup_name.c: New file.
14302
14303         New module 'unictype/joininggroup-name'.
14304         * modules/unictype/joininggroup-name: New file.
14305         * lib/unictype/joininggroup_name.c: New file.
14306         * lib/unictype/joininggroup_name.h: New file.
14307
14308         New module 'unictype/joiningtype-all'.
14309         * modules/unictype/joiningtype-all: New file.
14310
14311         Tests for module 'unictype/joiningtype-of'.
14312         * modules/unictype/joiningtype-of-tests: New file.
14313         * tests/unictype/test-joiningtype_of.c: New file.
14314         * tests/unictype/test-joiningtype_of.h: New file, automatically
14315         generated by gen-uni-tables.
14316
14317         New module 'unictype/joiningtype-of'.
14318         * modules/unictype/joiningtype-of: New file.
14319         * lib/unictype/joiningtype_of.c: New file.
14320         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14321         gen-uni-tables.
14322
14323         Tests for module 'unictype/joiningtype-byname'.
14324         * modules/unictype/joiningtype-byname-tests: New file.
14325         * tests/unictype/test-joiningtype_byname.c: New file.
14326
14327         New module 'unictype/joiningtype-byname'.
14328         * modules/unictype/joiningtype-byname: New file.
14329         * lib/unictype/joiningtype_byname.c: New file.
14330
14331         Tests for module 'unictype/joiningtype-name'.
14332         * modules/unictype/joiningtype-name-tests: New file.
14333         * tests/unictype/test-joiningtype_name.c: New file.
14334
14335         New module 'unictype/joiningtype-name'.
14336         * modules/unictype/joiningtype-name: New file.
14337         * lib/unictype/joiningtype_name.c: New file.
14338
14339         unictype: Add support for Arabic shaping properties.
14340         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14341         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14342         declarations.
14343         (UC_JOINING_GROUP_*): New enumeration values.
14344         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14345         declarations.
14346         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14347         (unicode_joining_type): New variable.
14348         (UC_JOINING_GROUP_*): New enumeration values.
14349         (unicode_joining_group): New variable.
14350         (fill_arabicshaping, joining_type_as_c_identifier,
14351         output_joining_type_test, output_joining_type,
14352         joining_group_as_c_identifier, output_joining_group_test,
14353         output_joining_group): New functions.
14354         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14355         fill_arabicshaping and output_joining_type_test, output_joining_type,
14356         output_joining_group_test, output_joining_group.
14357         Reported by Simon Josefsson.
14358
14359 2011-03-21  Jim Meyering  <meyering@redhat.com>
14360
14361         strftime: fix a bug in yesterday's change
14362         * lib/strftime.c (add): Accommodate width's initial value of -1.
14363         Otherwise, nstrftime would copy uninitialized data into
14364         the result buffer.
14365
14366 2011-03-21  Jim Meyering  <meyering@redhat.com>
14367
14368         tests: add strftime-tests module
14369         * tests/test-strftime.c: New file.
14370         * modules/strftime-tests: New module.
14371
14372 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14373
14374         strftime: don't assume a byte count fits in 'int'
14375         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14376         found this problem by static analysis, using gcc -Wstrict-overflow
14377         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14378         on an integer overflow having undefined behavior, but it turns out
14379         that the argument is a size, which might not fit in 'int' anyway,
14380
14381 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         stdio: don't require ignore_value around fwrite
14384
14385         This patch works around libc bug 11959
14386         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14387         Without this patch, applications must often write
14388         ignore_value (fwrite (...)) even though the ignore_value is
14389         not helpful here.  It's common to write many objects, using
14390         fwrite/printf/etc., and then use ferror to detect output error.
14391
14392         I considered making this patch optional, but decided against it,
14393         because libc is obviously being inconsistent here: there is no
14394         reason libc should insist that user code must inspect fwrite
14395         return's value without also insisting that it inspect printf's,
14396         putchar's, etc.  If user code wants to have a strict style where
14397         all these functions' values are checked (so that ferror need not
14398         be checked), we could add support for that style in a new gnulib
14399         module, but in the meantime it's better to be consistent and to
14400         support common usage.
14401
14402         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14403         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14404         that we are compiling in checking mode, and if not C++, and
14405         if not already wrapping fwrite for some other reason.
14406         (fwrite): #define to rpl_fwrite if the latter is defined.
14407
14408 2011-03-20  Bruno Haible  <bruno@clisp.org>
14409
14410         verror: Fix compilation error introduced on 2011-02-13.
14411         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14412         instead of __attribute__.
14413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14414
14415 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14416             Bruno Haible  <bruno@clisp.org>
14417
14418         socklen: do not depend on sys_socket
14419         While trying to modify Emacs to use gnulib's socklen module,
14420         I discovered a circular dependency: socklen depends on sys_socket
14421         and vice versa.  Emacs can use socklen, but it does not need
14422         sys_socket because it has its own substitute for sys/socket.h.
14423         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14424         gl_TYPE_SOCKLEN_T.
14425         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14426         gl_PREREQ_SYS_H_SOCKET.
14427         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14428         gl_PREREQ_SYS_H_SOCKET.
14429         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14430         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14431         * modules/socklen (Depends-on): Do not depend on sys_socket.
14432         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14433
14434 2011-03-20  Jim Meyering  <meyering@redhat.com>
14435
14436         maint.mk: sort file names *after* new transformation
14437         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14438         prefix would have led to an unwarranted failure in GNU parted.
14439         Sort after that transformation.
14440
14441 2011-03-19  Jim Meyering  <meyering@redhat.com>
14442
14443         maint.mk: fix po-file syntax-check rule
14444         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14445         Patch by Bruno Haible.
14446
14447 2011-03-19  Bruno Haible  <bruno@clisp.org>
14448
14449         socklen: Update comment.
14450         * m4/socklen.m4: Update comment about platforms.
14451
14452 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14453             Bruno Haible  <bruno@clisp.org>
14454
14455         inet_ntop, inet_pton: Simplify.
14456         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14457         documented to provide socklen_t and we already depend on sys_socket.
14458         * modules/inet_pton (Depends-on): Likewise.
14459         * lib/arpa_inet.in.h: Adjust comment.
14460
14461 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14462             Bruno Haible  <bruno@clisp.org>
14463
14464         netdb: Simplify.
14465         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14466         documented to provide socklen_t and we already depend on sys_socket.
14467         * lib/netdb.in.h: Adjust comment.
14468
14469 2011-03-19  Bruno Haible  <bruno@clisp.org>
14470
14471         sys_socket, netdb: Document problem with socklen_t.
14472         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14473         platforms.
14474         * doc/posix-headers/netdb.texi: Likewise.
14475
14476 2011-03-18  Eric Blake  <eblake@redhat.com>
14477
14478         maint.mk: let po check work in VPATH build
14479         * top/maint.mk (po_file): Allow cfg.mk override.
14480         (sc_po_check): Allow VPATH use.
14481         Reported by Jiri Denemark.
14482
14483 2011-03-16  Jim Meyering  <meyering@redhat.com>
14484
14485         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14486         Before, you would have had to create one .x-sc_ file per rule in order
14487         to exempt offending files.  Now, you may instead use a Make variable --
14488         usually defined in cfg.mk -- whose name identifies the affected rule.
14489         * top/maint.mk (_sc_excl): Define.
14490         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14491         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14492
14493 2011-03-13  Bruno Haible  <bruno@clisp.org>
14494
14495         ignore-value tests: Avoid warnings.
14496         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14497         empty for gcc < 3.4.
14498
14499 2011-03-13  Bruno Haible  <bruno@clisp.org>
14500
14501         passfd: Fix link error on Solaris.
14502         * modules/passfd (Description): Correct.
14503         (Depends-on): Add socketlib.
14504         (Link): New section.
14505         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14506
14507 2011-03-13  Bruno Haible  <bruno@clisp.org>
14508
14509         passfd: Fix link error on AIX 5.2.
14510         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14511
14512 2011-03-13  Bruno Haible  <bruno@clisp.org>
14513
14514         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14515         * lib/sys_socket.in.h: Include <stddef.h>.
14516         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14517         CMSG_FIRSTHDR. Remove unused variable.
14518
14519 2011-03-13  Bruno Haible  <bruno@clisp.org>
14520
14521         passfd: Fix compilation error on OpenBSD.
14522         * lib/passfd.c: Include <sys/uio.h>.
14523
14524 2011-03-13  Bruno Haible  <bruno@clisp.org>
14525
14526         passfd test: Fix warnings.
14527         * tests/test-passfd.c: Include <sys/wait.h>.
14528         (main): Fix typo.
14529
14530 2011-03-13  Bruno Haible  <bruno@clisp.org>
14531
14532         passfd module, part 4, tweaks.
14533         * tests/test-passfd.c: Reorder includes.
14534         (main): Fix perror and printf calls.
14535
14536 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14537
14538         passfd module, part 4.
14539         * modules/passfd-tests: New file.
14540         * tests/test-passfd.c: New file.
14541
14542 2011-03-13  Jim Meyering  <meyering@redhat.com>
14543
14544         Makefile: rely on GNU make; derive syntax-check rule names
14545         Rather than requiring that each sc_ rule be listed as a dependent
14546         of "check", use features of GNU make to derive the list.
14547         * Makefile (syntax-check-rules): Define.
14548         (check): Depend on the new variable, not the hard-coded list.
14549
14550 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14551             Bruno Haible  <bruno@clisp.org>
14552
14553         passfd module, part 3.
14554         * lib/passfd.h (recvfd): Add a flags argument.
14555         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14556         (recvfd): Add a flags argument.
14557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14558         exists.
14559         * modules/passfd (Depends-on): Add cloexec.
14560         Suggested by Eric Blake.
14561
14562 2011-03-13  Bruno Haible  <bruno@clisp.org>
14563
14564         passfd module, part 2, tweaks.
14565         * modules/passfd (Files): Reorder.
14566         (Depends-on): Remove errno.
14567         (Include): Remove <sys/socket.h>, <sys/un.h>.
14568         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14569         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14570         specification header. Include <sys/socket.h> always. Don't include
14571         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14572         (sendfd): Clarify that it sets errno when it fails.
14573         (recvfd): Fix specification.
14574
14575 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14576
14577         passfd module, part 2.
14578         * modules/passfd: New file.
14579         * lib/passfd.h: New file.
14580         * lib/passfd.c: New file.
14581
14582 2011-03-12  Bruno Haible  <bruno@clisp.org>
14583
14584         wcswidth, mbswidth: Avoid integer overflow.
14585         * lib/wcswidth.c: Include <limits.h>.
14586         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14587         * lib/mbswidth.c: Include <limits.h>.
14588         (mbsnwidth): Avoid 'int' overflow.
14589         Reported by Jim Meyering.
14590
14591 2011-03-12  Bruno Haible  <bruno@clisp.org>
14592
14593         futimens, utimensat: Avoid endless recursion on Solaris 10.
14594         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14595         Solaris.
14596         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14597         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14598
14599 2011-03-11  Jim Meyering  <meyering@redhat.com>
14600
14601         maint.mk: relax a regexp to accommodate other formatting styles
14602         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14603         between "ngettext" and the following "(".
14604
14605 2011-03-11  Pádraig Brady <P@draigBrady.com>
14606
14607         maint.mk: suppress a false positive warning
14608         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14609         diagnostics are marked with ngettext.
14610
14611 2011-03-10  Eric Blake  <eblake@redhat.com>
14612
14613         wchar: add explicit dependencies, for Tru64
14614         * modules/mbmemcasecoll (Depends-on): Add wchar.
14615         * modules/mbtowc (Depends-on): Likewise.
14616         * modules/vasnprintf (Depends-on): Likewise.
14617         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14618         * modules/wctomb (Depends-on): Likewise.
14619         Reported by Peter O'Gorman.
14620
14621 2011-03-08  Bruno Haible  <bruno@clisp.org>
14622
14623         passfd module, part 1, tweaks.
14624         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14625         Improve indentation. Improve AC_MSG_CHECKING messages.
14626         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14627         gl_SOCKET_FAMILIES.
14628
14629 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14630
14631         passfd module, part 1.
14632         * m4/afunix.m4: New file.
14633         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14634         sockets.
14635
14636 2011-03-08  Bruno Haible  <bruno@clisp.org>
14637
14638         regex-quote: New API.
14639         * lib/regex-quote.h: Include <stdbool.h>.
14640         (struct regex_quote_spec): New type.
14641         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14642         New declarations.
14643         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14644         'const struct regex_quote_spec *' argument.
14645         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14646         (pcre_special): New constant.
14647         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14648         New functions.
14649         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14650         'const struct regex_quote_spec *' argument.
14651         * modules/regex-quote (Depends-on): Add stdbool.
14652         * tests/test-regex-quote.c (check): Update for new API. Add test for
14653         anchored results.
14654         * NEWS: Mention the API change.
14655         Reported by Reuben Thomas and Eric Blake.
14656
14657 2011-03-06  Bruno Haible  <bruno@clisp.org>
14658
14659         regex-quote: Fix creation of POSIX extended regular expressions.
14660         * lib/regex-quote.c (ere_special): Add grouping and alternation
14661         operators.
14662
14663 2011-03-05  Bruno Haible  <bruno@clisp.org>
14664
14665         doc: Improve doc regarding autopoint vs. gnulib.
14666         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14667         disable autopoint while running autoreconf.
14668         Suggested by Ralf Wildenhues.
14669
14670 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14671
14672         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14673         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14674
14675 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14676
14677         parse-duration: remove xalloc.h dependency
14678         * lib/parse-duration.c (parse_period): handle NULL return from
14679         strdup instead of calling xstrdup().
14680         * modules/parse-duration: remove "xalloc" dependency
14681
14682 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14683
14684         bootstrap: honor m4_base when running aclocal
14685         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14686
14687 2011-03-02  Jim Meyering  <meyering@redhat.com>
14688
14689         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14690         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14691         on request from Matt Booth.
14692
14693 2011-03-01  Eric Blake  <eblake@redhat.com>
14694
14695         test-link: work on Hurd
14696         * tests/test-link.h (test_link): Hurd rejects linking directories
14697         with EISDIR instead of the POSIX-mandated EPERM.
14698
14699 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14700
14701         stdio: simplify by moving files to printf-posix, sigpipe
14702         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14703         since this symbol is needed only if printf is replaced.
14704         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14705         Require gl_ASM_SYMBOL_PREFIX.
14706         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14707         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14708         (Depends-on): Add 'raise'.
14709         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14710         * modules/stdio (Files): Remove lib/stdio-write.c,
14711         m4/asm-underscore.m4.
14712         (Depends-on): Remove 'raise'.
14713
14714         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14715         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14716         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14717         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14718
14719 2011-02-28  Bruno Haible  <bruno@clisp.org>
14720
14721         localcharset: Assume ANSI C behaviour of free().
14722         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14723         calling free().
14724         Suggested by Simon Josefsson <simon@josefsson.org>.
14725
14726 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14727             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14728             Bruno Haible  <bruno@clisp.org>  (tiny change)
14729
14730         On Cygwin, use /proc file system instead of win32 API.
14731         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14732         Win32 file names.
14733         (DllMain): Simplify by removing Cygwin specific code.
14734         (find_shared_library_fullname): Use Linux specific implementation also
14735         for Cygwin.
14736         (get_shared_library_fullname): Update accordingly.
14737         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14738         Win32 file names.
14739         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14740         Cygwin specific code.
14741
14742 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14743             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14744
14745         Fix OpenMP flag detection for various Fortran compilers.
14746         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14747         OpenMP-conditional compilation construct, to force compile
14748         failure with missing OpenMP flag.
14749         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14750
14751 2011-02-25  Eric Blake  <eblake@redhat.com>
14752
14753         strstr: expand test coverage
14754         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14755         compilation.
14756         * tests/test-memmem.c (main): Duplicate tests.
14757         * tests/test-strcasestr.c (main): Likewise.
14758         * tests/test-c-strcasestr.c (main): Likewise.
14759
14760 2011-02-25  Jim Meyering  <meyering@redhat.com>
14761
14762         maint.mk: detect missing-NL-at-EOF, too
14763         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14764         it also detects when a file lacks a newline at EOF.
14765         (require_exactly_one_NL_at_EOF_): Renamed from
14766         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14767         since people may well have .x-sc_... file names tied to the
14768         existing name.  Suggested by Eric Blake.
14769
14770 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14771
14772         dirname: move m4/dos.m4 functionality into lib/dosname.h
14773
14774         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14775         extracts symbols from it, puts them into config.h; but it's much
14776         easier to use the symbols directly.  filename.h already does this,
14777         but it disagrees with dos.m4 in some respects.  This patch
14778         introduces a different include file dosname.h that packages up
14779         dos.m4, and then later we can work on merging filename.h and
14780         dosname.h.  Applications that need only the easy-to-configure
14781         symbols should consider including dosname.h rather than dirname.h.
14782         * NEWS: Mention incompatible changes.
14783         * m4/dos.m4: Remove.
14784         * lib/dosname.h, modules/dosname: New files.
14785         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14786         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14787         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14788         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14789         Include dosname.h, not dirname.h.
14790         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14791         Include dosname.h, for definitions of symbols like ISSLASH
14792         that used to be in config.h.
14793         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14794         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14795         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14796         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14797         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14798         * modules/rmdir (Files): Likewise.
14799         * modules/stat (Files): Likewise.
14800         * modules/unlink (Files): Likewise.
14801         * modules/dirname-lgpl (Depends-on): Add dosname.
14802         * modules/lstat (Depends-on): Likewise.
14803         * modules/openat (Depends-on): Likewise.
14804         * modules/rmdir (Depends-on): Likewise.
14805         * modules/savewd (Depends-on): Likewise.
14806         * modules/stat (Depends-on): Likewise.
14807         * modules/unlink (Depends-on): Likewise.
14808         * modules/openat (Depends-on): Remove dirname-lgpl.
14809         * modules/savewd (Depends-on): Likewise.
14810         * tests/test-dirname.c: Do not use removed symbols like
14811         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14812         the remaining symbols, e.g., ISSLASH ('\\').
14813
14814 2011-02-25  Eric Blake  <eblake@redhat.com>
14815
14816         strstr: revert patches that introduced bug and pessimization
14817         * lib/str-two-way.h: Add another reference.
14818         (two_way_short_needle, two_way_long_needle): Revert changes from
14819         2011-02-24; they pessimize search speed.
14820         (critical_factorization): Partially revert changes from
14821         2010-06-22; they violate the requirement that the left half of the
14822         needle be smaller than the period of the needle.
14823
14824 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14825
14826         filenamecat: remove unnecessary dependency on dirname-lgpl
14827         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14828         is no direct dependency, just an indirect one via filenamecat-lgpl.
14829
14830         remove: remove unnecessary use of m4/dos.m4
14831         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14832         * modules/remove (FILES): Remove m4/dos.m4.
14833
14834         * lib/openat-proc.c: Don't include dirname.h; not needed.
14835
14836         backupfile: remove unnecessary use of m4/dos.m4
14837         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14838         of its symbols are used by the backupfile code.  backupfile.c does
14839         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14840         for the rare case of programs that want all their backup file
14841         names to live within 8+3 limits, and dos.m4 doesn't address that.
14842         * modules/backupfile (Files): Remove m4/dos.m4.
14843
14844 2011-02-24  Jim Meyering  <meyering@redhat.com>
14845
14846         strstr: fix a bug whereby strstr would mistakenly return NULL
14847         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14848         in period calculation.
14849         (two_way_long_needle): Likewise.
14850         The original problem was reported by Mike Stump in
14851         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14852         Ralf Wildenhues provided the short needle and haystack.
14853         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14854         Add a more involved test to trigger the bug in two_way_long_needle.
14855
14856 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14857
14858         gnulib-tool: remove use of bold display in help screen
14859         * gnulib-tool (func_usage): Do not use bold display anymore in the
14860         help screen.  That was just meant to be a temporary emphasis for a
14861         backward-incompatible change.
14862
14863 2011-02-23  Bruno Haible  <bruno@clisp.org>
14864
14865         Fix misindentation of preprocessor directives.
14866         * lib/argp-namefrob.h: Reindent preprocessor directives.
14867         * lib/getopt_int.h (struct _getopt_data): Likewise.
14868         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14869         * lib/vasnprintf.c (decode_long_double): Likewise.
14870         * tests/test-argmatch.c: Insert blank lines, for clarity.
14871         * tests/test-exclude.c: Likewise.
14872
14873 2011-02-22  Bruno Haible  <bruno@clisp.org>
14874
14875         ioctl: Fix for MacOS X in 64-bit mode.
14876         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14877         value.
14878         Suggested by Eric Blake.
14879         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14880
14881 2011-02-22  Jim Meyering  <meyering@redhat.com>
14882
14883         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14884         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14885         in lib/.
14886
14887 2011-02-22  Eric Blake  <eblake@redhat.com>
14888
14889         maint: avoid any CDPATH issue
14890         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14891
14892         maint: adjust cpp indentation for my modules, as well
14893         * Makefile (sc_cpp_indent_check): Add my name.
14894         * lib/fbufmode.c: Filter through cppi.
14895         * lib/fpurge.c: Likewise.
14896         * lib/freadable.c: Likewise.
14897         * lib/freading.c: Likewise.
14898         * lib/fwritable.c: Likewise.
14899         * lib/fwriting.c: Likewise.
14900         * lib/sigaction.c: Likewise.
14901
14902 2011-02-22  Jim Meyering  <meyering@redhat.com>
14903
14904         maint: adjust cpp indentation to reflect nesting depth
14905         I.e., in a block of code that begins with an unnested "#if",
14906         put one space between the "#" in column 1 and following token.
14907         For example,
14908         -#include <sys/vfs.h>
14909         +# include <sys/vfs.h>
14910         Do this only in .c files that are part of a module I maintain.
14911         * lib/linkat.c: Filter through cppi.
14912         * lib/nanosleep.c: Likewise.
14913         * lib/openat.c: Likewise.
14914         * lib/openat-die.c: Likewise.
14915         * lib/dup3.c: Likewise.
14916         * lib/fchownat.c: Likewise.
14917         * lib/flock.c: Likewise.
14918         * lib/fsync.c: Likewise.
14919         * lib/fts.c: Likewise.
14920         * lib/getpass.c: Likewise.
14921         * lib/gettimeofday.c: Likewise.
14922         * lib/userspec.c: Likewise.
14923         * Makefile (sc_cpp_indent_check): New rule, to check this.
14924
14925 2011-02-22  Bruno Haible  <bruno@clisp.org>
14926
14927         New module 'wctomb'.
14928         * lib/stdlib.in.h (wctomb): New declaration.
14929         * lib/wctomb.c: New file.
14930         * lib/wctomb-impl.h: New file.
14931         * m4/wctomb.m4: New file.
14932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14933         REPLACE_WCTOMB.
14934         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14935         REPLACE_WCTOMB.
14936         * modules/wctomb: New file.
14937         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14938         * doc/posix-functions/wctomb.texi: Mention the new module.
14939         * modules/wctob (Depends-on): Add wctomb.
14940
14941 2011-02-22  Bruno Haible  <bruno@clisp.org>
14942
14943         New module 'mbtowc'.
14944         * lib/stdlib.in.h (mbtowc): New declaration.
14945         * lib/mbtowc.c: New file.
14946         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14947         * m4/mbtowc.m4: New file.
14948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14949         REPLACE_MBTOWC.
14950         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14951         REPLACE_MBTOWC.
14952         * modules/mbtowc: New file.
14953         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14954         * doc/posix-functions/mbtowc.texi: Mention the new module.
14955         * modules/btowc (Depends-on): Add mbtowc.
14956
14957 2011-02-22  Bruno Haible  <bruno@clisp.org>
14958
14959         wcrtomb: Add more tests for native Windows platforms.
14960         * tests/test-wcrtomb-w32-1.sh: New file.
14961         * tests/test-wcrtomb-w32-2.sh: New file.
14962         * tests/test-wcrtomb-w32-3.sh: New file.
14963         * tests/test-wcrtomb-w32-4.sh: New file.
14964         * tests/test-wcrtomb-w32-5.sh: New file.
14965         * tests/test-wcrtomb-w32.c: New file.
14966         * modules/wcrtomb-tests (Files): Add them.
14967         (Makefile.am): Arrange to run these tests.
14968         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14969         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14970
14971 2011-02-20  Bruno Haible  <bruno@clisp.org>
14972
14973         wcrtomb: Enhance test.
14974         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14975
14976 2011-02-20  Bruno Haible  <bruno@clisp.org>
14977
14978         mbrtowc: Tiny optimization.
14979         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14980
14981 2011-02-20  Jim Meyering  <meyering@redhat.com>
14982
14983         test-exclude.c: remove unmatched #endif
14984         * tests/test-exclude.c: Remove stray #endif, left over from
14985         the change of a week ago.
14986
14987 2011-02-19  Jim Meyering  <meyering@redhat.com>
14988
14989         git-version-gen: skip "-dirty" check when appropriate
14990         * build-aux/git-version-gen: Don't run any git commands when the
14991         version string comes from .tarball-version.  Prior to this, we
14992         would run git update-index --refresh even from a just-unpacked
14993         tarball directory, and that could affect a .git/ directory in a
14994         parent of the build directory.  Reported by Mike Frysinger.
14995
14996 2011-02-19  Bruno Haible  <bruno@clisp.org>
14997
14998         unictype/property-byname: Reduce the size of the 'data' segment.
14999         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15000
15001 2011-02-19  Bruno Haible  <bruno@clisp.org>
15002
15003         unictype/scripts: Reduce the size of the 'data' segment.
15004         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15005         '%pic'.
15006         * lib/unictype/scripts_byname.gperf: Regenerated.
15007
15008 2011-02-19  Bruno Haible  <bruno@clisp.org>
15009
15010         stdint: Update documentation.
15011         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15012
15013 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15014
15015         stdint: omit redundant check for wchar.h
15016         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15017         always tests whether wchar.h exists, so remove the now-redundant test.
15018
15019 2011-02-18  Bruno Haible  <bruno@clisp.org>
15020
15021         stdint: Cut dependency to module 'wchar'.
15022         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15023         include the necessary prerequisites.
15024         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15025         * modules/stdint (Depends-on): Remove wchar.
15026         (Makefile.am): Substitute HAVE_WCHAR_H.
15027         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15028
15029 2011-02-18  Eric Blake  <eblake@redhat.com>
15030
15031         longlong: skip, rather than fail, on cross-compilation
15032         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15033         when cross-compiling; regression from 2011-02-16.
15034
15035 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15036
15037         * NEWS: Mention 2011-02-08 change to stdlib.
15038
15039 2011-02-17  Bruno Haible  <bruno@clisp.org>
15040
15041         getloadavg: Add comments about platforms.
15042         * m4/getloadavg.m4: Add comment.
15043         * lib/getloadavg.c: Likewise.
15044
15045 2011-02-17  Bruno Haible  <bruno@clisp.org>
15046
15047         getloadavg: Fix link error on Solaris 2.6.
15048         * modules/getloadavg (Link): New section.
15049         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15050         linking test-getloadavg.
15051         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15052         getloadavg.
15053
15054 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15055
15056         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15057         It was 'int', but this doesn't match the IRIX 6.5 manual.
15058         Suggested by Bruno Haible in
15059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15060
15061 2011-02-17  Bruno Haible  <bruno@clisp.org>
15062
15063         havelib: Fix comments.
15064         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15065         change.
15066
15067 2011-02-17  Bruno Haible  <bruno@clisp.org>
15068
15069         havelib: Update config.rpath.
15070         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15071
15072 2011-02-17  Bruno Haible  <bruno@clisp.org>
15073
15074         getloadavg test: Add some plausibility checks.
15075         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15076         is improbable.
15077
15078 2011-02-16  Eric Blake  <eblake@redhat.com>
15079
15080         maintainer-makefile: make syntax-check a no-op from tarballs
15081         * top/maint.mk (no-vc-detected): New rule.
15082         (local-checks-available): Use it to avoid hanging if someone tries
15083         'make syntax-check' from a tarball.  Also append to any non-syntax
15084         checks already defined in cfg.mk.
15085
15086 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15087
15088         longlong: tune, particularly for common case of c99
15089
15090         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15091         or running anything if c99, or if unsigned long long int does not
15092         work.  In either case, we know the answer without further tests.
15093         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15094         it at most once, and use its results for both long long int and
15095         unsigned long long int.  This is more likely to be efficient in
15096         the common case where the program wants to check for both long
15097         long int and unsigned long long int.
15098         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15099         since the answer is already known.
15100
15101 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         getloadavg: set errno
15104         * lib/getloadavg.c: Set errno when returning -1.  If no other
15105         error number looks appropriate, set it to ENOSYS if the getloadavg
15106         looks like it can't possibly ever work, ENOTSUP otherwise.
15107         Suggested by Bruno Haible in
15108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15109
15110         getloadavg: trim unused parts and speed up 'configure'
15111         * NEWS: Document this.
15112         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15113         always compiled if getloadavg is absent.
15114         Move test code to ...
15115         * tests/test-getloadavg.c: New file, containing previous
15116         contents of test from lib/getloadavg.c.  It also contains
15117         suggestions by Bruno Haible in
15118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15119         * modules/getloadavg-tests: New file.
15120         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15121         Do tests in the same order as they're needed for getloadavg.c.
15122         Omit setgid-related tests that generate symbols KMEM_GROUP,
15123         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15124         Do only the tests that are needed to see whether the system has
15125         getloadavg, moving the other tests into ...
15126         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15127         NLIST_NAME_UNION; nobody should be using it.  Do not define
15128         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15129         relevant, as the user of this module shouldn't care how getloadavg
15130         is implemented.
15131
15132         getloadavg: omit unused var
15133         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15134
15135 2011-02-15  Jim Meyering  <meyering@redhat.com>
15136
15137         doc: update users.txt
15138         * users.txt: Update iwhd's URL.
15139
15140 2011-02-13  Bruno Haible  <bruno@clisp.org>
15141
15142         Consistent macro naming for macros that use GCC __attribute__.
15143         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15144         _ATTRIBUTE_NONNULL_.
15145         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15146         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15147         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15148         ATTRIBUTE_DEPRECATED.
15149         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15150         ATTRIBUTE_NORETURN.
15151         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15152         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15153         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15154         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15155         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15156         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15157         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15158         ATTRIBUTE_SENTINEL.
15159         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15160         ATTRIBUTE_RETURN_CHECK.
15161         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15162         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15163         ATTRIBUTE_NORETURN.
15164         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15165         Reported by Paul Eggert.
15166
15167 2011-02-13  Bruno Haible  <bruno@clisp.org>
15168
15169         Don't interfere with a program's definition of __attribute__.
15170         * lib/argp.h (__attribute__): Remove definition.
15171         (_GL_ATTRIBUTE_FORMAT): New macro.
15172         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15173         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15174         (_GL_ATTRIBUTE_FORMAT): New macro.
15175         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15176         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15177         GCC 3 or newer.
15178         * lib/error.h (__attribute__): Remove definition.
15179         (_GL_ATTRIBUTE_FORMAT): New macro.
15180         (error, error_at_line): Use it.
15181         * lib/hash.h (__attribute__): Remove definition.
15182         (ATTRIBUTE_WUR): Update definition. Define always.
15183         * lib/openat.h (__attribute__): Remove definition.
15184         (ATTRIBUTE_NORETURN): Update definition. Define always.
15185         * lib/sigpipe-die.h (__attribute__): Remove definition.
15186         (ATTRIBUTE_NORETURN): Update definition. Define always.
15187         * lib/vasnprintf.h (__attribute__): Remove definition.
15188         (_GL_ATTRIBUTE_FORMAT): New macro.
15189         (asnprintf, vasnprintf): Use it.
15190         * lib/xalloc.h (__attribute__): Remove definition.
15191         (ATTRIBUTE_NORETURN): Update definition. Define always.
15192         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15193         * lib/xmemdup0.h (__attribute__): Remove definition.
15194         (ATTRIBUTE_NORETURN): Update definition. Define always.
15195         * lib/xprintf.h (__attribute__): Remove definition.
15196         (_GL_ATTRIBUTE_FORMAT): New macro.
15197         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15198         * lib/xstrtol.h (__attribute__): Remove definition.
15199         (ATTRIBUTE_NORETURN): Update definition. Define always.
15200         * lib/xvasprintf.h (__attribute__): Remove definition.
15201         (_GL_ATTRIBUTE_FORMAT): New macro.
15202         (xasprintf, xvasprintf): Use it.
15203         * tests/test-argmatch.c (__attribute__): Remove definition.
15204         (ATTRIBUTE_NORETURN): Update definition. Define always.
15205         * tests/test-exclude.c (__attribute__): Remove definition.
15206         (ATTRIBUTE_NORETURN): Update definition. Define always.
15207         Reported by Paul Eggert.
15208
15209 2011-02-13  Bruno Haible  <bruno@clisp.org>
15210
15211         mbrtowc: Add more tests for native Windows platforms.
15212         * tests/test-mbrtowc-w32-1.sh: New file.
15213         * tests/test-mbrtowc-w32-2.sh: New file.
15214         * tests/test-mbrtowc-w32-3.sh: New file.
15215         * tests/test-mbrtowc-w32-4.sh: New file.
15216         * tests/test-mbrtowc-w32-5.sh: New file.
15217         * tests/test-mbrtowc-w32.c: New file.
15218         * modules/mbrtowc-tests (Files): Add them.
15219         (Makefile.am): Arrange to run these tests.
15220         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15221         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15222
15223 2011-02-13  Bruno Haible  <bruno@clisp.org>
15224
15225         mbrtowc: Work around native Windows bug.
15226         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15227         guess when no suitable locale for testing was found.
15228         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15229
15230 2011-02-13  Bruno Haible  <bruno@clisp.org>
15231
15232         mbsinit: Work around mingw bug.
15233         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15234         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15235         Windows.
15236         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15237
15238 2011-02-13  Bruno Haible  <bruno@clisp.org>
15239
15240         mbsinit: Don't crash for a NULL argument.
15241         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15242         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15243
15244 2011-02-13  Bruno Haible  <bruno@clisp.org>
15245
15246         Don't interfere with a program's definition of __attribute__.
15247         * lib/stdio.in.h (__attribute__): Remove definition.
15248         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15249         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15250         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15251         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15252         * lib/string.in.h (__attribute__): Remove definition.
15253         Reported by Paul Eggert.
15254
15255 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         stdlib: don't get in the way of non-GCC __attribute__
15258         See thread starting at
15259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15260         Revert previous stdlib change, installing the following instead:
15261         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15262         to get in the way of a non-GCC compiler that supports __attribute__.
15263         (_GL_ATTRIBUTE_RETURN): New macro.
15264         (_Exit): Use it instead of __attribute__.
15265
15266 2011-02-12  Bruno Haible  <bruno@clisp.org>
15267
15268         quotearg test: Avoid test failure on mingw.
15269         * tests/test-quotearg.sh: Convert the locale identifier from native
15270         Windows syntax to Unix syntax.
15271
15272 2011-02-12  Bruno Haible  <bruno@clisp.org>
15273
15274         setlocale: Prefer gnulib's override over libintl's override.
15275         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15276         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15277         GNULIB_defined_setlocale is set.
15278
15279 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15280
15281         stdlib: support non-GCC __attribute__
15282
15283         Fix a serious and tricky problem encountered when attempting to
15284         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15285         5.5, but it crashed due to memory corruption on Solaris 10 with
15286         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15287         bits that are otherwise zero.  This tagging is optional inside
15288         Emacs but is preferred and is used when __attribute__ ((__aligned
15289         (8))) works, as it does with both recent-enough GCC and with Sun C
15290         5.11.  However, Sun C 5.11 is not GCC and does not #define
15291         __GNUC__ and __GNUC_MINOR__.
15292
15293         When I added the getloadavg module to Emacs, it brought in
15294         stdlib.in.h, which contained this fragment:
15295
15296            #ifndef __attribute__
15297            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15298            #  define __attribute__(Spec)   /* empty */
15299            # endif
15300            #endif
15301
15302         When files that include <stdlib.h> were compiled with Sun C 5.11,
15303         the above code disabled __attribute__ ((__aligned (8))), which
15304         caused variables to not be properly aligned, which eventually led
15305         to the pointer corruption mentioned above.  (This was a bit hard
15306         to diagnose, unfortunately.)
15307
15308         Several "#define __attribute__(X) /* empty */" code snippets need
15309         to be eradicated from Gnulib to work with non-GCC compilers that
15310         support __attribute__.  The Autoconf way to do this is to test for
15311         each kind of attribute that we want support for, and selectively
15312         enable that in source code.
15313
15314         Fix this problem just for stdlib.h, by adding a test for the
15315         __noreturn__ attribute, and change stdlib.in.h to use that test
15316         when needed.  This technique can be easily generalized to the
15317         other *.in.h files and attributes, and a similar technique can be
15318         used for *.h and *.c files.  This patch is enough to solve the
15319         problem for Emacs + getloadavg, and I thought I'd publish it for
15320         feedback before undertaking further, similar fixes in other
15321         modules.
15322
15323         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15324         because it's not needed for stdlib.h.  It merely substitutes the
15325         value directly into stdlib.h.  We may well need to #define it, or
15326         similar symbols, for other modules, but it's nice to also have an
15327         option to not #define it for applications like Emacs that do not
15328         need it.
15329
15330         * lib/stdlib.in.h (__attribute__): Do not #define.
15331         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15332         be defined only if the _Exit module is also used.
15333         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15335         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15336         platforms.
15337         * modules/_Exit (Files): Add m4/attribute.m4.
15338         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15339         * m4/attribute.m4: New file.
15340
15341 2011-02-12  Bruno Haible  <bruno@clisp.org>
15342
15343         wcsrtombs: Work around bug on native Windows.
15344         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15345         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15346         instead of len.
15347         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15348
15349 2011-02-12  Bruno Haible  <bruno@clisp.org>
15350
15351         mbsrtowcs: Work around bug on native Windows.
15352         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15353         against mingw bug.
15354         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15355
15356 2011-02-12  Bruno Haible  <bruno@clisp.org>
15357
15358         Avoid setlocale bugs in tests.
15359         * modules/btowc (Dependencies): Add setlocale.
15360         * modules/c-strcase (Dependencies): Likewise.
15361         * modules/mbmemcasecmp (Dependencies): Likewise.
15362         * modules/mbmemcasecoll (Dependencies): Likewise.
15363         * modules/mbrtowc (Dependencies): Likewise.
15364         * modules/mbscasecmp (Dependencies): Likewise.
15365         * modules/mbscasestr (Dependencies): Likewise.
15366         * modules/mbschr (Dependencies): Likewise.
15367         * modules/mbscspn (Dependencies): Likewise.
15368         * modules/mbsinit (Dependencies): Likewise.
15369         * modules/mbsncasecmp (Dependencies): Likewise.
15370         * modules/mbsnrtowcs (Dependencies): Likewise.
15371         * modules/mbspbrk (Dependencies): Likewise.
15372         * modules/mbspcasecmp (Dependencies): Likewise.
15373         * modules/mbsrchr (Dependencies): Likewise.
15374         * modules/mbsrtowcs (Dependencies): Likewise.
15375         * modules/mbsspn (Dependencies): Likewise.
15376         * modules/mbsstr (Dependencies): Likewise.
15377         * modules/nl_langinfo (Dependencies): Likewise.
15378         * modules/quotearg (Dependencies): Likewise.
15379         * modules/unicase/locale-language (Dependencies): Likewise.
15380         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15381         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15382         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15383         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15384         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15385         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15386         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15387         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15388         * modules/vasnprintf-posix (Dependencies): Likewise.
15389         * modules/wcrtomb (Dependencies): Likewise.
15390         * modules/wcsnrtombs (Dependencies): Likewise.
15391         * modules/wcsrtombs (Dependencies): Likewise.
15392
15393 2011-02-12  Bruno Haible  <bruno@clisp.org>
15394
15395         setlocale: Workaround native Windows bug.
15396         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15397         succeeds but sets LC_CTYPE to "C", report a failure.
15398         * tests/test-setlocale2.sh: New file.
15399         * tests/test-setlocale2.c: New file.
15400         * modules/setlocale-tests (Files): Add the new files.
15401         (Makefile.am): Enable test-setlocale2.sh test.
15402         * doc/posix-functions/setlocale.texi: Mention workaround.
15403
15404 2011-02-11  Bruno Haible  <bruno@clisp.org>
15405
15406         Tests for module 'setlocale'.
15407         * modules/setlocale-tests: New file.
15408         * tests/test-setlocale1.sh: New file.
15409         * tests/test-setlocale1.c: New file.
15410
15411         New module 'setlocale'.
15412         * lib/locale.in.h (setlocale): New declaration.
15413         * lib/setlocale.c: New file, based on
15414         gettext/gettext-runtime/intl/setlocale.c.
15415         * m4/setlocale.m4: New file.
15416         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15417         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15418         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15419         REPLACE_SETLOCALE.
15420         * modules/setlocale: New file.
15421         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15422         * doc/posix-functions/setlocale.texi: Mention the new module.
15423
15424 2011-02-11  Bruno Haible  <bruno@clisp.org>
15425
15426         Prepare for locale dependent tests on mingw.
15427         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15428         because it has the wrong locale encoding.
15429         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15430         French_France.1252 instead of "fr".
15431         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15432         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15433         because it has the wrong locale encoding.
15434         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15435         native Windows, try Turkish_Turkey.65001.
15436         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15437         Chinese_China.54936.
15438
15439         Prepare for locale dependent tests on mingw.
15440         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15441         differently.
15442         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15443         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15444         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15445         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15446
15447 2011-02-11  Eric Blake  <eblake@redhat.com>
15448
15449         strptime: avoid compiler warnings
15450         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15451         compiler warnings about dead code.
15452         Reported by Daniel P. Berrange.
15453
15454 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15455
15456         doc: update users.txt
15457         * users.txt: Add rcs.
15458
15459 2011-02-10  John W. Eaton  <jwe@gnu.org>
15460
15461         doc: update users.txt
15462         * users.txt: Add octave.
15463
15464 2011-02-10  Jim Meyering  <meyering@redhat.com>
15465
15466         doc: update users.txt
15467         * users.txt: Add iwhd.
15468
15469 2011-02-09  Bruno Haible  <bruno@clisp.org>
15470
15471         gnulib-tool: Make copyright notice adjustment more robust.
15472         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15473         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15474         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15475         License".
15476         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15477
15478 2011-02-06  Bruno Haible  <bruno@clisp.org>
15479
15480         New module 'towctrans'.
15481         * modules/towctrans: New file.
15482         * lib/wctype.in.h (towctrans): New declaration.
15483         * lib/towctrans.c: New file.
15484         * lib/towctrans-impl.h: New file.
15485         * m4/towctrans.m4: New file.
15486         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15487         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15488         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15489         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15490         * doc/posix-functions/towctrans.texi: Mention the new module.
15491
15492 2011-02-06  Bruno Haible  <bruno@clisp.org>
15493
15494         New module 'wctrans'.
15495         * modules/wctrans: New file.
15496         * lib/wctype.in.h (wctrans): New declaration.
15497         * lib/wctrans.c: New file.
15498         * lib/wctrans-impl.h: New file.
15499         * m4/wctrans.m4: New file.
15500         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15501         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15502         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15503         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15504         * doc/posix-functions/wctrans.texi: Mention the new module.
15505
15506 2011-02-06  Bruno Haible  <bruno@clisp.org>
15507
15508         New module 'iswctype'.
15509         * modules/iswctype: New file.
15510         * lib/wctype.in.h (iswctype): New declaration.
15511         * lib/iswctype.c: New file.
15512         * lib/iswctype-impl.h: New file.
15513         * m4/iswctype.m4: New file.
15514         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15515         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15516         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15517         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15518         * doc/posix-functions/iswctype.texi: Mention the new module and the
15519         HP-UX 11.00 problem.
15520
15521 2011-02-06  Bruno Haible  <bruno@clisp.org>
15522
15523         New module 'wctype'.
15524         * modules/wctype: Change to represent the wctype() substitute.
15525         * lib/wctype.in.h (wctype): New declaration.
15526         * lib/wctype.c: New file.
15527         * lib/wctype-impl.h: New file.
15528         * m4/wctype.m4: New file.
15529         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15530         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15531         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15532         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15533         * doc/posix-functions/wctype.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         wctype-h: Ensure wctype_t and wctrans_t are defined.
15539         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15540         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15541         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15542         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15543         HAVE_WCTRANS_T.
15544         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15545
15546 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         flock: fix license typo
15549
15550         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15551         omitted.
15552
15553 2011-02-08  Bruno Haible  <bruno@clisp.org>
15554
15555         Split large sed scripts, for HP-UX sed.
15556         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15557         to avoid HP-UX limit of 99 commands, in the near future.
15558         * modules/stdlib (Makefile.am): Likewise.
15559         * modules/unistd (Makefile.am): Likewise.
15560         * modules/wchar (Makefile.am): Likewise.
15561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15562         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15564
15565 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15566             Bruno Haible  <bruno@clisp.org>
15567
15568         stdlib: improve random_r modularization
15569         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15570         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15571         you also need the random_r module to get this material right.
15572         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15573         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15574         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15575
15576 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15577
15578         stdlib: don't depend on stdint
15579         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15580         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15581         be independent of whether stdint.h is needed.
15582         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15583         here, instead of ...
15584         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15585         struct random_data should be using the random_r module, not just
15586         the stdlib module (which wouldn't make sense: what package needs
15587         just struct random_data without also needing random_r?).
15588         * modules/stdlib (Depends-on): Remove stdint.
15589
15590         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15591         See the thread rooted at
15592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15593         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15594         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15595         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15596         __VMS)); previously it was always included (via fcntl--.h).
15597         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15598         hand; this is good enough for load averages.  Also, do not use
15599         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15600         flags directly if available and don't bother otherwise.  (Packages
15601         that need the extra reliability should use the modules that define
15602         these flags on older platforms that lack them.)
15603         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15604         fcntl-safer.
15605
15606 2011-02-08  Jim Meyering  <meyering@redhat.com>
15607
15608         di-set.h, ino-map.h: add multiple-inclusion guard
15609         Technically, the guard is required only for ino-map.h, due to its
15610         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15611         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15612         * lib/ino-map.h: Likewise.
15613
15614 2011-02-06  Bruno Haible  <bruno@clisp.org>
15615
15616         iswblank: Ensure declaration on glibc systems.
15617         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15618         * modules/iswblank (Dependencies): Add 'extensions'.
15619         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15620
15621 2011-02-06  Bruno Haible  <bruno@clisp.org>
15622
15623         New module 'iswblank'.
15624         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15625         * modules/iswblank: New file.
15626         * modules/wctype-h (Files): Remove lib/iswblank.c.
15627         (Makefile.am): Substitute GNULIB_ISWBLANK.
15628         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15629         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15630         (gl_WCTYPE_H_DEFAULTS): New macro.
15631         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15632         * modules/iswblank-tests: New file.
15633         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15634         * tests/test-wctype-h.c (main): Remove iswblank tests.
15635         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15636         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15637         of 'wctype-h'.
15638         * NEWS: Mention the change.
15639         * modules/mbchar (Depends-on): Add iswblank.
15640
15641 2011-02-08  Bruno Haible  <bruno@clisp.org>
15642
15643         di-set tests: Refactor.
15644         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15645         unnecessary includes.
15646         (ASSERT): Remove macro.
15647         (main): Make C90 compliant by avoiding variable declaration after
15648         statement.
15649         * modules/di-set-tests (Files): Add tests/macros.h.
15650
15651 2011-02-08  Bruno Haible  <bruno@clisp.org>
15652
15653         ino-map tests: Refactor.
15654         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15655         unnecessary includes.
15656         (ASSERT): Remove macro.
15657         (main): Make C90 compliant by avoiding variable declaration after
15658         statement.
15659         * modules/ino-map-tests (Files): Add tests/macros.h.
15660
15661 2011-02-08  Jim Meyering  <meyering@redhat.com>
15662
15663         di-set: add "const" to a cast
15664         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15665         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15666
15667 2011-02-06  Bruno Haible  <bruno@clisp.org>
15668
15669         Rename module 'wctype' to 'wctype-h'.
15670         * modules/wctype-h: Renamed from modules/wctype.
15671         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15672         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15673         (Files, Depends-on, Makefile.am): Update.
15674         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15675         (Files, Makefile.am): Update.
15676         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15677         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15678         * doc/posix-headers/wctype.texi: Update.
15679         * doc/posix-functions/iswalnum.texi: Update.
15680         * doc/posix-functions/iswalpha.texi: Update.
15681         * doc/posix-functions/iswblank.texi: Update.
15682         * doc/posix-functions/iswcntrl.texi: Update.
15683         * doc/posix-functions/iswdigit.texi: Update.
15684         * doc/posix-functions/iswgraph.texi: Update.
15685         * doc/posix-functions/iswlower.texi: Update.
15686         * doc/posix-functions/iswprint.texi: Update.
15687         * doc/posix-functions/iswpunct.texi: Update.
15688         * doc/posix-functions/iswspace.texi: Update.
15689         * doc/posix-functions/iswupper.texi: Update.
15690         * doc/posix-functions/iswxdigit.texi: Update.
15691         * doc/posix-functions/towlower.texi: Update.
15692         * doc/posix-functions/towupper.texi: Update.
15693         * NEWS: Mention the change.
15694         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15695         * modules/mbchar (Dependencies): Likewise.
15696         * modules/mbswidth (Dependencies): Likewise.
15697         * modules/quotearg (Dependencies): Likewise.
15698         * modules/regex (Dependencies): Likewise.
15699         * modules/wcscasecmp (Dependencies): Likewise.
15700         * modules/wcsncasecmp (Dependencies): Likewise.
15701         * modules/wcwidth (Dependencies): Likewise.
15702
15703 2011-02-06  Bruno Haible  <bruno@clisp.org>
15704
15705         New module 'wcswidth'.
15706         * modules/wcswidth: New file.
15707         * lib/wchar.in.h (wcswidth): New declaration.
15708         * lib/wcswidth.c: New file.
15709         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15710         * m4/wcswidth.m4: New file.
15711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15713         REPLACE_WCSWIDTH.
15714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15715         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15716         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15717         * doc/posix-functions/wcswidth.texi: Mention the new module.
15718
15719 2011-02-06  Bruno Haible  <bruno@clisp.org>
15720
15721         New module 'wcstok'.
15722         * modules/wcstok: New file.
15723         * lib/wchar.in.h (wcstok): New declaration.
15724         * lib/wcstok.c: New file.
15725         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15726         * m4/wcstok.m4: New file.
15727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15730         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15731         * doc/posix-functions/wcstok.texi: Mention the new module.
15732
15733 2011-02-06  Bruno Haible  <bruno@clisp.org>
15734
15735         New module 'wcsstr'.
15736         * modules/wcsstr: New file.
15737         * lib/wchar.in.h (wcsstr): New declaration.
15738         * lib/wcsstr.c: New file.
15739         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15740         * m4/wcsstr.m4: New file.
15741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15744         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15745         * doc/posix-functions/wcsstr.texi: Mention the new module.
15746
15747 2011-02-06  Bruno Haible  <bruno@clisp.org>
15748
15749         New module 'wcspbrk'.
15750         * modules/wcspbrk: New file.
15751         * lib/wchar.in.h (wcspbrk): New declaration.
15752         * lib/wcspbrk.c: New file.
15753         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15754         * m4/wcspbrk.m4: New file.
15755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15758         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15759         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15760
15761 2011-02-06  Bruno Haible  <bruno@clisp.org>
15762
15763         New module 'wcsspn'.
15764         * modules/wcsspn: New file.
15765         * lib/wchar.in.h (wcsspn): New declaration.
15766         * lib/wcsspn.c: New file.
15767         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15768         * m4/wcsspn.m4: New file.
15769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15772         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15773         * doc/posix-functions/wcsspn.texi: Mention the new module.
15774
15775 2011-02-06  Bruno Haible  <bruno@clisp.org>
15776
15777         New module 'wcscspn'.
15778         * modules/wcscspn: New file.
15779         * lib/wchar.in.h (wcscspn): New declaration.
15780         * lib/wcscspn.c: New file.
15781         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15782         * m4/wcscspn.m4: New file.
15783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15786         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15787         * doc/posix-functions/wcscspn.texi: Mention the new module.
15788
15789 2011-02-06  Bruno Haible  <bruno@clisp.org>
15790
15791         New module 'wcsrchr'.
15792         * modules/wcsrchr: New file.
15793         * lib/wchar.in.h (wcsrchr): New declaration.
15794         * lib/wcsrchr.c: New file.
15795         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15796         * m4/wcsrchr.m4: New file.
15797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15800         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15801         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15802
15803 2011-02-06  Bruno Haible  <bruno@clisp.org>
15804
15805         New module 'wcschr'.
15806         * modules/wcschr: New file.
15807         * lib/wchar.in.h (wcschr): New declaration.
15808         * lib/wcschr.c: New file.
15809         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15810         * m4/wcschr.m4: New file.
15811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15814         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15815         * doc/posix-functions/wcschr.texi: Mention the new module.
15816
15817 2011-02-06  Bruno Haible  <bruno@clisp.org>
15818
15819         New module 'wcsdup'.
15820         * modules/wcsdup: New file.
15821         * lib/wchar.in.h (wcsdup): New declaration.
15822         * lib/wcsdup.c: New file.
15823         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15824         * m4/wcsdup.m4: New file.
15825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15828         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15829         * doc/posix-functions/wcsdup.texi: Mention the new module.
15830
15831 2011-02-06  Bruno Haible  <bruno@clisp.org>
15832
15833         New module 'wcsxfrm'.
15834         * modules/wcsxfrm: New file.
15835         * lib/wchar.in.h (wcsxfrm): New declaration.
15836         * lib/wcsxfrm.c: New file.
15837         * lib/wcsxfrm-impl.h: New file.
15838         * m4/wcsxfrm.m4: New file.
15839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15842         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15843         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15844
15845 2011-02-06  Bruno Haible  <bruno@clisp.org>
15846
15847         New module 'wcscoll'.
15848         * modules/wcscoll: New file.
15849         * lib/wchar.in.h (wcscoll): New declaration.
15850         * lib/wcscoll.c: New file.
15851         * lib/wcscoll-impl.h: New file.
15852         * m4/wcscoll.m4: New file.
15853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15856         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15857         * doc/posix-functions/wcscoll.texi: Mention the new module.
15858
15859 2011-02-06  Bruno Haible  <bruno@clisp.org>
15860
15861         New module 'wcsncasecmp'.
15862         * modules/wcsncasecmp: New file.
15863         * lib/wchar.in.h (wcsncasecmp): New declaration.
15864         * lib/wcsncasecmp.c: New file.
15865         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15866         * m4/wcsncasecmp.m4: New file.
15867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15870         HAVE_WCSNCASECMP.
15871         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15872         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15873
15874 2011-02-06  Bruno Haible  <bruno@clisp.org>
15875
15876         New module 'wcscasecmp'.
15877         * modules/wcscasecmp: New file.
15878         * lib/wchar.in.h (wcscasecmp): New declaration.
15879         * lib/wcscasecmp.c: New file.
15880         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15881         * m4/wcscasecmp.m4: New file.
15882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15885         HAVE_WCSCASECMP.
15886         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15887         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15888
15889 2011-02-05  Bruno Haible  <bruno@clisp.org>
15890
15891         New module 'wcsncmp'.
15892         * modules/wcsncmp: New file.
15893         * lib/wchar.in.h (wcsncmp): New declaration.
15894         * lib/wcsncmp.c: New file.
15895         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15896         * m4/wcsncmp.m4: New file.
15897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15900         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15901         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15902
15903 2011-02-05  Bruno Haible  <bruno@clisp.org>
15904
15905         New module 'wcscmp'.
15906         * modules/wcscmp: New file.
15907         * lib/wchar.in.h (wcscmp): New declaration.
15908         * lib/wcscmp.c: New file.
15909         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15910         * m4/wcscmp.m4: New file.
15911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15914         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15915         * doc/posix-functions/wcscmp.texi: Mention the new module.
15916
15917 2011-02-05  Bruno Haible  <bruno@clisp.org>
15918
15919         New module 'wcsncat'.
15920         * modules/wcsncat: New file.
15921         * lib/wchar.in.h (wcsncat): New declaration.
15922         * lib/wcsncat.c: New file.
15923         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15924         * m4/wcsncat.m4: New file.
15925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15928         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15929         * doc/posix-functions/wcsncat.texi: Mention the new module.
15930
15931 2011-02-05  Bruno Haible  <bruno@clisp.org>
15932
15933         New module 'wcscat'.
15934         * modules/wcscat: New file.
15935         * lib/wchar.in.h (wcscat): New declaration.
15936         * lib/wcscat.c: New file.
15937         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15938         * m4/wcscat.m4: New file.
15939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15941         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15942         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15943         * doc/posix-functions/wcscat.texi: Mention the new module.
15944
15945 2011-02-05  Bruno Haible  <bruno@clisp.org>
15946
15947         New module 'wcpncpy'.
15948         * modules/wcpncpy: New file.
15949         * lib/wchar.in.h (wcpncpy): New declaration.
15950         * lib/wcpncpy.c: New file.
15951         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15952         * m4/wcpncpy.m4: New file.
15953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15955         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15956         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15957         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15958
15959 2011-02-05  Bruno Haible  <bruno@clisp.org>
15960
15961         New module 'wcsncpy'.
15962         * modules/wcsncpy: New file.
15963         * lib/wchar.in.h (wcsncpy): New declaration.
15964         * lib/wcsncpy.c: New file.
15965         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15966         * m4/wcsncpy.m4: New file.
15967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15969         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15970         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15971         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15972
15973 2011-02-05  Bruno Haible  <bruno@clisp.org>
15974
15975         New module 'wcpcpy'.
15976         * modules/wcpcpy: New file.
15977         * lib/wchar.in.h (wcpcpy): New declaration.
15978         * lib/wcpcpy.c: New file.
15979         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15980         * m4/wcpcpy.m4: New file.
15981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15983         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15984         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15985         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15986
15987 2011-02-05  Bruno Haible  <bruno@clisp.org>
15988
15989         New module 'wcscpy'.
15990         * modules/wcscpy: New file.
15991         * lib/wchar.in.h (wcscpy): New declaration.
15992         * lib/wcscpy.c: New file.
15993         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15994         * m4/wcscpy.m4: New file.
15995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15998         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15999         * doc/posix-functions/wcscpy.texi: Mention the new module.
16000
16001 2011-02-05  Bruno Haible  <bruno@clisp.org>
16002
16003         New module 'wcsnlen'.
16004         * modules/wcsnlen: New file.
16005         * lib/wchar.in.h (wcsnlen): New declaration.
16006         * lib/wcsnlen.c: New file.
16007         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16008         * m4/wcsnlen.m4: New file.
16009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16012         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16013         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16014
16015 2011-02-05  Bruno Haible  <bruno@clisp.org>
16016
16017         New module 'wcslen'.
16018         * modules/wcslen: New file.
16019         * lib/wchar.in.h (wcslen): New declaration.
16020         * lib/wcslen.c: New file.
16021         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16022         * m4/wcslen.m4: New file.
16023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16026         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16027         * doc/posix-functions/wcslen.texi: Mention the new module.
16028
16029 2011-02-05  Bruno Haible  <bruno@clisp.org>
16030
16031         New module 'wmemset'.
16032         * modules/wmemset: New file.
16033         * lib/wchar.in.h (wmemset): New declaration.
16034         * lib/wmemset.c: New file.
16035         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16036         * m4/wmemset.m4: New file.
16037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16039         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16040         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16041         * doc/posix-functions/wmemset.texi: Mention the new module.
16042
16043 2011-02-05  Bruno Haible  <bruno@clisp.org>
16044
16045         New module 'wmemmove'.
16046         * modules/wmemmove: New file.
16047         * lib/wchar.in.h (wmemmove): New declaration.
16048         * lib/wmemmove.c: New file.
16049         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16050         * m4/wmemmove.m4: New file.
16051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16053         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16054         HAVE_WMEMMOVE.
16055         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16056         * doc/posix-functions/wmemmove.texi: Mention the new module.
16057
16058 2011-02-05  Bruno Haible  <bruno@clisp.org>
16059
16060         New module 'wmemcpy'.
16061         * modules/wmemcpy: New file.
16062         * lib/wchar.in.h (wmemcpy): New declaration.
16063         * lib/wmemcpy.c: New file.
16064         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16065         * m4/wmemcpy.m4: New file.
16066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16068         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16069         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16070         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16071
16072 2011-02-05  Bruno Haible  <bruno@clisp.org>
16073
16074         New module 'wmemcmp'.
16075         * modules/wmemcmp: New file.
16076         * lib/wchar.in.h (wmemcmp): New declaration.
16077         * lib/wmemcmp.c: New file.
16078         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16079         * m4/wmemcmp.m4: New file.
16080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16082         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16083         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16084         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16085
16086 2011-02-07  Jim Meyering  <meyering@redhat.com>
16087
16088         di-set, ino-map: new modules, from coreutils
16089         * lib/di-set.c: New file.
16090         * lib/di-set.h: Likewise.
16091         * lib/ino-map.c: Likewise.
16092         * lib/ino-map.h: Likewise.
16093         * modules/di-set: Likewise.
16094         * modules/di-set-tests: Likewise.
16095         * modules/ino-map: Likewise.
16096         * modules/ino-map-tests: Likewise.
16097         * tests/test-di-set.c: Likewise.
16098         * tests/test-ino-map.c: Likewise.
16099
16100 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16101
16102         getloadavg: merge minor changes from Emacs
16103
16104         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16105         (getloadavg): Use memset, not bzero.
16106
16107         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16108         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16109         clash (bug#86).
16110
16111 2010-11-14  Bruno Haible  <bruno@clisp.org>
16112
16113         Allow multiple gnulib generated replacements to coexist.
16114         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16115         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16116         * lib/langinfo.in.h (nl_item): Likewise.
16117         * lib/math.in.h (_NaN, NAN): Likewise.
16118         * lib/netdb.in.h (struct addrinfo): Likewise.
16119         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16120         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16121         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16122         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16123         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16124         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16125         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16126         pthread_mutexattr_init, pthread_mutexattr_settype,
16127         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16128         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16129         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16130         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16131         * lib/sched.in.h (struct sched_param): Likewise.
16132         * lib/se-selinux.in.h (security_class_t, security_context_t,
16133         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16134         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16135         lsetfilecon, fsetfilecon, security_check_context,
16136         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16137         Likewise.
16138         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16139         Likewise.
16140         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16141         _gl_function_taking_int_returning_void_t, union sigval,
16142         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16143         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16144         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16145         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16146         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16147         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16148         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16149         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16150         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16151         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16152         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16153         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16154         socklen_t, rpl_fd_isset): Likewise.
16155         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16156         * lib/sys_time.in.h (struct timeval): Likewise.
16157         * lib/sys_times.in.h (struct tms): Likewise.
16158         * lib/sys_utsname.in.h (struct utsname):
16159         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16160         * lib/unistd.in.h (getpagesize): Likewise.
16161         * lib/wchar.in.h (mbstate_t): Likewise.
16162         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16163         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16164         towlower, towupper): Likewise.
16165         Reported by Sam Steingold <sds@gnu.org>.
16166
16167 2011-02-05  Eric Blake  <eblake@redhat.com>
16168
16169         unsetenv: work around Haiku issues
16170         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16171         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16172
16173 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16174
16175         libposix: avoid calling error() within libposix
16176         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16177         is defined.
16178
16179 2011-02-05  Eric Blake  <eblake@redhat.com>
16180
16181         strerror_r-posix: port to cygwin
16182         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16183         implementation.
16184         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16185         * tests/test-strerror_r.c (main): Fix test.
16186         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16187         issue.
16188
16189 2011-02-05  Bruno Haible  <bruno@clisp.org>
16190
16191         New module 'wmemchr'.
16192         * modules/wmemchr: New file.
16193         * lib/wchar.in.h (wmemchr): New declaration.
16194         * lib/wmemchr.c: New file.
16195         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16196         * m4/wmemchr.m4: New file.
16197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16199         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16200         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16201         * doc/posix-functions/wmemchr.texi: Mention the new module.
16202
16203 2011-02-04  Eric Blake  <eblake@redhat.com>
16204
16205         fdopendir: detect FreeBSD bug
16206         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16207         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16208
16209 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16210
16211         stdbool: do not define HAVE_STDBOOL_H
16212         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16213         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16214         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16215         imported from the latest Autoconf git.  It was motivated by Emacs,
16216         which uses gnulib but does not need HAVE_STDBOOL_H.
16217
16218 2011-02-04  Bruno Haible  <bruno@clisp.org>
16219
16220         wcsnrtombs: Prepare for new module wwcsnrtombs.
16221         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16222         * lib/wcsnrtombs.c: Include it.
16223         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16224
16225         wcsrtombs: Prepare for new module wwcsrtombs.
16226         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16227         * lib/wcsrtombs.c: Include it.
16228         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16229
16230         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16231         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16232         * lib/mbsnrtowcs.c: Include it.
16233         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16234
16235         mbsrtowcs: Prepare for new module mbsrtowwcs.
16236         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16237         * lib/mbsrtowcs.c: Include it.
16238         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16239
16240 2011-02-04  Bruno Haible  <bruno@clisp.org>
16241
16242         vasnprintf: Reduce use of malloc for small format strings.
16243         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16244         (arguments): Add room for the first 7 arguments.
16245         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16246         (char_directives, u8_directives, u16_directives, u32_directives): Add
16247         room for the first 7 directives.
16248         * lib/printf-parse.c: Include <string.h>.
16249         (PRINTF_PARSE): Change memory handling code so that it uses the first
16250         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16251         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16252         Reported by Pádraig Brady <P@draigbrady.com>.
16253
16254 2011-01-31  Eric Blake  <eblake@redhat.com>
16255
16256         dup2: work around Haiku bug
16257         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16258         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16259         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16260         * tests/test-dup2.c (main): Enhance test.
16261
16262 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16263
16264         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16265         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16266         declared by eglibc 2.11.2.
16267         * lib/stdio.in.h: Likewise.
16268
16269 2011-01-31  Eric Blake  <eblake@redhat.com>
16270
16271         ignore-value: add missing test dependency
16272         * tests/test-ignore-value.c: Revert previous change; stdio.h
16273         provides off_t.
16274         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16275
16276 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16277
16278         mktime: clarify long_int width checking
16279         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16280         the top level, to make it clearer that the assumption about
16281         long_int width is being checked.  See
16282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16283
16284 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16285
16286         ignore-value: Fix self-test.
16287         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16288
16289 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16290
16291         TYPE_MAXIMUM: avoid theoretically undefined behavior
16292         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16293         negative number, which the C Standard says has undefined behavior.
16294         In practice this is not a problem, but might as well do it by the book.
16295         Reported by Rich Felker and Eric Blake; see
16296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16297         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16298         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16300         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16301         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16302         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16303
16304         mktime: #undef mktime before #defining it
16305         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16306
16307         mktime: systematically normalize tm_isdst comparisons
16308         * lib/mktime.c (isdst_differ): New function.
16309         (__mktime_internal): Use it systematically for all isdst comparisons.
16310         This completes the fix for libc BZ #6723, and removes the need for
16311         normalizing tm_isdst.  See
16312         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16313         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16314
16315         mktime: fix some integer overflow issues and sidestep the rest
16316
16317         This was prompted by a bug report by Benjamin Lindner for MinGW
16318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16319         His bug is due to signed integer overflow (0 - INT_MIN), and I
16320         I scanned through mktime.c looking for other integer overflow
16321         problems, fixing all the bugs I found.
16322
16323         Although the C Standard says the resulting code is still not safe
16324         in the presence of integer overflow, in practice it should be good
16325         enough for all real-world two's-complement implementations, except
16326         for debugging environments that deliberately trap on integer
16327         overflow (e.g., gcc -ftrapv).
16328
16329         * lib/mktime.c (WRAPV): New macro.
16330         (SHR): Also check that long_int and time_t shift right in the
16331         usual way, before using the fast-but-unportable method.
16332         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16333         used.  The code already assumed two's complement, so there's
16334         no need to test for alternatives.  All uses removed.
16335         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16336         the C standard.  Problem reported by Rich Felker in
16337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16338         (twos_complement_arithmetic): Also check long_int and time_t.
16339         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16340         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16341         (__mktime_internal): Avoid integer overflow with unary subtraction
16342         in two instances where -1 - X is an adequate replacement for -X,
16343         since the calculations are approximate.
16344
16345 2011-01-29  Eric Blake  <eblake@redhat.com>
16346
16347         mktime: avoid infinite loop
16348         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16349         type; behavior is still undefined but portable to all known targets.
16350         Reported by Rich Felker.
16351
16352 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16353
16354         rename, unlink, same-inode: Relicense.
16355         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16356         * modules/unlink (License): Likewise.
16357         * modules/same-inode (License): Likewise.
16358
16359 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         mktime: avoid problems on NetBSD 5 / i386
16362         * lib/mktime.c (long_int): New type.  This works around a problem
16363         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16364         but time_t is 64 bits, and where I expect the existing code is
16365         wrong in some cases.
16366         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16367         (ydhms_diff): Bring back the compile-time check for wide-enough
16368         year and yday.
16369
16370         mktime: fix misspelling in comment
16371         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16372         This merges all recent glibc changes of importance.
16373
16374 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16375
16376         move-if-change: cope with concurrent mv of identical file.
16377         * build-aux/move-if-change (CMPPROG): Accept environment
16378         variable as an override for `cmp'.
16379         (usage): Document CMPPROG.
16380         Adjust comparison to drop stdout.  Cope with failure of mv if
16381         the target file exists and is identical to the source, for
16382         parallel builds.
16383         Report from H.J. Lu against binutils in PR binutils/12283.
16384
16385 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16386
16387         * users.txt: Mention sharutils.
16388
16389 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16390
16391         * users.txt: Mention OATH Toolkit.
16392
16393 2011-01-27  Bruno Haible  <bruno@clisp.org>
16394
16395         Prepare for supporting FreeBSD 10.
16396         * build-aux/config.libpath: Remove handling of freebsd1*.
16397
16398 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16399
16400         Prepare for supporting FreeBSD 10.
16401         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16402         match FreeBSD 10.0.
16403
16404 2011-01-27  Bruno Haible  <bruno@clisp.org>
16405
16406         vma-iter, get-rusage-as: Add OpenBSD support.
16407         * modules/vma-iter (configure.ac): Test for mquery.
16408         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16409         * lib/vma-iter.c: Include <sys/mman.h>.
16410         (vma_iterate): Add an implementation based on mquery().
16411         * lib/resource-ext.h (get_rusage_as): Update comments.
16412         * lib/get-rusage-as.c: Likewise.
16413         * lib/get-rusage-data.c: Likewise.
16414
16415 2011-01-26  Karl Berry  <karl@gnu.org>
16416
16417         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16418         variables to make it easier to override the makeinfo program used.
16419
16420 2011-01-26  Eric Blake  <eblake@redhat.com>
16421
16422         fcntl: work around Haiku F_DUPFD bugs
16423         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16424         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16425         cloexec bit on duplication.
16426         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16427
16428 2011-01-26  Bruno Haible  <bruno@clisp.org>
16429
16430         Enable memory leak tests on AIX.
16431         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16432         * tests/test-fprintf-posix3.c (main): Likewise.
16433
16434 2011-01-26  Bruno Haible  <bruno@clisp.org>
16435
16436         Tests for module 'get-rusage-data'.
16437         * modules/get-rusage-data-tests: New file.
16438         * tests/test-get-rusage-data.c: New file.
16439
16440         New module 'get-rusage-data'.
16441         * lib/resource-ext.h (get_rusage_data): New declaration.
16442         * lib/get-rusage-data.c: New file.
16443         * modules/get-rusage-data: New file.
16444
16445 2011-01-25  Bruno Haible  <bruno@clisp.org>
16446
16447         get-rusage-as: Allow for easier testing.
16448         * lib/resource-ext.h (get_rusage_as): Add comment.
16449         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16450         (main): New function for interactive testing.
16451
16452 2011-01-25  Bruno Haible  <bruno@clisp.org>
16453
16454         vma-iter: Treat Haiku like BeOS.
16455         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16456         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16457
16458 2011-01-25  Eric Blake  <eblake@redhat.com>
16459
16460         c-stack: fix regression on cygwin when libsigsegv is present
16461         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16462
16463 2011-01-24  Bruno Haible  <bruno@clisp.org>
16464
16465         vma-iter: Avoid empty intervals.
16466         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16467         on an empty interval.
16468
16469 2011-01-24  Jim Meyering  <meyering@redhat.com>
16470
16471         u64: remove unnecessary #include
16472         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16473
16474 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16475
16476         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16477         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16478
16479 2011-01-23  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'vma-iter'.
16482         * lib/vma-iter.h: New file.
16483         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16484         * modules/vma-iter: New file.
16485         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16486         for get_rusage_as_via_iterator.
16487         (vma_iterate_callback): New function.
16488         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16489         * modules/get-rusage-as (Depends-on): Add vma-iter.
16490
16491 2011-01-23  Bruno Haible  <bruno@clisp.org>
16492
16493         uninorm: Tweak includes.
16494         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16495         Reported by Jim Meyering.
16496
16497 2011-01-23  Bruno Haible  <bruno@clisp.org>
16498
16499         get-rusage-as: Improve on NetBSD.
16500         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16501         /proc, like on FreeBSD.
16502
16503 2011-01-23  Jim Meyering  <meyering@redhat.com>
16504
16505         xreadlink.h: remove unnecessary #include
16506         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16507
16508         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16509         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16510
16511 2011-01-23  Bruno Haible  <bruno@clisp.org>
16512
16513         get-rusage-as: Fix bug.
16514         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16515         original limit when aborting the first loop.
16516
16517 2011-01-23  Bruno Haible  <bruno@clisp.org>
16518
16519         wctype: Ensure valid C syntax.
16520         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16521         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16522
16523 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16527         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16528         as they are needed only for configure's test case.
16529         This removes two unnecessary symbols from config.h.
16530
16531         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16532         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16534         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16535         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16536         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16537         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16538         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16539         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16540         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16541         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16543         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16544         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16545         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16546         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16547         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16548         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16549
16550 2011-01-21  Eric Blake  <eblake@redhat.com>
16551
16552         maintainer-makefile: work with older git for submodule check
16553         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16554         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16555         Reported by Matthias Bolte.
16556
16557         bootstrap: minor portability fixes
16558         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16559         (usage): Omit leading capital and trailing . on help phrases, per
16560         GNU Coding Standards.
16561         (check_versions, top level): Prefix messages with script name.
16562
16563 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16564
16565         bootstrap: support --no-git option
16566         * build-aux/bootstrap: Add --no-git option, to be used when
16567         --gnulib-srcdir points to the exact desired checkout.
16568
16569 2011-01-21  Eric Blake  <eblake@redhat.com>
16570
16571         strerror_r-posix: work with glibc 2.13
16572         * lib/strerror_r.c (strerror_r): Fix return type.
16573
16574 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16575             Bruno Haible  <bruno@clisp.org>
16576
16577         uN_strstr: New unit tests.
16578         * modules/unistr/u8-strstr-tests: New file.
16579         * modules/unistr/u16-strstr-tests: New file.
16580         * modules/unistr/u32-strstr-tests: New file.
16581         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16582         * tests/unistr/test-u8-strstr.c: New file.
16583         * tests/unistr/test-u16-strstr.c: New file.
16584         * tests/unistr/test-u32-strstr.c: New file.
16585
16586 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16587             Bruno Haible  <bruno@clisp.org>
16588
16589         Make uN_strstr functions O(n) worst-case.
16590         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16591         16-bit and 32-bit unit cases, use the unibyte algorithm from
16592         lib/mbsstr.c.
16593         * lib/unistr/u8-strstr.c: Include <string.h>.
16594         (UNIT_IS_UINT8_T): New macro.
16595         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16596         (U_STRLEN, U_STRNLEN): New macros.
16597         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16598         (U_STRLEN, U_STRNLEN): New macros.
16599         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16600         (configure.ac): Update required libunistring version.
16601         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16602         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16603         malloca.
16604         (configure.ac): Update required libunistring version.
16605         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16606         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16607         malloca.
16608         (configure.ac): Update required libunistring version.
16609
16610 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16611             Bruno Haible  <bruno@clisp.org>
16612
16613         Prepare for faster uN_strstr functions.
16614         * lib/str-kmp.h: Support definable UNITs.
16615         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16616         needle_len argument.
16617         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16618         * lib/mbscasestr.c (mbscasestr): Likewise.
16619
16620 2011-01-21  Pádraig Brady <P@draigBrady.com>
16621
16622         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16623         * tests/test-malloca.c (main): Unset the environment variable
16624         to greatly speed up the test.
16625         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16626         * modules/malloca-tests: Depend on unsetenv.
16627
16628 2011-01-21  Pádraig Brady <P@draigBrady.com>
16629
16630         ignore-value: remove stdint dependency
16631         * lib/ignore-value.h: Remove <stdint.h>
16632         * modules/ignore-value: Remove stdint dependency.
16633
16634 2011-01-21  Jim Meyering  <meyering@redhat.com>
16635
16636         maint.mk: adjust variable name to be consistent with other gl_ vars
16637         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16638         to be lower case.
16639
16640 2011-01-20  Jim Meyering  <meyering@redhat.com>
16641
16642         maint.mk: make "check" depend on public-submodule-commit by default
16643         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16644
16645 2011-01-20  Bruno Haible  <bruno@clisp.org>
16646
16647         mbfile, mbiter: Complete change from 2008-12-21.
16648         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16649         * m4/mbiter.m4 (gl_MBITER): Likewise.
16650
16651 2011-01-20  Jim Meyering  <meyering@redhat.com>
16652
16653         init.sh: insert space between each function name and "()"
16654         * tests/init.sh: Make it a little easier to see that a function's
16655         name is "warn_", and not "warn" when looking at the first part of
16656         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16657
16658 2011-01-20  Jim Meyering  <meyering@redhat.com>
16659
16660         mountlist: clean up code formatting
16661         * lib/mountlist.c (read_file_system_list): Split a long line,
16662         correct bracing style, use NULL in place of "(struct statfs *)0",
16663         don't parenthesize return value, add spaces around "=" and after
16664         ";-in-for-stmt".
16665
16666 2011-01-14  Markus Duft <mduft@gentoo.org>
16667
16668         mountlist: add support for Interix
16669         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16670         Apply statvfs to all entries of /dev/fs.
16671         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16672         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16673
16674 2011-01-20  Jim Meyering  <meyering@redhat.com>
16675
16676         maint.mk: improve the public-submodule-commit rule
16677         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16678         to suppress printing of its commands... unless V=1.
16679         Add git submodule's --quiet option to suppress printing of e.g.,
16680         "Entering gnulib" output.
16681         "cd" into $(srcdir) before running git submodule.
16682
16683 2011-01-20  Bruno Haible  <bruno@clisp.org>
16684
16685         include_next: Fix bug introduced on 2011-01-18.
16686         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16687         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16688         ac_cv_header_... variable if the second argument is not 'check'.
16689         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16690         gl_NEXT_HEADERS_INTERNAL.
16691
16692 2011-01-20  Bruno Haible  <bruno@clisp.org>
16693
16694         Allow the user to avoid the GNULIB_TEST_* macros.
16695         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16696         Suggested by Paul Eggert.
16697
16698 2011-01-14  Jim Meyering  <meyering@redhat.com>
16699
16700         bootstrap: avoid failure when there is no .gitmodules file
16701         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16702         has been assigned to, even when its value is the empty string.
16703         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16704         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16705         Reported by John W. Eaton <jwe@gnu.org>.
16706
16707 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16708
16709         assume <ctype.h>, ..., <time.h> exist
16710         For years gnulib has been assuming the existence of the headers
16711         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16712         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16713         them, since they don't appear to be needed.
16714         * README (Portability guidelines): Document this.
16715         * lib/flock.c: Assume <fcntl.h> exists.
16716         * lib/regex_internal.h: Assume <locale.h> exists.
16717         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16719         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16720         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16721         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16722         * m4/regex.m4 (gl_REGEX): Likewise.
16723         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16724         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16725         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16726         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16727         * tests/test-argp.c: Likewise.
16728         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16729
16730         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16731         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16732         AA_APPLE_UNIVERSAL_BUILD.  See
16733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16734         * NEWS: Document this.
16735
16736 2011-01-19  Eric Blake  <eblake@redhat.com>
16737
16738         c-stack: assume stack overflow if SA_SIGINFO unsupported
16739         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16740         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16741         sigaction will work.
16742         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16743         behavior match Linux.
16744         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16745
16746         stdbool-tests: accomodate Haiku
16747         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16748
16749         binary-io: fix O_TEXT on Haiku
16750         * modules/binary-io (Depends-on): Add fcntl-h.
16751         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16752         than blindly undefining O_TEXT.
16753         Reported by Scott McCreary.
16754
16755 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16756
16757         include_next: do not check for standard headers like stddef.h
16758
16759         I found this problem when modifying Emacs to use gnulib.
16760         I noticed that it added HAVE_STDDEF_H to config.h, even though
16761         gnulib always assumes <stddef.h> exists as per README and this
16762         symbol is unnecessary.
16763         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16764         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16765         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16766         faster for headers like stddef.h that are known to exist.
16767         (gl_CHECK_NEXT_HEADERS): Use it.
16768         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16769         rather than gl_CHECK_NEXT_HEADERS.
16770         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16771         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16772
16773 2011-01-18  Eric Blake  <eblake@redhat.com>
16774
16775         ansi-c++-opt: skip C++ dependency style if C++ is unused
16776         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16777         tests when we know C++ compilation is not desired.
16778         Reported by Scott McCreary.
16779
16780 2011-01-18  Bruno Haible  <bruno@clisp.org>
16781
16782         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16783         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16784         (main): Perform test also when getrlimit and setrlimit don't exist or
16785         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16786         limiting the address space size using setrlimit, compare the address
16787         space size before and after the the test.
16788         * tests/test-dprintf-posix2.c: Likewise.
16789         * tests/test-fprintf-posix3.sh: Update skip messages.
16790         * tests/test-dprintf-posix2.sh: Likewise.
16791         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16792         * modules/dprintf-posix-tests (Depends-on): Likewise.
16793         Reported by Bruce Korb <bkorb@gnu.org> and
16794         Gary V. Vaughan <gary@gnu.org>.
16795
16796 2011-01-18  Bruno Haible  <bruno@clisp.org>
16797
16798         get-rusage-as: Improvement for Cygwin.
16799         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16800         areas that are merely reserved.
16801
16802 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16803
16804         strftime: remove dependencies on multibyte modules
16805
16806         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16807         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16808         only if __osf__ is defined, and I suspect OSF doesn't need these
16809         other modules.  If my guess is wrong, we'll need to come up with a
16810         variant of strftime that doesn't need the multibyte modules.
16811
16812         I discovered this problem when attempting modify Emacs to use the
16813         strftime module.  With the previous gnulib, this caused Emacs to
16814         need 31 new files, ranging from lib/config.charset to
16815         m4/wint_t.m4.  This was overkill and I expect would be offputting
16816         to the Emacs maintainers.  After this change, only 6 new files are
16817         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16818         stdbool.m4, and tm_gmtoff.m4.
16819
16820         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16821         Suggested by Bruno Haible in
16822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16823         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16824         and do not check for wchar.h.
16825         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16826         (Depends-on): Remove mbrlen, mbsinit, wchar.
16827
16828 2011-01-18  Bruno Haible  <bruno@clisp.org>
16829
16830         Tests for module 'get-rusage-as'.
16831         * modules/get-rusage-as-tests: New file.
16832         * tests/test-get-rusage-as.c: New file.
16833
16834         New module 'get-rusage-as'.
16835         * modules/get-rusage-as: New file.
16836         * lib/resource-ext.h: New file.
16837         * lib/get-rusage-as.c: New file.
16838
16839 2011-01-17  Eric Blake  <eblake@redhat.com>
16840
16841         sigaction: relax license from LGPLv3+ to LGPLv2+
16842         * modules/sigaction (License): Relax to LGPLv2+.
16843
16844 2011-01-14  Bruno Haible  <bruno@clisp.org>
16845
16846         filemode: Make function declarations usable in C++ mode.
16847         * lib/filemode.h: Enclose function declarations in extern "C" block.
16848         Reported by John W. Eaton <jwe@gnu.org>.
16849
16850 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16851
16852         save-cwd: no longer include "xgetcwd.h"
16853         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16854         This avoids a compilation failure in projects that use save-cwd
16855         without also using the xgetcwd module.
16856
16857 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16860         This is so that a program like Emacs, which needs only dtoastr,
16861         does not have to bother with distributing and compiling ftoastr
16862         and ldtoastr.
16863         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16864         * modules/dtoastr, modules/ldtoastr: New files.
16865         * modules/ftoastr: Now works just for 'float'.
16866         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16867         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16868         dtoastr.c, ldtoastr.c.
16869
16870 2011-01-11  Jim Meyering  <meyering@redhat.com>
16871
16872         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16873         There is no need to work around the lack of the fchdir function,
16874         since gnulib can now provide a replacement when required.
16875         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16876         * modules/save-cwd (Depends-on): Add fchdir.
16877
16878 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16879
16880         openat, save-cwd: avoid xmalloc
16881
16882         This removes a direct (but undocumented) dependency of openat on
16883         xalloc, along with an indirect dependency via save-cwd.  It also
16884         removes a dependency of save-cwd on xgetcwd, and thereby
16885         indirectly on xalloc.  This change causes the openat substitute
16886         to fall back on save_cwd when memory is tight, and for save_cwd to
16887         fail instead of dying when memory is tight, but that's good enough.
16888         Problem and initial idea for fix reported by Bastien Roucaries in
16889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16890
16891         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16892         xalloc.h (for xmalloc).
16893         (openat_proc_name): Use malloc, not xmalloc.
16894         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16895         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16896
16897         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16898         This avoids heap allocation for file names whose lengths are in
16899         the range 512..1023, with the upper bound increasing to at most
16900         4031 depending on the platform's PATH_MAX.  (We do not want
16901         pathmax.h here as it might supply a non-constant PATH_MAX.)
16902         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16903         Perhaps they should be moved to malloca.h?
16904         (OPENAT_BUFFER_SIZE): Use them.
16905
16906 2011-01-10  Bruno Haible  <bruno@clisp.org>
16907
16908         doc: Update users.txt.
16909         * users.txt: Add recutils.
16910
16911 2011-01-09  Karl Berry  <karl@gnu.org>
16912
16913         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16914
16915         * doc/configmake.texi: New file.
16916         * doc/gnulib.texi: Include it.
16917         * modules/configmake: Move documentation from here.
16918
16919 2011-01-09  Bruno Haible  <bruno@clisp.org>
16920
16921         Update to Unicode 6.0.0.
16922         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16923         (get_lbp): Update for Unicode 6.0.0.
16924         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16925         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16926         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16927         U+11001, U+11038..U+11046. Remove U+06DE.
16928         (uc_width): Fix bounds of planes.
16929         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16930         lib/uniwidth/width.c.
16931         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16932         trailing whitespace removed.
16933         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16934         without comments, but with the original copyright notice.
16935         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16936         * lib/unicase/ignorable.h: Likewise.
16937         * lib/unicase/tocasefold.h: Likewise.
16938         * lib/unicase/tolower.h: Likewise.
16939         * lib/unicase/totitle.h: Likewise.
16940         * lib/unicase/toupper.h: Likewise.
16941         * lib/unictype/bidi_of.h: Likewise.
16942         * lib/unictype/blocks.h: Likewise.
16943         * lib/unictype/categ_C.h: Likewise.
16944         * lib/unictype/categ_Cn.h: Likewise.
16945         * lib/unictype/categ_L.h: Likewise.
16946         * lib/unictype/categ_Ll.h: Likewise.
16947         * lib/unictype/categ_Lm.h: Likewise.
16948         * lib/unictype/categ_Lo.h: Likewise.
16949         * lib/unictype/categ_Lu.h: Likewise.
16950         * lib/unictype/categ_M.h: Likewise.
16951         * lib/unictype/categ_Mc.h: Likewise.
16952         * lib/unictype/categ_Me.h: Likewise.
16953         * lib/unictype/categ_Mn.h: Likewise.
16954         * lib/unictype/categ_N.h: Likewise.
16955         * lib/unictype/categ_Nd.h: Likewise.
16956         * lib/unictype/categ_No.h: Likewise.
16957         * lib/unictype/categ_P.h: Likewise.
16958         * lib/unictype/categ_Po.h: Likewise.
16959         * lib/unictype/categ_S.h: Likewise.
16960         * lib/unictype/categ_Sc.h: Likewise.
16961         * lib/unictype/categ_Sk.h: Likewise.
16962         * lib/unictype/categ_Sm.h: Likewise.
16963         * lib/unictype/categ_So.h: Likewise.
16964         * lib/unictype/categ_of.h: Likewise.
16965         * lib/unictype/combining.h: Likewise.
16966         * lib/unictype/ctype_alnum.h: Likewise.
16967         * lib/unictype/ctype_alpha.h: Likewise.
16968         * lib/unictype/ctype_graph.h: Likewise.
16969         * lib/unictype/ctype_lower.h: Likewise.
16970         * lib/unictype/ctype_print.h: Likewise.
16971         * lib/unictype/ctype_punct.h: Likewise.
16972         * lib/unictype/ctype_upper.h: Likewise.
16973         * lib/unictype/decdigit.h: Likewise.
16974         * lib/unictype/digit.h: Likewise.
16975         * lib/unictype/numeric.h: Likewise.
16976         * lib/unictype/pr_alphabetic.h: Likewise.
16977         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16978         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16979         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16980         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16981         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16982         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16983         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16984         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16985         * lib/unictype/pr_case_ignorable.h: Likewise.
16986         * lib/unictype/pr_cased.h: Likewise.
16987         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16988         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16989         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16990         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16991         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16992         * lib/unictype/pr_combining.h: Likewise.
16993         * lib/unictype/pr_composite.h: Likewise.
16994         * lib/unictype/pr_currency_symbol.h: Likewise.
16995         * lib/unictype/pr_decimal_digit.h: Likewise.
16996         * lib/unictype/pr_deprecated.h: Likewise.
16997         * lib/unictype/pr_format_control.h: Likewise.
16998         * lib/unictype/pr_grapheme_base.h: Likewise.
16999         * lib/unictype/pr_grapheme_extend.h: Likewise.
17000         * lib/unictype/pr_grapheme_link.h: Likewise.
17001         * lib/unictype/pr_id_continue.h: Likewise.
17002         * lib/unictype/pr_id_start.h: Likewise.
17003         * lib/unictype/pr_ideographic.h: Likewise.
17004         * lib/unictype/pr_lowercase.h: Likewise.
17005         * lib/unictype/pr_math.h: Likewise.
17006         * lib/unictype/pr_numeric.h: Likewise.
17007         * lib/unictype/pr_other_alphabetic.h: Likewise.
17008         * lib/unictype/pr_other_id_continue.h: Likewise.
17009         * lib/unictype/pr_other_math.h: Likewise.
17010         * lib/unictype/pr_punctuation.h: Likewise.
17011         * lib/unictype/pr_sentence_terminal.h: Likewise.
17012         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17013         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17014         * lib/unictype/pr_unified_ideograph.h: Likewise.
17015         * lib/unictype/pr_uppercase.h: Likewise.
17016         * lib/unictype/pr_xid_continue.h: Likewise.
17017         * lib/unictype/pr_xid_start.h: Likewise.
17018         * lib/unictype/scripts.h: Likewise.
17019         * lib/unictype/scripts_byname.gperf: Likewise.
17020         * lib/unictype/sy_java_ident.h: Likewise.
17021         * lib/unigbrk/gbrkprop.h: Likewise.
17022         * lib/unilbrk/lbrkprop1.h: Likewise.
17023         * lib/unilbrk/lbrkprop2.h: Likewise.
17024         * lib/uninorm/decomposition-table2.h: Likewise.
17025         * lib/uniwbrk/wbrkprop.h: Likewise.
17026         * tests/unicase/test-cased.c: Likewise.
17027         * tests/unicase/test-ignorable.c: Likewise.
17028         * tests/unicase/test-uc_tolower.c: Likewise.
17029         * tests/unicase/test-uc_totitle.c: Likewise.
17030         * tests/unicase/test-uc_toupper.c: Likewise.
17031         * tests/unictype/test-categ_C.c: Likewise.
17032         * tests/unictype/test-categ_Cn.c: Likewise.
17033         * tests/unictype/test-categ_L.c: Likewise.
17034         * tests/unictype/test-categ_Ll.c: Likewise.
17035         * tests/unictype/test-categ_Lm.c: Likewise.
17036         * tests/unictype/test-categ_Lo.c: Likewise.
17037         * tests/unictype/test-categ_Lu.c: Likewise.
17038         * tests/unictype/test-categ_M.c: Likewise.
17039         * tests/unictype/test-categ_Mc.c: Likewise.
17040         * tests/unictype/test-categ_Me.c: Likewise.
17041         * tests/unictype/test-categ_Mn.c: Likewise.
17042         * tests/unictype/test-categ_N.c: Likewise.
17043         * tests/unictype/test-categ_Nd.c: Likewise.
17044         * tests/unictype/test-categ_No.c: Likewise.
17045         * tests/unictype/test-categ_P.c: Likewise.
17046         * tests/unictype/test-categ_Po.c: Likewise.
17047         * tests/unictype/test-categ_S.c: Likewise.
17048         * tests/unictype/test-categ_Sc.c: Likewise.
17049         * tests/unictype/test-categ_Sk.c: Likewise.
17050         * tests/unictype/test-categ_Sm.c: Likewise.
17051         * tests/unictype/test-categ_So.c: Likewise.
17052         * tests/unictype/test-ctype_alnum.c: Likewise.
17053         * tests/unictype/test-ctype_alpha.c: Likewise.
17054         * tests/unictype/test-ctype_graph.c: Likewise.
17055         * tests/unictype/test-ctype_lower.c: Likewise.
17056         * tests/unictype/test-ctype_print.c: Likewise.
17057         * tests/unictype/test-ctype_punct.c: Likewise.
17058         * tests/unictype/test-ctype_upper.c: Likewise.
17059         * tests/unictype/test-decdigit.h: Likewise.
17060         * tests/unictype/test-digit.h: Likewise.
17061         * tests/unictype/test-numeric.h: Likewise.
17062         * tests/unictype/test-pr_alphabetic.c: Likewise.
17063         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17064         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17065         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17066         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17067         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17068         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17069         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17070         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17071         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17072         * tests/unictype/test-pr_cased.c: Likewise.
17073         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17074         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17075         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17076         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17077         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17078         * tests/unictype/test-pr_combining.c: Likewise.
17079         * tests/unictype/test-pr_composite.c: Likewise.
17080         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17081         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17082         * tests/unictype/test-pr_deprecated.c: Likewise.
17083         * tests/unictype/test-pr_format_control.c: Likewise.
17084         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17085         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17086         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17087         * tests/unictype/test-pr_id_continue.c: Likewise.
17088         * tests/unictype/test-pr_id_start.c: Likewise.
17089         * tests/unictype/test-pr_ideographic.c: Likewise.
17090         * tests/unictype/test-pr_lowercase.c: Likewise.
17091         * tests/unictype/test-pr_math.c: Likewise.
17092         * tests/unictype/test-pr_numeric.c: Likewise.
17093         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17094         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17095         * tests/unictype/test-pr_other_math.c: Likewise.
17096         * tests/unictype/test-pr_punctuation.c: Likewise.
17097         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17098         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17099         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17100         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17101         * tests/unictype/test-pr_uppercase.c: Likewise.
17102         * tests/unictype/test-pr_xid_continue.c: Likewise.
17103         * tests/unictype/test-pr_xid_start.c: Likewise.
17104         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17105         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17106         changes.
17107         * lib/unictype/categ_Cc.h: Likewise.
17108         * lib/unictype/categ_Cf.h: Likewise.
17109         * lib/unictype/categ_Co.h: Likewise.
17110         * lib/unictype/categ_Cs.h: Likewise.
17111         * lib/unictype/categ_Lt.h: Likewise.
17112         * lib/unictype/categ_Nl.h: Likewise.
17113         * lib/unictype/categ_Pc.h: Likewise.
17114         * lib/unictype/categ_Pd.h: Likewise.
17115         * lib/unictype/categ_Pe.h: Likewise.
17116         * lib/unictype/categ_Pf.h: Likewise.
17117         * lib/unictype/categ_Pi.h: Likewise.
17118         * lib/unictype/categ_Ps.h: Likewise.
17119         * lib/unictype/categ_Z.h: Likewise.
17120         * lib/unictype/categ_Zl.h: Likewise.
17121         * lib/unictype/categ_Zp.h: Likewise.
17122         * lib/unictype/categ_Zs.h: Likewise.
17123         * lib/unictype/ctype_blank.h: Likewise.
17124         * lib/unictype/ctype_cntrl.h: Likewise.
17125         * lib/unictype/ctype_digit.h: Likewise.
17126         * lib/unictype/ctype_space.h: Likewise.
17127         * lib/unictype/ctype_xdigit.h: Likewise.
17128         * lib/unictype/mirror.h: Likewise.
17129         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17130         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17131         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17132         * lib/unictype/pr_bidi_control.h: Likewise.
17133         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17134         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17135         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17136         * lib/unictype/pr_bidi_pdf.h: Likewise.
17137         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17138         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17139         * lib/unictype/pr_dash.h: Likewise.
17140         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17141         * lib/unictype/pr_diacritic.h: Likewise.
17142         * lib/unictype/pr_extender.h: Likewise.
17143         * lib/unictype/pr_hex_digit.h: Likewise.
17144         * lib/unictype/pr_hyphen.h: Likewise.
17145         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17146         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17147         * lib/unictype/pr_ignorable_control.h: Likewise.
17148         * lib/unictype/pr_iso_control.h: Likewise.
17149         * lib/unictype/pr_join_control.h: Likewise.
17150         * lib/unictype/pr_left_of_pair.h: Likewise.
17151         * lib/unictype/pr_line_separator.h: Likewise.
17152         * lib/unictype/pr_logical_order_exception.h: Likewise.
17153         * lib/unictype/pr_non_break.h: Likewise.
17154         * lib/unictype/pr_not_a_character.h: Likewise.
17155         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17156         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17157         * lib/unictype/pr_other_id_start.h: Likewise.
17158         * lib/unictype/pr_other_lowercase.h: Likewise.
17159         * lib/unictype/pr_other_uppercase.h: Likewise.
17160         * lib/unictype/pr_paired_punctuation.h: Likewise.
17161         * lib/unictype/pr_paragraph_separator.h: Likewise.
17162         * lib/unictype/pr_pattern_syntax.h: Likewise.
17163         * lib/unictype/pr_pattern_white_space.h: Likewise.
17164         * lib/unictype/pr_private_use.h: Likewise.
17165         * lib/unictype/pr_quotation_mark.h: Likewise.
17166         * lib/unictype/pr_radical.h: Likewise.
17167         * lib/unictype/pr_soft_dotted.h: Likewise.
17168         * lib/unictype/pr_space.h: Likewise.
17169         * lib/unictype/pr_titlecase.h: Likewise.
17170         * lib/unictype/pr_variation_selector.h: Likewise.
17171         * lib/unictype/pr_white_space.h: Likewise.
17172         * lib/unictype/pr_zero_width.h: Likewise.
17173         * lib/unictype/sy_c_ident.h: Likewise.
17174         * lib/unictype/sy_c_whitespace.h: Likewise.
17175         * lib/unictype/sy_java_whitespace.h: Likewise.
17176         * lib/uninorm/composition-table.gperf: Likewise.
17177         * lib/uninorm/decomposition-table1.h: Likewise.
17178         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17179         LB8.
17180         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17181         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17182         * modules/unictype/*: Bump version number of expected libunistring
17183         version.
17184
17185 2011-01-09  Bruno Haible  <bruno@clisp.org>
17186
17187         Update to Unicode 5.2.0.
17188         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17189         trailing whitespace removed.
17190
17191 2011-01-09  Bruno Haible  <bruno@clisp.org>
17192
17193         New Unicode character properties, from Unicode 5.2.0.
17194         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17195         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17196         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17197         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17198         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17199         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17200         uc_is_property_cased, uc_is_property_case_ignorable,
17201         uc_is_property_changes_when_lowercased,
17202         uc_is_property_changes_when_uppercased,
17203         uc_is_property_changes_when_titlecased,
17204         uc_is_property_changes_when_casefolded,
17205         uc_is_property_changes_when_casemapped): New declarations.
17206         * lib/unictype/pr_byname.gperf: Add the new properties.
17207         * modules/unictype/property-byname (Depends-on): Depend on the new
17208         properties modules.
17209         * modules/unictype/property-all (Depends-on): Likewise.
17210         * MODULES.html.sh (Unicode string functions): Add
17211         unictype/property-case-ignorable, unictype/property-cased,
17212         unictype/property-changes-when-casefolded,
17213         unictype/property-changes-when-casemapped,
17214         unictype/property-changes-when-lowercased,
17215         unictype/property-changes-when-titlecased,
17216         unictype/property-changes-when-uppercased.
17217
17218         New module 'unictype/property-changes-when-casemapped'.
17219         * modules/unictype/property-changes-when-casemapped: New file.
17220         * lib/unictype/pr_changes_when_casemapped.c: New file.
17221         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17222         generated by gen-uni-tables.
17223         * modules/unictype/property-changes-when-casemapped-tests: New file.
17224         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17225         automatically generated by gen-uni-tables.
17226
17227         New module 'unictype/property-changes-when-casefolded'.
17228         * modules/unictype/property-changes-when-casefolded: New file.
17229         * lib/unictype/pr_changes_when_casefolded.c: New file.
17230         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17231         generated by gen-uni-tables.
17232         * modules/unictype/property-changes-when-casefolded-tests: New file.
17233         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17234         automatically generated by gen-uni-tables.
17235
17236         New module 'unictype/property-changes-when-titlecased'.
17237         * modules/unictype/property-changes-when-titlecased: New file.
17238         * lib/unictype/pr_changes_when_titlecased.c: New file.
17239         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17240         generated by gen-uni-tables.
17241         * modules/unictype/property-changes-when-titlecased-tests: New file.
17242         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17243         automatically generated by gen-uni-tables.
17244
17245         New module 'unictype/property-changes-when-uppercased'.
17246         * modules/unictype/property-changes-when-uppercased: New file.
17247         * lib/unictype/pr_changes_when_uppercased.c: New file.
17248         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17249         generated by gen-uni-tables.
17250         * modules/unictype/property-changes-when-uppercased-tests: New file.
17251         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17252         automatically generated by gen-uni-tables.
17253
17254         New module 'unictype/property-changes-when-lowercased'.
17255         * modules/unictype/property-changes-when-lowercased: New file.
17256         * lib/unictype/pr_changes_when_lowercased.c: New file.
17257         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17258         generated by gen-uni-tables.
17259         * modules/unictype/property-changes-when-lowercased-tests: New file.
17260         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17261         automatically generated by gen-uni-tables.
17262
17263         New module 'unictype/property-case-ignorable'.
17264         * modules/unictype/property-case-ignorable: New file.
17265         * lib/unictype/pr_case_ignorable.c: New file.
17266         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17267         by gen-uni-tables.
17268         * modules/unictype/property-case-ignorable-tests: New file.
17269         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17270         generated by gen-uni-tables.
17271
17272         New module 'unictype/property-cased'.
17273         * modules/unictype/property-cased: New file.
17274         * lib/unictype/pr_cased.c: New file.
17275         * lib/unictype/pr_cased.h: New file, automatically generated by
17276         gen-uni-tables.
17277         * modules/unictype/property-cased-tests: New file.
17278         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17279         gen-uni-tables.
17280
17281 2011-01-09  Bruno Haible  <bruno@clisp.org>
17282
17283         Update to Unicode 5.2.0.
17284         * lib/gen-uni-tables.c (output_predicate, output_category,
17285         output_combclass, output_bidi_category, output_decimal_digit_test,
17286         output_decimal_digit, output_digit_test, output_digit,
17287         output_numeric_test, output_numeric, output_mirror, output_scripts,
17288         output_scripts_byname, output_blocks, output_ident_category): Fix
17289         comment header.
17290         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17291         get_wbp.
17292         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17293         items.
17294         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17295         Changes_When_Lowercased, Changes_When_Uppercased,
17296         Changes_When_Titlecased, Changes_When_Casefolded,
17297         Changes_When_Casemapped.
17298         (is_property_alphabetic, is_property_default_ignorable_code_point):
17299         Update for Unicode 5.2.0.
17300         (is_property_cased, is_property_case_ignorable,
17301         is_property_changes_when_lowercased,
17302         is_property_changes_when_uppercased,
17303         is_property_changes_when_titlecased,
17304         is_property_changes_when_casefolded,
17305         is_property_changes_when_casemapped): New functions.
17306         (output_properties): Output also the properties cased, case_ignorable,
17307         changes_when_lowercased, changes_when_uppercased,
17308         changes_when_titlecased, changes_when_casefolded,
17309         changes_when_casemapped.
17310         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17311         Unicode TR#11 revision 17 -> 19.
17312         (LBP_CP): New enumeration value.
17313         (LBP_*): Adjust values accordingly.
17314         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17315         TR#14 revision 22 -> 24.
17316         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17317         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17318         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17319         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17320         is_WBP_MIDLETTER.
17321         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17322         the code1 and code2 of each composition rule.
17323         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17324         * lib/unicase/ignorable.h: Likewise.
17325         * lib/unicase/tocasefold.h: Likewise.
17326         * lib/unicase/tolower.h: Likewise.
17327         * lib/unicase/totitle.h: Likewise.
17328         * lib/unicase/toupper.h: Likewise.
17329         * lib/unictype/bidi_of.h: Likewise.
17330         * lib/unictype/blocks.h: Likewise.
17331         * lib/unictype/categ_C.h: Likewise.
17332         * lib/unictype/categ_Cf.h: Likewise.
17333         * lib/unictype/categ_Cn.h: Likewise.
17334         * lib/unictype/categ_L.h: Likewise.
17335         * lib/unictype/categ_Ll.h: Likewise.
17336         * lib/unictype/categ_Lm.h: Likewise.
17337         * lib/unictype/categ_Lo.h: Likewise.
17338         * lib/unictype/categ_Lu.h: Likewise.
17339         * lib/unictype/categ_M.h: Likewise.
17340         * lib/unictype/categ_Mc.h: Likewise.
17341         * lib/unictype/categ_Mn.h: Likewise.
17342         * lib/unictype/categ_N.h: Likewise.
17343         * lib/unictype/categ_Nd.h: Likewise.
17344         * lib/unictype/categ_Nl.h: Likewise.
17345         * lib/unictype/categ_No.h: Likewise.
17346         * lib/unictype/categ_P.h: Likewise.
17347         * lib/unictype/categ_Pd.h: Likewise.
17348         * lib/unictype/categ_Po.h: Likewise.
17349         * lib/unictype/categ_S.h: Likewise.
17350         * lib/unictype/categ_Sc.h: Likewise.
17351         * lib/unictype/categ_So.h: Likewise.
17352         * lib/unictype/categ_of.h: Likewise.
17353         * lib/unictype/combining.h: Likewise.
17354         * lib/unictype/ctype_alnum.h: Likewise.
17355         * lib/unictype/ctype_alpha.h: Likewise.
17356         * lib/unictype/ctype_graph.h: Likewise.
17357         * lib/unictype/ctype_lower.h: Likewise.
17358         * lib/unictype/ctype_print.h: Likewise.
17359         * lib/unictype/ctype_punct.h: Likewise.
17360         * lib/unictype/ctype_upper.h: Likewise.
17361         * lib/unictype/decdigit.h: Likewise.
17362         * lib/unictype/digit.h: Likewise.
17363         * lib/unictype/numeric.h: Likewise.
17364         * lib/unictype/pr_alphabetic.h: Likewise.
17365         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17366         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17367         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17368         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17369         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17370         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17371         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17372         * lib/unictype/pr_combining.h: Likewise.
17373         * lib/unictype/pr_composite.h: Likewise.
17374         * lib/unictype/pr_currency_symbol.h: Likewise.
17375         * lib/unictype/pr_dash.h: Likewise.
17376         * lib/unictype/pr_decimal_digit.h: Likewise.
17377         * lib/unictype/pr_deprecated.h: Likewise.
17378         * lib/unictype/pr_diacritic.h: Likewise.
17379         * lib/unictype/pr_extender.h: Likewise.
17380         * lib/unictype/pr_grapheme_base.h: Likewise.
17381         * lib/unictype/pr_grapheme_extend.h: Likewise.
17382         * lib/unictype/pr_grapheme_link.h: Likewise.
17383         * lib/unictype/pr_id_continue.h: Likewise.
17384         * lib/unictype/pr_id_start.h: Likewise.
17385         * lib/unictype/pr_ideographic.h: Likewise.
17386         * lib/unictype/pr_ignorable_control.h: Likewise.
17387         * lib/unictype/pr_logical_order_exception.h: Likewise.
17388         * lib/unictype/pr_lowercase.h: Likewise.
17389         * lib/unictype/pr_numeric.h: Likewise.
17390         * lib/unictype/pr_other_alphabetic.h: Likewise.
17391         * lib/unictype/pr_punctuation.h: Likewise.
17392         * lib/unictype/pr_sentence_terminal.h: Likewise.
17393         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17394         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17395         * lib/unictype/pr_unified_ideograph.h: Likewise.
17396         * lib/unictype/pr_uppercase.h: Likewise.
17397         * lib/unictype/pr_xid_continue.h: Likewise.
17398         * lib/unictype/pr_xid_start.h: Likewise.
17399         * lib/unictype/pr_zero_width.h: Likewise.
17400         * lib/unictype/scripts.h: Likewise.
17401         * lib/unictype/scripts_byname.gperf: Likewise.
17402         * lib/unictype/sy_java_ident.h: Likewise.
17403         * lib/unigbrk/gbrkprop.h: Likewise.
17404         * lib/unilbrk/lbrkprop1.h: Likewise.
17405         * lib/unilbrk/lbrkprop2.h: Likewise.
17406         * lib/unilbrk/lbrktables.h: Likewise.
17407         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17408         LBP_CP. Implement rule LB30.
17409         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17410         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17411         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17412         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17413         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17414         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17415         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17416         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17417         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17418         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17419         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17420         bits instead of 16 bits in the code1 and code2 of each composition
17421         rule.
17422         (uc_composition): Update for Unicode 5.2.0.
17423         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17424         * lib/uninorm/decomposition-table2.h: Likewise.
17425         * lib/uniwbrk/wbrkprop.h: Likewise.
17426         * tests/unicase/test-cased.c: Likewise.
17427         * tests/unicase/test-ignorable.c: Likewise.
17428         * tests/unicase/test-uc_tolower.c: Likewise.
17429         * tests/unicase/test-uc_totitle.c: Likewise.
17430         * tests/unicase/test-uc_toupper.c: Likewise.
17431         * tests/unictype/test-categ_C.c: Likewise.
17432         * tests/unictype/test-categ_Cf.c: Likewise.
17433         * tests/unictype/test-categ_Cn.c: Likewise.
17434         * tests/unictype/test-categ_L.c: Likewise.
17435         * tests/unictype/test-categ_Ll.c: Likewise.
17436         * tests/unictype/test-categ_Lm.c: Likewise.
17437         * tests/unictype/test-categ_Lo.c: Likewise.
17438         * tests/unictype/test-categ_Lu.c: Likewise.
17439         * tests/unictype/test-categ_M.c: Likewise.
17440         * tests/unictype/test-categ_Mc.c: Likewise.
17441         * tests/unictype/test-categ_Mn.c: Likewise.
17442         * tests/unictype/test-categ_N.c: Likewise.
17443         * tests/unictype/test-categ_Nd.c: Likewise.
17444         * tests/unictype/test-categ_Nl.c: Likewise.
17445         * tests/unictype/test-categ_No.c: Likewise.
17446         * tests/unictype/test-categ_P.c: Likewise.
17447         * tests/unictype/test-categ_Pd.c: Likewise.
17448         * tests/unictype/test-categ_Po.c: Likewise.
17449         * tests/unictype/test-categ_S.c: Likewise.
17450         * tests/unictype/test-categ_Sc.c: Likewise.
17451         * tests/unictype/test-categ_So.c: Likewise.
17452         * tests/unictype/test-ctype_alnum.c: Likewise.
17453         * tests/unictype/test-ctype_alpha.c: Likewise.
17454         * tests/unictype/test-ctype_graph.c: Likewise.
17455         * tests/unictype/test-ctype_lower.c: Likewise.
17456         * tests/unictype/test-ctype_print.c: Likewise.
17457         * tests/unictype/test-ctype_punct.c: Likewise.
17458         * tests/unictype/test-ctype_upper.c: Likewise.
17459         * tests/unictype/test-decdigit.h: Likewise.
17460         * tests/unictype/test-digit.h: Likewise.
17461         * tests/unictype/test-numeric.h: Likewise.
17462         * tests/unictype/test-pr_alphabetic.c: Likewise.
17463         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17464         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17465         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17466         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17467         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17468         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17469         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17470         * tests/unictype/test-pr_combining.c: Likewise.
17471         * tests/unictype/test-pr_composite.c: Likewise.
17472         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17473         * tests/unictype/test-pr_dash.c: Likewise.
17474         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17475         * tests/unictype/test-pr_deprecated.c: Likewise.
17476         * tests/unictype/test-pr_diacritic.c: Likewise.
17477         * tests/unictype/test-pr_extender.c: Likewise.
17478         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17479         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17480         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17481         * tests/unictype/test-pr_id_continue.c: Likewise.
17482         * tests/unictype/test-pr_id_start.c: Likewise.
17483         * tests/unictype/test-pr_ideographic.c: Likewise.
17484         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17485         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17486         * tests/unictype/test-pr_lowercase.c: Likewise.
17487         * tests/unictype/test-pr_numeric.c: Likewise.
17488         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17489         * tests/unictype/test-pr_punctuation.c: Likewise.
17490         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17491         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17492         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17493         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17494         * tests/unictype/test-pr_uppercase.c: Likewise.
17495         * tests/unictype/test-pr_xid_continue.c: Likewise.
17496         * tests/unictype/test-pr_xid_start.c: Likewise.
17497         * tests/unictype/test-pr_zero_width.c: Likewise.
17498         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17499         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17500         changed behaviour: line breaking is now disallowed between a letter
17501         or '=' and '('.
17502         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17503         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17504         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17505         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17506         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17507         lib/uniwidth/width.c.
17508         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17509         without comments, but with the original copyright notice.
17510         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17511         changes.
17512         * lib/unictype/categ_Cc.h: Likewise.
17513         * lib/unictype/categ_Co.h: Likewise.
17514         * lib/unictype/categ_Cs.h: Likewise.
17515         * lib/unictype/categ_Lt.h: Likewise.
17516         * lib/unictype/categ_Me.h: Likewise.
17517         * lib/unictype/categ_Pc.h: Likewise.
17518         * lib/unictype/categ_Pe.h: Likewise.
17519         * lib/unictype/categ_Pf.h: Likewise.
17520         * lib/unictype/categ_Pi.h: Likewise.
17521         * lib/unictype/categ_Ps.h: Likewise.
17522         * lib/unictype/categ_Sk.h: Likewise.
17523         * lib/unictype/categ_Sm.h: Likewise.
17524         * lib/unictype/categ_Z.h: Likewise.
17525         * lib/unictype/categ_Zl.h: Likewise.
17526         * lib/unictype/categ_Zp.h: Likewise.
17527         * lib/unictype/categ_Zs.h: Likewise.
17528         * lib/unictype/ctype_blank.h: Likewise.
17529         * lib/unictype/ctype_cntrl.h: Likewise.
17530         * lib/unictype/ctype_digit.h: Likewise.
17531         * lib/unictype/ctype_space.h: Likewise.
17532         * lib/unictype/ctype_xdigit.h: Likewise.
17533         * lib/unictype/mirror.h: Likewise.
17534         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17535         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17536         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17537         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17538         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17539         * lib/unictype/pr_bidi_control.h: Likewise.
17540         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17541         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17542         * lib/unictype/pr_bidi_pdf.h: Likewise.
17543         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17544         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17545         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17546         * lib/unictype/pr_format_control.h: Likewise.
17547         * lib/unictype/pr_hex_digit.h: Likewise.
17548         * lib/unictype/pr_hyphen.h: Likewise.
17549         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17550         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17551         * lib/unictype/pr_iso_control.h: Likewise.
17552         * lib/unictype/pr_join_control.h: Likewise.
17553         * lib/unictype/pr_left_of_pair.h: Likewise.
17554         * lib/unictype/pr_line_separator.h: Likewise.
17555         * lib/unictype/pr_math.h: Likewise.
17556         * lib/unictype/pr_non_break.h: Likewise.
17557         * lib/unictype/pr_not_a_character.h: Likewise.
17558         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17559         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17560         * lib/unictype/pr_other_id_continue.h: Likewise.
17561         * lib/unictype/pr_other_id_start.h: Likewise.
17562         * lib/unictype/pr_other_lowercase.h: Likewise.
17563         * lib/unictype/pr_other_math.h: Likewise.
17564         * lib/unictype/pr_other_uppercase.h: Likewise.
17565         * lib/unictype/pr_paired_punctuation.h: Likewise.
17566         * lib/unictype/pr_paragraph_separator.h: Likewise.
17567         * lib/unictype/pr_pattern_syntax.h: Likewise.
17568         * lib/unictype/pr_pattern_white_space.h: Likewise.
17569         * lib/unictype/pr_private_use.h: Likewise.
17570         * lib/unictype/pr_quotation_mark.h: Likewise.
17571         * lib/unictype/pr_radical.h: Likewise.
17572         * lib/unictype/pr_soft_dotted.h: Likewise.
17573         * lib/unictype/pr_space.h: Likewise.
17574         * lib/unictype/pr_titlecase.h: Likewise.
17575         * lib/unictype/pr_variation_selector.h: Likewise.
17576         * lib/unictype/pr_white_space.h: Likewise.
17577         * lib/unictype/sy_c_ident.h: Likewise.
17578         * lib/unictype/sy_c_whitespace.h: Likewise.
17579         * lib/unictype/sy_java_whitespace.h: Likewise.
17580         * modules/uni*/*: Bump version number of expected libunistring version.
17581         Reported by Simon Josefsson.
17582
17583 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17584
17585         useless-if-before-free: fix typo in --help and make the internal,
17586         automatic version date update process work once again.
17587         --help output contained a NUL character instead of the
17588         backslash-zero that was intended.  Also, the "must lie within
17589         the first 8 lines" line is on line 9, and hence not getting
17590         automatically updated.
17591         * build-aux/useless-if-before-free: Fix the former by adding a
17592         backslash, and the latter by condensing the three lines of what-it-does
17593         to a single line, leaving one line of slack for the future.
17594
17595 2011-01-09  Bruno Haible  <bruno@clisp.org>
17596
17597         uniwidth/width: Fix width of U+1D173..U+1D17A.
17598         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17599         symbolic_width, output_width_property_test): New functions.
17600         (main): Invoke output_nonspacing_property, output_width_property_test.
17601         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17602         U+1D173..U+1D17A.
17603         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17604         1.
17605         * modules/uniwidth/*: Bump version number of expected libunistring
17606         version.
17607         * modules/unilbrk/*: Likewise.
17608
17609 2011-01-08  Bruno Haible  <bruno@clisp.org>
17610
17611         uninorm tests: Preserve copyright of Unicode data file.
17612         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17613         Mention modifications.
17614
17615 2011-01-08  Bruno Haible  <bruno@clisp.org>
17616
17617         gen-uni-tables: Prepare for Unicode 5.2.0.
17618         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17619         (debug_output_lbp, output_lbp): Update.
17620
17621 2011-01-08  Bruno Haible  <bruno@clisp.org>
17622
17623         unilbrk: Clarify gen-uni-tables.c code.
17624         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17625         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17626         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17627
17628 2011-01-07  Bruno Haible  <bruno@clisp.org>
17629
17630         strtod: Restore errno when successfully parsing Infinity or NaN.
17631         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17632         restore the original errno.
17633
17634 2011-01-07  Bruno Haible  <bruno@clisp.org>
17635
17636         remove test: Avoid failure on HP-UX 11.
17637         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17638
17639 2011-01-07  Bruno Haible  <bruno@clisp.org>
17640
17641         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17642         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17643         error code.
17644
17645 2011-01-07  Pádraig Brady <P@draigBrady.com>
17646
17647         ignore-value: fixup comments, and add Eric Blake
17648         as an author since he rewrote the macros.
17649         * lib/ignore-value.h (ignore_value):  State that
17650         we now support aggregates.  Also specify exactly
17651         when the GCC warn_unused_result feature was added.
17652
17653 2011-01-06  Eric Blake  <eblake@redhat.com>
17654
17655         ignore-value: support aggregate types
17656         * lib/ignore-value.h (ignore_value): Provide separate gcc
17657         definition.
17658         * modules/ignore-value-tests: New test module.
17659         * tests/test-ignore-value.c: New test.
17660
17661         maint.mk: improve sc_prohibit_strcmp regex
17662         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17663         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17664         definition of STRNEQ.
17665
17666         signal: work around Haiku issue with SIGBUS
17667         * lib/siglist.h: Add comment.
17668         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17669         strsignal's favoring of SIGSEGV.
17670         * tests/test-signal.c (main): Avoid test failure.
17671         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17672         Reported by Scott McCreary.
17673
17674         maint.mk: add pre-release check to ensure submodule commits are public
17675         * top/maint.mk (public-submodule-commit): New rule.
17676         (submodule-checks): New variable.
17677         (alpha beta stable): Depend on the variable.
17678
17679 2011-01-05  Pádraig Brady <P@draigBrady.com>
17680         and Jim Meyering  <meyering@redhat.com>
17681
17682         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17683         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17684         (ATTRIBUTE_DEPRECATED): Define.
17685         (_ignore_case): New function.
17686         (ignore_value): New macro, to replace the old function.
17687         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17688         * modules/ignore-value (Depends-on): Add stdint.
17689
17690 2011-01-04  Eric Blake  <eblake@redhat.com>
17691
17692         doc: regenerate INSTALL
17693         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17694         @firstparagraphindent support, now that autoconf dropped it.
17695         (INSTALL_PRELUDE): Reinstate old macro.
17696         * doc/install.texi: Resync from autoconf.
17697         * doc/INSTALL: Reflect recent autoconf update.
17698         * doc/INSTALL.ISO: Likewise.
17699         * doc/INSTALL.UTF-8: Likewise.
17700         Reported by Karl Berry.
17701
17702 2011-01-04  Bruce Korb  <address@hidden>
17703
17704         git-version-gen: avoid a sub-shell
17705         * build-aux/git-version-gen: Redirect stderr in `...` via
17706         "exec 2>...", rather than via an added sub-shell.
17707
17708 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17709
17710         git-version-gen: use (...) rather than sh -c '...'
17711         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17712         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17713
17714 2011-01-03  Jim Meyering  <meyering@redhat.com>
17715
17716         git-version-gen: convert leading TABs to spaces
17717         * build-aux/git-version-gen: Expand leading TABs.
17718
17719         git-version-gen: handle failed "git rev-list"
17720         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17721         from git and proceeding as if it had succeeded but printed no SHA1
17722         checksums, suppress the diagnostic and handle the failure.
17723         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17724
17725         git-version-gen: include command name in one more diagnostic
17726         * build-aux/git-version-gen: When the required .tarball-version file
17727         was missing or unreadable, you might see the diagnostic from "cat",
17728         but no trace of the name of the invoking script.  Now, you still see
17729         the diagnostic from cat, but also get one from "git-version-gen: ".
17730         Inspired by a patch from Bruce Korb.
17731
17732         update-copyright: adjust test to match changed code
17733         * tests/test-update-copyright.sh: Change test's expected output
17734         to match new actual output.
17735
17736 2011-01-02  Bruno Haible  <bruno@clisp.org>
17737
17738         getlogin_r: Avoid test failure on HP-UX 11.
17739         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17740         ERANGE when the second argument is zero.
17741         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17742         portability problem.
17743
17744 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17745
17746         * build-aux/update-copyright: doc Simon's changes
17747
17748 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17749
17750         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17751         environment variable.
17752
17753 2011-01-02  Bruno Haible  <bruno@clisp.org>
17754
17755         unigbrk: Avoid gcc warnings.
17756         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17757         unused variable.
17758         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17759         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17760         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17761         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17762         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17763         Change type of first argument to 'const char *'.
17764         (main): Remove unused variable.
17765         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17766         type of first argument to 'const char *'.
17767         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17768         Likewise.
17769         (main): Change type of variable 's'.
17770         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17771         to 'int'.
17772
17773 2011-01-02  Bruno Haible  <bruno@clisp.org>
17774
17775         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17776         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17777         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17778         bug.
17779         * lib/pwrite.c: Undo 2010-12-31 patch.
17780         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17781
17782 2011-01-02  Bruno Haible  <bruno@clisp.org>
17783
17784         pread: Fix test whether it works.
17785         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17786
17787 2011-01-02  Bruno Haible  <bruno@clisp.org>
17788
17789         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17790         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17791         ends in "6". Don't require a specific month name. Try also the locale
17792         names found on HP-UX 11 and Solaris 7.
17793
17794 2011-01-02  Bruno Haible  <bruno@clisp.org>
17795
17796         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17797         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17798         C linkage.
17799         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17800
17801 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17802
17803         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17804         for consistency, since the "cluster" term is not used elsewhere.
17805         * lib/unigbrk.in.h: Update name.
17806         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17807         * lib/unigbrk/u16-grapheme-next.c: Update name.
17808         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17809         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17810         * lib/unigbrk/u32-grapheme-next.c: Update name.
17811         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17812         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17813         * lib/unigbrk/u8-grapheme-next.c: Update name.
17814         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17815         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17816         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17817         Suggested by Bruno Haible.
17818
17819 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17820
17821         Remove module 'u8-grapheme-len' as too redundant with
17822         'u8-grapheme-next'.
17823         * modules/unigbrk/u8-grapheme-len: Delete file.
17824         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17825         * lib/unigbrk.in.h: Remove prototype for deleted function.
17826         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17827         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17828
17829         Remove module 'u16-grapheme-len' as too redundant with
17830         'u16-grapheme-next'.
17831         * modules/unigbrk/u16-grapheme-len: Delete file.
17832         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17833         * lib/unigbrk.in.h: Remove prototype for deleted function.
17834         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17835         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17836
17837         Remove module 'u32-grapheme-len' as too redundant with
17838         'u32-grapheme-next'.
17839         * modules/unigbrk/u32-grapheme-len: Delete file.
17840         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17841         * lib/unigbrk.in.h: Remove prototype for deleted function.
17842         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17843         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17844
17845         Suggested by Bruno Haible.
17846
17847 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17848
17849         * unigbrk.in.h: Fix typo: "ben" => "been".
17850         Reported by Bruno Haible.
17851
17852 2011-01-01  Jim Meyering  <meyering@redhat.com>
17853
17854         maint: update almost all copyright ranges to include 2011
17855         Run the new "make update-copyright" rule.
17856
17857 2011-01-01  Jim Meyering  <meyering@redhat.com>
17858
17859         maint: update-copyright: exempt doc/INSTALL*
17860         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17861         since they are generated.  Suggested by Bruno Haible.
17862
17863 2011-01-01  Jim Meyering  <meyering@redhat.com>
17864
17865         maint: refine the update-copyright rule
17866         * Makefile (update-copyright): Also exclude any file that includes
17867         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17868         code that merely generates the comment.
17869
17870 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17871
17872         New module 'u8-grapheme-len'.
17873         * modules/unigbrk/u8-grapheme-len: New file.
17874         * modules/unigbrk/u8-grapheme-len-tests: New file.
17875         * lib/unigbrk.in.h: Add prototype for new function.
17876         * lib/unigbrk/u8-grapheme-len.c: New file.
17877         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17878
17879         New module 'u16-grapheme-len'.
17880         * modules/unigbrk/u16-grapheme-len: New file.
17881         * modules/unigbrk/u16-grapheme-len-tests: New file.
17882         * lib/unigbrk.in.h: Add prototype for new function.
17883         * lib/unigbrk/u16-grapheme-len.c: New file.
17884         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17885
17886         New module 'u32-grapheme-len'.
17887         * modules/unigbrk/u32-grapheme-len: New file.
17888         * modules/unigbrk/u32-grapheme-len-tests: New file.
17889         * lib/unigbrk.in.h: Add prototype for new function.
17890         * lib/unigbrk/u32-grapheme-len.c: New file.
17891         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17892
17893         New module 'u8-grapheme-next'.
17894         * modules/unigbrk/u8-grapheme-next: New file.
17895         * modules/unigbrk/u8-grapheme-next-tests: New file.
17896         * lib/unigbrk.in.h: Add prototype for new function.
17897         * lib/unigbrk/u8-grapheme-next.c: New file.
17898         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17899
17900         New module 'u16-grapheme-next'.
17901         * modules/unigbrk/u16-grapheme-next: New file.
17902         * modules/unigbrk/u16-grapheme-next-tests: New file.
17903         * lib/unigbrk.in.h: Add prototype for new function.
17904         * lib/unigbrk/u16-grapheme-next.c: New file.
17905         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17906
17907         New module 'u32-grapheme-next'.
17908         * modules/unigbrk/u32-grapheme-next: New file.
17909         * modules/unigbrk/u32-grapheme-next-tests: New file.
17910         * lib/unigbrk.in.h: Add prototype for new function.
17911         * lib/unigbrk/u32-grapheme-next.c: New file.
17912         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17913
17914         New module 'u8-grapheme-prev'.
17915         * modules/unigbrk/u8-grapheme-prev: New file.
17916         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17917         * lib/unigbrk.in.h: Add prototype for new function.
17918         * lib/unigbrk/u8-grapheme-prev.c: New file.
17919         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17920
17921         New module 'u16-grapheme-prev'.
17922         * modules/unigbrk/u16-grapheme-prev: New file.
17923         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17924         * lib/unigbrk.in.h: Add prototype for new function.
17925         * lib/unigbrk/u16-grapheme-prev.c: New file.
17926         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17927
17928         New module 'u32-grapheme-prev'.
17929         * modules/unigbrk/u32-grapheme-prev: New file.
17930         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17931         * lib/unigbrk.in.h: Add prototype for new function.
17932         * lib/unigbrk/u32-grapheme-prev.c: New file.
17933         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17934
17935         New module 'u8-grapheme-breaks'.
17936         * modules/unigbrk/u8-grapheme-breaks: New file.
17937         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17938         * lib/unigbrk.in.h: Add prototype for new function.
17939         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17940         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17941
17942         New module 'u16-grapheme-breaks'.
17943         * modules/unigbrk/u16-grapheme-breaks: New file.
17944         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17945         * lib/unigbrk.in.h: Add prototype for new function.
17946         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17947         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17948
17949         New module 'u32-grapheme-breaks'.
17950         * modules/unigbrk/u32-grapheme-breaks: New file.
17951         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17952         * lib/unigbrk.in.h: Add prototype for new function.
17953         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17954         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17955
17956         New module 'ulc-grapheme-breaks'.
17957         * modules/unigbrk/ulc-grapheme-breaks: New file.
17958         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17959         * m4/locale-ar.m4: New file.
17960         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17961         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17962         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17963
17964 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17965
17966         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17967         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17968         modified how this file was generated before I initially submitted
17969         the module, but failed to regenerate it.  This meant that several
17970         of the level2 entries were wrong.
17971         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17972         Remove the division-by-2 that is folded into the table now that
17973         gbrkprop.h has been regenerated properly.  Now -1 entries are
17974         handled correctly.
17975
17976         New module 'unigbrk/uc-gbrk-prop-tests'.
17977         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17978         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17979         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17980         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17981
17982 2011-01-01  Bruno Haible  <bruno@clisp.org>
17983
17984         Avoid use of hexadecimal escapes.
17985         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17986         instead of hexadecimal escapes.
17987
17988 2011-01-01  Jim Meyering  <meyering@redhat.com>
17989
17990         maint: new rule to update copyright year ranges
17991         * Makefile (update-copyright): New rule.
17992
17993         maint: indent with TABs in Makefile
17994         * Makefile: Expand leading sequences of spaces to TABs
17995
17996         version-etc: update the copyright year it reports
17997         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17998
17999 2010-12-31  Bruno Haible  <bruno@clisp.org>
18000
18001         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18002         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18003         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18004         zero.
18005
18006 2010-12-31  Bruno Haible  <bruno@clisp.org>
18007
18008         pwrite: Work around HP-UX 11.11 bug.
18009         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18010         works and set REPLACE_PWRITE if not.
18011         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18012         function.
18013         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18014
18015 2010-12-31  Bruno Haible  <bruno@clisp.org>
18016
18017         pread: Work around HP-UX 11 bugs.
18018         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18019         and set REPLACE_PREAD if not.
18020         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18021
18022 2010-12-31  Eric Blake  <eblake@redhat.com>
18023
18024         nl_langinfo: fix YESEXPR on Irix 6.5
18025         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18026         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18027         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18028         it.
18029
18030 2010-12-31  Bruno Haible  <bruno@clisp.org>
18031
18032         iconv: Document HP-UX 11 bug.
18033         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18034
18035 2010-12-31  Bruno Haible  <bruno@clisp.org>
18036
18037         ldexpl: Fix link error on HP-UX 11.
18038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18039         LDEXPL_LIBM, using $ISNANL_LIBM.
18040
18041 2010-12-31  Eric Blake  <eblake@redhat.com>
18042
18043         ftello: avoid compilation failure with SunStudio c89
18044         * lib/ftello.c (ftello): Use lseek, not llseek.
18045
18046         tests: avoid failing coreutils tests on cygwin
18047         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18048         (create_exe_shims_): Return 0 when skipping.
18049
18050 2010-12-31  Bruno Haible  <bruno@clisp.org>
18051
18052         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18053         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18054
18055 2010-12-31  Bruno Haible  <bruno@clisp.org>
18056
18057         waitpid: Fix link error in C++ mode.
18058         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18059
18060 2010-12-31  Bruno Haible  <bruno@clisp.org>
18061
18062         isnan: Use GCC built-ins when possible.
18063         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18064         __builtin_isnan.
18065         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18066         (isnan): Define using GCC built-ins for GCC >= 4.0.
18067
18068 2010-12-31  Bruno Haible  <bruno@clisp.org>
18069
18070         isnand: Fix mistake.
18071         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18072         __builtin_isnand.
18073
18074 2010-12-31  Bruno Haible  <bruno@clisp.org>
18075
18076         open: Avoid C++ error on HP-UX 11.
18077         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18078
18079 2010-12-31  Bruno Haible  <bruno@clisp.org>
18080
18081         time_r: Add missing declarations on HP-UX 11.
18082         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18083         instead of HAVE_LOCALTIME_R.
18084         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18085         HAVE_LOCALTIME_R always.
18086         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18087         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18088         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18089         HAVE_LOCALTIME_R.
18090         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18091         * doc/posix-functions/localtime_r.texi: Likewise.
18092
18093 2010-12-29  Eric Blake  <eblake@redhat.com>
18094
18095         mountlist: tweak previous commit
18096         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18097         Reported by Paul Eggert.
18098
18099         mountlist: fix local drive detection on cygwin
18100         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18101         that works for cygwin.
18102
18103 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18104
18105         ftoastr, snprintf: ftoastr + snprintf module
18106         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18107         since the snprintf module now should be good enough here.
18108         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18109         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18110         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18111         GNULIB_SNPRINTF only for the test directory, and the latter
18112         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18113         seems to suffice by itself.
18114
18115 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18116
18117         alloca: one step towards thread-safety
18118         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18119         need for a static variable.  All callers changed.  This does not
18120         make the alloca replacement thread-safe, but it's one step.
18121
18122         tests: minor indenting change
18123         * tests/init.sh: Sync from coreutils housekeeping patch
18124         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18125         to keep lines within 80 columns.
18126
18127 2010-12-28  Jim Meyering  <meyering@redhat.com>
18128
18129         regex: don't infloop on persistent failing calloc
18130         * lib/regexec.c (build_trtable): Return failure indication upon
18131         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18132         In glibc, this was fixed for version 2.13:
18133         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18134
18135 2010-12-28  Bruno Haible  <bruno@clisp.org>
18136             Paul Eggert <eggert@cs.ucla.edu>
18137
18138         linkat: Make implementation robust against system behaviour variations.
18139         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18140         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18141         way, and to -2 if it needs a generic runtime test.
18142         * lib/linkat.c (solaris_optimized_link_immediate,
18143         solaris_optimized_link_follow): New functions.
18144         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18145         (check_same_link): Use it.
18146
18147 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18148
18149         New module 'unigbrk/base'.
18150         * modules/unigbrk/base: New file.
18151         * lib/unigbrk.in.h: New file.
18152
18153         New module 'unigbrk/uc-gbrk-prop'.
18154         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18155         * modules/unigbrk/uc-gbrk-prop: New file.
18156         * lib/unigbrk/gbrkprop.h: New file.
18157         * lib/unigbrk/uc-gbrk-prop.c: New file.
18158
18159         New module 'unigbrk/uc-is-grapheme-break'.
18160         * modules/unigbrk/uc-is-grapheme-break: New file.
18161         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18162         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18163         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18164         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18165         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18166
18167         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18168
18169 2010-12-27  Bruno Haible  <bruno@clisp.org>
18170
18171         linkat test: Avoid failure on Solaris 11 2010-11.
18172         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18173
18174 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18175
18176         utimens: work around glibc rounding bug on more platforms
18177         * lib/utimens.c (fdutimens): Work around rounding bug even if
18178         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18180
18181 2010-12-27  Bruno Haible  <bruno@clisp.org>
18182
18183         select tests: Improve comments.
18184         * tests/test-select.c (do_select): Add comments.
18185
18186 2010-12-27  Bruno Haible  <bruno@clisp.org>
18187
18188         select tests: Safer way of handling timeout.
18189         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18190         at every invocation.
18191
18192 2010-12-27  Bruno Haible  <bruno@clisp.org>
18193
18194         select tests: Use 'bool' where appropriate.
18195         * tests/test-select.c (connect_to_socket): Change argument type to
18196         'bool'.
18197
18198 2010-12-27  Bruno Haible  <bruno@clisp.org>
18199
18200         select tests: Use existing modules.
18201         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18202         (configure.ac): Don't test for unistd.h.
18203         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18204         declared in <unistd.h>.
18205
18206 2010-12-27  Bruno Haible  <bruno@clisp.org>
18207
18208         mbrtowc: Work around a Solaris 7 bug.
18209         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18210         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18211         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18212         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18213         MBRTOWC_NULL_ARG1_BUG.
18214         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18215         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18216         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18217         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18218
18219 2010-12-27  Jim Meyering  <meyering@redhat.com>
18220
18221         read-file.c: tweak syntax
18222         * lib/read-file.c (fread_file): Remove space after "*" in function
18223         definitions.
18224
18225 2010-12-27  Bruno Haible  <bruno@clisp.org>
18226
18227         times test: Avoid gcc warnings on OSF/1.
18228         * tests/test-times.c (main): Cast printf arguments from clock_t to
18229         'long int'.
18230
18231 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18232
18233         utimens: work around glibc rounding bug on older Linux kernels
18234         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18235         on Linux with a glibc whose utimes might not work, then work
18236         around a longstanding glibc bug involving rounding rather than
18237         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18238         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18239
18240 2010-12-26  Bruno Haible  <bruno@clisp.org>
18241
18242         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18243         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18244         _GL_CXXALIAS_SYS.
18245         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18246
18247 2010-12-26  Bruno Haible  <bruno@clisp.org>
18248
18249         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18250         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18251         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18252         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18253         looking for the declaration.
18254         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18255         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18256         problem.
18257         * doc/posix-functions/inet_pton.texi: Likewise.
18258
18259 2010-12-26  Bruno Haible  <bruno@clisp.org>
18260
18261         arpa_inet: Use the common idioms with C++ support.
18262         * lib/arpa_inet.in.h: Include c++defs.h.
18263         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18264         support.
18265         * modules/arpa_inet (Depends-on): Add c++defs.
18266         (Makefile.am): Substitute the contents of c++defs.h.
18267         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18268         * modules/arpa_inet-c++-tests: New file.
18269         * tests/test-arpa_inet-c++.cc: New file.
18270
18271 2010-12-25  Bruno Haible  <bruno@clisp.org>
18272
18273         Fix more C++ link errors on Solaris 8.
18274         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18275         $(LIB_EACCESS).
18276         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18277         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18278         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18279         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18280         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18281
18282 2010-12-25  Bruno Haible  <bruno@clisp.org>
18283
18284         printf-posix: Fix link error when a non-GCC compiler is used.
18285         * lib/stdio.in.h (printf): When not using GCC, override printf
18286         correctly.
18287         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18288
18289 2010-12-25  Bruno Haible  <bruno@clisp.org>
18290
18291         strerror_r-posix: Update doc.
18292         * doc/posix-functions/strerror_r.texi: Update doc about the return
18293         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18294
18295 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         utimens: simplify the logic of the previous change
18298         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18299         This should not affect whether the test succeeds or fails.
18300
18301         utimens: configure better on hosts with NFS clock skew
18302         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18303         uses the clock of the local host.  It might use the clock of the
18304         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18305         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18306
18307 2010-12-25  Bruno Haible  <bruno@clisp.org>
18308
18309         ptsname test: Avoid failure on Solaris.
18310         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18311         open a pseudo-terminal; don't use BSD-style ptys.
18312         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18313
18314 2010-12-25  Bruno Haible  <bruno@clisp.org>
18315
18316         ptsname: Avoid ERANGE failure on some systems.
18317         * lib/ptsname.c (buffer): Increase size.
18318
18319 2010-12-25  Bruno Haible  <bruno@clisp.org>
18320
18321         rename, renameat: Avoid test failures at NFS mounted locations.
18322         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18323         so that subsequent mkdir calls succeed.
18324
18325 2010-12-25  Bruno Haible  <bruno@clisp.org>
18326
18327         iswblank: Fix C++ link error on Solaris 8.
18328         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18329         _GL_FUNCDECL_SYS.
18330
18331 2010-12-25  Bruno Haible  <bruno@clisp.org>
18332
18333         unistd: Fix C++ link error on Solaris 8.
18334         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18335
18336 2010-12-25  Bruno Haible  <bruno@clisp.org>
18337
18338         readlink doc: Mention an old glibc bug.
18339         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18340
18341 2010-12-25  Bruno Haible  <bruno@clisp.org>
18342
18343         fcntl-h: Fix for use of C++ on glibc systems.
18344         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18345         also on glibc systems in C++ mode.
18346         Reported by Gary V. Vaughan <gary@gnu.org>.
18347
18348 2010-12-25  Bruno Haible  <bruno@clisp.org>
18349
18350         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18351         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18352
18353 2010-12-25  Bruno Haible  <bruno@clisp.org>
18354
18355         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18356         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18357         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18358         test whether truncl works according to ISO C 99 with IEC 60559.
18359         * m4/truncl-ieee.m4: New file.
18360         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18361         m4/signbit.m4.
18362         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18363
18364 2010-12-25  Bruno Haible  <bruno@clisp.org>
18365
18366         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18367         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18368         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18369         test whether ceill works according to ISO C 99 with IEC 60559.
18370         * m4/ceill-ieee.m4: New file.
18371         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18372         m4/signbit.m4.
18373         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18374
18375 2010-12-25  Bruno Haible  <bruno@clisp.org>
18376
18377         Ensure all prerequisites of <wchar.h> are included.
18378         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18379         before <wchar.h>.
18380         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18381         gl_MBRLEN_NUL_RETVAL): Likewise.
18382         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18383         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18384         AC_FUNC_MBRTOWC): Likewise.
18385         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18386         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18387         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18388         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18389         Likewise.
18390         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18391         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18392         (gl_WCHAR_H): Improve comments.
18393         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18394
18395 2010-12-25  Bruno Haible  <bruno@clisp.org>
18396
18397         strtok_r: Fix C syntax error in autoconf macro.
18398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18399         characters in test program.
18400
18401 2010-12-24  Bruno Haible  <bruno@clisp.org>
18402
18403         ceil, trunc, round: Fix gcc warnings.
18404         * lib/ceil.c (MIN): Undefine before redefining.
18405         * lib/trunc.c (MIN): Likewise.
18406         * lib/round.c (MIN): Likewise.
18407         Include <math.h> first.
18408
18409 2010-12-24  Bruno Haible  <bruno@clisp.org>
18410
18411         select tests: Avoid failures on OSF/1 5.1.
18412         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18413         failure of closing the last socket; it may fail with ECONNRESET.
18414
18415 2010-12-24  Eric Blake  <eblake@redhat.com>
18416
18417         stdint: avoid HP-UX 10.20 preprocessor bug
18418         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18419         than #if.
18420         * tests/test-floor2.c (main): Likewise.
18421         Reported by Peter O'Gorman.
18422
18423         pipe: make obsoletion transition easier
18424         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18425         * modules/pipe (Files): Include revived file.
18426         (Include): Drop reference, to mirror getdate's behavior.
18427
18428 2010-12-24  Bruno Haible  <bruno@clisp.org>
18429
18430         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18431         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18432         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18434
18435 2010-12-24  Bruno Haible  <bruno@clisp.org>
18436
18437         gethostname: Ensure declaration on NonStop Kernel.
18438         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18439         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18440
18441 2010-12-24  Bruno Haible  <bruno@clisp.org>
18442
18443         sys_select: Ensure all necessary types on NonStop Kernel.
18444         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18445         include <sys/time.h>.
18446         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18447         NonStop Kernel.
18448         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18449
18450 2010-12-24  Bruno Haible  <bruno@clisp.org>
18451
18452         sys_select: Remove unneeded include.
18453         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18454         have <sys/select.h>.
18455
18456 2010-12-24  Bruno Haible  <bruno@clisp.org>
18457
18458         gethostname: Provide a fallback for HOST_NAME_MAX.
18459         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18460         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18461         instead.
18462         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18463
18464 2010-12-24  Bruno Haible  <bruno@clisp.org>
18465
18466         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18467         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18468         (SA_RESTART): Likewise.
18469         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18470
18471 2010-12-24  Bruno Haible  <bruno@clisp.org>
18472
18473         signal: Define NSIG.
18474         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18475         * tests/test-signal.c (nsig): New variable.
18476         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18477
18478 2010-12-24  Bruno Haible  <bruno@clisp.org>
18479
18480         rename, renameat: Avoid test failures on OSF/1 5.1.
18481         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18482         alternative error codes.
18483         * tests/test-renameat.c (main): Likewise.
18484
18485 2010-12-24  Bruno Haible  <bruno@clisp.org>
18486
18487         *printf: Detect large precisions bug on Solaris 10/SPARC.
18488         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18489         by Paul Eggert.
18490         * tests/test-snprintf-posix.h (test_function): Add this test code here
18491         too.
18492         * tests/test-sprintf-posix.h (test_function): Likewise.
18493         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18494         * tests/test-vasprintf-posix.c (test_function): Likewise.
18495         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18496         around by gnulib.
18497         * doc/posix-functions/printf.texi: Likewise.
18498         * doc/posix-functions/snprintf.texi: Likewise.
18499         * doc/posix-functions/sprintf.texi: Likewise.
18500         * doc/posix-functions/vfprintf.texi: Likewise.
18501         * doc/posix-functions/vprintf.texi: Likewise.
18502         * doc/posix-functions/vsnprintf.texi: Likewise.
18503         * doc/posix-functions/vsprintf.texi: Likewise.
18504         * doc/posix-functions/dprintf.texi: Undo last commit.
18505         * doc/posix-functions/vdprintf.texi: Likewise.
18506
18507 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18508
18509         tests: port test-fdutimensat.c to Solaris 8
18510         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18511         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18512         On Solaris 8, it fails with errno == ENOSYS, because there is no
18513         futimens (so it can't use the fd), and there is no lutimens (so it
18514         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18515
18516         vsnprintf: make more consistent with snprintf; doc fixes
18517
18518         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18519         the byte count return problem was promoted from the snprintf-posix
18520         to the snprintf module.
18521         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18522         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18523         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18524         * tests/test-snprintf.c (main): Check the byte count returned.
18525         * tests/test-vsnprintf.c (main): Likewise.
18526
18527 2010-12-23  Eric Blake  <eblake@redhat.com>
18528
18529         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18530         * modules/sigpipe (License): Relax license.
18531
18532 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18533
18534         doc: document Solaris printf bug with large float precisions
18535         * doc/posix-functions/dprintf.texi (dprintf):
18536         * doc/posix-functions/fprintf.texi (fprintf):
18537         * doc/posix-functions/printf.texi (printf):
18538         * doc/posix-functions/snprintf.texi (snprintf):
18539         * doc/posix-functions/sprintf.texi (sprintf):
18540         * doc/posix-functions/vdprintf.texi (vdprintf):
18541         * doc/posix-functions/vfprintf.texi (vfprintf):
18542         * doc/posix-functions/vprintf.texi (vprintf):
18543         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18544         * doc/posix-functions/vsprintf.texi (vsprintf):
18545         Mention that these functions mishandle large floating point
18546         precisions on Solaris 10.  The same bug is also present in Solaris
18547         8, and I assume earlier.  This causes "cd gnulib-tests; make
18548         check" to fail on Solaris 8 (and I assume, later) when building
18549         the latest coreutils, in test-vasprintf-posix's call to
18550         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18551         the wide flavors (e.g., wprintf) so this patch just updates the
18552         documentation for the narrow ones.
18553
18554         test-posixtm.c: add two tests
18555         * tests/test-posixtm.c: Add two tests, to highlight the
18556         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18557         around this bug; this is merely to document it.
18558
18559 2010-12-22  Bruno Haible  <bruno@clisp.org>
18560
18561         getlogin_r: Work around portability problem on OSF/1.
18562         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18563         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18564         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18565         test for a truncated result.
18566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18567         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18568         * modules/getlogin_r (Depends-on): Add memchr.
18569         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18570
18571 2010-12-22  Bruno Haible  <bruno@clisp.org>
18572
18573         ptsname: Avoid test failure on OSF/1 5.1.
18574         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18575         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18576         (same_slave): New function.
18577         (main): Use it to compare ptsname's result with the expected file name.
18578
18579 2010-12-22  Bruno Haible  <bruno@clisp.org>
18580
18581         Port extended stdio modules to HP NonStop Kernel.
18582         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18583         macros.
18584         * lib/fbufmode.c: Update comments.
18585         * lib/fflush.c: Likewise.
18586         * lib/fpurge.c: Likewise.
18587         * lib/freadable.c: Likewise.
18588         * lib/freadahead.c: Likewise.
18589         * lib/freading.c: Likewise.
18590         * lib/freadptr.c: Likewise.
18591         * lib/freadseek.c: Likewise.
18592         * lib/fseeko.c: Likewise.
18593         * lib/fseterr.c: Likewise.
18594         * lib/fwritable.c: Likewise.
18595         * lib/fwriting.c: Likewise.
18596         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18597
18598 2010-12-22  Bruno Haible  <bruno@clisp.org>
18599
18600         ttyname_r: Work around bug on OSF/1 5.1.
18601         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18602         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18603         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18604         present.
18605         * lib/ttyname_r.c (ttyname_r): Update comments.
18606
18607 2010-12-22  Bruno Haible  <bruno@clisp.org>
18608
18609         round: Implement result sign according to IEEE 754.
18610         * lib/round.c (MIN, MINUS_ZERO): New macros.
18611         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18612         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18613         * tests/test-round-ieee.c (main): Likewise.
18614         * tests/test-roundl-ieee.c (main): Likewise.
18615
18616         trunc: Implement result sign according to IEEE 754.
18617         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18618         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18619         * tests/test-trunc2.c: Include minus-zero.h.
18620         (MINUS_ZERO): New macro.
18621         (trunc_reference): Keep in sync with lib/trunc.c.
18622         * tests/test-truncf2.c: Include minus-zero.h.
18623         (MINUS_ZERO): New macro.
18624         (truncf_reference): Keep in sync with lib/trunc.c.
18625         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18626         * tests/test-trunc-ieee.c (main): Likewise.
18627         * tests/test-truncl-ieee.c (main): Likewise.
18628
18629         ceil: Implement result sign according to IEEE 754.
18630         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18631         (FUNC): Return -0.0 for -1 < x < 0.
18632         * tests/test-ceil2.c: Include minus-zero.h.
18633         (MINUS_ZERO): New macro.
18634         (ceil_reference): Keep in sync with lib/ceil.c.
18635         * tests/test-ceilf2.c: Include minus-zero.h.
18636         (MINUS_ZERO): New macro.
18637         (ceilf_reference): Keep in sync with lib/ceil.c.
18638         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18639         * tests/test-ceil-ieee.c (main): Likewise.
18640         * tests/test-ceill-ieee.c (main): Likewise.
18641
18642         floor: Implement result sign according to IEEE 754.
18643         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18644         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18645         * tests/test-floorf2.c (floorf_reference): Likewise.
18646         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18647         * tests/test-floor-ieee.c (main): Likewise.
18648         * tests/test-floorl-ieee.c (main): Likewise.
18649
18650 2010-12-22  Bruno Haible  <bruno@clisp.org>
18651
18652         getaddrinfo: Update doc.
18653         * doc/posix-functions/gai_strerror.texi: Return type is also different
18654         on AIX and HP-UX.
18655
18656 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18657
18658         getaddrinfo, inet_ntop: Update doc for Solaris.
18659         * doc/posix-functions/gai_strerror.texi: Return type is also an
18660         issue on Solaris 9 and earlier.
18661         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18662         on Solaris 10 and earlier.
18663
18664 2010-12-21  Bruno Haible  <bruno@clisp.org>
18665
18666         New module 'roundl-ieee'.
18667         * modules/roundl-ieee: New file.
18668         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18669         test whether roundl works according to ISO C 99 with IEC 60559.
18670         * m4/roundl-ieee.m4: New file.
18671         * modules/roundl-ieee-tests: New file.
18672         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18673         * tests/test-roundl.c (main): Remove signbit tests.
18674         * modules/roundl-tests (Depends-on): Remove signbit.
18675         * doc/posix-functions/roundl.texi: Mention the new module.
18676
18677 2010-12-21  Bruno Haible  <bruno@clisp.org>
18678
18679         New module 'truncl-ieee'.
18680         * modules/truncl-ieee: New file.
18681         * modules/truncl-ieee-tests: New file.
18682         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18683         * tests/test-truncl.c (main): Remove signbit tests.
18684         * modules/truncl-tests (Depends-on): Remove signbit.
18685         * doc/posix-functions/truncl.texi: Mention the new module.
18686
18687 2010-12-21  Bruno Haible  <bruno@clisp.org>
18688
18689         New module 'ceill-ieee'.
18690         * modules/ceill-ieee: New file.
18691         * modules/ceill-ieee-tests: New file.
18692         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18693         * tests/test-ceill.c (main): Remove signbit tests.
18694         * modules/ceill-tests (Depends-on): Remove signbit.
18695         * doc/posix-functions/ceill.texi: Mention the new module.
18696
18697 2010-12-21  Bruno Haible  <bruno@clisp.org>
18698
18699         New module 'floorl-ieee'.
18700         * modules/floorl-ieee: New file.
18701         * modules/floorl-ieee-tests: New file.
18702         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18703         * tests/test-floorl.c (main): Remove signbit tests.
18704         * modules/floorl-tests (Depends-on): Remove signbit.
18705         * doc/posix-functions/floorl.texi: Mention the new module.
18706
18707 2010-12-21  Bruno Haible  <bruno@clisp.org>
18708
18709         New module 'round-ieee'.
18710         * modules/round-ieee: New file.
18711         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18712         whether round works according to ISO C 99 with IEC 60559.
18713         * m4/round-ieee.m4: New file.
18714         * modules/round-ieee-tests: New file.
18715         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18716         * tests/test-round1.c (main): Remove signbit tests.
18717         * modules/round-tests (Depends-on): Remove 'signbit'.
18718         * doc/posix-functions/round.texi: Mention the new module.
18719
18720 2010-12-21  Bruno Haible  <bruno@clisp.org>
18721
18722         New module 'trunc-ieee'.
18723         * modules/trunc-ieee: New file.
18724         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18725         whether trunc works according to ISO C 99 with IEC 60559.
18726         * m4/trunc-ieee.m4: New file.
18727         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18729         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18730         * modules/trunc-ieee-tests: New file.
18731         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18732         * tests/test-trunc1.c (main): Remove signbit tests.
18733         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18734         * doc/posix-functions/trunc.texi: Mention the new module.
18735
18736 2010-12-21  Bruno Haible  <bruno@clisp.org>
18737
18738         New module 'ceil-ieee'.
18739         * modules/ceil-ieee: New file.
18740         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18741         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18742         ISO C 99 with IEC 60559.
18743         * m4/ceil-ieee.m4: New file.
18744         * modules/ceil (Files): Add lib/ceil.c.
18745         (Depends-on): Add 'float'.
18746         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18747         * lib/math.in.h (ceil): New declaration.
18748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18749         REPLACE_CEIL.
18750         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18751         * modules/ceil-ieee-tests: New file.
18752         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18753         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18754         * doc/posix-functions/ceil.texi: Mention the new module.
18755
18756 2010-12-21  Bruno Haible  <bruno@clisp.org>
18757
18758         New module 'floor-ieee'.
18759         * modules/floor-ieee: New file.
18760         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18761         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18762         ISO C 99 with IEC 60559.
18763         * m4/floor-ieee.m4: New file.
18764         * modules/floor (Files): Add lib/floor.c.
18765         (Depends-on): Add 'float'.
18766         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18767         * lib/math.in.h (floor): New declaration.
18768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18769         REPLACE_FLOOR.
18770         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18771         * modules/floor-ieee-tests: New file.
18772         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18773         * tests/test-math-c++.cc: Check the signature of 'floor'.
18774         * doc/posix-functions/floor.texi: Mention the new module.
18775
18776 2010-12-21  Bruno Haible  <bruno@clisp.org>
18777
18778         New module 'roundf-ieee'.
18779         * modules/roundf-ieee: New file.
18780         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18781         test whether roundf works according to ISO C 99 with IEC 60559.
18782         * m4/roundf-ieee.m4: New file.
18783         * modules/roundf-ieee-tests: New file.
18784         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18785         * tests/test-roundf1.c (main): Remove signbit tests.
18786         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18787         * doc/posix-functions/roundf.texi: Mention the new module.
18788
18789 2010-12-21  Bruno Haible  <bruno@clisp.org>
18790
18791         New module 'truncf-ieee'.
18792         * modules/truncf-ieee: New file.
18793         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18794         test whether truncf works according to ISO C 99 with IEC 60559.
18795         * m4/truncf-ieee.m4: New file.
18796         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18798         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18799         * modules/truncf-ieee-tests: New file.
18800         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18801         * tests/test-truncf1.c (main): Remove signbit tests.
18802         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18803         * doc/posix-functions/truncf.texi: Mention the new module.
18804
18805 2010-12-21  Bruno Haible  <bruno@clisp.org>
18806
18807         New module 'ceilf-ieee'.
18808         * modules/ceilf-ieee: New file.
18809         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18810         test whether ceilf works according to ISO C 99 with IEC 60559.
18811         * m4/ceilf-ieee.m4: New file.
18812         * modules/ceilf-ieee-tests: New file.
18813         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18814         * tests/test-ceilf1.c (main): Remove signbit tests.
18815         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18816         * doc/posix-functions/ceilf.texi: Mention the new module.
18817
18818 2010-12-21  Bruno Haible  <bruno@clisp.org>
18819
18820         New module 'floorf-ieee'.
18821         * modules/floorf-ieee: New file.
18822         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18823         test whether floorf works according to ISO C 99 with IEC 60559.
18824         * m4/floorf-ieee.m4: New file.
18825         * modules/floorf-ieee-tests: New file.
18826         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18827         * tests/test-floorf1.c (main): Remove signbit tests.
18828         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18829         * doc/posix-functions/floorf.texi: Mention the new module.
18830
18831 2010-12-21  Bruno Haible  <bruno@clisp.org>
18832
18833         Support for minus zero in autoconf macros.
18834         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18835         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18836         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18837         * tests/minus-zero.h: Update comments.
18838
18839 2010-12-21  Bruno Haible  <bruno@clisp.org>
18840
18841         Tests for module 'ceil'.
18842         * modules/ceil-tests: New file.
18843         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18844         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18845
18846 2010-12-21  Bruno Haible  <bruno@clisp.org>
18847
18848         Tests for module 'floor'.
18849         * modules/floor-tests: New file.
18850         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18851         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18852
18853 2010-12-21  Bruno Haible  <bruno@clisp.org>
18854
18855         math: Fix indentation.
18856         * lib/math.in.h (floorf): Fix indentation.
18857
18858 2010-12-21  Bruno Haible  <bruno@clisp.org>
18859
18860         Fix cross-compilation guesses on Solaris.
18861         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18862         not match "solaris2.10".
18863         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18864         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18865         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18866
18867 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18868
18869         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18870         This fixes a problem observed with the latest coreutils snapshot
18871         that caused a test to fail on Solaris 8.  src/csplit.c's call
18872         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18873         earlier, instead of returning the number of bytes that would have
18874         been generated; this causes csplit to incorrectly report memory
18875         exhaustion.
18876         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18877         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18878         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18879         comments to match.
18880         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18881         Fix typo in matching older versions of Solaris: "solaris2.10"
18882         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18883         only for guessing while cross-compiling.
18884         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18885
18886 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18887
18888         ftoastr: fix comment again
18889         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18891         Also, simplify example a bit by using flags = 0.
18892
18893 2010-12-20  Bruno Haible  <bruno@clisp.org>
18894
18895         round*, trunc*: Update documentation regarding glibc.
18896         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18897         * doc/posix-functions/round.texi: Likewise.
18898         * doc/posix-functions/roundl.texi: Likewise.
18899         * doc/posix-functions/truncf.texi: Likewise.
18900         * doc/posix-functions/trunc.texi: Likewise.
18901         * doc/posix-functions/truncl.texi: Likewise.
18902
18903 2010-12-20  Bruno Haible  <bruno@clisp.org>
18904
18905         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18906         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18907         * doc/posix-functions/round.texi: Likewise.
18908         * doc/posix-functions/roundl.texi: Likewise.
18909
18910 2010-12-20  Bruno Haible  <bruno@clisp.org>
18911
18912         ttyname_r: Add missing declaration on HP-UX 11.
18913         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18914         HAVE_TTYNAME_R.
18915         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18916         declared. Set HAVE_TTYNAME_R always.
18917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18918         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18919         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18920         HAVE_TTYNAME_R.
18921         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18922
18923 2010-12-20  Bruno Haible  <bruno@clisp.org>
18924
18925         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18926         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18927         * doc/posix-functions/getlogin_r.texi: Likewise.
18928         * tests/test-getlogin.c: Include <errno.h>.
18929         (main): Avoid test failure on HP-UX 11.11.
18930         * tests/test-getlogin_r.c (main): Likewise.
18931
18932 2010-12-20  Bruno Haible  <bruno@clisp.org>
18933
18934         getlogin_r: Add missing declaration on HP-UX 11.
18935         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18936         declared also when it exists as a function.
18937         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18938
18939 2010-12-20  Bruno Haible  <bruno@clisp.org>
18940
18941         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18942         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18943         through wcrtomb.
18944
18945 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18946
18947         ftoastr: fix comment
18948         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18950
18951 2010-12-19  Bruno Haible  <bruno@clisp.org>
18952
18953         isnan: Ensure it is a macro.
18954         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18955         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18956         Solaris.
18957
18958 2010-12-19  Bruno Haible  <bruno@clisp.org>
18959
18960         ldexpl test: Fix link error on OSF/1 5.1.
18961         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18962
18963 2010-12-19  Bruno Haible  <bruno@clisp.org>
18964
18965         wctype: Make it work in C++ mode on OSF/1 5.1.
18966         * lib/wctype.in.h (iswblank): Declare but not define here.
18967         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18968         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18969         * modules/wctype (Files): Add lib/iswblank.c.
18970
18971 2010-12-19  Bruno Haible  <bruno@clisp.org>
18972
18973         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18974         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18975         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18976
18977 2010-12-19  Bruno Haible  <bruno@clisp.org>
18978
18979         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18980         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18981         _POSIX_PII_SOCKET.
18982         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18983         * doc/posix-functions/recvfrom.texi: Likewise.
18984         * doc/posix-functions/send.texi: Likewise.
18985         * doc/posix-functions/sendto.texi: Likewise.
18986
18987 2010-12-19  Bruno Haible  <bruno@clisp.org>
18988
18989         tcgetsid: Add missing declaration on OSF/1 5.1.
18990         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18991         HAVE_TCGETSID.
18992         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18993         Don't set HAVE_TCGETSID.
18994         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18995         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18996         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18997         HAVE_TCGETSID.
18998         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18999
19000 2010-12-19  Bruno Haible  <bruno@clisp.org>
19001
19002         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19003         * lib/stdio.in.h: During the include_next statement, let recursive
19004         includes of this file include only the system header file.
19005
19006 2010-12-19  Bruno Haible  <bruno@clisp.org>
19007
19008         iconv_open: Fix regression from 2010-12-04.
19009         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19010         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19011
19012 2010-12-19  Bruno Haible  <bruno@clisp.org>
19013
19014         stdbool test: Avoid a gcc warning.
19015         * tests/test-stdbool.c (main): Fail if e1 is false.
19016         Reported by Jim Meyering.
19017
19018 2010-12-19  Jim Meyering  <meyering@redhat.com>
19019
19020         setenv: restore to working order
19021         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19022         mistakenly removed.
19023         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19024         HAVE_SETENV.
19025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19026         HAVE_SETENV.
19027
19028 2010-12-19  Bruno Haible  <bruno@clisp.org>
19029
19030         Document some different function declarations on OSF/1 5.1.
19031         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19032         * doc/posix-functions/inet_ntop.texi: Likewise.
19033         * doc/posix-functions/gethostname.texi: Likewise.
19034         * lib/unistd.in.h (gethostname): Update comment.
19035
19036 2010-12-19  Bruno Haible  <bruno@clisp.org>
19037
19038         doc: Mention vasprintf-posix module.
19039         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19040         the 'vasprintf-posix' module.
19041         * doc/glibc-functions/vasprintf.texi: Likewise.
19042
19043 2010-12-19  Bruno Haible  <bruno@clisp.org>
19044
19045         unsetenv: Add missing declaration on OSF/1 5.1.
19046         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19047         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19048         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19050         not HAVE_UNSETENV.
19051         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19052         HAVE_UNSETENV.
19053         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19054
19055 2010-12-19  Bruno Haible  <bruno@clisp.org>
19056
19057         setenv: Add missing declaration on OSF/1 5.1.
19058         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19059         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19060         declared. Don't set HAVE_SETENV.
19061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19062         not HAVE_SETENV.
19063         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19064         HAVE_SETENV.
19065         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19066
19067 2010-12-19  Bruno Haible  <bruno@clisp.org>
19068
19069         nl_langinfo tests: Avoid gcc warning.
19070         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19071
19072 2010-12-19  Bruno Haible  <bruno@clisp.org>
19073
19074         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19075         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19076         _GL_CXXALIAS_SYS.
19077
19078 2010-12-19  Bruno Haible  <bruno@clisp.org>
19079
19080         stdbool: Relax test.
19081         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19082         address to 'bool' work in static initializer, for compilers other than
19083         GCC.
19084
19085 2010-12-19  Bruno Haible  <bruno@clisp.org>
19086
19087         ftello: Add missing declaration on OSF/1 5.1.
19088         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19089         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19091         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19092         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19093
19094 2010-12-19  Bruno Haible  <bruno@clisp.org>
19095
19096         fseeko: Add missing declaration on OSF/1 5.1.
19097         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19098         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19100         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19101         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19102
19103 2010-12-19  Bruno Haible  <bruno@clisp.org>
19104
19105         fchdir: Add missing declaration on OSF/1 5.1.
19106         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19109         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19110         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19111
19112 2010-12-19  Bruno Haible  <bruno@clisp.org>
19113
19114         relocatable-prog-wrapper: Separate from relocatable-prog.
19115         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19116         uninstall-relocwrapper rule here.
19117         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19118         Reported by Ian Beckwith <ianb@erislabs.net>.
19119
19120 2010-12-19  Bruno Haible  <bruno@clisp.org>
19121
19122         unistr/u8-mbsnlen: Add missing dependency.
19123         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19124         Reported by Ian Beckwith <ianb@erislabs.net>.
19125
19126 2010-12-19  Bruno Haible  <bruno@clisp.org>
19127
19128         iconv: Make it possible again to use this module without 'iconv-h'.
19129         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19130         if it is not defined.
19131         Reported by Ian Beckwith <ianb@erislabs.net>.
19132
19133 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19134
19135         acl: port to Solaris 8 when copying from tmpfs to ufs
19136         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19137         error number.  Problem observed on Solaris 8 with latest
19138         coreutils, with "mv A B", where A is on a tmpfs file system and B
19139         is on a ufs file system.  This caused coreutils' mv/part-symlink
19140         test to fail.
19141
19142         tests: set fail=0 at start
19143         * tests/init.sh (setup_): Move fail=0 initialization here ...
19144         (mktempd_): ... from here, so that tests can rely on fail being
19145         set to 0 initially.  This fixes a problem in coreutils; see:
19146         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19147
19148 2010-12-18  Bruno Haible  <bruno@clisp.org>
19149
19150         memmem-simple: Stylistic changes.
19151         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19152         Fix preprocessor directive indentation.
19153
19154 2010-12-15  Pádraig Brady <P@draigBrady.com>
19155
19156         memmem, memmem-simple: reorganize and expand empty needle check
19157         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19158         functional checks to memmem-simple so that one has a fully functional
19159         memmem by using just this module.
19160         Restrict the performance only check to the memmem module.
19161         Also expand the empty needle check to ensure the correct
19162         pointer is returned, not just a non NULL pointer.
19163         * doc/glibc-functions/memmem.texi: Rearrange the portability
19164         documentation to correlate with the rearranged checks.
19165         Clarify exactly how the memmem and memmem-simple modules
19166         relate to each other.
19167
19168 2010-12-15  Pádraig Brady <P@draigBrady.com>
19169             Bruno Haible  <bruno@clisp.org>
19170
19171         Improve cross-compilation guesses for uClibc.
19172         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19173         that uClibc does not have the glibc bug.
19174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19175         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19176
19177 2010-12-14  Eric Blake  <eblake@redhat.com>
19178
19179         configmake: provide fallbacks for oldest supported autotools
19180         * m4/configmake.m4: New file.
19181         * modules/configmake (Files): Ship it.
19182         (configure.ac): Use it to guarantee fallbacks.
19183
19184 2010-12-13  Pádraig Brady <P@draigBrady.com>
19185
19186         read-file: Improve handling of large files
19187         * lib/read-file.c (fread_file): Minimize realloc()s
19188         for regular files, and better manage sizes around SIZE_MAX.
19189
19190 2010-12-13  Eric Blake  <eblake@redhat.com>
19191
19192         cloexec, fcntl: relax license
19193         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19194         consent from all contributors.
19195         * modules/fcntl (License): Likewise.
19196
19197 2010-12-10  Bruno Haible  <bruno@clisp.org>
19198
19199         Tests for module 'pipe-posix'.
19200         * modules/pipe-posix-tests: New file.
19201         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19202
19203 2010-12-10  Bruno Haible  <bruno@clisp.org>
19204
19205         pipe-posix: Make it work in C++ mode.
19206         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19207         (pipe): Use common idiom, not a macro definition.
19208         * lib/pipe.c: New file.
19209         * m4/pipe.m4: New file.
19210         * modules/pipe-posix (Description): Enhance.
19211         (Files): Add lib/pipe.c, m4/pipe.m4.
19212         (configure.ac): Invoke gl_FUNC_PIPE.
19213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19214         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19215         * tests/test-unistd-c++.cc: Check the signature of pipe.
19216
19217 2010-12-10  Bruno Haible  <bruno@clisp.org>
19218
19219         Rename module 'pipe' to 'spawn-pipe'.
19220         * modules/spawn-pipe: New file, renamed from modules/pipe.
19221         (Files, configure.ac, Makefile.am): Update.
19222         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19223         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19224         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19225         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19226         "spawn-pipe.h" instead of "pipe.h".
19227         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19228         to gl_SPAWN_PIPE.
19229         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19230         (Files, Makefile.am): Update.
19231         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19232         Update.
19233         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19234         Include "spawn-pipe.h" instead of "pipe.h".
19235         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19236         * lib/javacomp.c: Likewise.
19237         * lib/javaversion.c: Likewise.
19238         * lib/pipe-filter-gi.c: Likewise.
19239         * lib/pipe-filter-ii.c: Likewise.
19240         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19241         * modules/javacomp (Depends-on): Likewise.
19242         * modules/javaversion (Depends-on): Likewise.
19243         * modules/pipe-filter-gi (Depends-on): Likewise.
19244         * modules/pipe-filter-ii (Depends-on): Likewise.
19245         * MODULES.html.sh (Executing programs): Update.
19246         * NEWS: Mention the change.
19247
19248 2010-12-10  Eric Blake  <eblake@redhat.com>
19249
19250         pipe-posix: new module
19251         * modules/pipe-posix: New file.
19252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19253         (gl_UNISTD_H): Check for declaration.
19254         * modules/unistd (Makefile.am): Substitute it.
19255         * lib/unistd.in.h (pipe): Provide it for mingw.
19256         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19257         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19258
19259 2010-12-07  Bruno Haible  <bruno@clisp.org>
19260
19261         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19262         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19263         u8_strcmp_gnu.
19264         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19265
19266 2010-12-06  Bruno Haible  <bruno@clisp.org>
19267
19268         Update internal documentation.
19269         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19270
19271 2010-12-04  Bruno Haible  <bruno@clisp.org>
19272
19273         Put more information about failed tests into the test return codes.
19274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19275         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19276         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19277         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19278         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19280         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19281         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19282         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19284         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19285         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19286         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19287         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19288         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19289         returns a bit mask.
19290         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19291         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19292         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19293         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19298         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19300         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19301         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19302         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19304         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19305         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19306         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19307         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19308         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19309         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19310         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19311         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19313         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19314         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19315         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19316         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19317         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19318         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19319         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19320         gl_PRINTF_PRECISION): Likewise.
19321         * m4/regex.m4 (gl_REGEX): Likewise.
19322         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19323         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19324         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19325         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19329         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19330         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19331         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19332         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19333         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19334         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19335         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19336         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19337         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19338         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19339         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19341         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19342         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19343         enumerated value.
19344         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19345
19346 2010-12-04  Bruno Haible  <bruno@clisp.org>
19347
19348         Update for Solaris 11 2010-11.
19349         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19350         Express, released in November 2010.
19351
19352 2010-12-04  Bruno Haible  <bruno@clisp.org>
19353
19354         nproc: Relax license.
19355         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19356         and Paul Eggert.
19357         Requested by Ludovic Courtès <ludo@gnu.org>.
19358
19359 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19360
19361         utimecmp: fine-grained src to nearby coarse-grained dest
19362
19363         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19364         and the source is on a file system with higher-resolution time
19365         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19366         not work, and the time stamps are close together, the algorithm to
19367         determine the exact resolution from the read-back mtime was buggy:
19368         it had a "!=" where it should have had an "==".  This bug has been
19369         in the code ever since it was introduced to gnulib.
19370         Problem reported by Dan Jacobson in
19371         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19372
19373 2010-11-30  Bruno Haible  <bruno@clisp.org>
19374
19375         strerror_r-posix: Fix autoconf test.
19376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19377
19378 2010-11-28  Bruno Haible  <bruno@clisp.org>
19379             Paul Eggert  <eggert@cs.ucla.edu>
19380
19381         Tests for module 'getdomainname'.
19382         * modules/getdomainname-tests: New file.
19383         * tests/test-getdomainname.c: New file, based on
19384         tests/test-gethostname.c.
19385
19386 2010-11-28  Bruno Haible  <bruno@clisp.org>
19387             Paul Eggert  <eggert@cs.ucla.edu>
19388
19389         getdomainname: Use the system function when possible.
19390         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19391         (getdomainname): Replace if needed. Provide the declaration if it is
19392         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19393         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19394         (getdomainname): When the system has getdomainname, call the system
19395         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19396         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19397         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19398         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19399         the function if its second argument is of type 'int' or if it is found
19400         in libnsl.
19401         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19402         <sys/systeminfo.h> and sysinfo().
19403         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19405         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19406         HAVE_GETDOMAINNAME.
19407         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19408         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19409         * doc/glibc-functions/getdomainname.texi: Document the problems with
19410         the getdomainname declaration.
19411
19412 2010-11-28  Bruno Haible  <bruno@clisp.org>
19413
19414         sys_socket: Ensure ss_family field on AIX.
19415         * lib/sys_socket.in.h (ss_family): New macro definition.
19416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19417         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19418         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19419         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19420         * modules/sys_socket (Makefile.am): Substitute
19421         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19422         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19423
19424 2010-11-27  Bruno Haible  <bruno@clisp.org>
19425
19426         readline: Improve configure output.
19427         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19428         "checking for readline..." result understandable.
19429
19430 2010-11-27  Bruno Haible  <bruno@clisp.org>
19431
19432         *printf-posix: Detect a bug on Solaris 10/x86.
19433         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19434         for floating-point output.
19435         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19436         directive.
19437         * tests/test-snprintf-posix.h (test_function): Likewise.
19438         * tests/test-sprintf-posix.h (test_function): Likewise.
19439         * tests/test-vasprintf-posix.c (test_function): Likewise.
19440         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19441         * doc/posix-functions/printf.texi: Likewise.
19442         * doc/posix-functions/snprintf.texi: Likewise.
19443         * doc/posix-functions/sprintf.texi: Likewise.
19444         * doc/posix-functions/vfprintf.texi: Likewise.
19445         * doc/posix-functions/vprintf.texi: Likewise.
19446         * doc/posix-functions/vsnprintf.texi: Likewise.
19447         * doc/posix-functions/vsprintf.texi: Likewise.
19448         * doc/glibc-functions/obstack_printf.texi: Likewise.
19449         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19450
19451 2010-11-27  Bruno Haible  <bruno@clisp.org>
19452
19453         Fix link error when module libunistring-optional is in use.
19454         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19455         * modules/striconveha-tests (Makefile.am): Likewise.
19456
19457 2010-11-27  Bruno Haible  <bruno@clisp.org>
19458
19459         regex: Mention link dependencies.
19460         * modules/regex (Link): New section.
19461         * modules/rpmatch (Link): Likewise.
19462         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19463
19464 2010-11-27  Bruno Haible  <bruno@clisp.org>
19465
19466         ftoastr: Fix compilation error on Solaris.
19467         * lib/ftoastr.c: Include <config.h>.
19468
19469 2010-11-27  Bruno Haible  <bruno@clisp.org>
19470
19471         getloadavg: Update documentation.
19472         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19473
19474 2010-11-27  Bruno Haible  <bruno@clisp.org>
19475
19476         sys_socket: Fix test whether the functions are declared.
19477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19478         not <sys/select.h>.
19479
19480 2010-11-27  Bruno Haible  <bruno@clisp.org>
19481
19482         getpass: Make sure to get system declaration on some platforms.
19483         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19484         gl_USE_SYSTEM_EXTENSIONS.
19485         * modules/getpass (Depends-on): Add extensions.
19486
19487 2010-11-26  Bruno Haible  <bruno@clisp.org>
19488
19489         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19490         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19491         'iconv' module is present.
19492         (ICONV_CONST): New macro.
19493         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19494         ICONV_CONST.
19495         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19496         set ICONV_CONST.
19497         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19498         here.
19499         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19500         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19501         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19502         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19503         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19504         present.
19505
19506 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19507
19508         ftoastr: comment fix
19509         * lib/ftoastr.c: "little" -> "little or no" in comment
19510
19511 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19512
19513         stdint: port to GCC 4.3 + OSX + Octave
19514         On this platform, stdint.h is buggy and defines int64_t to long
19515         long int.  The replacement defined it to long int, causing
19516         problems with C++ style name mangling.  Instead, trust the system
19517         definition if INT64_MAX is defined, and likewise for the unsigned
19518         variant.   Problem reported by Jarno Rajahalme in
19519         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19520         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19521         and don't mess with int64_t and INT64_MAX in this case.
19522         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19523
19524 2010-11-24  Bruno Haible  <bruno@clisp.org>
19525
19526         doc: Corrections regarding MacOS X 10.4 and 10.5.
19527         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19528         MacOS X.
19529         Reported by Simon Josefsson.
19530
19531 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19532
19533         Uninstall ".bin" files installed by relocwrapper.
19534         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19535         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19536         unless it is already there.
19537
19538 2010-11-21  Bruno Haible  <bruno@clisp.org>
19539
19540         Update for NetBSD 5.0.
19541         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19542         NetBSD; the test fails on NetBSD 5.0.
19543         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19544         about NetBSD.
19545
19546 2010-11-21  Bruno Haible  <bruno@clisp.org>
19547
19548         Update for HP-UX 11.23 and HP-UX 11.31.
19549         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19550         HP-UX.
19551
19552 2010-11-21  Bruno Haible  <bruno@clisp.org>
19553
19554         Update for MacOS X 10.5.
19555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19556         MacOS X; the test fails on MacOS X 10.5.8.
19557         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19558         about MacOS X.
19559
19560 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19561
19562         bootstrap: add bootstrap_sync option.
19563         See discussion at
19564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19565         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19566         * build-aux/bootstrap: Accept --bootstrap-sync to update
19567         bootstrap if it is not identical to the local gnulib's
19568         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19569         enable this by default.  Accept --no-bootstrap-sync to disable
19570         it.
19571
19572 2010-11-20  Bruno Haible  <bruno@clisp.org>
19573
19574         Ensure that <features.h> is included before __GLIBC__ is tested.
19575         * lib/printf-parse.h: Include <features.h>.
19576         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19577         Reported by Mike Frysinger <vapier@gentoo.org>.
19578
19579         Ensure that <features.h> is included before __GLIBC__ is tested.
19580         * lib/wchar.in.h: Include <features.h>.
19581         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19582         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19583         Reported by Mike Frysinger <vapier@gentoo.org>.
19584
19585         Ensure that <features.h> is included before __GLIBC__ is tested.
19586         * lib/arpa_inet.in.h: Include <features.h>.
19587         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19588         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19589         Reported by Mike Frysinger <vapier@gentoo.org>.
19590
19591         Ensure that <features.h> is included before __GLIBC__ is tested.
19592         * build-aux/link-warning.h: Include <features.h>.
19593         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19594         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19595         Reported by Mike Frysinger <vapier@gentoo.org>.
19596
19597         Ensure that <features.h> is included before __GLIBC__ is tested.
19598         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19599         Reported by Mike Frysinger <vapier@gentoo.org>.
19600
19601 2010-11-20  Bruno Haible  <bruno@clisp.org>
19602
19603         memmem: Fix autoconf test.
19604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19605
19606 2010-11-20  Bruno Haible  <bruno@clisp.org>
19607
19608         Port to uClibc.
19609         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19610         * lib/fcntl.in.h: Likewise.
19611         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19612         * lib/mbrtowc.c (mbrtowc): Likewise.
19613         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19614         * lib/strerror_r.c: Likewise.
19615         * lib/unistr/u8-strnlen.c: Likewise.
19616         * lib/vasnprintf.c (decimal_point_char): Likewise.
19617         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19618         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19620         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19621         * tests/test-sigaction.c (handler, main): Likewise.
19622         * lib/freading.h: Treat uClibc like a non-glibc platform.
19623         * lib/freading.c: Likewise.
19624         * lib/gettext.h: Likewise.
19625         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19626         Likewise.
19627         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19628         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19629         * lib/propername.c (proper_name_utf8): Likewise.
19630         * lib/spawn.in.h: Likewise.
19631         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19632         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19633         mem_cd_iconveh_internal): Likewise.
19634         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19635         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19636         strstr, strcasestr): Likewise.
19637         * lib/unicodeio.c (unicode_to_mb): Likewise.
19638         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19639         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19640         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19641         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19642         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19643         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19644         * lib/unistr/u8-stpncpy.c: Likewise.
19645         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19646         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19649         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19650         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19651         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19652         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19654         Likewise.
19655         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19656         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19657         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19658         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19660         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19661         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19662         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19663         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19664         * tests/test-striconveha.c (main): Likewise.
19665         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19666         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19667         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19668         * doc/posix-functions/getline.texi: Likewise.
19669         Reported by Mike Frysinger <vapier@gentoo.org>.
19670
19671 2010-11-20  Bruno Haible  <bruno@clisp.org>
19672
19673         nproc: Fix condition.
19674         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19675         HAVE_PTHREAD_AFFINITY_NP.
19676
19677 2010-11-20  Bruno Haible  <bruno@clisp.org>
19678
19679         Fix a comment.
19680         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19681
19682 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19683
19684         ftoastr: don't assume snprintf
19685         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19686         Implement a subset of snprintf here, by using sprintf safely.
19687         * modules/ftoastr (Depends-on): Remove snprintf.
19688
19689 2010-11-19  Jim Meyering  <meyering@redhat.com>
19690
19691         test-rename.h: fix compilation failure
19692         * tests/test-rename.h (test_rename): Add omitted "}".
19693
19694 2010-11-17  Jim Meyering  <meyering@redhat.com>
19695
19696         maint.mk: add a URL discussing the no-@acronym policy
19697         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19698
19699 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         ftoastr: depend on snprintf, improve comments
19702         * lib/ftoastr.c: Also mention Loitsch's draft.
19703         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19704         needed in the current implementation, but it might simplify
19705         speeding up the code later.
19706         * modules/ftoastr: Depend on snprintf; this improves portability.
19707         Suggested by Bruno Haible in the same email.
19708
19709         ftoastr: port to hosts lacking strtof and strtold
19710         Problem reported by Bruno Haible in
19711         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19712         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19713         environment and strtold (and presumably strtof) are not available.
19714         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19715         (configure.ac): Require gl_C99_STRTOLD.
19716
19717 2010-11-18  Bruno Haible  <bruno@clisp.org>
19718
19719         c-strtold: Avoid link error on AIX 7.
19720         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19721         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19722         (gl_C_STRTOLD): Test whether strtold_l exists.
19723         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19724
19725 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19726
19727         intprops: new macro INT_BITS_STRLEN_BOUND
19728         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19729         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19730         not exposed.  Also, it uses a slightly tighter bound than before;
19731         though this makes no practical difference, we might as well be as
19732         tight as we easily can.
19733
19734         ftoastr: new module, for lossless conversion of floats to short strings
19735         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19736         * modules/ftoastr: New files.
19737
19738 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19739
19740         bootstrap: port to Solaris sed
19741         * build-aux/bootstrap (get_version): Port to Solaris sed.
19742         See Ralf Wildenhues's note in
19743         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19744
19745 2010-11-14  Jim Meyering  <meyering@redhat.com>
19746
19747         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19748         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19749         and move definition closer to sole use.
19750
19751 2010-11-13  Jim Meyering  <meyering@redhat.com>
19752
19753         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19754         Now we require at least autoconf-2.59, which means the work-around
19755         is no longer needed.
19756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19757         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19758         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19759         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19760         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19761
19762 2010-11-13  Bruno Haible  <bruno@clisp.org>
19763
19764         rename, renameat: Avoid test failures at NFS mounted locations.
19765         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19766         functions.
19767         (test_rename): Use assert_nonexistent.
19768         * tests/test-rename.c: Include <dirent.h>.
19769         * tests/test-renameat.c: Likewise.
19770         Reported by Gary V. Vaughan <gary@gnu.org>.
19771
19772         rename, renameat: Document Linux bug with NFS
19773         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19774         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19775         * doc/posix-functions/renameat.texi: Likewise.
19776         Suggested by Eric Blake.
19777
19778 2010-11-13  Bruno Haible  <bruno@clisp.org>
19779
19780         rename test: Add comments.
19781         * tests/test-rename.h (test_rename): Add structure and comments.
19782
19783 2010-11-13  Eric Blake  <eblake@redhat.com>
19784
19785         maintainer-makefile: cover a few more files
19786         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19787         scripts generated within C files, for libvirt.
19788
19789 2010-11-13  Bruno Haible  <bruno@clisp.org>
19790
19791         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19792         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19793         character, return the number of bytes that belong together, not always
19794         1.
19795         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19796         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19797         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19798         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19799         number of bytes of an invalid character.
19800         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19801         (main): Invoke it.
19802         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19803         results.
19804         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19805         malformed byte sequences.
19806         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19807         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19808         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19809         Reported by Ben Pfaff and Paolo Bonzini.
19810
19811 2010-11-13  Bruno Haible  <bruno@clisp.org>
19812
19813         openat: Work around glibc bug with fchownat() and empty file names.
19814         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19815         (gl_FUNC_FCHOWNAT): Invoke it.
19816         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19817         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19818         Reported by Gary V. Vaughan <gary@gnu.org>.
19819
19820 2010-11-13  Bruno Haible  <bruno@clisp.org>
19821
19822         openat: Ensure autoconf macro ordering.
19823         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19824         gl_USE_SYSTEM_EXTENSIONS.
19825         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19826
19827 2010-11-13  Bruno Haible  <bruno@clisp.org>
19828
19829         Update comments.
19830         * lib/unistr/u8-check.c: Update file name in comments.
19831         * lib/unistr/u8-mblen.c: Likewise.
19832         * lib/unistr/u8-prev.c: Likewise.
19833         * lib/unistr/u8-strmblen.c: Likewise.
19834         * lib/unistr/u8-strmbtouc.c: Likewise.
19835
19836 2010-11-13  Jim Meyering  <meyering@redhat.com>
19837
19838         tests: avoid test failure on Solaris 10 due to lack of PATH export
19839         * tests/test-update-copyright.sh: Don't forget to export PATH.
19840
19841         init.sh: ensure that IFS is defined, just in case...
19842         * tests/init.sh (setup_): Ensure that IFS is defined,
19843         so that saving and restoring it works as expected.  This
19844         appears to be useful at least for an old version of dash
19845         from a long time ago (RH 6).  See here for details:
19846         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19847
19848         maint.mk: tighten "test a == b" check
19849         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19850         test to files that contain something like #!/bin/sh.
19851         Without this, coreutils would get two false positives in
19852         the comments of C source files.
19853
19854 2010-11-12  Eric Blake  <eblake@redhat.com>
19855
19856         bootstrap: fix typo in previous attempt
19857         * build-aux/bootstrap (buildreq): Correct the grouping.
19858         Reported by Paul Eggert.
19859
19860         maintainer-makefile: prohibit test x == x
19861         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19862         Based on a report by Matthias Bolte.
19863
19864         bootstrap: allow FreeBSD gzip
19865         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19866         which has no '.' and goes to stderr.
19867         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19868         Reported by Matthias Bolte.
19869
19870         maintainer-makefile: check for i18n setup
19871         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19872         will likely work.
19873
19874 2010-11-12  Bruno Haible  <bruno@clisp.org>
19875
19876         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19877         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19878         * lib/nanosleep.c (nanosleep): Likewise.
19879
19880 2010-11-11  Bruno Haible  <bruno@clisp.org>
19881
19882         fcntl-h: Fix for use of C++ on glibc systems.
19883         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19884         also on glibc systems in C++ mode.
19885         Reported by Gary V. Vaughan <gary@gnu.org>.
19886
19887 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19888
19889         mknod: avoid false failure with dash
19890         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19891
19892 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         unlink: Fix "is it should" typo in diagnostic.
19895         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19897
19898 2010-11-11  Bruno Haible  <bruno@clisp.org>
19899
19900         Tests for module 'strerror_r-posix'.
19901         * modules/strerror_r-posix-tests: New file.
19902         * tests/test-strerror_r.c: New file.
19903         * tests/test-string-c++.cc: Check the signature of strerror_r.
19904
19905         New module 'strerror_r-posix'.
19906         * lib/string.in.h (strerror_r): New declaration.
19907         * lib/strerror_r.c: New file.
19908         * m4/strerror_r.m4: New file.
19909         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19910         of strerror_r.
19911         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19912         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19913         * modules/strerror_r-posix: New file.
19914         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19915         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19916         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19917         portability problems.
19918
19919 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19920
19921         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19922         line is also considered for output. Quoted function name in shell
19923         command, so temporary files for functions like MyClass::operator()
19924         are removed correctly without errors.
19925
19926 2010-11-09  Bruno Haible  <bruno@clisp.org>
19927
19928         * doc/posix-functions/strerror.texi: List more failing platforms.
19929
19930         * doc/posix-functions/strerror.texi: Add a comment.
19931
19932 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19933
19934         fdopendir: fix bug on MacOS X when low on file descriptors
19935
19936         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19937         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19938         All callers changed.
19939         (fdopendir): Invoke save_cwd at the top level, not after using
19940         multiple dup() calls to use up file descriptors.  Then retry
19941         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19942         less than the maximum number of open file descriptors, because
19943         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19944         on Mac OS X 10.6.4 for tar 1.24
19945         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19946         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19947         and for tar 1.25
19948         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19949
19950 2010-11-07  Bruno Haible  <bruno@clisp.org>
19951
19952         vasnprintf: Support I flag on glibc systems.
19953         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19954         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19955         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19956         snprintf function.
19957         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19958         glibc systems.
19959         * tests/test-vasnprintf-posix3.c: New file.
19960         * modules/vasnprintf-posix-tests (Files): Add it.
19961         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19962
19963 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19964
19965         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19966         * MODULES.html.sh: For compiler warnings, use name
19967         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19968
19969 2010-11-05  Eric Blake  <eblake@redhat.com>
19970
19971         ceil, floor: avoid spurious failure with icc
19972         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19973         [denormals-as-zero] when optimizing without -mieee-fp option.
19974         * tests/test-floorf2.c (floorf_reference): Likewise.
19975         * tests/test-ceilf1.c (dummy): New function.
19976         (main): Use it to outsmart icc's optimization.
19977         * tests/test-floorf1.c (dummy, main): Likewise.
19978
19979         tests: require working signbit
19980         * modules/ceilf-tests (Depends-on): Add signbit.
19981         * modules/ceill-tests (Depends-on): Likewise.
19982         * modules/floorf-tests (Depends-on): Likewise.
19983         * modules/floorl-tests (Depends-on): Likewise.
19984         * modules/round-tests (Depends-on): Likewise.
19985         * modules/roundf-tests (Depends-on): Likewise.
19986         * modules/roundl-tests (Depends-on): Likewise.
19987         * modules/trunc-tests (Depends-on): Likewise.
19988         * modules/truncf-tests (Depends-on): Likewise.
19989         * modules/truncl-tests (Depends-on): Likewise.
19990
19991         strtod: work around icc bug
19992         * lib/strtod.c (minus_zero): Define to working value.
19993         (strtod): Use it to avoid icc bug.
19994
19995         copysign: enhance tests
19996         * modules/copysign-tests (Files): Add minus-zero.h.
19997         * tests/test-copysign.c (main): Also test zeros.
19998
19999 2010-11-04  Eric Blake  <eblake@redhat.com>
20000
20001         ceil, floor, round, trunc: enhance tests of -0
20002         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20003         * tests/test-ceill.c (main): Likewise.
20004         * tests/test-floorf1.c (main): Likewise.
20005         * tests/test-floorl.c (main): Likewise.
20006         * tests/test-round1.c (main): Likewise.
20007         * tests/test-roundf1.c (main): Likewise.
20008         * tests/test-roundl.c (main): Likewise.
20009         * tests/test-trunc1.c (main): Likewise.
20010         * tests/test-truncf1.c (main): Likewise.
20011         * tests/test-truncl.c (main): Likewise.
20012
20013 2010-11-04  Eric Blake  <eblake@redhat.com>
20014
20015         frexp, tests: work around ICC bug with -zero
20016         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20017         works with more compilers.
20018         * tests/minus-zero.h: New file.
20019         * modules/ceilf-tests (Files): Include it.
20020         * modules/ceill-tests (Files): Likewise.
20021         * modules/floorf-tests (Files): Likewise.
20022         * modules/floorl-tests (Files): Likewise.
20023         * modules/frexp-nolibm-tests (Files): Likewise.
20024         * modules/frexp-tests (Files): Likewise.
20025         * modules/frexpl-nolibm-tests (Files): Likewise.
20026         * modules/frexpl-tests (Files): Likewise.
20027         * modules/isnan-tests (Files): Likewise.
20028         * modules/isnand-nolibm-tests (Files): Likewise.
20029         * modules/isnand-tests (Files): Likewise.
20030         * modules/isnanf-nolibm-tests (Files): Likewise.
20031         * modules/isnanf-tests (Files): Likewise.
20032         * modules/isnanl-nolibm-tests (Files): Likewise.
20033         * modules/isnanl-tests (Files): Likewise.
20034         * modules/round-tests (Files): Likewise.
20035         * modules/roundf-tests (Files): Likewise.
20036         * modules/roundl-tests (Files): Likewise.
20037         * modules/ldexpl-tests (Files): Likewise.
20038         * modules/signbit-tests (Files): Likewise.
20039         * modules/snprintf-posix-tests (Files): Likewise.
20040         * modules/sprintf-posix-tests (Files): Likewise.
20041         * modules/strtod-tests (Files): Likewise.
20042         * modules/trunc-tests (Files): Likewise.
20043         * modules/truncf-tests (Files): Likewise.
20044         * modules/truncl-tests (Files): Likewise.
20045         * modules/vsnprintf-posix-tests (Files): Likewise.
20046         * modules/vsprintf-posix-tests (Files): Likewise.
20047         * modules/vasnprintf-posix-tests (Files): Likewise.
20048         * modules/vasprintf-posix-tests (Files): Likewise.
20049         * tests/test-ceilf1.c (main): Use it.
20050         * tests/test-ceill.c (main): Likewise.
20051         * tests/test-floorf1.c (main): Likewise.
20052         * tests/test-floorl.c (main): Likewise.
20053         * tests/test-frexp.c (main): Likewise.
20054         * tests/test-frexpl.c (main): Likewise.
20055         * tests/test-isnan.c (main): Likewise.
20056         * tests/test-isnand.h (main): Likewise.
20057         * tests/test-isnanf.h (main): Likewise.
20058         * tests/test-isnanl.h (main): Likewise.
20059         * tests/test-ldexpl.c (main): Likewise.
20060         * tests/test-round.c (main): Likewise.
20061         * tests/test-roundf.c (main): Likewise.
20062         * tests/test-roundl.c (main): Likewise.
20063         * tests/test-signbit.c (test_signbitf, test_signbitd)
20064         (test_signbitl): Likewise.
20065         * tests/test-snprintf-posix.h (test_function): Likewise.
20066         * tests/test-sprintf-posix.h (test_function): Likewise.
20067         * tests/test-strtod.c (main): Likewise.
20068         * tests/test-trunc1.c (main): Likewise.
20069         * tests/test-truncf1.c (main): Likewise.
20070         * tests/test-truncl.c (main): Likewise.
20071
20072         isnanl: work around icc bug
20073         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20074
20075 2010-11-03  Eric Blake  <eblake@redhat.com>
20076
20077         tests: fix compiler warnings
20078         * tests/test-getopt.h (test_getopt): Fix condition.
20079         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20080         * tests/test-pipe2.c (main): Likewise.
20081         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20082
20083         utimens: fix broken m4 test
20084         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20085
20086 2010-10-28  Bruno Haible  <bruno@clisp.org>
20087
20088         posix_spawn*, getdtablesize: Relax license.
20089         * modules/posix_spawn (License): Change to LGPLv2+.
20090         * modules/posix_spawnp (License): Likewise.
20091         * modules/posix_spawn-internal (License): Likewise.
20092         * modules/posix_spawnattr_init (License): Likewise.
20093         * modules/posix_spawnattr_getflags (License): Likewise.
20094         * modules/posix_spawnattr_setflags (License): Likewise.
20095         * modules/posix_spawnattr_getpgroup (License): Likewise.
20096         * modules/posix_spawnattr_setpgroup (License): Likewise.
20097         * modules/posix_spawnattr_getschedparam (License): Likewise.
20098         * modules/posix_spawnattr_setschedparam (License): Likewise.
20099         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20100         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20101         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20102         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20103         * modules/posix_spawnattr_getsigmask (License): Likewise.
20104         * modules/posix_spawnattr_setsigmask (License): Likewise.
20105         * modules/posix_spawnattr_destroy (License): Likewise.
20106         * modules/posix_spawn_file_actions_init (License): Likewise.
20107         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20108         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20109         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20110         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20111         * modules/getdtablesize (License): Likewise.
20112         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20113
20114 2010-10-26  Bruno Haible  <bruno@clisp.org>
20115
20116         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20117         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20118         Cygwin and mingw.
20119         Suggested by Eric Blake.
20120
20121 2010-10-26  Bruno Haible  <bruno@clisp.org>
20122
20123         stdio: Work around compilation error due to renameat() on Solaris 10.
20124         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20125         * lib/renameat.c: Don't include <unistd.h> here.
20126         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20127         Reported by Paul Eggert and Eric Blake.
20128
20129 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20130
20131         renameat: port to Solaris 10, which declares renameat in unistd.h
20132
20133         * lib/renameat.c: Include unistd.h before stdio.h, because
20134         Solaris 10 declares renameat in unistd.h.  Problem encountered
20135         when building GNU tar 1.24 on Solaris 10.
20136
20137 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20138
20139         fdopendir: fix C89 compilation
20140         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20141         compilers.
20142
20143 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         inttostr: simplify by removing unnecessary redundancy
20146         * lib/anytostr.c: Don't include verify.h.
20147         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20148         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20149         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20150         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20151         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20152         Likewise.
20153         * modules/inttostr (Depends-on): Remove 'verify'.
20154
20155 2010-10-23  Bruno Haible  <bruno@clisp.org>
20156
20157         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20158         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20159         Reported by Eric Blake.
20160
20161 2010-10-23  Bruno Haible  <bruno@clisp.org>
20162
20163         Tests: Fix LOCALE_JA on MirBSD 10.
20164         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20165         to an UTF-8 locale.
20166         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20167         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20168         Reported by Eric Blake.
20169
20170 2010-10-21  Bruno Haible  <bruno@clisp.org>
20171
20172         nl_langinfo test: Avoid test failure on NetBSD 5.
20173         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20174         Reported by Eric Blake.
20175
20176 2010-10-21  Eric Blake  <eblake@redhat.com>
20177
20178         c-stack: work around libsigsegv 2.8 bug
20179         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20180         overflow on at least PowerPC64.
20181
20182 2010-10-17  Bruno Haible  <bruno@clisp.org>
20183
20184         userspec: Drop redundant file.
20185         * modules/userspec (Files): Remove lib/inttostr.h.
20186
20187 2010-10-17  Bruno Haible  <bruno@clisp.org>
20188
20189         nl_langinfo tests: Silence some warnings.
20190         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20191         Reported by Jim Meyering.
20192
20193 2010-10-17  Bruno Haible  <bruno@clisp.org>
20194
20195         Make use of GCC's attribute __alloc_size__.
20196         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20197         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20198         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20199         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20200         __alloc_size__.
20201         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20202         Suggested by Jim Meyering.
20203
20204 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20205
20206         bootstrap: anchor .gitignore entries.
20207         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20208         with...
20209         (insert_vc_ignore): ... this new function, which prepends `/' to
20210         all .gitignore entries before passing them to
20211         insert_sorted_if_absent.
20212
20213 2010-10-16  Bruno Haible  <bruno@clisp.org>
20214
20215         nextafter: Fix configure check.
20216         * modules/nextafter (configure.ac): Correct expected prototype.
20217
20218 2010-10-16  Bruno Haible  <bruno@clisp.org>
20219
20220         termios: Update documentation.
20221         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20222
20223 2010-10-16  Bruno Haible  <bruno@clisp.org>
20224
20225         tests: Make them compile with TinyCC.
20226         * tests/test-strstr.c (main): Remove parentheses around array
20227         initializer.
20228
20229 2010-10-15  Eric Blake  <eblake@redhat.com>
20230
20231         ignore-value: make header idempotent
20232         * lib/ignore-value.h: Add double-inclusion guards.
20233         Reported by Stefan Berger.
20234
20235 2010-10-15  Jim Meyering  <meyering@redhat.com>
20236
20237         GNUmakefile: handle "stable" target, not "major"
20238         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20239         lists in maint.mk and announce-gen.  Without this, "make stable"
20240         would fail to ensure that $(VERSION) is up to date.
20241
20242 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20243
20244         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20245         & co.
20246
20247 2010-10-14  Bruno Haible  <bruno@clisp.org>
20248
20249         vasnprintf: Don't set errno to 0.
20250         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20251         block that sets it to 0.
20252         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20253
20254 2010-10-14  Bruno Haible  <bruno@clisp.org>
20255
20256         socketlib: Fix.
20257         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20258         gl_PREREQ_SYS_H_WINSOCK2.
20259         Reported by Ian Beckwith <ianb@erislabs.net>.
20260
20261 2010-10-13  Jim Meyering  <meyering@redhat.com>
20262
20263         test-select-stdin.c: avoid warn_unused_result warnings
20264         * tests/test-select-stdin.c: Include "macros.h".
20265         ASSERT that read and fflush succeed.
20266
20267 2010-10-13  Jim Meyering  <meyering@redhat.com>
20268
20269         git-version-gen: do require git-VC'd files in cwd
20270         * build-aux/git-version-gen: Reject a git version string
20271         if there are no commits associated with the current directory.
20272         This avoids an unlikely false-positive (unrelated dir whose parent
20273         repository also contains a tag matching v*), as pointed out
20274         by Giuseppe Scrivano in
20275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20276
20277 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20278
20279         argv-iter: omit nonconforming declaration
20280         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20281         enum arg_iter_err declaration, which doesn't conform to C99.
20282         Solaris 10 cc warns about this.
20283
20284 2010-10-13  Eric Blake  <eblake@redhat.com>
20285
20286         termios: fix compilation on mingw
20287         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20288         (gl_TERMIOS_H): Adjust it on mingw.
20289         * modules/termios (Makefile.am): Substitute new key.
20290         * lib/termios.in.h (includes): Make include_next conditional.
20291         * doc/posix-headers/termios.texi (termios.h): Update
20292         documentation.
20293         Reported by Daniel P. Berrange.
20294
20295 2010-10-13  Jim Meyering  <meyering@redhat.com>
20296
20297         git-version-gen: don't require that .git/ be in the current dir
20298         * build-aux/git-version-gen: Adjust this script so that it works
20299         when run from any working directory beneath the top-level .git/-
20300         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20302
20303         test-select: avoid warn_unused_result warnings
20304         * tests/test-select.c: Include "macros.h".
20305         ASSERT that each call to read, write, and pipe succeeds.
20306         While not technically required, also check each "close".
20307         * modules/select-tests (Files): Add tests/macros.h.
20308
20309         test-symlinkat: remove declaration of unused local
20310         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20311
20312         test-inttostr: avoid shadowing warnings
20313         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20314         and use malloc rather than the stack for the same reason as
20315         mentioned in the comment justifying the other allocation.
20316
20317 2010-10-11  Bruno Haible  <bruno@clisp.org>
20318
20319         stdlib: Allow multiple gnulib generated replacements to coexist.
20320         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20321         Reported by Sam Steingold <sds@gnu.org>.
20322
20323 2010-10-11  Jim Meyering  <meyering@redhat.com>
20324
20325         fix a documentation typo
20326         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20327
20328 2010-10-11  Eric Blake  <eblake@redhat.com>
20329
20330         futimens: work around Solaris 11 bug
20331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20332         * tests/test-futimens.h (test_futimens): Enhance, rather than
20333         weaken test.
20334         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20335
20336 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20337
20338         Indentation.
20339         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20340         higher-level operators more to the left.
20341
20342 2010-10-11  Jim Meyering  <meyering@redhat.com>
20343
20344         test-futimens: avoid unwarranted test failure on Solaris 5.11
20345         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20346         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20347         because it tries to dereference the NULL name argument.
20348
20349 2010-10-11  Bruno Haible  <bruno@clisp.org>
20350
20351         Indentation.
20352         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20353         indentation.
20354
20355 2010-10-11  Jim Meyering  <meyering@redhat.com>
20356
20357         spawn.in.h: make indentation consistent with parentheses
20358         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20359         Make indentation consistent with parentheses.
20360
20361 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20362
20363         Fix mismatched parens in previous commit
20364         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20365         parens.
20366
20367 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20368
20369         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20370
20371         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20372         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20373         * lib/malloca.c: Include "verify.h".
20374         (verify1): Remove, replacing with a verify call.
20375         * lib/relocwrapper.c (verify1): Likewise.
20376         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20377         Likewise.
20378         * modules/malloca (Depends-on): Add 'verify'.
20379         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20380         * modules/vasnprintf (Depends-on): Add 'verify'.
20381         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20382         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20383         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20384         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20385         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20386         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20387         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20388
20389         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20390
20391         Formerly the style was sometimes 2*X - 1, because the C standard
20392         was wrongly thought to disallow ?: in integral constant expressions.
20393         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20394         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20395         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20396         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20397         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20398         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20399         verify that time_t cannot be floating.
20400
20401 2010-10-08  Eric Blake  <eblake@redhat.com>
20402
20403         time: enforce recent POSIX ruling that time_t is integral
20404         * lib/time.in.h (__time_t_must_be_integral): Detect any
20405         problematic systems, allowing the rest of gnulib to assume POSIX.
20406
20407 2010-10-08  Jim Meyering  <meyering@redhat.com>
20408
20409         fdopendir: fix a bug on systems lacking openat and /proc support
20410         OpenBSD 4.7 is one such system.  The most noticeable effect was
20411         failure of any application making nontrivial use of fts: rm, du,
20412         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20413           ./rm: traversal failed: `a': Bad file descriptor
20414         Debugging that, you see that even though FD 6 was closed just
20415         prior to the opendir call in fd_clone_opendir, its resulting
20416         dir->dd_fd was 8, rather than the expected value of 6:
20417
20418         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20419         93                close (fd);
20420         (gdb) n
20421         94                dir = fd_clone_opendir (dupfd);
20422         (gdb) n
20423         95                saved_errno = errno;
20424         (gdb) p dir->dd_fd
20425         $11 = 8
20426
20427         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20428         The problem is that on OpenBSD, fd_clone_opendir has to resort
20429         to using the old-style save/restore CWD mechanism, due to its
20430         lack of openat/proc support, and *that* would steal the FD (6)
20431         that opendir was supposed to use.
20432
20433         The fix is to squirrel away the desired FD so that save_cwd uses a
20434         different one, and then free the dest FD right before calling opendir.
20435         That guarantees opendir will use the required file descriptor.
20436
20437         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20438
20439 2010-10-08  Bruno Haible  <bruno@clisp.org>
20440
20441         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20442         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20443
20444 2010-10-08  Bruno Haible  <bruno@clisp.org>
20445
20446         nanosleep: Make replacement POSIX compliant.
20447         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20448         is out of range.
20449         Reported by Jim Meyering.
20450
20451 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20452
20453         bootstrap: add hook for altering gnulib.mk, for Bison
20454         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20455         the Bison bootstrapping process can rewrite file names and variables
20456         in this file before later parts of 'bootstrap' use the file.
20457         Bison wants to include lib/gnulib.mk from the top-level makefile,
20458         so it needs the file names in this file to be relative to the top
20459         level, not relative to lib; plus it needs variable names to be
20460         rewritten.
20461         (slurp): Use the new function.
20462
20463         bootstrap: reformat for readability
20464         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20465
20466 2010-10-08  Eric Blake  <eblake@redhat.com>
20467
20468         docs: update cygwin progress
20469         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20470         1.7.7.
20471         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20472         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20473         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20474         * doc/posix-functions/carg.texi (carg): Likewise.
20475         * doc/posix-functions/cargf.texi (cargf): Likewise.
20476         * doc/posix-functions/casin.texi (casin): Likewise.
20477         * doc/posix-functions/casinf.texi (casinf): Likewise.
20478         * doc/posix-functions/casinh.texi (casinh): Likewise.
20479         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20480         * doc/posix-functions/catan.texi (catan): Likewise.
20481         * doc/posix-functions/catanf.texi (catanf): Likewise.
20482         * doc/posix-functions/catanh.texi (catanh): Likewise.
20483         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20484         * doc/posix-functions/ccos.texi (ccos): Likewise.
20485         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20486         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20487         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20488         * doc/posix-functions/cexp.texi (cexp): Likewise.
20489         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20490         * doc/posix-functions/cimag.texi (cimag): Likewise.
20491         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20492         * doc/posix-functions/clog.texi (clog): Likewise.
20493         * doc/posix-functions/clogf.texi (clogf): Likewise.
20494         * doc/posix-functions/conj.texi (conj): Likewise.
20495         * doc/posix-functions/conjf.texi (conjf): Likewise.
20496         * doc/posix-functions/cpow.texi (cpow): Likewise.
20497         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20498         * doc/posix-functions/cproj.texi (cproj): Likewise.
20499         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20500         * doc/posix-functions/creal.texi (creal): Likewise.
20501         * doc/posix-functions/crealf.texi (crealf): Likewise.
20502         * doc/posix-functions/csin.texi (csin): Likewise.
20503         * doc/posix-functions/csinf.texi (csinf): Likewise.
20504         * doc/posix-functions/csinh.texi (csinh): Likewise.
20505         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20506         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20507         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20508         * doc/posix-functions/ctan.texi (ctan): Likewise.
20509         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20510         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20511         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20512         * doc/posix-headers/complex.texi (complex.h): Likewise.
20513
20514 2010-10-07  Jim Meyering  <meyering@redhat.com>
20515
20516         parse-datetime: avoid compilation failure on OpenBSD 4.7
20517         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20518         This works around a compilation failure on OpenBSD 4.7:
20519         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20520
20521 2010-10-07  Eric Blake  <eblake@redhat.com>
20522
20523         docs: update cygwin progress
20524         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20525         1.7.6.
20526         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20527         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20528         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20529         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20530         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20531         Likewise.
20532         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20533         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20534         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20535         Likewise.
20536         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20537         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20538         Likewise.
20539         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20540         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20541         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20542         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20543         Likewise.
20544         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20545         Likewise.
20546         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20547
20548         docs: update parse-datetime history
20549         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20550         documentation of this function's history and alternatives.
20551
20552         cygwin: use more robust version check
20553         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20554         exclude an eventual cygwin 1.9.1.
20555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20557         (gl_FUNC_STRCASESTR): Likewise.
20558         Reported by Bruno Haible.
20559
20560 2010-10-06  Bruno Haible  <bruno@clisp.org>
20561
20562         string, sys_select: Avoid #including large headers unless necessary.
20563         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20564         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20565         OSF/1, BeOS, Haiku.
20566         Reported by Jim Meyering.
20567
20568 2010-10-05  Eric Blake  <eblake@redhat.com>
20569
20570         memmem, strstr, strcasestr: fix bug with long periodic needle
20571         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20572         periodic needle having false positive.
20573         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20574         and cygwin 1.7.7.
20575         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20577         (gl_FUNC_STRCASESTR): Likewise.
20578         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20579         * tests/test-memmem.c (main): Expose the bug.
20580         * tests/test-strcasestr.c (main): Likewise.
20581         * tests/test-strstr.c (main): Likewise.
20582         * tests/test-c-strcasestr.c (main): Likewise.
20583         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20584         * doc/posix-functions/strstr.texi (strstr): Likewise.
20585         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20586         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20587
20588 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20589
20590         parse-datetime: do some more renaming
20591         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20592         parse_datetime, not get_date.  Mention the renaming.
20593         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20594         in comments.
20595         * m4/bison.m4: Likewise.
20596
20597 2010-10-05  Eric Blake  <eblake@redhat.com>
20598
20599         parse-datetime: better name than get_date
20600         * NEWS: Reword the deprecation notice.
20601         * modules/get_date: Rename to modules/parse-datetime.
20602         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20603         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20604         * lib/get_date.y: Rename to lib/parse-datetime.y.
20605         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20606         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20607         * doc/getdate.texi: Provide fallback wrapper.
20608         * lib/getdate.h: Move guts, and wrap...
20609         * lib/parse-datetime.h: ...new file.
20610         * lib/parse-datetime.y (get_date): Rename...
20611         (parse_datetime): ...to this.
20612         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20613         (gl_PARSE_DATETIME): ...to this.
20614         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20615         documentation.
20616         * modules/getdate (Files): Provide fallback docs and header.
20617         (Notice, Depends-on): Update references.
20618         * tests/test-parse-datetime.c: Likewise.
20619         * DEPENDENCIES: Likewise.
20620         * MODULES.html.sh (Date and time <time.h>): Likewise.
20621         * doc/parse-datetime.texi (Date input formats)
20622         (Authors of parse_datetime): Likewise.
20623         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20624         (Include): Likewise.
20625         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20626         * gnulib-tool: Likewise.
20627         * m4/bison.m4 (gl_BISON): Likewise.
20628         Suggested by Bruno Haible.
20629
20630 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20631
20632         more ports to Solaris tr, which needs [] around ranges
20633         * gnulib-tool: Solaris tr needs [] around ranges.
20634         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20635         * tests/test-pipe-filter-gi1.c (main): Likewise.
20636         * tests/test-pipe-filter-ii1.c (main): Likewise.
20637
20638 2010-10-05  Eric Blake  <eblake@redhat.com>
20639
20640         bootstrap: fix Solaris regression
20641         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20642         around ranges.
20643         Reported by Pádraig Brady.
20644
20645         bootstrap: work with pkg-config
20646         * build-aux/bootstrap (check_versions): Also transliterate - in
20647         prerequisite name.
20648         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20649         prerequisites that were already found, to avoid confusion.
20650         Reported by Justin Clift.
20651
20652         faccessat: remove unused wrappers
20653         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20654         presence of these wrappers dragged in -lgen on Solaris.
20655         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20656
20657 2010-10-05  Jim Meyering  <meyering@redhat.com>
20658
20659         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20660         * Makefile (sc_pragma_columns): New syntax-check rule.
20661
20662 2010-10-04  Bruno Haible  <bruno@clisp.org>
20663
20664         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20665         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20666         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20667         Reported by Bruce Korb and Eric Blake.
20668
20669 2010-10-04  Bruno Haible  <bruno@clisp.org>
20670
20671         threadlib: Make option --with-libpth-prefix work.
20672         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20673         use $LIBPTH, not just -lpth.
20674
20675 2010-10-04  Bruno Haible  <bruno@clisp.org>
20676
20677         Avoid line length limitation from HP NonStop system header files.
20678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20679         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20680         * lib/ctype.in.h: Likewise.
20681         * lib/dirent.in.h: Likewise.
20682         * lib/errno.in.h: Likewise.
20683         * lib/fcntl.in.h: Likewise.
20684         * lib/float.in.h: Likewise.
20685         * lib/getopt.in.h: Likewise.
20686         * lib/iconv.in.h: Likewise.
20687         * lib/inttypes.in.h: Likewise.
20688         * lib/langinfo.in.h: Likewise.
20689         * lib/locale.in.h: Likewise.
20690         * lib/math.in.h: Likewise.
20691         * lib/netdb.in.h: Likewise.
20692         * lib/netinet_in.in.h: Likewise.
20693         * lib/poll.in.h: Likewise.
20694         * lib/pthread.in.h: Likewise.
20695         * lib/pty.in.h: Likewise.
20696         * lib/sched.in.h: Likewise.
20697         * lib/se-selinux.in.h: Likewise.
20698         * lib/search.in.h: Likewise.
20699         * lib/signal.in.h: Likewise.
20700         * lib/spawn.in.h: Likewise.
20701         * lib/stdarg.in.h: Likewise.
20702         * lib/stddef.in.h: Likewise.
20703         * lib/stdint.in.h: Likewise.
20704         * lib/stdio.in.h: Likewise.
20705         * lib/stdlib.in.h: Likewise.
20706         * lib/string.in.h: Likewise.
20707         * lib/strings.in.h: Likewise.
20708         * lib/sys_file.in.h: Likewise.
20709         * lib/sys_ioctl.in.h: Likewise.
20710         * lib/sys_select.in.h: Likewise.
20711         * lib/sys_socket.in.h: Likewise.
20712         * lib/sys_stat.in.h: Likewise.
20713         * lib/sys_time.in.h: Likewise.
20714         * lib/sys_times.in.h: Likewise.
20715         * lib/sys_utsname.in.h: Likewise.
20716         * lib/sys_wait.in.h: Likewise.
20717         * lib/sysexits.in.h: Likewise.
20718         * lib/termios.in.h: Likewise.
20719         * lib/time.in.h: Likewise.
20720         * lib/unistd.in.h: Likewise.
20721         * lib/wchar.in.h: Likewise.
20722         * lib/wctype.in.h: Likewise.
20723         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20724         * modules/ctype (Makefile.am): Likewise.
20725         * modules/dirent (Makefile.am): Likewise.
20726         * modules/errno (Makefile.am): Likewise.
20727         * modules/fcntl-h (Makefile.am): Likewise.
20728         * modules/float (Makefile.am): Likewise.
20729         * modules/getopt-posix (Makefile.am): Likewise.
20730         * modules/iconv-h (Makefile.am): Likewise.
20731         * modules/inttypes (Makefile.am): Likewise.
20732         * modules/langinfo (Makefile.am): Likewise.
20733         * modules/locale (Makefile.am): Likewise.
20734         * modules/math (Makefile.am): Likewise.
20735         * modules/netdb (Makefile.am): Likewise.
20736         * modules/netinet_in (Makefile.am): Likewise.
20737         * modules/poll-h (Makefile.am): Likewise.
20738         * modules/pthread (Makefile.am): Likewise.
20739         * modules/pty (Makefile.am): Likewise.
20740         * modules/sched (Makefile.am): Likewise.
20741         * modules/search (Makefile.am): Likewise.
20742         * modules/selinux-h (Makefile.am): Likewise.
20743         * modules/signal (Makefile.am): Likewise.
20744         * modules/spawn (Makefile.am): Likewise.
20745         * modules/stdarg (Makefile.am): Likewise.
20746         * modules/stddef (Makefile.am): Likewise.
20747         * modules/stdint (Makefile.am): Likewise.
20748         * modules/stdio (Makefile.am): Likewise.
20749         * modules/stdlib (Makefile.am): Likewise.
20750         * modules/string (Makefile.am): Likewise.
20751         * modules/strings (Makefile.am): Likewise.
20752         * modules/sys_file (Makefile.am): Likewise.
20753         * modules/sys_ioctl (Makefile.am): Likewise.
20754         * modules/sys_select (Makefile.am): Likewise.
20755         * modules/sys_socket (Makefile.am): Likewise.
20756         * modules/sys_stat (Makefile.am): Likewise.
20757         * modules/sys_time (Makefile.am): Likewise.
20758         * modules/sys_times (Makefile.am): Likewise.
20759         * modules/sys_utsname (Makefile.am): Likewise.
20760         * modules/sys_wait (Makefile.am): Likewise.
20761         * modules/sysexits (Makefile.am): Likewise.
20762         * modules/termios (Makefile.am): Likewise.
20763         * modules/time (Makefile.am): Likewise.
20764         * modules/unistd (Makefile.am): Likewise.
20765         * modules/wchar (Makefile.am): Likewise.
20766         * modules/wctype (Makefile.am): Likewise.
20767
20768 2010-10-04  Bruno Haible  <bruno@clisp.org>
20769
20770         read-file tests: Avoid a test failure on NonStop Kernel.
20771         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20772         a regular file.
20773         Reported by Joachim Schmitz <schmitz@hp.com>.
20774
20775 2010-10-03  Bruno Haible  <bruno@clisp.org>
20776
20777         gnulib-tool: Fixes for --create-testdir with --libtool.
20778         * gnulib-tool (func_get_automake_snippet): Don't augment
20779         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20780         an executable.
20781         (func_create_testdir): Handle module 'alloca' like func_import.
20782         Reported by Bruce Korb <bruce.korb@gmail.com>.
20783
20784 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20785
20786         Avoid some lines longer than 80 characters.
20787         * lib/stdint.in.h: Break long comment lines.
20788         * lib/math.in.h: Likewise.
20789         (_GL_NUM_UINT_WORDS): New macro, for readability.
20790         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20791         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20792         * lib/stdlib.in.h: Likewise.
20793         * lib/spawn.in.h: Likewise.
20794         * lib/sys_socket.in.h: Update an URL.
20795         * lib/sys_stat.in.h: Break long line.
20796
20797 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20798
20799         Improve pmccabe2html.
20800         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20801         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20802         when the sources change. Remove the line in the HTML about "Used
20803         ranges" (which implied that there might be other unused ranges),
20804         rename "Resume" to "Summary" (easier to understand for more users).
20805         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20806         styles, and some unnecessary blank lines.
20807
20808 2010-10-03  Bruno Haible  <bruno@clisp.org>
20809             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20810
20811         acl: Add support for ACLs on NonStop Kernel.
20812         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20813         Check whether the function aclsort() exists.
20814         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20815         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20816         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20817         (acl_nontrivial [HAVE_ACLSORT]: New function.
20818         (file_has_acl): Implement for NonStop Kernel.
20819         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20820         (qset_acl): Implement for NonStop Kernel.
20821         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20822         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20823         (main): Implement for NonStop Kernel.
20824         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20825         Kernel. Handle this flavor.
20826         * tests/test-set-mode-acl.sh: Likewise.
20827         * tests/test-copy-acl.sh: Likewise.
20828         * tests/test-copy-file.sh: Likewise.
20829
20830 2010-10-03  Bruno Haible  <bruno@clisp.org>
20831
20832         Info about ACLs on NonStop Kernel.
20833         * doc/acl-resources.txt: Add info about NonStop Kernel.
20834         References by Joachim Schmitz <schmitz@hp.com>.
20835
20836 2010-10-02  Bruno Haible  <bruno@clisp.org>
20837
20838         Define missing EDQUOT on NonStop Kernel.
20839         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20840         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20842         missing.
20843         * doc/posix-headers/errno.texi: Mention the NSK bug.
20844         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20845         Reported by Joachim Schmitz <schmitz@hp.com>.
20846
20847 2010-10-02  Bruno Haible  <bruno@clisp.org>
20848
20849         Update doc for POSIX:2008.
20850         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20851         Update URL of POSIX specification.
20852
20853 2010-10-02  Bruno Haible  <bruno@clisp.org>
20854
20855         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20856         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20857         from gnulib, not from Automake.
20858
20859 2010-10-02  Bruno Haible  <bruno@clisp.org>
20860
20861         New module 'system-posix'.
20862         * modules/system-posix: New file.
20863         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20864         module is present.
20865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20866         GNULIB_SYSTEM_POSIX.
20867         * modules/stdlib (Depends-on): Remove sys_wait.
20868         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20869         * doc/posix-functions/system.texi: Mention the new module.
20870         * doc/posix-headers/stdlib.texi: Likewise.
20871         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20872         define test_sys_wait_macros to a no-op.
20873         Reported by Sam Steingold <sds@gnu.org>.
20874
20875 2010-09-30  Bruno Haible  <bruno@clisp.org>
20876
20877         More renaming from 'getdate' to 'get_date'.
20878         * doc/get_date.texi: Renamed from doc/getdate.texi.
20879         * modules/get_date (Files): Update.
20880         * MODULES.html.sh (Date and time <time.h>): Update.
20881         * DEPENDENCIES: Update.
20882         * gnulib-tool: Update comment.
20883         * m4/bison.m4 (gl_BISON): Likewise.
20884         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20885
20886 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20887
20888         bootstrap: support ACLOCAL_FLAGS during aclocal
20889         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20890         can add additional -I dir for third-party .m4 files.
20891
20892 2010-09-30  Eric Blake  <eblake@redhat.com>
20893
20894         bootstrap: use glibtoolize on MacOS
20895         * build-aux/bootstrap (check_versions): Convert libtool into
20896         libtoolize.
20897         (tool search): Move libtool check earlier, and look for
20898         glibtoolize for MacOS.
20899         (gnulib_tool_options): Auto-add --libtool when appropriate.
20900         Reported by Justin Clift.
20901
20902         poll: fix typo that broke test on MacOS
20903         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20904         Reported by Justin Clift.
20905
20906         getdate: rename to get_date
20907         Note: getdate.h is not renamed, to minimize client impact.
20908         * modules/getdate: Mark obsolete.  Move old contents...
20909         * modules/get_date: ...to new module name.
20910         * modules/getdate-tests: Move...
20911         * modules/get_date-tests: ...here.
20912         * m4/getdate.m4: Move...
20913         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20914         * lib/getdate.y: Move...
20915         * lib/get_date.y: ...here.
20916         * tests/test-getdate.c: Move...
20917         * tests/test-get_date.c: ...here.
20918         * doc/posix-functions/getdate.texi (getdate): Update name.
20919         * NEWS: Mention the change.
20920
20921 2010-09-29  Bruno Haible  <bruno@clisp.org>
20922
20923         Separate the module 'waitpid' from the module 'sys_wait'.
20924         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20925         present.
20926         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20927         gl_MODULE_INDICATOR_FOR_TESTS.
20928         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20929         * modules/sys_wait (Depends-on): Remove waitpid.
20930         (Makefile.am): Substitute GNULIB_WAITPID.
20931         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20932         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20933         signature only if the 'waitpid' module is present.
20934         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20935         * NEWS: Mention the change.
20936         * modules/grantpt (Depends-on): Add waitpid.
20937         * modules/wait-process (Depends-on): Likewise.
20938
20939 2010-09-29  Bruno Haible  <bruno@clisp.org>
20940
20941         More tests for module 'sys_wait'.
20942         * modules/sys_wait-c++-tests: New file.
20943         * tests/test-sys_wait-c++.cc: New file.
20944         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20945         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20946
20947 2010-09-29  Bruno Haible  <bruno@clisp.org>
20948
20949         New module 'waitpid'.
20950         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20951         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20952         Don't include <process.h>.
20953         (waitpid): Declare only, using modern idiom.
20954         * m4/waitpid.m4: New file.
20955         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20956         * modules/waitpid: New file.
20957         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20958         (Makefile.am): Update.
20959         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20960
20961 2010-09-28  Bruno Haible  <bruno@clisp.org>
20962
20963         poll: Assume ANSI C.
20964         * lib/poll.c (poll): Use an ANSI C declaration.
20965
20966 2010-09-28  Bruno Haible  <bruno@clisp.org>
20967
20968         poll-h: Create poll.h on all platforms.
20969         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20970         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20971         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20972         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20973         (gl_REPLACE_POLL_H): Don't set POLL_H.
20974         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20975         * modules/poll-h (Depends-on): Add include_next.
20976         (Makefile.am): Create poll.h unconditionally. Substitute also
20977         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20978
20979 2010-09-28  Bruno Haible  <bruno@clisp.org>
20980
20981         Tests for module 'poll-h'.
20982         * modules/poll-h-c++-tests: New file.
20983         * tests/test-poll-h-c++.cc: New file.
20984
20985         Tests for module 'poll-h'.
20986         * modules/poll-h-tests: New file.
20987         * tests/test-poll-h.c: New file.
20988
20989 2010-09-28  Bruno Haible  <bruno@clisp.org>
20990
20991         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20992         * modules/poll-h (Depends-on): Add 'extensions'.
20993
20994 2010-09-28  Bruno Haible  <bruno@clisp.org>
20995
20996         New module 'poll-h'.
20997         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20998         (poll): Use modern idiom.
20999         * modules/poll-h: New file.
21000         * modules/poll (Files): Remove lib/poll.in.h.
21001         (Depends-on): Add poll-h.
21002         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21003         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21004         * m4/poll_h.m4: New file.
21005         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21006         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21007         and invoke gl_REPLACE_POLL_H.
21008         * lib/poll.c: Use common idiom.
21009         * tests/test-poll.c: Likewise.
21010         * doc/posix-headers/poll.texi: Mention the poll-h module.
21011         Suggested by Eric Blake.
21012
21013 2010-09-26  Bruno Haible  <bruno@clisp.org>
21014
21015         sys_wait: Implement WSTOPSIG.
21016         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21017         Reported by Simon Josefsson.
21018
21019 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21020
21021         stdlib, sys_wait: Avoid compilation error on mingw.
21022         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21023
21024 2010-09-26  Bruno Haible  <bruno@clisp.org>
21025
21026         stdlib tests: Avoid code duplication.
21027         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21028         * modules/sys_wait-tests (Files): Likewise.
21029         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21030         * tests/test-stdlib.c: Include test-sys_wait.h.
21031         (main): Invoke test_sys_wait_macros.
21032         * tests/test-sys_wait.c: Include test-sys_wait.h.
21033         (main): Invoke test_sys_wait_macros.
21034
21035 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21036
21037         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21038         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21039         sure Windows sockets are working before calling getaddrinfo.
21040         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21041         * doc/gnulib.texi (Windows sockets): Fix typo.
21042
21043 2010-09-25  Bruno Haible  <bruno@clisp.org>
21044
21045         Tests for module 'regex-quote'.
21046         * modules/regex-quote-tests: New file.
21047         * tests/test-regex-quote.c: New file.
21048
21049         New module 'regex-quote'.
21050         * lib/regex-quote.h: New file.
21051         * lib/regex-quote.c: New file.
21052         * modules/regex-quote: New file.
21053         Suggested by Reuben Thomas <rrt@sc3d.org>.
21054
21055 2010-09-24  Bruno Haible  <bruno@clisp.org>
21056
21057         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21058         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21059
21060 2010-09-23  Bruno Haible  <bruno@clisp.org>
21061
21062         setenv: Relax license.
21063         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21064         Blake.
21065         Requested by Eric Blake.
21066
21067 2010-09-22  Bruno Haible  <bruno@clisp.org>
21068
21069         termios: Relax license.
21070         * modules/termios (License): Change to LGPLv2+.
21071         Requested by Eric Blake.
21072
21073 2010-09-22  Bruno Haible  <bruno@clisp.org>
21074
21075         threadlib: Allow the package to change the default to 'no'.
21076         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21077         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21078         Reported by Paul Eggert.
21079
21080 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21081             Bruno Haible  <bruno@clisp.org>
21082
21083         Fix endless loop in mbmemcasecoll.
21084         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21085         byte.
21086         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21087
21088 2010-09-22  Bruno Haible  <bruno@clisp.org>
21089
21090         Tests for module 'memcoll'.
21091         * modules/memcoll-tests: New file.
21092         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21093
21094         memcoll, xmemcoll: Clarify size vs. length.
21095         * modules/memcoll.c (memcoll0): Clarify specification.
21096         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21097         passed to collate_error.
21098
21099 2010-09-22  Bruno Haible  <bruno@clisp.org>
21100
21101         Tests for module 'memcasecmp'.
21102         * modules/memcasecmp-tests: New file.
21103         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21104
21105 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21106
21107         * lib/pthread.in.h: Add split double-inclusion guard, and include
21108         system <pthread.h> if there is one.  Use @@-style as in other
21109         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21110         pthread.h doesn't.
21111         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21112         (pthread_mutexattr_settype, pthread_mutex_trylock):
21113         New static inline functions, if there's no system <pthread.h>.
21114         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21115         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21116         Approximate with mutexes if the system lacks spinlocks, as in
21117         MacOS.
21118         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21119         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21120         @@-style.  Check for spinlocks separately.
21121         (gl_PTHREAD_DEFAULTS): New macro.
21122         * modules/pthread: Redo to use a more typical style for in.h files.
21123
21124 2010-09-21  Eric Blake  <eblake@redhat.com>
21125
21126         net_if: enhance tests
21127         * tests/test-net_if.c (main): Move signature checks earlier.
21128         Print failures to stderr.
21129         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21130         Document the bug that we do not yet fix.
21131
21132 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21133
21134         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21135         about gnulib, not GSS.
21136
21137 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21138
21139         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21140         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21141         for Emacs.
21142         * build-aux/pmccabe2html: Make Makefile.am example code more
21143         cut-and-paste friendly.
21144
21145 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21146
21147         * tests/test-net_if.c: New file.
21148         * modules/net_if-tests: New file.
21149
21150 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21151
21152         pthread: add pthread_spin_destroy
21153         * lib/pthread.in.h (pthread_spin_destroy): New function.
21154
21155 2010-09-19  Bruno Haible  <bruno@clisp.org>
21156
21157         gnulib-tool: Fix --help output.
21158         * gnulib-tool (func_usage): Fix help message.
21159         Reported by Reuben Thomas <rrt@sc3d.org>.
21160
21161 2010-09-18  Jim Meyering  <meyering@redhat.com>
21162
21163         maint.mk: avoid unexpanded \n in two diagnostics
21164         * top/maint.mk (sc_prohibit_always_true_header_tests):
21165         Don't use a literal \n in a halt=... assignment.  It would not be
21166         expanded, and the two \n bytes would appear in the diagnostic output
21167         rather than the desired newline.  Use halt=$$(printf ... instead.
21168         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21169
21170 2010-09-18  Bruno Haible  <bruno@clisp.org>
21171
21172         netinet_in: Doc tweak.
21173         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21174         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21175
21176 2010-09-18  Jim Meyering  <meyering@redhat.com>
21177
21178         init.sh: correct an outdated comment
21179         * tests/init.sh (create_exe_shims_):  s/function/alias/
21180
21181         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21182         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21183         a file named "*.exe" is removed between the glob expansion and the
21184         processing of that oddly named file.
21185
21186 2010-09-17  Eric Blake  <eblake@redhat.com>
21187
21188         mirbsd: add some more support
21189         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21190         in BSD family.
21191         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21192         devices as OpenBSD.
21193         * m4/host-os.m4 (mirbsd): Add MirBSD.
21194
21195         tests: fix unportable assumption on sys/wait.h
21196         * tests/test-sys_wait.c (main): Relax test.
21197         * tests/test-stdlib.c (main): Likewise.
21198
21199         init.sh: accomodate directory with no .exes
21200         * tests/init.sh: Accomodate directory containing only scripts.
21201
21202         tests: avoid compiler warning
21203         * tests/test-stdlib.c (main): Use the variable.
21204
21205         fdutimens, fdutimensat: update signature, again
21206         * lib/utimens.h (gl_futimens): Delete, and move signature...
21207         (fdutimens): ...here.
21208         (fdutimensat): Rearrange signature.
21209         (lutimensat): Rename variable for clarity.
21210         * lib/fdutimensat.c (fdutimensat): Update signature.
21211         * lib/utimens.c (fdutimens): Likewise.
21212         (gl_futimens): Delete.
21213         (utimens, lutimens): Update callers.
21214         * lib/futimens.c (futimens): Likewise.
21215         * tests/test-fdutimensat.c: Likewise.
21216         * tests/test-utimens.c: Likewise.
21217         * tests/test-futimens.h: Update comment.
21218         * NEWS: Mention this.
21219         Suggested by Paul Eggert.
21220
21221 2010-09-17  Bruno Haible  <bruno@clisp.org>
21222
21223         Take over the maintenance of some older macros from Autoconf.
21224         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21225         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21226         GNU Autoconf.
21227         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21228         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21229
21230 2010-09-17  Eric Blake  <eblake@redhat.com>
21231
21232         fdutimensat: drop atflag validation
21233         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21234         with valid fd, to close a race scenario where futimens is
21235         unsupported and FILE was replaced by a symlink.
21236         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21237         accordingly.
21238         Suggested by Paul Eggert.
21239
21240 2010-09-16  Bruno Haible  <bruno@clisp.org>
21241
21242         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21243         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21244
21245 2010-09-16  Bruno Haible  <bruno@clisp.org>
21246
21247         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21248         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21249         login_tty exists.
21250         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21251
21252 2010-09-16  Bruno Haible  <bruno@clisp.org>
21253
21254         login_tty: Make the replacement code work on BSD systems.
21255         * lib/login_tty.c: Include <sys/ioctl.h>.
21256         (login_tty): Use ioctl TIOCSCTTY when available.
21257         * modules/login_tty (Depends-on): Add sys_ioctl.
21258         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21259
21260 2010-09-16  Bruno Haible  <bruno@clisp.org>
21261
21262         login_tty: Stricter unit test.
21263         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21264         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21265         and tcgetsid() after login_tty.
21266         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21267
21268 2010-09-16  Bruno Haible  <bruno@clisp.org>
21269
21270         New module 'tcgetsid'.
21271         * lib/tcgetsid.c: New file.
21272         * m4/tcgetsid.m4: New file.
21273         * modules/tcgetsid: New file.
21274         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21275         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21276         GNULIB_TCGETSID, HAVE_TCGETSID.
21277         * lib/termios.in.h: Include <sys/types.h>.
21278         (tcgetsid): New declaration.
21279         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21280         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21281         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21282         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21283
21284 2010-09-16  Bruno Haible  <bruno@clisp.org>
21285
21286         Tests for module 'termios'.
21287         * modules/termios-c++-tests: New file.
21288         * modules/termios-tests: New file.
21289         * tests/test-termios-c++.cc: New file.
21290         * tests/test-termios.c: New file.
21291
21292         New module 'termios'.
21293         * modules/termios: New file.
21294         * lib/termios.in.h: New file.
21295         * m4/termios_h.m4: New file.
21296         * doc/posix-headers/termios.texi: Mention the new module.
21297
21298 2010-09-16  Eric Blake  <eblake@redhat.com>
21299
21300         fdutimensat: add an atflag parameter
21301         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21302         * lib/utimens.h (fdutimensat): Update prototype.
21303         * tests/test-fdutimensat.c: Adjust test to match.
21304         * NEWS: Document the change.
21305         Suggested by Paul Eggert.
21306
21307 2010-09-16  Bruno Haible  <bruno@clisp.org>
21308
21309         Fix typos in comments.
21310         * lib/striconveh.h: Fix typo in comment.
21311         * lib/login_tty.c (login_tty): Likewise.
21312
21313 2010-09-15  Bruno Haible  <bruno@clisp.org>
21314
21315         stdlib: clarify MirBSD WEXITSTATUS bug
21316         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21317         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21318
21319 2010-09-15  Eric Blake  <eblake@redhat.com>
21320
21321         stdlib: work around MirBSD WEXITSTATUS bug
21322         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21323         * modules/stdlib (Depends-on): Add sys_wait.
21324         * tests/test-sys_wait.c (main): Enhance test.
21325         * tests/test-stdlib.c (main): Likewise.
21326         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21327
21328         docs: mention MacOS issue with WEXITSTATUS(constant)
21329         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21330         issue.
21331         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21332
21333         strnlen: add tests
21334         * modules/strnlen-tests: New file.
21335         * tests/test-strnlen.c: Likewise.
21336
21337 2010-09-14  Bruno Haible  <bruno@clisp.org>
21338
21339         unistr/base: Avoid link errors when module 'libunistring' is also used.
21340         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21341         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21342         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21343         Declare also when HAVE_LIBUNISTRING is set.
21344         Reported by Pádraig Brady <P@draigbrady.com>.
21345
21346 2010-09-14  Eric Blake  <eblake@redhat.com>
21347
21348         test-rawmemchr: make more robust
21349         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21350         (Depends-on, configure.ac): Add needed prerequisites to use it.
21351         * modules/memchr-tests (Files, Depends-on, configure.ac):
21352         Likewise, to avoid implicit reliance on memchr module prereqs.
21353         * tests/test-memchr.c (main): Ensure proper masking.
21354         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21355         reads.
21356
21357         memchr: detect glibc Alpha bug
21358         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21359         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21360         Alpha.
21361         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21362         * tests/test-memchr.c (main): Enhance test.
21363         Reported by Nelson H. F. Beebe.
21364
21365 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21366
21367         fts, getcwd, glob: audit for dirfd returning -1
21368         * lib/fts.c (opendir): Remove #define; no longer used.
21369         (opendirat): New arg PDIR_FD.  All callers changed.
21370         (fts_build, _opendir2): Use new opendirat to avoid the need for
21371         dirfd, or for checking whether dirfd returns a negative value.
21372         Don't use opendir; always use openat followed by fdopendir.
21373         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21374         it.
21375         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21376         returns -1 here.
21377         * modules/fts (Depends-on): Remove dirfd.
21378         * modules/getcwd (Depends-on): Likewise.
21379
21380 2010-09-13  Eric Blake  <eblake@redhat.com>
21381
21382         float: fix broken MirBSD header
21383         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21384         * doc/posix-headers/float.texi (float.h): Document it.
21385
21386 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21387
21388         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21389         * lib/fts.c (opendirat): New arg extra_flags.
21390         (__opendir2): Use it to avoid following symlinks when opening
21391         a directory, if symlinks are not supposed to be followed.  See
21392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21393
21394         fdopendir: preserve argument fd before returning
21395         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21396         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21397         (fdopendir): Use them, arranging for FD to be open to the same
21398         directory that it was when it started.  (It might be temporarily
21399         closed while fdopendir is running, so this not thread- or
21400         signal-safe.)  Be careful to do the right thing even when file
21401         descriptors are scarce and dup fails with errno == EMFILE.  See
21402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21403
21404 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21405
21406         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21407         * NEWS: Document change.
21408         * m4/regex.m4: Disable test for regoff_t size.
21409
21410 2010-09-13  Jim Meyering  <meyering@redhat.com>
21411
21412         fts: don't operate on an invalid file descriptor after failed dup
21413         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21414         negative file descriptor.
21415
21416 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21417
21418         savedir: add streamsavedir, deprecate fdsavedir
21419         * NEWS: Mention deprecation of fdsavedir.
21420         * lib/savedir.c (streamsavedir): New extern function, whose name
21421         ends in "savedir" to be consistent with the others.  This differs
21422         from savedirstream in that it doesn't close its argument.  The
21423         next version of GNU tar will use this instead of fdsavedir, to
21424         avoid some race conditions and conserve file descriptors.
21425         (savedirstream): Reimplement as a wrapper around streamsavedir.
21426         (fdsavedir): Add a comment deprecating this function.  As far as
21427         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21428         * lib/savedir.h (streamsavedir): New decl.
21429         (fdsavedir): Add a comment deprecating this.
21430
21431 2010-09-10  Bruno Haible  <bruno@clisp.org>
21432
21433         langinfo: Fix last commit.
21434         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21435         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21437
21438 2010-09-10  Bruno Haible  <bruno@clisp.org>
21439
21440         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21441         * lib/progreloc.c (O_EXEC): Define fallback.
21442
21443 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21444
21445         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21446         * NEWS: Document recent changes to fcntl-h.
21447         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21448         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21449         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21450         Similarly for O_SEARCH; this last was already true, but not documented.
21451         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21452         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21453         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21454         Likewise.
21455         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21456         is zero, not whether it is defined.
21457         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21458         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21459         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21460
21461 2010-09-10  Bruno Haible  <bruno@clisp.org>
21462
21463         langinfo, nl_langinfo: Fix for IRIX 5.3.
21464         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21465         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21466         HAVE_LANGINFO_YESEXPR.
21467         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21468         HAVE_LANGINFO_YESEXPR.
21469         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21470         HAVE_LANGINFO_T_FMT_AMPM is 0.
21471         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21472         HAVE_LANGINFO_YESEXPR is 0.
21473         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21474         NOEXPR.
21475         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21476         * doc/posix-functions/nl_langinfo.texi: Likewise.
21477         Reported by Eric Blake.
21478
21479 2010-09-10  Bruno Haible  <bruno@clisp.org>
21480
21481         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21482         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21483         on FreeBSD 8.0 and OpenBSD 4.6.
21484         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21485         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21486         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21487         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21488         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21489         ac_includes_default.
21490         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21491
21492 2010-09-09  Eric Blake  <eblake@redhat.com>
21493
21494         strsignal: work around NetBSD bug
21495         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21496         * lib/string.in.h (includes): Likewise.
21497         * doc/posix-functions/strsignal.texi (strsignal): Document the
21498         bug.
21499         Reported by Nelson H. F. Beebe.
21500
21501         gnulib-tool: work with NetBSD /bin/sh
21502         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21503         (func_get_description, func_get_comment, func_get_status)
21504         (func_get_notice, func_get_applicability, func_get_filelist)
21505         (func_get_dependencies, func_get_autoconf_early_snippet)
21506         (func_get_autoconf_snippet, func_get_automake_snippet)
21507         (func_get_include_directive, func_get_link_directive)
21508         (func_get_license, func_get_maintainer, func_import): Avoid
21509         shell syntax errors from parsing syntax extensions.
21510
21511 2010-09-09  Bruno Haible  <bruno@clisp.org>
21512
21513         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21514         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21515         a reliable way to determine whether the 'alias' command works.
21516
21517 2010-09-08  Jim Meyering  <meyering@redhat.com>
21518
21519         init.sh: penalize a set-x-impaired shell; don't disqualify it
21520         * tests/init.sh: Too many shells corrupt application stderr when
21521         you set -x, so we can't afford to disqualify them, since at least
21522         on Irix-6.5, that would disqualify all bourne shells.
21523         Instead, use a two-pass approach.
21524         On the first pass, try to find a shell that meets the stricter
21525         condition that set -x does not corrupt stderr.
21526         If no shell meets the stricter condition, retest each candidate
21527         shell, but without that extra condition.  Finally, when
21528         VERBOSE=yes is requested and set -x might cause trouble, simply
21529         issue a warning and refrain from enabling debug output.
21530
21531 2010-09-08  Eric Blake  <eblake@redhat.com>
21532
21533         unsetenv: fix OpenBSD bug
21534         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21535         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21536         documentation.
21537         Reported by Jim Meyering.
21538
21539         strtod: work around IRIX 6.5 bug
21540         * lib/strtod.c (strtod): Reparse number on shorter string if
21541         exponent parse was invalid.
21542         * tests/test-strtod.c (main): Add check for "0x1p 2".
21543         Reported by Tom G. Christensen.
21544
21545         getopt: optimize previous patch
21546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21547         empty variable.  Speed up awk script.
21548         Reported by Paolo Bonzini.
21549
21550 2010-09-08  Jim Meyering  <meyering@redhat.com>
21551
21552         test.sh: disqualify shells for which set -x corrupts stderr
21553         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21554         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21555         appear in stderr output.  For example, this command:
21556             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21557         prints "P=1" on those two systems:
21558
21559 2010-09-08  Bruno Haible  <bruno@clisp.org>
21560
21561         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21562         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21563         commands, because some shells ignore redirections when there is an
21564         error in the command lookup.
21565         Reported by Eric Blake.
21566
21567 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21568
21569         * lib/regex.h: Fix a mention of `regex_compile' (should be
21570         `re_compile_pattern').
21571         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21572         (re_set_registers): Correct name of parameter in comment.
21573
21574         * doc/regex.texi: Add documentation for missing syntax flags.
21575         Remove commented-out documentation of defunct syntax option
21576         RE_NO_EMPTY_ALTS.
21577         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21578         Add documentation of re_set_registers.
21579         Document trick to re-use a pattern buffer by setting fastmap manually.
21580         Update documentation of struct re_pattern_buffer per public members.
21581         Uncomment documentation of equivalence class operators and
21582         collating symbol operators, since they are now implemented,
21583         Explain leftmost-longest matching in relation to alternatives.
21584         Tidy documentation of substring matching.
21585         Remove POSIX documentation, which is done better in
21586         glibc, and refer the reader there. Keep BSD API documentation, as
21587         that is not readily available elsewhere.
21588
21589 2010-09-07  Eric Blake  <eblake@redhat.com>
21590
21591         getopt: handle POSIXLY_CORRECT set but not exported
21592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21593         export state of POSIXLY_CORRECT, due to bash set -o posix.
21594         Reported by Dustin J. Mitchell.
21595
21596 2010-09-05  Bruno Haible  <bruno@clisp.org>
21597
21598         gnulib-tool: Highlight the changed options.
21599         * gnulib-tool (func_usage): Display the --import, --add-import,
21600         --remove-import explanations in bold font.
21601
21602 2010-09-06  Karl Berry  <karl@gnu.org>
21603
21604         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21605
21606 2010-09-05  Bruno Haible  <bruno@clisp.org>
21607
21608         uniwidth/width: Update comment.
21609         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21610         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21611
21612 2010-09-05  Bruno Haible  <bruno@clisp.org>
21613
21614         isinf, isnan: Relax license.
21615         * modules/isinf (License): Change from GPL to LGPL, with consent from
21616         Ben Pfaff.
21617         * modules/isnan (License): Likewise.
21618         Requested by Ludovic Courtès.
21619
21620 2010-09-04  Bruno Haible  <bruno@clisp.org>
21621
21622         gnulib-tool: Help migration from --import to --add-import or --update.
21623         * gnulib-tool: Emit a verbose error message when --import is used
21624         without any module name.
21625
21626 2010-09-04  Bruno Haible  <bruno@clisp.org>
21627
21628         Update doc about gnulib-tool.
21629         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21630         'gnulib-tool --update' in more detail.
21631         Reported by Eric Blake.
21632
21633 2010-09-04  Bruno Haible  <bruno@clisp.org>
21634
21635         gnulib-tool: Change --import. New options --add/remove-import.
21636         * gnulib-tool: New options --add-import, --remove-import.
21637         (func_usage): Document them.
21638         (have_associative): Define always.
21639         (func_import): In import mode, don't merge the specified settings with
21640         the cached settings. Implement remove-import mode.
21641         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21642         Explain when to use them versus --import.
21643         (Simple update): Use --add-import instead of --import.
21644         * NEWS: Mention the change.
21645
21646 2010-09-04  Bruno Haible  <bruno@clisp.org>
21647
21648         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21649         separate gnulib.mk.
21650
21651 2010-09-04  Bruno Haible  <bruno@clisp.org>
21652
21653         gnulib-tool: Don't talk about CVS any more.
21654         * gnulib-tool (func_usage, func_import): Write "version control"
21655         instead of CVS.
21656
21657 2010-09-04  Jim Meyering  <meyering@redhat.com>
21658
21659         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21660         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21661         false positives (whose names may be ill-chosen) when searching
21662         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21663         would cause a false-positive.
21664
21665         avoid coreutils "make distcheck" failure
21666         Coreutils tests with an absolute build directory name that contains
21667         a space.  Not quoting this directory name caused a failure.
21668         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21669         * tests/test-vc-list-files-cvs.sh: Likewise.
21670
21671 2010-09-04  Bruno Haible  <bruno@clisp.org>
21672
21673         gnulib-tool: Avoid error when run in a package without Makefile.am.
21674         * gnulib-tool: When collecting the m4dirs in a package that does not
21675         have a Makefile.am, eliminate those directories that contain no
21676         gnulib-cache.m4. Fix expression that counts these directories.
21677
21678 2010-09-04  Bruno Haible  <bruno@clisp.org>
21679
21680         update-copyright test: Improve output when perl is missing or too old.
21681         * tests/test-update-copyright.sh: Move test of Perl version down after
21682         the test whether Perl exists. Provide an explanation relating Perl's
21683         error message to Automake's SKIP: message.
21684
21685 2010-09-04  Bruno Haible  <bruno@clisp.org>
21686
21687         Don't augment PATH in TESTS_ENVIRONMENT.
21688         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21689         set abs_aux_dir instead of augmenting PATH.
21690         * modules/vc-list-files-tests (Makefile.am): Likewise.
21691         * tests/test-update-copyright.sh: Augment PATH here.
21692         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21693         path_prepend_.
21694         * tests/test-vc-list-files-git.sh: Likewise.
21695
21696 2010-09-04  Jim Meyering  <meyering@redhat.com>
21697
21698         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21699         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21700
21701 2010-09-04  Bruno Haible  <bruno@clisp.org>
21702
21703         strdup: Fix compilation error in C++ mode.
21704         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21705         the macro.
21706
21707 2010-09-04  Bruno Haible  <bruno@clisp.org>
21708
21709         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21710         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21711         macro into a function.
21712         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21713
21714 2010-09-04  Bruno Haible  <bruno@clisp.org>
21715
21716         Set PATH_SEPARATOR the same way autoconf does.
21717         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21718         the value of PATH_SEPARATOR the same way autoconf-generated configure
21719         scripts do.
21720         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21721         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21722
21723 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21724
21725         Set PATH_SEPARATOR the same way autoconf does.
21726         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21727         the same way autoconf-generated configure scripts do.
21728         * posix-modules: Likewise.
21729
21730 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21731
21732         hash: fix safe_hasher const typo
21733         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21734         const; otherwise, there is a type error later.
21735
21736 2010-09-02  Jim Meyering  <meyering@redhat.com>
21737
21738         test-update-copyright.sh: require perl 5.8.0
21739         * tests/test-update-copyright.sh: Require 5.8.0,
21740         which Tom G. Christensen has confirmed is adequate,
21741         while 5.6.1 is not.
21742
21743 2010-09-02  Eric Blake  <eblake@redhat.com>
21744
21745         tests: init.sh improvements for re-exec'ing with zsh
21746         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21747         -vx through shell re-exec.
21748         Reported by Tom G. Christensen.
21749
21750         wctype: fix typo in previous commit
21751         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21752         Reported by Ludovic Courtès.
21753
21754 2010-09-02  Jim Meyering  <meyering@redhat.com>
21755
21756         test-update-copyright.sh: skip test if Perl is too old
21757         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21758         Reported by Tom G. Christensen.
21759
21760 2010-09-02  Bruno Haible  <bruno@clisp.org>
21761
21762         wctype: Avoid compilation error on IRIX 6.5.30.
21763         * lib/wctype.in.h (iswblank): Declare with a replacement if
21764         REPLACE_ISWBLANK is set.
21765         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21766         declared. Set REPLACE_ISWBLANK.
21767         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21768         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21769         * doc/posix-headers/wctype.texi: Likewise.
21770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21771
21772 2010-09-01  Bruno Haible  <bruno@clisp.org>
21773
21774         New module 'socketlib'.
21775         * modules/socketlib: New file.
21776         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21777         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21778         * modules/sockets (Depends-on): Add socketlib.
21779         Suggested by Sam Steingold <sds@gnu.org>.
21780
21781 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21782
21783         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21784
21785         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21786         when one needs search access to a directory but not read access.
21787         On systems where it is available, it works in some cases where
21788         O_RDONLY does not, namely on directories that are searchable but
21789         not readable, and which need only to be searchable.  If O_SEARCH
21790         is not available, fall back to the traditional method of using
21791         O_RDONLY.
21792
21793         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21794         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21795         when opening a directory that needs only to be searchable.
21796         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21797         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21798         * lib/openat-proc.c (openat_proc_name): Likewise.
21799         * lib/openat.c (openat_needs_fchdir): Likewise.
21800         * lib/save-cwd.c (save_cwd): Likewise.
21801         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21802
21803 2010-08-28  Bruno Haible  <bruno@clisp.org>
21804
21805         New module 'host-cpu-c-abi'.
21806         * modules/host-cpu-c-abi: New file.
21807         * m4/host-cpu-c-abi.m4: New file, based on part of
21808         clisp/src/m4/general.m4.
21809         Requested by Sam Steingold <sds@gnu.org>.
21810
21811 2010-08-31  Eric Blake  <eblake@redhat.com>
21812         and Jim Meyering  <meyering@redhat.com>
21813
21814         hash: factor, and guard against misbehaving hasher function
21815         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21816         of table->hasher's return value.  Also protect against a hash value
21817         so large that adding it to table->bucket results in a NULL pointer.
21818         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21819         Use it in place of open-coded check-and-abort.
21820
21821 2010-08-30  Bruno Haible  <bruno@clisp.org>
21822
21823         hash: silence spurious clang warning
21824         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21825         Reported by Eric Blake.
21826
21827 2010-08-30  Eric Blake  <eblake@redhat.com>
21828
21829         strstr, memmem, strcasestr: avoid leaked shell message
21830         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21831         FreeBSD.
21832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21833         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21834
21835         tests: silence clang warning
21836         * tests/test-malloca.c (do_allocation): Avoid dead store.
21837
21838 2010-08-29  Bruno Haible  <bruno@clisp.org>
21839
21840         gettext: Fix recent mistake.
21841         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21842
21843 2010-08-29  Bruno Haible  <bruno@clisp.org>
21844
21845         selinux-h: Offer a --without-selinux option.
21846         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21847         --without-selinux was specified, skip all tests and define
21848         HAVE_SELINUX_SELINUX_H to 0.
21849         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21850         set LIB_SELINUX to empty.
21851         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21852         gl_LIBSELINUX. If --without-selinux was specified, replace
21853         selinux/context.h.
21854         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21855
21856 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21857             Bruno Haible  <bruno@clisp.org>
21858
21859         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21860         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21861         of HAVE_REALLOC.
21862         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21863         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21864         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21865         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21866
21867 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21868             Bruno Haible  <bruno@clisp.org>
21869
21870         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21871         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21872         HAVE_CALLOC.
21873         * lib/xmalloc.c: Update accordingly.
21874         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21875         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21876         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21877
21878 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21879             Bruno Haible  <bruno@clisp.org>
21880
21881         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21882         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21883         HAVE_MALLOC.
21884         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21885         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21886         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21887
21888 2010-08-29  Bruno Haible  <bruno@clisp.org>
21889
21890         Update modules list.
21891         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21892         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21893         (String handling <string.h>): Add astrxfrm.
21894         (File system functions): Add readlinkat.
21895
21896 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21897
21898         Tests for module 'realloc-gnu'.
21899         * modules/realloc-gnu-tests: New file.
21900         * tests/test-realloc-gnu.c: New file.
21901
21902         Tests for module 'calloc-gnu'.
21903         * modules/calloc-gnu-tests: New file.
21904         * tests/test-calloc-gnu.c: New file.
21905
21906         Tests for module 'malloc-gnu'.
21907         * modules/malloc-gnu-tests: New file.
21908         * tests/test-malloc-gnu.c: New file.
21909
21910 2010-08-28  Bruno Haible  <bruno@clisp.org>
21911
21912         Rename module 'realloc' -> 'realloc-gnu'.
21913         * modules/realloc-gnu: New file, copied from modules/realloc.
21914         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21915         obsolete.
21916         * modules/mgetgroups (Depends-on): Update.
21917         * doc/posix-functions/realloc.texi: Update.
21918         * NEWS: Mention the change.
21919
21920         Rename module 'calloc' -> 'calloc-gnu'.
21921         * modules/calloc-gnu: New file, copied from modules/calloc.
21922         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21923         obsolete.
21924         * doc/posix-functions/calloc.texi: Update.
21925         * NEWS: Mention the change.
21926
21927         Rename module 'malloc' -> 'malloc-gnu'.
21928         * modules/malloc-gnu: New file, copied from modules/malloc.
21929         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21930         obsolete.
21931         * modules/argp (Depends-on): Update.
21932         * modules/regex (Depends-on): Update.
21933         * doc/posix-functions/malloc.texi: Update.
21934         * NEWS: Mention the change.
21935
21936 2010-08-28  Eric Blake  <eblake@redhat.com>
21937
21938         pread, pwrite: add missing dependency
21939         * modules/pread (Depends-on): Add extensions.
21940         * modules/pwrite (Depends-on): Likewise.
21941
21942 2010-08-28  Bruno Haible  <bruno@clisp.org>
21943
21944         unistr/u*-strchr: Fix tests dependencies.
21945         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21946         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21947         Reported by Ian Beckwith <ianb@erislabs.net>.
21948
21949 2010-08-28  Bruno Haible  <bruno@clisp.org>
21950
21951         read-file: Don't occupy too much unused memory.
21952         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21953
21954 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21955             Eric Blake  <eblake@redhat.com>
21956             Bruno Haible  <bruno@clisp.org>
21957
21958         read-file: Avoid memory reallocations with regular files.
21959         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21960         (fread_file): With regular files, use the remaining length as the
21961         initial buffer size.  Check against overflow.
21962         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21963         sys_stat.
21964
21965 2010-08-28  Bruno Haible  <bruno@clisp.org>
21966
21967         ftello: Relax license.
21968         * modules/ftello (License): Relax to LGPLv2+.
21969         Reported by Eric Blake.
21970
21971 2010-08-28  Bruno Haible  <bruno@clisp.org>
21972
21973         Avoid relocwrapper link errors due to gnulib replacement functions.
21974         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21975         function.
21976         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21977
21978 2010-08-28  Bruno Haible  <bruno@clisp.org>
21979
21980         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21981         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21982         defined.
21983         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21984         Suggested by Eric Blake.
21985
21986 2010-08-28  Bruno Haible  <bruno@clisp.org>
21987
21988         sys_socket, netdb: Ensure socklen_t gets defined.
21989         * modules/sys_socket (Depends-on): Add socklen.
21990         * modules/netdb (Depends-on): Likewise.
21991         * modules/getaddrinfo (Depends-on): Remove socklen.
21992         * modules/getsockopt (Depends-on): Likewise.
21993         * modules/setsockopt (Depends-on): Likewise.
21994         * tests/test-sys_socket.c: Check that socklen_t is defined.
21995         * tests/test-netdb.c: Likewise.
21996         * m4/socklen.m4: Update comments.
21997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21998
21999 2010-08-27  Eric Blake  <eblake@redhat.com>
22000
22001         login_tty: add missing dependency
22002         * modules/login_tty (Depends-on): Add pty.
22003
22004 2010-08-26  Eric Blake  <eblake@redhat.com>
22005
22006         lib-symbol-versions: fix m4 quoting
22007         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22008         format for AC_LINK_IFELSE.
22009
22010         glob: fix compile test
22011         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22012
22013         btowc: fix missing file
22014         * modules/btowc (Files): Also ship locale-fr.m4.
22015
22016         lseek: fix link test
22017         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22018         AC_LINK_IFELSE.
22019
22020         include_next: silence autoconf 2.68 warning
22021         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22022         AC_COMPILE_IFELSE as special.
22023         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22024         autoconf < 2.68.
22025
22026         acl: fix compilation test
22027         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22028         AC_COMPILE_IFELSE.
22029
22030 2010-08-26  Bruno Haible  <bruno@clisp.org>
22031
22032         Modernize AC_TRY_RUN invocations.
22033         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22034         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22035         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22036         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22037         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22038         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22039         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22041         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22042         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22043         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22044         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22045         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22048         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22049         gl_MBRLEN_NUL_RETVAL): Likewise.
22050         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22051         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22052         Likewise.
22053         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22054         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22055         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22056         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22057         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22058         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22059         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22060         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22061         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22062         Likewise.
22063         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22064         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22065         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22066         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22067         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22068         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22069         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22070         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22071         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22073
22074 2010-08-26  Bruno Haible  <bruno@clisp.org>
22075
22076         Modernize AC_TRY_LINK invocations.
22077         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22078         AC_TRY_LINK.
22079         * m4/argp.m4 (gl_ARGP): Likewise.
22080         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22081         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22082         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22083         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22084         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22085         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22086         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22087         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22088         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22089         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22090         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22091         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22092         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22093         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22094         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22095         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22096         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22097         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22098         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22099         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22100         Likewise.
22101         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22102         Likewise.
22103         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22104         Likewise.
22105         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22106         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22107         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22108         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22109         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22110         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22111         * m4/servent.m4 (gl_SERVENT): Likewise.
22112         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22113         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22114         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22115         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22116         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22117         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22118         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22119         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22120         * modules/tsearch-tests (configure.ac): Likewise.
22121
22122 2010-08-26  Bruno Haible  <bruno@clisp.org>
22123
22124         Modernize AC_TRY_COMPILE invocations.
22125         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22126         AC_TRY_COMPILE.
22127         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22128         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22129         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22130         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22131         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22132         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22133         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22134         * m4/lock.m4 (gl_LOCK): Likewise.
22135         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22136         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22137         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22138         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22139         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22140         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22141         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22142         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22143         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22144         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22145         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22146         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22147         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22148         extraneous semicolon.
22149
22150 2010-08-26  Jim Meyering  <meyering@redhat.com>
22151
22152         stat-time: relax license LGPL
22153         * modules/stat-time (License): Change from GPL to LGPL,
22154         with consent from all contributors, for use in libguile.
22155         Requested by Ludovic Courtès.
22156
22157 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22158
22159         poll: return immediately on POLLHUP.
22160         * lib/poll.c (poll): Always set timeout before wait_timeout is
22161         computed.
22162
22163 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22164
22165         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22166         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22167         rmdir ("dir/.//"), unlinkat.
22168
22169 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22170
22171         stdbool: avoid spurious failure with modern xlc
22172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22173
22174 2010-08-24  Bruno Haible  <bruno@clisp.org>
22175
22176         getloadavg: simplify code
22177         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22178         gl_have_func. Update comments.
22179
22180 2010-08-24  Eric Blake  <eblake@redhat.com>
22181
22182         getloadavg: don't define SVR4 on cygwin
22183         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22184         only define SVR4 when -lkvm is required.
22185         Reported by Yaakov Selkowitz.
22186
22187 2010-08-24  Bruno Haible  <bruno@clisp.org>
22188
22189         priv-set: fix comment
22190         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22191
22192 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22193
22194         priv-set: fix comments
22195         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22196         to match code, as suggested by David Bartley in:
22197         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22198
22199 2010-08-23  Eric Blake  <eblake@redhat.com>
22200
22201         stdbool: avoid rejecting clang
22202         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22203         * tests/test-stdbool.c: Enable more tests if using the system
22204         <stdbool.h> instead of the gnulib replacement.
22205         (main): Move xlc bug test to a runtime test for all compilers.
22206         Reported by Anders Kaseorg.
22207
22208         argz: fix shell quoting issue
22209         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22210         Reported by Charles Wilson.
22211
22212 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22213             Erik Faye-Lund <kusmabite@gmail.com>
22214
22215         poll, select: handle ERROR_BROKEN_PIPE.
22216         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22217         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22218         * lib/select.c (win32_compute_revents): Do not mark a pipe
22219         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22220
22221 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22222
22223         fts: allow compilation with C++
22224         * lib/fts_.h: Specify extern "C" linkage with C++.
22225
22226 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22227
22228         Fix gnulib-tool sed script de-commentation for AIX sed.
22229         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22230         sed.
22231
22232 2010-08-17  Eric Blake  <eblake@redhat.com>
22233
22234         test-stddef: test for (some) offsetof bugs
22235         * tests/test-stddef.c: Enhance test to ensure correct type of
22236         offsetof.
22237         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22238         that we are not fixing at this time.
22239
22240 2010-08-15  Bruno Haible  <bruno@clisp.org>
22241
22242         stpncpy: Allow stpncpy to be defined as a macro.
22243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22244         if it's already correctly declared.
22245         * lib/string.in.h (stpncpy): Undefine before redefining.
22246         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22247
22248 2010-08-14  Bruno Haible  <bruno@clisp.org>
22249
22250         Rename module 'memxfrm' to 'amemxfrm'.
22251         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22252         (amemxfrm): Renamed from memxfrm.
22253         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22254         (amemxfrm): Renamed from memxfrm.
22255         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22256         * NEWS: Mention the change.
22257         * MODULES.html.sh (String handling <string.h>): Update.
22258         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22259         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22260         * lib/unicase/u16-casexfrm.c: Likewise.
22261         * lib/unicase/u32-casexfrm.c: Likewise.
22262         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22263         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22264         * lib/uninorm/u16-normxfrm.c: Likewise.
22265         * lib/uninorm/u32-normxfrm.c: Likewise.
22266         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22267         memxfrm.
22268         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22269         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22270         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22271         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22272         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22273         Suggested by Paul Eggert.
22274
22275 2010-08-14  Bruno Haible  <bruno@clisp.org>
22276
22277         Tests for module 'astrxfrm'.
22278         * modules/astrxfrm-tests: New file.
22279         * tests/test-astrxfrm.c: New file.
22280
22281         New module 'astrxfrm'.
22282         * lib/astrxfrm.h: New file.
22283         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22284         * modules/astrxfrm: New file.
22285
22286 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22287
22288         regex: Tweak doc.
22289         * doc/regex.texi (Overview): Don't mention regex.c.
22290         (GNU Regular Expression Compiling): Likewise.
22291         (Match-end-of-line Operator): Mention 'not_eol'.
22292
22293 2010-08-14  Brian Gough  <bjg@gnu.org>
22294             Bruno Haible  <bruno@clisp.org>
22295
22296         git-merge-changelog: add doc relating to use with bzr and hg.
22297         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22298
22299 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22300
22301         pthread: fix pthread.h creation for srcdir != builddir
22302         * modules/pthread (Makefile.am): Fix the rule to work also in a
22303         non-srcdir build.
22304
22305 2010-08-13  Karl Berry  <karl@gnu.org>
22306
22307         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22308         * doc/posix-*/*: force line break before @url of POSIX
22309         specifications.
22310         Suggested by Werner Lemberg.
22311
22312 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22313
22314         strtod: fix const diagnostic
22315         * lib/strtod.c (strtod): Don't assign const char * to char *,
22316         as this elicits a warning from GCC when warnings are enabled.
22317
22318 2010-08-10  Pádraig Brady <P@draigbrady.com>
22319         and Eric Blake  <eblake@redhat.com>
22320
22321         copy-acl: ignore ENOTSUP on HP-UX
22322         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22323         so that it is available for HP-UX.
22324         * lib/copy-acl.c (qcopy_acl): Use it.
22325         Reported by Patrick M. Callahan.
22326
22327 2010-08-10  Eric Blake  <eblake@redhat.com>
22328
22329         open, chown: relax license
22330         * modules/open (License): Change to LGPLv2+, with consent by all
22331         authors, for use in augeas.
22332         * modules/chown (License): Likewise.
22333         * modules/lchown (Likewise): Likewise.
22334         Requested by Adam Stokes.
22335
22336 2010-08-09  Karl Berry  <karl@gnu.org>
22337
22338         * build-aux/ar-lib: new file, import from Automake.
22339         * config/srclist.txt: autocheck for updates.
22340
22341 2010-08-09  Eric Blake  <eblake@redhat.com>
22342
22343         readlinkat: adjust client modules
22344         * modules/areadlinkat (Depends-on): Use readlinkat, not
22345         symlinkat.
22346         * modules/areadlinkat-with-size (Depends-on): Likewise.
22347
22348         mknod: be more vocal about danger of running tests as root
22349         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22350         root, since that is just asking for problems.
22351         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22352
22353         readlinkat: split into its own module
22354         * modules/symlinkat: Split readlinkat...
22355         * modules/readlinkat: ...into separate module.
22356         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22357         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22358         * lib/symlinkat.c (readlinkat): Move...
22359         * lib/readlinkat.c: ...into new file.
22360         * modules/symlinkat-tests: Split readlinkat test...
22361         * modules/readlinkat-tests: ...into separate module.
22362         * tests/test-symlinkat.c: Split...
22363         * tests/test-readlinkat.c: ...into new file.
22364         * NEWS: Document the split.
22365         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22366         * lib/unistd.in.h (readlinkat): Likewise.
22367         Suggested by Bruno Haible.
22368
22369 2010-08-08  Bruno Haible  <bruno@clisp.org>
22370
22371         memxfrm: Speed up.
22372         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22373         that usually only one call to strxfrm is necessary for each string
22374         part.
22375         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22376
22377 2010-08-07  Karl Berry  <karl@gnu.org>
22378
22379         * doc/posix-headers/limits.texi,
22380         * doc/posix-functions/malloc.texi,
22381         * doc/posix-functions/strsignal.texi: missing @item.
22382         * doc/ld-version-script.texi: spurious leading i.
22383         * doc/regex.texi (Interval Operators): no commas inside @var.
22384
22385 2010-08-01  Bruno Haible  <bruno@clisp.org>
22386
22387         Integrate the regex documentation.
22388         * doc/gnulib.texi: Define 'cn' index.
22389         (Regular expressions): New a chapter that includes regex.texi and
22390         regexprops-generic.texi.
22391         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22392         syntax.
22393
22394         Whitespace cleanup.
22395         * doc/regex.texi: Remove trailing spaces.
22396
22397         Add regex documentation.
22398         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22399         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22400         Written by Kathy A. Hargreaves and Karl Berry.
22401
22402 2010-08-01  Bruno Haible  <bruno@clisp.org>
22403
22404         link: Update documentation.
22405         * doc/posix-functions/link.texi: Update regarding Solaris.
22406
22407 2010-07-31  Bruno Haible  <bruno@clisp.org>
22408
22409         Update modules list.
22410         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22411         (String handling <string.h>): Add memcmp2, memxfrm.
22412         (Container data structures): Add xlist, xsublist, xoset.
22413         (Core language properties): Add alignof, unused-parameter.
22414         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22415         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22416         (Unibyte characters <ctype.h>): New section.
22417         (String handling <string.h>): New section.
22418         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22419         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22420         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22421         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22422         tan, tanh, tanl, y0, y1, yn.
22423         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22424         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22425         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22426         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22427         unlockpt, vdprintf, vdprintf-posix.
22428         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22429         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22430         xconcat-filename.
22431         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22432         getdtablesize, pipe2, pipe2-safer.
22433         (Security): New section.
22434         (Networking functions): Add accept4.
22435         (Signal handling): Add sigpipe.
22436         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22437         mbmemcasecoll.
22438         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22439         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22440         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22441         pipe-filter-ii.
22442         (Misc): Add argp-version-etc, login_tty, parse-duration.
22443
22444 2010-07-31  Bruno Haible  <bruno@clisp.org>
22445
22446         Improve doc in MODULES.html.
22447         * modules/linkat (Description): Add the word "function".
22448         * modules/mkfifo (Description): Likewise.
22449         * modules/mknod (Description): Likewise.
22450         * modules/remove (Description): Likewise.
22451         * modules/renameat (Description): Likewise.
22452         * modules/stat (Description): Likewise.
22453         * modules/symlink (Description): Likewise.
22454         * modules/unlink (Description): Likewise.
22455
22456 2010-07-31  Bruno Haible  <bruno@clisp.org>
22457
22458         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22459         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22460         option --enable/disable-c++ instead of --enable/disable-cxx.
22461         * NEWS: Mention the change.
22462
22463 2010-07-31  Bruno Haible  <bruno@clisp.org>
22464
22465         readlink, areadlink: Relax test a bit.
22466         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22467         alternative to ENOTDIR.
22468         * tests/test-areadlink.h (test_areadlink): Likewise.
22469         Reported by Rainer Tammer.
22470
22471 2010-07-31  Bruno Haible  <bruno@clisp.org>
22472
22473         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22474         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22475         character, perform the search using U_STRCHR.
22476         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22477         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22478         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22479         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22480         Suggested by Paolo Bonzini.
22481
22482 2010-07-31  Bruno Haible  <bruno@clisp.org>
22483
22484         unistr/u*-strstr: Fix dependencies.
22485         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22486         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22487         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22488
22489 2010-07-31  Bruno Haible  <bruno@clisp.org>
22490
22491         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22492         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22493         the beginning of the loop.
22494         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22495         cases in 'switch' statement.
22496
22497         unistr/u8-strchr: Fix several bugs.
22498         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22499         the string. When not found, return NULL, not a pointer near the end.
22500
22501         More tests for unistr/u8-strchr.
22502         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22503         that the function does not read past the first occurrence of the byte
22504         being searched.
22505         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22506         * tests/unistr/test-u16-strchr.c (main): New function.
22507         * tests/unistr/test-u32-strchr.c (main): New function.
22508
22509 2010-07-31  Bruno Haible  <bruno@clisp.org>
22510
22511         posix-modules: Ignore backup files of documentation files.
22512         * posix-modules: grep only through files named *.texi.
22513
22514 2010-07-31  Bruno Haible  <bruno@clisp.org>
22515
22516         symlinkat: Fix documentation.
22517         * doc/posix-functions/readlinkat.texi: Fix module name.
22518
22519 2010-07-31  Bruno Haible  <bruno@clisp.org>
22520
22521         fchownat: Replace also when chown has the trailing slash bug.
22522         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22523         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22524         introduced on 2010-04-10.
22525         Reported by Rainer Tammer.
22526
22527 2010-07-31  Bruno Haible  <bruno@clisp.org>
22528
22529         linkat: Work around AIX 7.1 bug.
22530         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22531         whether linkat handles trailing slash correctly. If not, replace linkat
22532         and define LINKAT_TRAILING_SLASH_BUG.
22533         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22534         check whether (fd1,file1) points to a directory if file1 or file2 ends
22535         in a slash. Code taken from lib/link.c.
22536         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22537         Reported by Rainer Tammer.
22538
22539 2010-07-31  Bruno Haible  <bruno@clisp.org>
22540
22541         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22542         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22543         This disables an xlc optimization that was causing wrong test results.
22544         Reported by Rainer Tammer.
22545
22546 2010-07-31  Bruno Haible  <bruno@clisp.org>
22547
22548         iconv: Work around AIX 6.1..7.1 bug.
22549         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22550         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22551         cross-compiling, guess no on all versions of AIX.
22552         Reported by Rainer Tammer.
22553
22554 2010-07-31  Bruno Haible  <bruno@clisp.org>
22555
22556         readlink: Relax test a bit.
22557         * tests/test-readlink.h (test_readlink): Allow different errno value
22558         when readlink is called with a file name that ends in / and refers to
22559         a file.
22560         Suggested by Eric Blake.
22561         Reported by Rainer Tammer.
22562
22563 2010-07-31  Bruno Haible  <bruno@clisp.org>
22564
22565         copysign: Does not require -lm on glibc systems.
22566         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22567         gl_COMMON_DOUBLE_MATHFUNC.
22568         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22569
22570 2010-07-31  Bruno Haible  <bruno@clisp.org>
22571
22572         duplocale: Work around AIX 7.1 bug.
22573         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22574         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22575         * lib/duplocale.c (rpl_duplocale): Update comment.
22576         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22577         Reported by Rainer Tammer.
22578
22579 2010-07-30  Bruno Haible  <bruno@clisp.org>
22580
22581         dirfd: Avoid link error on AIX 7.1.
22582         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22583         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22584         exist, set REPLACE_DIRFD.
22585         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22586         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22587         * doc/posix-functions/dirfd.texi: Update.
22588         Reported by Rainer Tammer.
22589
22590 2010-07-30  Eric Blake  <eblake@redhat.com>
22591
22592         strtod: next round of AIX fixes
22593         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22594         exponent.
22595         * tests/test-strtod.c (main): Enhance tests.
22596         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22597         Reported by Rainer Tammer.
22598
22599         futimens: fix configure check
22600         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22601         Reported by Bruno Haible.
22602
22603 2010-07-30  Bruno Haible  <bruno@clisp.org>
22604
22605         getline: Update regarding AIX.
22606         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22607         Reported by Rainer Tammer.
22608
22609 2010-07-30  Bruno Haible  <bruno@clisp.org>
22610
22611         wcwidth: Drop replacement on AIX 7.
22612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22613         AIX 7.
22614         Reported by Rainer Tammer.
22615
22616 2010-07-30  Bruno Haible  <bruno@clisp.org>
22617
22618         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22619         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22620         a 'char *'.
22621         Reported by Rainer Tammer.
22622
22623 2010-07-30  Bruno Haible  <bruno@clisp.org>
22624
22625         unlink: Update regarding AIX.
22626         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22627         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22628         Reported by Rainer Tammer.
22629
22630 2010-07-30  Bruno Haible  <bruno@clisp.org>
22631
22632         symlink: Update regarding AIX.
22633         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22634         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22635         Reported by Rainer Tammer.
22636
22637 2010-07-30  Bruno Haible  <bruno@clisp.org>
22638
22639         strndup: Update regarding AIX.
22640         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22641         AIX 7.
22642         Reported by Rainer Tammer.
22643
22644 2010-07-30  Bruno Haible  <bruno@clisp.org>
22645
22646         stat: Update regarding AIX.
22647         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22648         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22649         Reported by Rainer Tammer.
22650
22651 2010-07-30  Bruno Haible  <bruno@clisp.org>
22652
22653         truncl: Fix autoconf test.
22654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22655         whether truncl works.
22656         Reported by Rainer Tammer.
22657
22658 2010-07-30  Bruno Haible  <bruno@clisp.org>
22659
22660         round: Update regarding AIX.
22661         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22662         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22663         Reported by Rainer Tammer.
22664
22665 2010-07-30  Bruno Haible  <bruno@clisp.org>
22666
22667         rename: Update regarding AIX.
22668         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22669         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22670         Reported by Rainer Tammer.
22671
22672 2010-07-30  Bruno Haible  <bruno@clisp.org>
22673
22674         printf.m4: Update regarding AIX.
22675         * m4/printf.m4: Update comments regarding AIX.
22676         Reported by Rainer Tammer.
22677
22678 2010-07-30  Bruno Haible  <bruno@clisp.org>
22679
22680         iconv: Update regarding AIX.
22681         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22682         AIX 7.
22683         Reported by Rainer Tammer.
22684
22685 2010-07-30  Bruno Haible  <bruno@clisp.org>
22686
22687         getopt: Update regarding AIX.
22688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22689         no on AIX.
22690         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22691         Reported by Rainer Tammer.
22692
22693 2010-07-30  Bruno Haible  <bruno@clisp.org>
22694
22695         ldexpl; Update regarding AIX.
22696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22697         on AIX 7.
22698         Reported by Rainer Tammer.
22699
22700 2010-07-30  Bruno Haible  <bruno@clisp.org>
22701
22702         frexpl: Update regarding AIX.
22703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22704         on AIX 7.
22705         Reported by Rainer Tammer.
22706
22707 2010-07-30  Bruno Haible  <bruno@clisp.org>
22708
22709         open, fopen: Update regarding AIX.
22710         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22711         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22712         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22713         * doc/posix-functions/fopen.texi: Likewise.
22714         Reported by Rainer Tammer.
22715
22716 2010-07-30  Bruno Haible  <bruno@clisp.org>
22717
22718         chown: Update doc regarding AIX.
22719         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22720         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22721         Reported by Rainer Tammer.
22722
22723 2010-07-30  Eric Blake  <eblake@redhat.com>
22724
22725         strtod: fix bug in replacement function on AIX
22726         * lib/strtod.c (strtod): Special case broken "0x" parse in
22727         underlying strtod.
22728         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22729         * doc/posix-functions/strtod.texi (strtod): Likewise.
22730         Reported by Rainer Tammer.
22731
22732 2010-07-30  Bruno Haible  <bruno@clisp.org>
22733
22734         mbrlen: Fix cross-compilation guess for AIX.
22735         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22736         guess. Leftover from 2008-12-22.
22737
22738 2010-07-30  Bruno Haible  <bruno@clisp.org>
22739
22740         mbrtowc: Fix cross-compilation guess for AIX.
22741         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22742         guess. Leftover from 2008-12-21.
22743
22744 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22745
22746         init.sh: work around trap limitation of some shells
22747         * tests/init.sh (setup_): Move exit trap outside of shell function.
22748
22749 2010-07-29  Eric Blake  <eblake@redhat.com>
22750
22751         strtod: aid debugging
22752         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22753         understanding why strtod is rejected.
22754
22755 2010-07-28  Bruno Haible  <bruno@clisp.org>
22756
22757         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22758         * lib/unistr/u8-chr.c: Include <string.h>.
22759         * tests/unistr/test-u8-chr.c: Likewise.
22760         * tests/unistr/test-u16-chr.c: Likewise.
22761         * tests/unistr/test-u32-chr.c: Likewise.
22762         * tests/unistr/test-u8-strchr.c: Likewise.
22763         * tests/unistr/test-u16-strchr.c: Likewise.
22764         * tests/unistr/test-u32-strchr.c: Likewise.
22765         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22766         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22767         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22768         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22769
22770 2010-07-28  Bruno Haible  <bruno@clisp.org>
22771
22772         Use spaces for indentation, not tabs.
22773         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22774
22775 2010-07-27  Bruno Haible  <bruno@clisp.org>
22776
22777         mbspcasecmp: Fix function specification.
22778         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22779         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22780         Reported by Eric Blake <eblake@redhat.com>.
22781
22782 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22783
22784         timespec: use cast and not conditional, as truncation isn't possible
22785         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22786         instead of a conditional.  Comment about the situation in more detail.
22787         This undoes most of the 2009-10-29 patch.
22788
22789 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22790
22791         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22792         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22793         * lib/unistr/u8-strchr.c: Likewise.
22794         * modules/unistr/u8-chr: Depend on memchr.
22795
22796         unistr/u*-strchr: add tests
22797         * modules/unistr/u8-strchr-tests: New file.
22798         * modules/unistr/u16-strchr-tests: New file.
22799         * modules/unistr/u32-strchr-tests: New file.
22800         * tests/unistr/test-strchr.h: New file.
22801         * tests/unistr/test-u8-strchr.c: New file.
22802         * tests/unistr/test-u16-strchr.c: New file.
22803         * tests/unistr/test-u32-strchr.c: New file.
22804
22805         unistr/u*-chr: test multibyte sequences more
22806         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22807         test vector.
22808         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22809         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22810         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22811
22812         unistr/u*-chr: test multibyte sequences
22813         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22814
22815         unistr/u*-chr: prepare for multibyte tests
22816         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22817         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22818         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22819         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22820         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22821         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22822
22823 2010-07-18  Bruno Haible  <bruno@clisp.org>
22824
22825         unistr/u8-strchr: Optimize non-ASCII argument case.
22826         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22827         because the first byte often matches anyway.
22828         Reported by Pádraig Brady <P@draigbrady.com>.
22829
22830 2010-07-15  Karl Berry  <karl@gnu.org>
22831
22832         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22833
22834 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22835
22836         getcwd: on Solaris, work better if ancestors are inaccessible
22837         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22838         buffer and size, try again with a large buffer.  This works better
22839         on Solaris, since its getcwd succeeds even if the path to the root
22840         is inaccessible, and this is helpful in common cases such as .zfs
22841         hidden directories.  Problem reported by J Chapman Flack in
22842         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22843         Use system getcwd if it's declared, not merely if it's partly
22844         working; use the partly-working test only to avoid needless effort
22845         if the system getcwd fails.
22846         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22847         comment that was already obsolete and is now even more obsolete.
22848         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22849         now might call strdup.
22850
22851 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22852
22853         pthread: Add enough so that coreutils/src/sort.c compiles.
22854         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22855         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22856         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22857         Include <sys/types.h>, in case it defines pthread_t.
22858         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22859         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22860         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22861         (pthread_rwlockattr_t, pthread_spinlock_t):
22862         New typedefs, if HAVE_PTHREAD_T is not defined.
22863         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22864         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22865         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22866         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22867         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22868         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22869         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22870         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22871         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22872         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22873         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22874         New macros.
22875         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22876         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22877         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22878         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22879         (pthread_spin_unlock): New dummy functions.
22880         (pthread_create): Return EAGAIN; don't set errno.
22881         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22882         require AC_C_INLINE.
22883         * modules/pthread (Depends-on): Add sched, time.
22884         (pthread.h): Use AM_V_GEN.
22885
22886 2010-07-13  Bruno Haible  <bruno@clisp.org>
22887
22888         striconveh: Don't malloc memory if the result buffer is sufficient.
22889         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22890         buffer if its size is sufficient.
22891         Reported by Ludovic Courtès <ludo@gnu.org>.
22892
22893 2010-07-13  Bruno Haible  <bruno@clisp.org>
22894
22895         strtod: Add safety check.
22896         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22897
22898 2010-07-12  Bruno Haible  <bruno@clisp.org>
22899
22900         Unify tests that set gl_cv_func_ldexpl_no_libm.
22901         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22902         gl_FUNC_LDEXPL.
22903         (gl_FUNC_LDEXPL): Invoke it.
22904         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22905
22906 2010-07-12  Bruno Haible  <bruno@clisp.org>
22907
22908         Unify tests that set gl_cv_func_ldexp_no_libm.
22909         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22910         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22911         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22912         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22913         * modules/strtod (Files): Add m4/ldexp.m4.
22914
22915 2010-07-12  Bruno Haible  <bruno@clisp.org>
22916
22917         Unify tests that set gl_cv_func_frexpl_no_libm.
22918         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22919         gl_FUNC_FREXPL_NO_LIBM.
22920         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22921         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22922
22923 2010-07-12  Bruno Haible  <bruno@clisp.org>
22924
22925         Unify tests that set gl_cv_func_frexp_no_libm.
22926         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22927         gl_FUNC_FREXP_NO_LIBM.
22928         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22929         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22930
22931 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22932
22933         memcoll: clarify sizes versus lengths, document better, and tweak perf
22934         * lib/memcoll.c (strcoll_loop, memcoll0):
22935         Improve quality of descriptive comments.  Name variables
22936         consistently as to whether they are lengths (which do not include
22937         terminating null) versus sizes (which do).
22938         * lib/xmemcoll.c (xmemcoll0): Likewise.
22939         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22940         returned when s1size == 0; this is easier to compile and saves
22941         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22942
22943 2010-07-12  Bruno Haible  <bruno@clisp.org>
22944
22945         Tests for module '_Exit'.
22946         * modules/_Exit-tests: New file.
22947         * tests/test-_Exit.sh: New file.
22948         * tests/test-_Exit.c: New file.
22949
22950         New module '_Exit'.
22951         * lib/stdlib.in.h (__attribute__): New macro.
22952         (_Exit): New declaration.
22953         * lib/_Exit.c: New file.
22954         * m4/_Exit.m4: New file.
22955         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22956         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22957         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22958         * modules/_Exit: New file.
22959         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22960         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22961
22962 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22963
22964         strtod: make it more-accurate typically, and don't require libm
22965         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22966         Include limits.h.  Don't include string.h.
22967         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22968         (locale_isspace): New function, so that no casts are needed to
22969         check whether *s is a space.
22970         (ldexp): Provide an unused dummy if not available.
22971         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22972         (strtod): Use them.  This implementation prefers to use the
22973         underlying strtod if available, falling back on our own code
22974         only to fix known bugs.  This is more likely to produce an
22975         accurate result.  Also, it avoids the use of libm functions.
22976         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22977         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22978         was absent, but it caused a test failure with coreutils.
22979         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22980         with libm.
22981         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22982         * modules/strtod-tests (Makefile.am): Likewise.
22983
22984 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22985             Bruno Haible  <bruno@clisp.org>
22986
22987         unistr/u8-strchr: Optimize ASCII argument case.
22988         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22989
22990 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22991
22992         (x)memcoll: minor tweaks
22993         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22994         is after the type that it qualifies.
22995         (memcoll0): Likewise.
22996         * lib/memcoll.h (memcoll0): Likewise.
22997         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22998         * lib/xmemcoll.h (xmemcoll0): Likewise.
22999         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23000         differs from memcoll in that the NUL byte is part of the argument.
23001         Omit the abort-checks, as performance is a real issue here.  Plus,
23002         the checks were wrong anyway (an off-by-one error).  Omit local
23003         variable 'diff', as it's a bit clearer that way.
23004         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23005         no longer needed.
23006
23007 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23008
23009         (x)memcoll: speedup when input is known to be NUL delimited
23010         * lib/memcoll.c: Include stdlib.
23011         (memcoll0): New function.
23012         (strcoll_loop): New function, refactored for use in both memcoll
23013         and memcoll0.
23014         * lib/memcoll.h (memcoll0): Add prototype.
23015         * lib/xmemcoll.c (xmemcoll0): New function.
23016         (collate_error): New function, refactored for use in both xmemcoll
23017         and xmemcoll0.
23018         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23019         * m4/memcoll.m4: add inline invocation.
23020
23021 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23022
23023         * build-aux/bootstrap: Remove any local translations
23024         from the translation project synchronization directory,
23025         so that local only translations are not distributed.
23026
23027 2010-07-04  Bruno Haible  <bruno@clisp.org>
23028
23029         fsusage: Clarify which code applies to which platforms.
23030         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23031         platform.
23032         * lib/fsusage.c (get_fs_usage): Likewise.
23033
23034 2010-07-04  Bruno Haible  <bruno@clisp.org>
23035
23036         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23037         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23038         Reported by Martin Lambers <marlam@marlam.de>.
23039
23040 2010-07-04  Jim Meyering  <meyering@redhat.com>
23041
23042         hash: once again explicitly disallow insertion of NULL
23043         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23044         inserting a NULL pointer cannot work with these functions.
23045         Add a comment with details.
23046         This reverts part of the 2010-07-01 commit, 5bef1a35
23047         "hash: extend module to deal with non-pointer keys".
23048
23049 2010-07-01  Bruno Haible  <bruno@clisp.org>
23050
23051         stdbool: Update doc.
23052         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23053         Info from Christian Weisgerber <naddy@mips.inka.de>.
23054
23055 2010-07-01  Jim Meyering  <meyering@redhat.com>
23056
23057         hash: extend module to deal with non-pointer keys
23058         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23059         but that allows insertion of non-pointer entries.
23060         Do not disallow an ENTRY value of NULL.
23061         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23062         * lib/hash.h (hash_insert0): Declare.
23063
23064 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23065
23066         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23067         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23068         not present (i.e. with autoconf 2.59 and when using gettextize, not
23069         gnulib), require AC_GNU_SOURCE instead.
23070
23071 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23072
23073         idpriv-drop: Fix tests.
23074         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23075         not to the test-idpriv-droptemp program.
23076
23077 2010-06-29  Bruno Haible  <bruno@clisp.org>
23078
23079         string: Fix syntax error with g++ 2.96.
23080         * lib/string.in.h (__pure__): Remove definition.
23081         (_GL_ATTRIBUTE_PURE): New macro.
23082         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23083         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23084         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23085
23086 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23087
23088         unitypes: Fix bug introduced on 2010-05-18.
23089         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23090
23091 2010-06-22  Eric Blake  <eblake@redhat.com>
23092
23093         memmem: slight optimization
23094         * lib/str-two-way.h (critical_factorization): Update comments.
23095         Reduce work during factorization phase.
23096         Reported by Carlos Bueno <carlos@bueno.org>.
23097
23098 2010-06-21  Bruno Haible  <bruno@clisp.org>
23099
23100         Fix HAVE_CALLOC_POSIX misnomer.
23101         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23102         !HAVE_CALLOC_POSIX.
23103         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23104         HAVE_CALLOC_POSIX.
23105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23106         instead of HAVE_CALLOC_POSIX.
23107         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23108         HAVE_CALLOC_POSIX.
23109
23110         Use modern idiom for calloc() replacement.
23111         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23112         AC_FUNC_CALLOC.
23113         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23114         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23115         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23116         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23117         (gl_REPLACE_CALLOC): New macro.
23118
23119 2010-06-21  Bruno Haible  <bruno@clisp.org>
23120
23121         Fix HAVE_REALLOC_POSIX misnomer.
23122         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23123         !HAVE_REALLOC_POSIX.
23124         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23125         HAVE_REALLOC_POSIX.
23126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23127         instead of HAVE_REALLOC_POSIX.
23128         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23129         HAVE_REALLOC_POSIX.
23130
23131         Use modern idiom for realloc() replacement.
23132         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23133         AC_FUNC_REALLOC.
23134         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23135         Autoconf's AC_FUNC_REALLOC.
23136         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23137         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23138         (gl_REPLACE_REALLOC): New macro.
23139         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23140
23141 2010-06-21  Bruno Haible  <bruno@clisp.org>
23142
23143         Fix HAVE_MALLOC_POSIX misnomer.
23144         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23145         !HAVE_MALLOC_POSIX.
23146         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23147         HAVE_MALLOC_POSIX.
23148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23149         instead of HAVE_MALLOC_POSIX.
23150         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23151         HAVE_MALLOC_POSIX.
23152
23153         Use modern idiom for malloc() replacement.
23154         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23155         AC_FUNC_MALLOC.
23156         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23157         Autoconf's AC_FUNC_MALLOC.
23158         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23159         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23160         (gl_REPLACE_MALLOC): New macro.
23161         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23162
23163 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23164
23165         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23166         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23167         This macro takes 3 arguments, not 4.
23168
23169 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23170
23171         ipv6: fix detection under mingw
23172         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23173         in6_addr.
23174
23175 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23176
23177         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23178         that strtod() works when cross-compiling to a glibc version known
23179         to work.
23180
23181 2010-06-15  Bruno Haible  <bruno@clisp.org>
23182
23183         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23184
23185 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23186
23187         select: Correct timeout.
23188         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23189
23190 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23191
23192         git-version-gen: init shell var to avoid env var influence
23193         * build-aux/git-version-gen (v): Init shell var to empty.
23194
23195 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23196
23197         priv-set: Don't assume that priv.h exists merely because getppriv does.
23198         See Jan Andersen's bug report about AIX 5L in
23199         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23200         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23201         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23202         * lib/priv-set.h: Likewise.
23203         * tests/test-priv-set.c: Likewise.
23204
23205 2010-06-13  Bruno Haible  <bruno@clisp.org>
23206
23207         relocatable: Make it easier to test whether to install wrappers.
23208         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23209         RELOCATABLE_VIA_WRAPPER.
23210
23211 2010-06-13  Bruno Haible  <bruno@clisp.org>
23212
23213         gnulib-tool: Display specified modules and dependencies differently.
23214         * gnulib-tool (func_show_module_list): New function.
23215         (func_import, func_create_testdir): Invoke it.
23216         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23217
23218 2010-06-13  Bruno Haible  <bruno@clisp.org>
23219
23220         gnulib-tool: Align code of func_import and func_create_testdir.
23221         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23222         specified_modules.
23223
23224 2010-06-12  Jim Meyering  <meyering@redhat.com>
23225
23226         test-inttostr: avoid spurious failure on Solaris 9
23227         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23228         to accept "%ju".  Reported by Bruno Haible.
23229
23230 2010-06-11  Jim Meyering  <meyering@redhat.com>
23231
23232         test-sys_socket: mark variables as used more readably
23233         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23234         as "used" explicitly via (void) statement casts.  This is more
23235         readable than using them in an artificial return expression.
23236         Suggestion from Bruno Haible.
23237
23238 2010-06-11  Bruno Haible  <bruno@clisp.org>
23239
23240         Avoid some more warnings from "gcc -Wwrite-strings".
23241         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23242         to 'const char *'.
23243         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23244         * tests/test-c-strcasestr.c (main): Likewise.
23245         * tests/test-mbscasestr1.c (main): Likewise.
23246         * tests/test-mbscasestr2.c (main): Likewise.
23247         * tests/test-memmem.c (main): Likewise.
23248         * tests/test-strstr.c (main): Likewise.
23249         * tests/test-strcasestr.c (main): Likewise.
23250
23251 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23252
23253         init.sh: change framework_failure_ to fail with status 99, not 1
23254         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23255         automake's parallel-tests rule that this is an unexpected failure,
23256         even if the test is listed in XFAIL_TESTS.
23257
23258 2010-06-11  Jim Meyering  <meyering@redhat.com>
23259
23260         test-inttostr: avoid warnings about 4-6KB literal strings
23261         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23262         Include "macros.h", for its definition of ASSERT.
23263         (CK): s/assert/ASSERT/
23264         * modules/inttostr-tests (Files): Add macros.h.
23265
23266         init.sh: don't use $ME_ or skip_ before they are defined
23267         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23268         their first uses.  Also hoist their companions: warn_, fail_,
23269         framework_failure_, $stderr_fileno.  Prompted by a patch from
23270         Stefano Lattarini.
23271
23272         test-sys_socket: avoid set-but-not-used warnings from gcc
23273         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23274         avoid warning about set-but-not-used variables.
23275
23276         test-xvasprintf: avoid 'const' discard warnings
23277         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23278         "const" when assigning from literal strings.
23279         (test_xasprintf): Add "void" in function argument list to placate
23280         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23281
23282         tests: avoid compilation warnings in argmatch and exclude tests...
23283         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23284         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23285         Since it always exits, declare with the "noreturn" attribute.
23286         * tests/test-argmatch.c: Likewise.
23287
23288         tests: avoid 'const' discard warnings in mbsstr tests
23289         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23290         * tests/test-mbsstr2.c (main): Likewise.
23291
23292         test-verify: avoid warning from gcc's -Wmissing-declarations
23293         * tests/test-verify.c (function): Declare to be static.
23294
23295         test-inttostr.c: include <string.h> for use of strcmp
23296         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23297
23298         test-linkat: avoid failed assertion on "other" architectures
23299         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23300         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23301         sparc: https://bugs.launchpad.net/bugs/591968
23302
23303 2010-06-11  Jim Meyering  <meyering@redhat.com>
23304
23305         printf.m4: avoid autoconf's "Expanded Before Required" warning
23306         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23307         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23308         autoconf warning.
23309
23310 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23311
23312         Replacement header templates are now named with ".in", not "_".
23313         * doc/gnulib-intro.texi: Correct.
23314
23315 2010-06-10  Jim Meyering  <meyering@redhat.com>
23316
23317         inttostr-tests: depend on snprintf, not snprintf-posix
23318         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23319         snprintf-posix, to avoid this aclocal failure:
23320           missing file gnulib-tests/vasnprintf.c
23321           configure.ac:45: error: expected source file, required through \
23322           AC_LIBSOURCES, not found
23323
23324 2010-06-10  Jim Meyering  <meyering@redhat.com>
23325
23326         inttostr: add a new function, inttostr, and tests
23327         The namesake function was not available.  The existence of the
23328         template file, inttostr.c makes its addition nontrivial.
23329         * lib/anytostr.c: Rename from inttostr.c.
23330         (anytostr): Rename from inttostr.
23331         * lib/inttostr.c: New file.
23332         * modules/inttostr (Files): Add anytostr.c.
23333         (Makefile.am): Set lib_SOURCES instead of ...
23334         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23335         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23336         * lib/offtostr.c: Likewise.
23337         * lib/uinttostr.c: Likewise.
23338         * lib/umaxtostr.c: Likewise.
23339         * modules/inttostr-tests: New file.
23340         * tests/test-inttostr.c: New file.  Test these functions.
23341
23342 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23343             Bruno Haible  <bruno@clisp.org>
23344
23345         Add "Extending Gnulib" chapter to manual.
23346         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23347         chapter.
23348         (Extending Gnulib): New chapter.
23349         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23350         chapter.
23351
23352 2010-06-09  Bruno Haible  <bruno@clisp.org>
23353
23354         Avoid relocwrapper link errors due to gnulib replacement functions.
23355         * lib/areadlink.c: Use the system's malloc, realloc functions.
23356         (areadlink): Set errno to ENOMEM explicitly.
23357         * modules/areadlink (Depends-on): Remove malloc-posix.
23358         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23359
23360 2010-06-09  Bruno Haible  <bruno@clisp.org>
23361
23362         Avoid relocwrapper link errors due to gnulib replacement functions.
23363         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23364         * lib/malloca.c: Likewise.
23365         * lib/relocatable.c: Likewise.
23366         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23367         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23368         * lib/setenv.c: Use the system's malloc, realloc functions.
23369         * lib/strerror.c: Use the system's sprintf function.
23370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23371
23372 2010-06-04  Bruno Haible  <bruno@clisp.org>
23373
23374         Prefer documented low-level autoconf macro names.
23375         * m4/lib-link.m4: Use m4_translit instead of translit.
23376         * m4/environ.m4: Likewise.
23377         * m4/mathfunc.m4: Likewise.
23378         * m4/onceonly.m4: Likewise.
23379         * m4/stdint.m4: Likewise.
23380         Suggested by Eric Blake.
23381
23382 2010-06-04  Martin Lambers  <marlam@marlam.de>
23383             Bruno Haible  <bruno@clisp.org>
23384
23385         havelib: Allow library names with '+' characters.
23386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23387         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23388
23389 2010-06-09  Bruno Haible  <bruno@clisp.org>
23390
23391         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23392         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23393         realloc failed.
23394
23395 2010-06-08  Peter Simons  <simons@cryp.to>
23396
23397         maint.mk: make the news-check rule more configurable
23398         * top/maint.mk (news-check-lines-spec): New variable.
23399         (news-check): Use "sed -n 1,10p" in place of "head".
23400
23401 2010-06-07  Jim Meyering  <meyering@redhat.com>
23402
23403         do-release-commit-and-tag: fix typo in --help
23404         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23405
23406         regex: avoid new dead-code warning with gcc-4.6.0
23407         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23408         if-block containing a while-loop.  It's been unused for at least
23409         5 years.
23410
23411 2010-06-05  Bruno Haible  <bruno@clisp.org>
23412
23413         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23414         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23415
23416 2010-06-04  Bruno Haible  <bruno@clisp.org>
23417
23418         Update to GNU gettext 0.18.1.
23419         * modules/gettext (configure.ac): Require gettext infrastructure from
23420         version 0.18.1.
23421
23422 2010-06-03  Bruno Haible  <bruno@clisp.org>
23423
23424         Don't use AC_LIBOBJ with file names in subdirectories.
23425         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23426         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23427         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23428         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23429         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23430         gl_LIBUNISTRING_LIBSOURCE.
23431         (Makefile.am): Augment lib_SOURCES here, conditionally.
23432         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23433
23434 2010-06-03  Bruno Haible  <bruno@clisp.org>
23435
23436         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23437         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23438         expansion does not end with a newline.
23439         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23440         unnecessary newline.
23441
23442 2010-06-03  Bruno Haible  <bruno@clisp.org>
23443
23444         Reduce dependencies.
23445         * tests/test-quotearg.h: New file, extracted from
23446         tests/test-quotearg.c.
23447         * tests/test-quotearg-simple.c: New file, extracted from
23448         tests/test-quotearg.c.
23449         * tests/test-quotearg.c: Don't include <ctype.h>.
23450         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23451         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23452         use_quote_double_quotes, use_quotearg_colon): Moved to
23453         tests/test-quotearg.h.
23454         (results_g, flag_results, custom_quotes, custom_results): Moved
23455         to tests/test-quotearg-simple.c.
23456         (main): Moved the part that does not depend on gettext to
23457         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23458         performed.
23459         * modules/quotearg-simple: New file.
23460         * modules/quotearg-simple-tests: New file.
23461         * modules/quotearg (Depends-on): Add quotearg-simple.
23462         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23463         (Files): Add tests/test-quotearg.h.
23464         Reported by Paolo Bonzini.
23465
23466 2010-06-03  Bruno Haible  <bruno@clisp.org>
23467
23468         Reduce dependencies.
23469         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23470
23471 2010-06-03  Bruno Haible  <bruno@clisp.org>
23472
23473         time: Undefine more broken macros.
23474         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23475         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23476         Reported by Eric Blake.
23477
23478 2010-06-03  Bruno Haible  <bruno@clisp.org>
23479
23480         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23481         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23482         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23483         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23484         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23485         Reported by Ludovic Courtès <ludo@gnu.org>.
23486
23487 2010-06-02  Eric Blake  <eblake@redhat.com>
23488
23489         time: work with mingw + pthreads-win32 library
23490         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23491         if timespec is defined only in pthread.h.
23492         * modules/time (Makefile.am): Substitute it.
23493         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23494         <pthread.h>, when needed.
23495         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23496         from the library.
23497
23498 2010-05-31  Bruno Haible  <bruno@clisp.org>
23499
23500         Avoid expanding two macros in the wrong order.
23501         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23502         gl_LIBUNISTRING if it is defined.
23503         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23504         autoconf >= 2.64.
23505         Reported by Ludovic Courtès <ludo@gnu.org>.
23506
23507 2010-05-27  Jim Meyering  <meyering@redhat.com>
23508
23509         maint.mk: also prohibit "#undef" of always-defined symbols
23510         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23511         Allow more than one space before the symbol name.
23512         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23513         the regexp uses alternation.
23514
23515 2010-05-26  Eric Blake  <eblake@redhat.com>
23516
23517         maint.mk: avoid echo -e
23518         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23519         Convert all uses of echo -* to printf.
23520         Reported by Matthias Bolte.
23521
23522 2010-05-25  Bruno Haible  <bruno@clisp.org>
23523
23524         Update to GNU gettext 0.18, part 2.
23525         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23526         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23527
23528 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23529
23530         Add missing include in test-pwrite.c.
23531         * tests/test-pwrite.c: Include string.h, for strcmp.
23532
23533 2010-05-24  Bruno Haible  <bruno@clisp.org>
23534
23535         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23536
23537 2010-05-24  Bruno Haible  <bruno@clisp.org>
23538
23539         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23540         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23541         iconveh_error argument.
23542         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23543         U_STRCONV_TO_LOCALE.
23544         * lib/unistr/u16-strcoll.c: Likewise.
23545         * lib/unistr/u32-strcoll.c: Likewise.
23546         * modules/unistr/u8-strcoll (Depends-on): Add
23547         uniconv/u8-strconv-to-enc, localcharset. Remove
23548         uniconv/u8-strconv-to-locale.
23549         (configure.ac): Bump version number.
23550         * modules/unistr/u16-strcoll (Depends-on): Add
23551         uniconv/u16-strconv-to-enc, localcharset. Remove
23552         uniconv/u16-strconv-to-locale.
23553         (configure.ac): Bump version number.
23554         * modules/unistr/u32-strcoll (Depends-on): Add
23555         uniconv/u32-strconv-to-enc, localcharset. Remove
23556         uniconv/u32-strconv-to-locale.
23557         (configure.ac): Bump version number.
23558
23559 2010-05-24  Bruno Haible  <bruno@clisp.org>
23560
23561         Avoid a test failure on NetBSD 5.0.
23562         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23563         an iconv() bug.
23564
23565 2010-05-24  Bruno Haible  <bruno@clisp.org>
23566
23567         Adjust #include directive style.
23568         * modules/regex (Includes): Recommend to write <regex.h>.
23569
23570 2010-05-24  Bruno Haible  <bruno@clisp.org>
23571
23572         regex: Don't require alloca.
23573         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23574         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23575         only inside if (0).
23576
23577 2010-05-23  Jim Meyering  <meyering@redhat.com>
23578
23579         test-renameat.c: include <sys/stat.h>
23580         * tests/test-renameat.c: Include <sys/stat.h>; required for
23581         definition of S_IS* macros.
23582
23583 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23584
23585         Update maintainer documentation for 'relocatable-prog' module.
23586         * doc/relocatable-maint.texi: Update.
23587         Comments by Bruno Haible.
23588
23589 2010-05-23  Bruno Haible  <bruno@clisp.org>
23590
23591         git-merge-changelog: Enable --split-merged-entry by default.
23592         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23593         (usage): Don't mention this option any more.
23594         Reported by Ralf Wildenhues.
23595
23596 2010-05-23  Jim Meyering  <meyering@redhat.com>
23597
23598         test-pwrite: do not leave behind a test file named "out"
23599         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23600         The trivial-looking use of init.sh is really necessary.
23601         It ensures that the temporary file, "out", is created in
23602         a temporary directory, and removed upon termination.
23603         * tests/test-pwrite.sh: Re-add file.
23604         * modules/pwrite-tests: Reference it.
23605
23606 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23607
23608         Fix output redirection buglet in init.sh.
23609         * tests/init.sh: Fix redirection of stderr.
23610
23611 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23612
23613         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23614
23615 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23616
23617         * modules/valgrind-tests: New file.
23618         * m4/valgrind-tests.m4: New file.
23619         * doc/valgrind-tests.texi: New file.
23620         * doc/gnulib.texi (Running self-tests under valgrind): New
23621         section.
23622
23623 2010-05-19  Bruno Haible  <bruno@clisp.org>
23624
23625         Clean up dead code in recent commit.
23626         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23627         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23628         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23629         Suggested by Paolo Bonzini.
23630
23631 2010-05-19  Bruno Haible  <bruno@clisp.org>
23632
23633         Avoid valgrind error reports from libunistring.
23634         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23635         * modules/libunistring (Files): Add it.
23636         * modules/libunistring-optional (Files): Likewise.
23637
23638 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23639             Bruno Haible  <bruno@clisp.org>
23640
23641         New module 'libunistring-optional'.
23642         * modules/libunistring-optional: New file.
23643         * m4/libunistring-base.m4: New file.
23644         * m4/libunistring-optional.m4: New file.
23645         * lib/unicase.in.h: Renamed from lib/unicase.h.
23646         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23647         * lib/unictype.in.h: Renamed from lib/unictype.h.
23648         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23649         * lib/uniname.in.h: Renamed from lib/uniname.h.
23650         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23651         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23652         * lib/unistr.in.h: Renamed from lib/unistr.h.
23653         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23654         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23655         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23656         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23657         gl_LIBUNISTRING. If the library was found, determine the installed
23658         version and set LIBUNISTRING_VERSION.
23659         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23660         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23661         handle a configuration option --with-included-libunistring.
23662         * modules/libunistring (Files): Add m4/absolute-header.m4.
23663         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23664         Add m4/libunistring-base.m4.
23665         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23666         (Makefile.am): Build unicase.h from unicase.in.h.
23667         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23668         Add m4/libunistring-base.m4.
23669         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23670         (Makefile.am): Build uniconv.h from uniconv.in.h.
23671         * modules/unictype/base (Files): Use unictype.in.h instead of
23672         unictype.h. Add m4/libunistring-base.m4.
23673         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23674         (Makefile.am): Build unictype.h from unictype.in.h.
23675         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23676         Add m4/libunistring-base.m4.
23677         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23678         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23679         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23680         Add m4/libunistring-base.m4.
23681         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23682         (Makefile.am): Build uniname.h from uniname.in.h.
23683         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23684         Add m4/libunistring-base.m4.
23685         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23686         (Makefile.am): Build uninorm.h from uninorm.in.h.
23687         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23688         unistdio.h. Add m4/libunistring-base.m4.
23689         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23690         (Makefile.am): Build unistdio.h from unistdio.in.h.
23691         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23692         Add m4/libunistring-base.m4.
23693         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23694         (Makefile.am): Build unistr.h from unistr.in.h.
23695         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23696         Add m4/libunistring-base.m4.
23697         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23698         (Makefile.am): Build unitypes.h from unitypes.in.h.
23699         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23700         Add m4/libunistring-base.m4.
23701         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23702         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23703         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23704         uniwidth.h. Add m4/libunistring-base.m4.
23705         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23706         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23707         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23708         instead of augmenting lib_SOURCES.
23709         * modules/unicase/empty-suffix-context: Likewise.
23710         * modules/unicase/locale-language: Likewise.
23711         * modules/unicase/tolower: Likewise.
23712         * modules/unicase/totitle: Likewise.
23713         * modules/unicase/toupper: Likewise.
23714         * modules/unicase/u8-casecmp: Likewise.
23715         * modules/unicase/u8-casecoll: Likewise.
23716         * modules/unicase/u8-casefold: Likewise.
23717         * modules/unicase/u8-casexfrm: Likewise.
23718         * modules/unicase/u8-ct-casefold: Likewise.
23719         * modules/unicase/u8-ct-tolower: Likewise.
23720         * modules/unicase/u8-ct-totitle: Likewise.
23721         * modules/unicase/u8-ct-toupper: Likewise.
23722         * modules/unicase/u8-is-cased: Likewise.
23723         * modules/unicase/u8-is-casefolded: Likewise.
23724         * modules/unicase/u8-is-lowercase: Likewise.
23725         * modules/unicase/u8-is-titlecase: Likewise.
23726         * modules/unicase/u8-is-uppercase: Likewise.
23727         * modules/unicase/u8-prefix-context: Likewise.
23728         * modules/unicase/u8-suffix-context: Likewise.
23729         * modules/unicase/u8-tolower: Likewise.
23730         * modules/unicase/u8-totitle: Likewise.
23731         * modules/unicase/u8-toupper: Likewise.
23732         * modules/unicase/u16-casecmp: Likewise.
23733         * modules/unicase/u16-casecoll: Likewise.
23734         * modules/unicase/u16-casefold: Likewise.
23735         * modules/unicase/u16-casexfrm: Likewise.
23736         * modules/unicase/u16-ct-casefold: Likewise.
23737         * modules/unicase/u16-ct-tolower: Likewise.
23738         * modules/unicase/u16-ct-totitle: Likewise.
23739         * modules/unicase/u16-ct-toupper: Likewise.
23740         * modules/unicase/u16-is-cased: Likewise.
23741         * modules/unicase/u16-is-casefolded: Likewise.
23742         * modules/unicase/u16-is-lowercase: Likewise.
23743         * modules/unicase/u16-is-titlecase: Likewise.
23744         * modules/unicase/u16-is-uppercase: Likewise.
23745         * modules/unicase/u16-prefix-context: Likewise.
23746         * modules/unicase/u16-suffix-context: Likewise.
23747         * modules/unicase/u16-tolower: Likewise.
23748         * modules/unicase/u16-totitle: Likewise.
23749         * modules/unicase/u16-toupper: Likewise.
23750         * modules/unicase/u32-casecmp: Likewise.
23751         * modules/unicase/u32-casecoll: Likewise.
23752         * modules/unicase/u32-casefold: Likewise.
23753         * modules/unicase/u32-casexfrm: Likewise.
23754         * modules/unicase/u32-ct-casefold: Likewise.
23755         * modules/unicase/u32-ct-tolower: Likewise.
23756         * modules/unicase/u32-ct-totitle: Likewise.
23757         * modules/unicase/u32-ct-toupper: Likewise.
23758         * modules/unicase/u32-is-cased: Likewise.
23759         * modules/unicase/u32-is-casefolded: Likewise.
23760         * modules/unicase/u32-is-lowercase: Likewise.
23761         * modules/unicase/u32-is-titlecase: Likewise.
23762         * modules/unicase/u32-is-uppercase: Likewise.
23763         * modules/unicase/u32-prefix-context: Likewise.
23764         * modules/unicase/u32-suffix-context: Likewise.
23765         * modules/unicase/u32-tolower: Likewise.
23766         * modules/unicase/u32-totitle: Likewise.
23767         * modules/unicase/u32-toupper: Likewise.
23768         * modules/unicase/ulc-casecmp: Likewise.
23769         * modules/unicase/ulc-casecoll: Likewise.
23770         * modules/unicase/ulc-casexfrm: Likewise.
23771         * modules/uniconv/u8-conv-from-enc: Likewise.
23772         * modules/uniconv/u8-conv-to-enc: Likewise.
23773         * modules/uniconv/u8-strconv-from-enc: Likewise.
23774         * modules/uniconv/u8-strconv-from-locale: Likewise.
23775         * modules/uniconv/u8-strconv-to-enc: Likewise.
23776         * modules/uniconv/u8-strconv-to-locale: Likewise.
23777         * modules/uniconv/u16-conv-from-enc: Likewise.
23778         * modules/uniconv/u16-conv-to-enc: Likewise.
23779         * modules/uniconv/u16-strconv-from-enc: Likewise.
23780         * modules/uniconv/u16-strconv-from-locale: Likewise.
23781         * modules/uniconv/u16-strconv-to-enc: Likewise.
23782         * modules/uniconv/u16-strconv-to-locale: Likewise.
23783         * modules/uniconv/u32-conv-from-enc: Likewise.
23784         * modules/uniconv/u32-conv-to-enc: Likewise.
23785         * modules/uniconv/u32-strconv-from-enc: Likewise.
23786         * modules/uniconv/u32-strconv-from-locale: Likewise.
23787         * modules/uniconv/u32-strconv-to-enc: Likewise.
23788         * modules/uniconv/u32-strconv-to-locale: Likewise.
23789         * modules/unictype/bidicategory-byname: Likewise.
23790         * modules/unictype/bidicategory-name: Likewise.
23791         * modules/unictype/bidicategory-of: Likewise.
23792         * modules/unictype/bidicategory-test: Likewise.
23793         * modules/unictype/block-list: Likewise.
23794         * modules/unictype/block-test: Likewise.
23795         * modules/unictype/category-C: Likewise.
23796         * modules/unictype/category-Cc: Likewise.
23797         * modules/unictype/category-Cf: Likewise.
23798         * modules/unictype/category-Cn: Likewise.
23799         * modules/unictype/category-Co: Likewise.
23800         * modules/unictype/category-Cs: Likewise.
23801         * modules/unictype/category-L: Likewise.
23802         * modules/unictype/category-Ll: Likewise.
23803         * modules/unictype/category-Lm: Likewise.
23804         * modules/unictype/category-Lo: Likewise.
23805         * modules/unictype/category-Lt: Likewise.
23806         * modules/unictype/category-Lu: Likewise.
23807         * modules/unictype/category-M: Likewise.
23808         * modules/unictype/category-Mc: Likewise.
23809         * modules/unictype/category-Me: Likewise.
23810         * modules/unictype/category-Mn: Likewise.
23811         * modules/unictype/category-N: Likewise.
23812         * modules/unictype/category-Nd: Likewise.
23813         * modules/unictype/category-Nl: Likewise.
23814         * modules/unictype/category-No: Likewise.
23815         * modules/unictype/category-P: Likewise.
23816         * modules/unictype/category-Pc: Likewise.
23817         * modules/unictype/category-Pd: Likewise.
23818         * modules/unictype/category-Pe: Likewise.
23819         * modules/unictype/category-Pf: Likewise.
23820         * modules/unictype/category-Pi: Likewise.
23821         * modules/unictype/category-Po: Likewise.
23822         * modules/unictype/category-Ps: Likewise.
23823         * modules/unictype/category-S: Likewise.
23824         * modules/unictype/category-Sc: Likewise.
23825         * modules/unictype/category-Sk: Likewise.
23826         * modules/unictype/category-Sm: Likewise.
23827         * modules/unictype/category-So: Likewise.
23828         * modules/unictype/category-Z: Likewise.
23829         * modules/unictype/category-Zl: Likewise.
23830         * modules/unictype/category-Zp: Likewise.
23831         * modules/unictype/category-Zs: Likewise.
23832         * modules/unictype/category-and: Likewise.
23833         * modules/unictype/category-and-not: Likewise.
23834         * modules/unictype/category-byname: Likewise.
23835         * modules/unictype/category-name: Likewise.
23836         * modules/unictype/category-none: Likewise.
23837         * modules/unictype/category-of: Likewise.
23838         * modules/unictype/category-or: Likewise.
23839         * modules/unictype/category-test: Likewise.
23840         * modules/unictype/combining-class: Likewise.
23841         * modules/unictype/ctype-alnum: Likewise.
23842         * modules/unictype/ctype-alpha: Likewise.
23843         * modules/unictype/ctype-blank: Likewise.
23844         * modules/unictype/ctype-cntrl: Likewise.
23845         * modules/unictype/ctype-digit: Likewise.
23846         * modules/unictype/ctype-graph: Likewise.
23847         * modules/unictype/ctype-lower: Likewise.
23848         * modules/unictype/ctype-print: Likewise.
23849         * modules/unictype/ctype-punct: Likewise.
23850         * modules/unictype/ctype-space: Likewise.
23851         * modules/unictype/ctype-upper: Likewise.
23852         * modules/unictype/ctype-xdigit: Likewise.
23853         * modules/unictype/decimal-digit: Likewise.
23854         * modules/unictype/digit: Likewise.
23855         * modules/unictype/mirror: Likewise.
23856         * modules/unictype/numeric: Likewise.
23857         * modules/unictype/property-alphabetic: Likewise.
23858         * modules/unictype/property-ascii-hex-digit: Likewise.
23859         * modules/unictype/property-bidi-arabic-digit: Likewise.
23860         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23861         * modules/unictype/property-bidi-block-separator: Likewise.
23862         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23863         * modules/unictype/property-bidi-common-separator: Likewise.
23864         * modules/unictype/property-bidi-control: Likewise.
23865         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23866         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23867         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23868         * modules/unictype/property-bidi-european-digit: Likewise.
23869         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23870         * modules/unictype/property-bidi-left-to-right: Likewise.
23871         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23872         * modules/unictype/property-bidi-other-neutral: Likewise.
23873         * modules/unictype/property-bidi-pdf: Likewise.
23874         * modules/unictype/property-bidi-segment-separator: Likewise.
23875         * modules/unictype/property-bidi-whitespace: Likewise.
23876         * modules/unictype/property-byname: Likewise.
23877         * modules/unictype/property-combining: Likewise.
23878         * modules/unictype/property-composite: Likewise.
23879         * modules/unictype/property-currency-symbol: Likewise.
23880         * modules/unictype/property-dash: Likewise.
23881         * modules/unictype/property-decimal-digit: Likewise.
23882         * modules/unictype/property-default-ignorable-code-point: Likewise.
23883         * modules/unictype/property-deprecated: Likewise.
23884         * modules/unictype/property-diacritic: Likewise.
23885         * modules/unictype/property-extender: Likewise.
23886         * modules/unictype/property-format-control: Likewise.
23887         * modules/unictype/property-grapheme-base: Likewise.
23888         * modules/unictype/property-grapheme-extend: Likewise.
23889         * modules/unictype/property-grapheme-link: Likewise.
23890         * modules/unictype/property-hex-digit: Likewise.
23891         * modules/unictype/property-hyphen: Likewise.
23892         * modules/unictype/property-id-continue: Likewise.
23893         * modules/unictype/property-id-start: Likewise.
23894         * modules/unictype/property-ideographic: Likewise.
23895         * modules/unictype/property-ids-binary-operator: Likewise.
23896         * modules/unictype/property-ids-trinary-operator: Likewise.
23897         * modules/unictype/property-ignorable-control: Likewise.
23898         * modules/unictype/property-iso-control: Likewise.
23899         * modules/unictype/property-join-control: Likewise.
23900         * modules/unictype/property-left-of-pair: Likewise.
23901         * modules/unictype/property-line-separator: Likewise.
23902         * modules/unictype/property-logical-order-exception: Likewise.
23903         * modules/unictype/property-lowercase: Likewise.
23904         * modules/unictype/property-math: Likewise.
23905         * modules/unictype/property-non-break: Likewise.
23906         * modules/unictype/property-not-a-character: Likewise.
23907         * modules/unictype/property-numeric: Likewise.
23908         * modules/unictype/property-other-alphabetic: Likewise.
23909         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23910         * modules/unictype/property-other-grapheme-extend: Likewise.
23911         * modules/unictype/property-other-id-continue: Likewise.
23912         * modules/unictype/property-other-id-start: Likewise.
23913         * modules/unictype/property-other-lowercase: Likewise.
23914         * modules/unictype/property-other-math: Likewise.
23915         * modules/unictype/property-other-uppercase: Likewise.
23916         * modules/unictype/property-paired-punctuation: Likewise.
23917         * modules/unictype/property-paragraph-separator: Likewise.
23918         * modules/unictype/property-pattern-syntax: Likewise.
23919         * modules/unictype/property-pattern-white-space: Likewise.
23920         * modules/unictype/property-private-use: Likewise.
23921         * modules/unictype/property-punctuation: Likewise.
23922         * modules/unictype/property-quotation-mark: Likewise.
23923         * modules/unictype/property-radical: Likewise.
23924         * modules/unictype/property-sentence-terminal: Likewise.
23925         * modules/unictype/property-soft-dotted: Likewise.
23926         * modules/unictype/property-space: Likewise.
23927         * modules/unictype/property-terminal-punctuation: Likewise.
23928         * modules/unictype/property-test: Likewise.
23929         * modules/unictype/property-titlecase: Likewise.
23930         * modules/unictype/property-unassigned-code-value: Likewise.
23931         * modules/unictype/property-unified-ideograph: Likewise.
23932         * modules/unictype/property-uppercase: Likewise.
23933         * modules/unictype/property-variation-selector: Likewise.
23934         * modules/unictype/property-white-space: Likewise.
23935         * modules/unictype/property-xid-continue: Likewise.
23936         * modules/unictype/property-xid-start: Likewise.
23937         * modules/unictype/property-zero-width: Likewise.
23938         * modules/unictype/scripts: Likewise.
23939         * modules/unictype/syntax-c-ident: Likewise.
23940         * modules/unictype/syntax-c-whitespace: Likewise.
23941         * modules/unictype/syntax-java-ident: Likewise.
23942         * modules/unictype/syntax-java-whitespace: Likewise.
23943         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23944         * modules/unilbrk/u8-width-linebreaks: Likewise.
23945         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23946         * modules/unilbrk/u16-width-linebreaks: Likewise.
23947         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23948         * modules/unilbrk/u32-width-linebreaks: Likewise.
23949         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23950         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23951         * modules/uniname/uniname: Likewise.
23952         * modules/uninorm/canonical-decomposition: Likewise.
23953         * modules/uninorm/composition: Likewise.
23954         * modules/uninorm/decomposing-form: Likewise.
23955         * modules/uninorm/decomposition: Likewise.
23956         * modules/uninorm/filter: Likewise.
23957         * modules/uninorm/nfc: Likewise.
23958         * modules/uninorm/nfd: Likewise.
23959         * modules/uninorm/nfkc: Likewise.
23960         * modules/uninorm/nfkd: Likewise.
23961         * modules/uninorm/u8-normalize: Likewise.
23962         * modules/uninorm/u8-normcmp: Likewise.
23963         * modules/uninorm/u8-normcoll: Likewise.
23964         * modules/uninorm/u8-normxfrm: Likewise.
23965         * modules/uninorm/u16-normalize: Likewise.
23966         * modules/uninorm/u16-normcmp: Likewise.
23967         * modules/uninorm/u16-normcoll: Likewise.
23968         * modules/uninorm/u16-normxfrm: Likewise.
23969         * modules/uninorm/u32-normalize: Likewise.
23970         * modules/uninorm/u32-normcmp: Likewise.
23971         * modules/uninorm/u32-normcoll: Likewise.
23972         * modules/uninorm/u32-normxfrm: Likewise.
23973         * modules/unistdio/u8-asnprintf: Likewise.
23974         * modules/unistdio/u8-asprintf: Likewise.
23975         * modules/unistdio/u8-snprintf: Likewise.
23976         * modules/unistdio/u8-sprintf: Likewise.
23977         * modules/unistdio/u8-u8-asnprintf: Likewise.
23978         * modules/unistdio/u8-u8-asprintf: Likewise.
23979         * modules/unistdio/u8-u8-snprintf: Likewise.
23980         * modules/unistdio/u8-u8-sprintf: Likewise.
23981         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23982         * modules/unistdio/u8-u8-vasprintf: Likewise.
23983         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23984         * modules/unistdio/u8-u8-vsprintf: Likewise.
23985         * modules/unistdio/u8-vasnprintf: Likewise.
23986         * modules/unistdio/u8-vasprintf: Likewise.
23987         * modules/unistdio/u8-vsnprintf: Likewise.
23988         * modules/unistdio/u8-vsprintf: Likewise.
23989         * modules/unistdio/u16-asnprintf: Likewise.
23990         * modules/unistdio/u16-asprintf: Likewise.
23991         * modules/unistdio/u16-snprintf: Likewise.
23992         * modules/unistdio/u16-sprintf: Likewise.
23993         * modules/unistdio/u16-u16-asnprintf: Likewise.
23994         * modules/unistdio/u16-u16-asprintf: Likewise.
23995         * modules/unistdio/u16-u16-snprintf: Likewise.
23996         * modules/unistdio/u16-u16-sprintf: Likewise.
23997         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23998         * modules/unistdio/u16-u16-vasprintf: Likewise.
23999         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24000         * modules/unistdio/u16-u16-vsprintf: Likewise.
24001         * modules/unistdio/u16-vasnprintf: Likewise.
24002         * modules/unistdio/u16-vasprintf: Likewise.
24003         * modules/unistdio/u16-vsnprintf: Likewise.
24004         * modules/unistdio/u16-vsprintf: Likewise.
24005         * modules/unistdio/u32-asnprintf: Likewise.
24006         * modules/unistdio/u32-asprintf: Likewise.
24007         * modules/unistdio/u32-snprintf: Likewise.
24008         * modules/unistdio/u32-sprintf: Likewise.
24009         * modules/unistdio/u32-u32-asnprintf: Likewise.
24010         * modules/unistdio/u32-u32-asprintf: Likewise.
24011         * modules/unistdio/u32-u32-snprintf: Likewise.
24012         * modules/unistdio/u32-u32-sprintf: Likewise.
24013         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24014         * modules/unistdio/u32-u32-vasprintf: Likewise.
24015         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24016         * modules/unistdio/u32-u32-vsprintf: Likewise.
24017         * modules/unistdio/u32-vasnprintf: Likewise.
24018         * modules/unistdio/u32-vasprintf: Likewise.
24019         * modules/unistdio/u32-vsnprintf: Likewise.
24020         * modules/unistdio/u32-vsprintf: Likewise.
24021         * modules/unistdio/ulc-asnprintf: Likewise.
24022         * modules/unistdio/ulc-asprintf: Likewise.
24023         * modules/unistdio/ulc-fprintf: Likewise.
24024         * modules/unistdio/ulc-snprintf: Likewise.
24025         * modules/unistdio/ulc-sprintf: Likewise.
24026         * modules/unistdio/ulc-vasnprintf: Likewise.
24027         * modules/unistdio/ulc-vasprintf: Likewise.
24028         * modules/unistdio/ulc-vfprintf: Likewise.
24029         * modules/unistdio/ulc-vsnprintf: Likewise.
24030         * modules/unistdio/ulc-vsprintf: Likewise.
24031         * modules/unistr/u8-check: Likewise.
24032         * modules/unistr/u8-chr: Likewise.
24033         * modules/unistr/u8-cmp: Likewise.
24034         * modules/unistr/u8-cmp2: Likewise.
24035         * modules/unistr/u8-cpy: Likewise.
24036         * modules/unistr/u8-cpy-alloc: Likewise.
24037         * modules/unistr/u8-endswith: Likewise.
24038         * modules/unistr/u8-mblen: Likewise.
24039         * modules/unistr/u8-mbsnlen: Likewise.
24040         * modules/unistr/u8-mbtouc: Likewise.
24041         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24042         * modules/unistr/u8-mbtoucr: Likewise.
24043         * modules/unistr/u8-move: Likewise.
24044         * modules/unistr/u8-next: Likewise.
24045         * modules/unistr/u8-prev: Likewise.
24046         * modules/unistr/u8-set: Likewise.
24047         * modules/unistr/u8-startswith: Likewise.
24048         * modules/unistr/u8-stpcpy: Likewise.
24049         * modules/unistr/u8-stpncpy: Likewise.
24050         * modules/unistr/u8-strcat: Likewise.
24051         * modules/unistr/u8-strchr: Likewise.
24052         * modules/unistr/u8-strcmp: Likewise.
24053         * modules/unistr/u8-strcoll: Likewise.
24054         * modules/unistr/u8-strcpy: Likewise.
24055         * modules/unistr/u8-strcspn: Likewise.
24056         * modules/unistr/u8-strdup: Likewise.
24057         * modules/unistr/u8-strlen: Likewise.
24058         * modules/unistr/u8-strmblen: Likewise.
24059         * modules/unistr/u8-strmbtouc: Likewise.
24060         * modules/unistr/u8-strncat: Likewise.
24061         * modules/unistr/u8-strncmp: Likewise.
24062         * modules/unistr/u8-strncpy: Likewise.
24063         * modules/unistr/u8-strnlen: Likewise.
24064         * modules/unistr/u8-strpbrk: Likewise.
24065         * modules/unistr/u8-strrchr: Likewise.
24066         * modules/unistr/u8-strspn: Likewise.
24067         * modules/unistr/u8-strstr: Likewise.
24068         * modules/unistr/u8-strtok: Likewise.
24069         * modules/unistr/u8-to-u16: Likewise.
24070         * modules/unistr/u8-to-u32: Likewise.
24071         * modules/unistr/u8-uctomb: Likewise.
24072         * modules/unistr/u16-check: Likewise.
24073         * modules/unistr/u16-chr: Likewise.
24074         * modules/unistr/u16-cmp: Likewise.
24075         * modules/unistr/u16-cmp2: Likewise.
24076         * modules/unistr/u16-cpy: Likewise.
24077         * modules/unistr/u16-cpy-alloc: Likewise.
24078         * modules/unistr/u16-endswith: Likewise.
24079         * modules/unistr/u16-mblen: Likewise.
24080         * modules/unistr/u16-mbsnlen: Likewise.
24081         * modules/unistr/u16-mbtouc: Likewise.
24082         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24083         * modules/unistr/u16-mbtoucr: Likewise.
24084         * modules/unistr/u16-move: Likewise.
24085         * modules/unistr/u16-next: Likewise.
24086         * modules/unistr/u16-prev: Likewise.
24087         * modules/unistr/u16-set: Likewise.
24088         * modules/unistr/u16-startswith: Likewise.
24089         * modules/unistr/u16-stpcpy: Likewise.
24090         * modules/unistr/u16-stpncpy: Likewise.
24091         * modules/unistr/u16-strcat: Likewise.
24092         * modules/unistr/u16-strchr: Likewise.
24093         * modules/unistr/u16-strcmp: Likewise.
24094         * modules/unistr/u16-strcoll: Likewise.
24095         * modules/unistr/u16-strcpy: Likewise.
24096         * modules/unistr/u16-strcspn: Likewise.
24097         * modules/unistr/u16-strdup: Likewise.
24098         * modules/unistr/u16-strlen: Likewise.
24099         * modules/unistr/u16-strmblen: Likewise.
24100         * modules/unistr/u16-strmbtouc: Likewise.
24101         * modules/unistr/u16-strncat: Likewise.
24102         * modules/unistr/u16-strncmp: Likewise.
24103         * modules/unistr/u16-strncpy: Likewise.
24104         * modules/unistr/u16-strnlen: Likewise.
24105         * modules/unistr/u16-strpbrk: Likewise.
24106         * modules/unistr/u16-strrchr: Likewise.
24107         * modules/unistr/u16-strspn: Likewise.
24108         * modules/unistr/u16-strstr: Likewise.
24109         * modules/unistr/u16-strtok: Likewise.
24110         * modules/unistr/u16-to-u32: Likewise.
24111         * modules/unistr/u16-to-u8: Likewise.
24112         * modules/unistr/u16-uctomb: Likewise.
24113         * modules/unistr/u32-check: Likewise.
24114         * modules/unistr/u32-chr: Likewise.
24115         * modules/unistr/u32-cmp: Likewise.
24116         * modules/unistr/u32-cmp2: Likewise.
24117         * modules/unistr/u32-cpy: Likewise.
24118         * modules/unistr/u32-cpy-alloc: Likewise.
24119         * modules/unistr/u32-endswith: Likewise.
24120         * modules/unistr/u32-mblen: Likewise.
24121         * modules/unistr/u32-mbsnlen: Likewise.
24122         * modules/unistr/u32-mbtouc: Likewise.
24123         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24124         * modules/unistr/u32-mbtoucr: Likewise.
24125         * modules/unistr/u32-move: Likewise.
24126         * modules/unistr/u32-next: Likewise.
24127         * modules/unistr/u32-prev: Likewise.
24128         * modules/unistr/u32-set: Likewise.
24129         * modules/unistr/u32-startswith: Likewise.
24130         * modules/unistr/u32-stpcpy: Likewise.
24131         * modules/unistr/u32-stpncpy: Likewise.
24132         * modules/unistr/u32-strcat: Likewise.
24133         * modules/unistr/u32-strchr: Likewise.
24134         * modules/unistr/u32-strcmp: Likewise.
24135         * modules/unistr/u32-strcoll: Likewise.
24136         * modules/unistr/u32-strcpy: Likewise.
24137         * modules/unistr/u32-strcspn: Likewise.
24138         * modules/unistr/u32-strdup: Likewise.
24139         * modules/unistr/u32-strlen: Likewise.
24140         * modules/unistr/u32-strmblen: Likewise.
24141         * modules/unistr/u32-strmbtouc: Likewise.
24142         * modules/unistr/u32-strncat: Likewise.
24143         * modules/unistr/u32-strncmp: Likewise.
24144         * modules/unistr/u32-strncpy: Likewise.
24145         * modules/unistr/u32-strnlen: Likewise.
24146         * modules/unistr/u32-strpbrk: Likewise.
24147         * modules/unistr/u32-strrchr: Likewise.
24148         * modules/unistr/u32-strspn: Likewise.
24149         * modules/unistr/u32-strstr: Likewise.
24150         * modules/unistr/u32-strtok: Likewise.
24151         * modules/unistr/u32-to-u16: Likewise.
24152         * modules/unistr/u32-to-u8: Likewise.
24153         * modules/unistr/u32-uctomb: Likewise.
24154         * modules/uniwbrk/u8-wordbreaks: Likewise.
24155         * modules/uniwbrk/u16-wordbreaks: Likewise.
24156         * modules/uniwbrk/u32-wordbreaks: Likewise.
24157         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24158         * modules/uniwbrk/wordbreak-property: Likewise.
24159         * modules/uniwidth/u8-strwidth: Likewise.
24160         * modules/uniwidth/u8-width: Likewise.
24161         * modules/uniwidth/u16-strwidth: Likewise.
24162         * modules/uniwidth/u16-width: Likewise.
24163         * modules/uniwidth/u32-strwidth: Likewise.
24164         * modules/uniwidth/u32-width: Likewise.
24165         * modules/uniwidth/width: Likewise.
24166         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24167         with $(LIBUNISTRING).
24168         * modules/unicase/ignorable-tests: Likewise.
24169         * modules/unicase/locale-language-tests: Likewise.
24170         * modules/unicase/tolower-tests: Likewise.
24171         * modules/unicase/totitle-tests: Likewise.
24172         * modules/unicase/toupper-tests: Likewise.
24173         * modules/unicase/u8-casecmp-tests: Likewise.
24174         * modules/unicase/u8-casecoll-tests: Likewise.
24175         * modules/unicase/u8-casefold-tests: Likewise.
24176         * modules/unicase/u8-is-cased-tests: Likewise.
24177         * modules/unicase/u8-is-casefolded-tests: Likewise.
24178         * modules/unicase/u8-is-lowercase-tests: Likewise.
24179         * modules/unicase/u8-is-titlecase-tests: Likewise.
24180         * modules/unicase/u8-is-uppercase-tests: Likewise.
24181         * modules/unicase/u8-tolower-tests: Likewise.
24182         * modules/unicase/u8-totitle-tests: Likewise.
24183         * modules/unicase/u8-toupper-tests: Likewise.
24184         * modules/unicase/u16-casecmp-tests: Likewise.
24185         * modules/unicase/u16-casecoll-tests: Likewise.
24186         * modules/unicase/u16-casefold-tests: Likewise.
24187         * modules/unicase/u16-is-cased-tests: Likewise.
24188         * modules/unicase/u16-is-casefolded-tests: Likewise.
24189         * modules/unicase/u16-is-lowercase-tests: Likewise.
24190         * modules/unicase/u16-is-titlecase-tests: Likewise.
24191         * modules/unicase/u16-is-uppercase-tests: Likewise.
24192         * modules/unicase/u16-tolower-tests: Likewise.
24193         * modules/unicase/u16-totitle-tests: Likewise.
24194         * modules/unicase/u16-toupper-tests: Likewise.
24195         * modules/unicase/u32-casecmp-tests: Likewise.
24196         * modules/unicase/u32-casecoll-tests: Likewise.
24197         * modules/unicase/u32-casefold-tests: Likewise.
24198         * modules/unicase/u32-is-cased-tests: Likewise.
24199         * modules/unicase/u32-is-casefolded-tests: Likewise.
24200         * modules/unicase/u32-is-lowercase-tests: Likewise.
24201         * modules/unicase/u32-is-titlecase-tests: Likewise.
24202         * modules/unicase/u32-is-uppercase-tests: Likewise.
24203         * modules/unicase/u32-tolower-tests: Likewise.
24204         * modules/unicase/u32-totitle-tests: Likewise.
24205         * modules/unicase/u32-toupper-tests: Likewise.
24206         * modules/unicase/ulc-casecmp-tests: Likewise.
24207         * modules/unicase/ulc-casecoll-tests: Likewise.
24208         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24209         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24210         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24211         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24212         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24213         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24214         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24215         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24216         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24217         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24218         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24219         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24220         * modules/unictype/bidicategory-byname-tests: Likewise.
24221         * modules/unictype/bidicategory-name-tests: Likewise.
24222         * modules/unictype/bidicategory-of-tests: Likewise.
24223         * modules/unictype/bidicategory-test-tests: Likewise.
24224         * modules/unictype/block-list-tests: Likewise.
24225         * modules/unictype/block-of-tests: Likewise.
24226         * modules/unictype/block-test-tests: Likewise.
24227         * modules/unictype/category-C-tests: Likewise.
24228         * modules/unictype/category-Cc-tests: Likewise.
24229         * modules/unictype/category-Cf-tests: Likewise.
24230         * modules/unictype/category-Cn-tests: Likewise.
24231         * modules/unictype/category-Co-tests: Likewise.
24232         * modules/unictype/category-Cs-tests: Likewise.
24233         * modules/unictype/category-L-tests: Likewise.
24234         * modules/unictype/category-Ll-tests: Likewise.
24235         * modules/unictype/category-Lm-tests: Likewise.
24236         * modules/unictype/category-Lo-tests: Likewise.
24237         * modules/unictype/category-Lt-tests: Likewise.
24238         * modules/unictype/category-Lu-tests: Likewise.
24239         * modules/unictype/category-M-tests: Likewise.
24240         * modules/unictype/category-Mc-tests: Likewise.
24241         * modules/unictype/category-Me-tests: Likewise.
24242         * modules/unictype/category-Mn-tests: Likewise.
24243         * modules/unictype/category-N-tests: Likewise.
24244         * modules/unictype/category-Nd-tests: Likewise.
24245         * modules/unictype/category-Nl-tests: Likewise.
24246         * modules/unictype/category-No-tests: Likewise.
24247         * modules/unictype/category-P-tests: Likewise.
24248         * modules/unictype/category-Pc-tests: Likewise.
24249         * modules/unictype/category-Pd-tests: Likewise.
24250         * modules/unictype/category-Pe-tests: Likewise.
24251         * modules/unictype/category-Pf-tests: Likewise.
24252         * modules/unictype/category-Pi-tests: Likewise.
24253         * modules/unictype/category-Po-tests: Likewise.
24254         * modules/unictype/category-Ps-tests: Likewise.
24255         * modules/unictype/category-S-tests: Likewise.
24256         * modules/unictype/category-Sc-tests: Likewise.
24257         * modules/unictype/category-Sk-tests: Likewise.
24258         * modules/unictype/category-Sm-tests: Likewise.
24259         * modules/unictype/category-So-tests: Likewise.
24260         * modules/unictype/category-Z-tests: Likewise.
24261         * modules/unictype/category-Zl-tests: Likewise.
24262         * modules/unictype/category-Zp-tests: Likewise.
24263         * modules/unictype/category-Zs-tests: Likewise.
24264         * modules/unictype/category-and-not-tests: Likewise.
24265         * modules/unictype/category-and-tests: Likewise.
24266         * modules/unictype/category-byname-tests: Likewise.
24267         * modules/unictype/category-name-tests: Likewise.
24268         * modules/unictype/category-none-tests: Likewise.
24269         * modules/unictype/category-of-tests: Likewise.
24270         * modules/unictype/category-or-tests: Likewise.
24271         * modules/unictype/category-test-withtable-tests: Likewise.
24272         * modules/unictype/combining-class-tests: Likewise.
24273         * modules/unictype/ctype-alnum-tests: Likewise.
24274         * modules/unictype/ctype-alpha-tests: Likewise.
24275         * modules/unictype/ctype-blank-tests: Likewise.
24276         * modules/unictype/ctype-cntrl-tests: Likewise.
24277         * modules/unictype/ctype-digit-tests: Likewise.
24278         * modules/unictype/ctype-graph-tests: Likewise.
24279         * modules/unictype/ctype-lower-tests: Likewise.
24280         * modules/unictype/ctype-print-tests: Likewise.
24281         * modules/unictype/ctype-punct-tests: Likewise.
24282         * modules/unictype/ctype-space-tests: Likewise.
24283         * modules/unictype/ctype-upper-tests: Likewise.
24284         * modules/unictype/ctype-xdigit-tests: Likewise.
24285         * modules/unictype/decimal-digit-tests: Likewise.
24286         * modules/unictype/digit-tests: Likewise.
24287         * modules/unictype/mirror-tests: Likewise.
24288         * modules/unictype/numeric-tests: Likewise.
24289         * modules/unictype/property-alphabetic-tests: Likewise.
24290         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24291         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24292         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24293         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24294         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24295         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24296         * modules/unictype/property-bidi-control-tests: Likewise.
24297         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24298         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24299         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24300         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24301         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24302         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24303         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24304         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24305         * modules/unictype/property-bidi-pdf-tests: Likewise.
24306         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24307         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24308         * modules/unictype/property-byname-tests: Likewise.
24309         * modules/unictype/property-combining-tests: Likewise.
24310         * modules/unictype/property-composite-tests: Likewise.
24311         * modules/unictype/property-currency-symbol-tests: Likewise.
24312         * modules/unictype/property-dash-tests: Likewise.
24313         * modules/unictype/property-decimal-digit-tests: Likewise.
24314         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24315         * modules/unictype/property-deprecated-tests: Likewise.
24316         * modules/unictype/property-diacritic-tests: Likewise.
24317         * modules/unictype/property-extender-tests: Likewise.
24318         * modules/unictype/property-format-control-tests: Likewise.
24319         * modules/unictype/property-grapheme-base-tests: Likewise.
24320         * modules/unictype/property-grapheme-extend-tests: Likewise.
24321         * modules/unictype/property-grapheme-link-tests: Likewise.
24322         * modules/unictype/property-hex-digit-tests: Likewise.
24323         * modules/unictype/property-hyphen-tests: Likewise.
24324         * modules/unictype/property-id-continue-tests: Likewise.
24325         * modules/unictype/property-id-start-tests: Likewise.
24326         * modules/unictype/property-ideographic-tests: Likewise.
24327         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24328         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24329         * modules/unictype/property-ignorable-control-tests: Likewise.
24330         * modules/unictype/property-iso-control-tests: Likewise.
24331         * modules/unictype/property-join-control-tests: Likewise.
24332         * modules/unictype/property-left-of-pair-tests: Likewise.
24333         * modules/unictype/property-line-separator-tests: Likewise.
24334         * modules/unictype/property-logical-order-exception-tests: Likewise.
24335         * modules/unictype/property-lowercase-tests: Likewise.
24336         * modules/unictype/property-math-tests: Likewise.
24337         * modules/unictype/property-non-break-tests: Likewise.
24338         * modules/unictype/property-not-a-character-tests: Likewise.
24339         * modules/unictype/property-numeric-tests: Likewise.
24340         * modules/unictype/property-other-alphabetic-tests: Likewise.
24341         * modules/unictype/property-other-default-ignorable-code-point-tests:
24342         Likewise.
24343         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24344         * modules/unictype/property-other-id-continue-tests: Likewise.
24345         * modules/unictype/property-other-id-start-tests: Likewise.
24346         * modules/unictype/property-other-lowercase-tests: Likewise.
24347         * modules/unictype/property-other-math-tests: Likewise.
24348         * modules/unictype/property-other-uppercase-tests: Likewise.
24349         * modules/unictype/property-paired-punctuation-tests: Likewise.
24350         * modules/unictype/property-paragraph-separator-tests: Likewise.
24351         * modules/unictype/property-pattern-syntax-tests: Likewise.
24352         * modules/unictype/property-pattern-white-space-tests: Likewise.
24353         * modules/unictype/property-private-use-tests: Likewise.
24354         * modules/unictype/property-punctuation-tests: Likewise.
24355         * modules/unictype/property-quotation-mark-tests: Likewise.
24356         * modules/unictype/property-radical-tests: Likewise.
24357         * modules/unictype/property-sentence-terminal-tests: Likewise.
24358         * modules/unictype/property-soft-dotted-tests: Likewise.
24359         * modules/unictype/property-space-tests: Likewise.
24360         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24361         * modules/unictype/property-test-tests: Likewise.
24362         * modules/unictype/property-titlecase-tests: Likewise.
24363         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24364         * modules/unictype/property-unified-ideograph-tests: Likewise.
24365         * modules/unictype/property-uppercase-tests: Likewise.
24366         * modules/unictype/property-variation-selector-tests: Likewise.
24367         * modules/unictype/property-white-space-tests: Likewise.
24368         * modules/unictype/property-xid-continue-tests: Likewise.
24369         * modules/unictype/property-xid-start-tests: Likewise.
24370         * modules/unictype/property-zero-width-tests: Likewise.
24371         * modules/unictype/scripts-tests: Likewise.
24372         * modules/unictype/syntax-c-ident-tests: Likewise.
24373         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24374         * modules/unictype/syntax-java-ident-tests: Likewise.
24375         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24376         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24377         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24378         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24379         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24380         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24381         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24382         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24383         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24384         * modules/uniname/uniname-tests: Likewise.
24385         * modules/uninorm/canonical-decomposition-tests: Likewise.
24386         * modules/uninorm/compat-decomposition-tests: Likewise.
24387         * modules/uninorm/composition-tests: Likewise.
24388         * modules/uninorm/decomposing-form-tests: Likewise.
24389         * modules/uninorm/decomposition-tests: Likewise.
24390         * modules/uninorm/filter-tests: Likewise.
24391         * modules/uninorm/nfc-tests: Likewise.
24392         * modules/uninorm/nfd-tests: Likewise.
24393         * modules/uninorm/nfkc-tests: Likewise.
24394         * modules/uninorm/nfkd-tests: Likewise.
24395         * modules/uninorm/u8-normcmp-tests: Likewise.
24396         * modules/uninorm/u8-normcoll-tests: Likewise.
24397         * modules/uninorm/u16-normcmp-tests: Likewise.
24398         * modules/uninorm/u16-normcoll-tests: Likewise.
24399         * modules/uninorm/u32-normcmp-tests: Likewise.
24400         * modules/uninorm/u32-normcoll-tests: Likewise.
24401         * modules/unistdio/u8-asnprintf-tests: Likewise.
24402         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24403         * modules/unistdio/u8-vasprintf-tests: Likewise.
24404         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24405         * modules/unistdio/u8-vsprintf-tests: Likewise.
24406         * modules/unistdio/u16-asnprintf-tests: Likewise.
24407         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24408         * modules/unistdio/u16-vasprintf-tests: Likewise.
24409         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24410         * modules/unistdio/u16-vsprintf-tests: Likewise.
24411         * modules/unistdio/u32-asnprintf-tests: Likewise.
24412         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24413         * modules/unistdio/u32-vasprintf-tests: Likewise.
24414         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24415         * modules/unistdio/u32-vsprintf-tests: Likewise.
24416         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24417         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24418         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24419         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24420         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24421         * modules/unistr/u8-check-tests: Likewise.
24422         * modules/unistr/u8-chr-tests: Likewise.
24423         * modules/unistr/u8-cmp-tests: Likewise.
24424         * modules/unistr/u8-cmp2-tests: Likewise.
24425         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24426         * modules/unistr/u8-cpy-tests: Likewise.
24427         * modules/unistr/u8-mblen-tests: Likewise.
24428         * modules/unistr/u8-mbsnlen-tests: Likewise.
24429         * modules/unistr/u8-mbtouc-tests: Likewise.
24430         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24431         * modules/unistr/u8-mbtoucr-tests: Likewise.
24432         * modules/unistr/u8-move-tests: Likewise.
24433         * modules/unistr/u8-next-tests: Likewise.
24434         * modules/unistr/u8-prev-tests: Likewise.
24435         * modules/unistr/u8-set-tests: Likewise.
24436         * modules/unistr/u8-stpcpy-tests: Likewise.
24437         * modules/unistr/u8-stpncpy-tests: Likewise.
24438         * modules/unistr/u8-strcat-tests: Likewise.
24439         * modules/unistr/u8-strcmp-tests: Likewise.
24440         * modules/unistr/u8-strcoll-tests: Likewise.
24441         * modules/unistr/u8-strcpy-tests: Likewise.
24442         * modules/unistr/u8-strdup-tests: Likewise.
24443         * modules/unistr/u8-strlen-tests: Likewise.
24444         * modules/unistr/u8-strmblen-tests: Likewise.
24445         * modules/unistr/u8-strmbtouc-tests: Likewise.
24446         * modules/unistr/u8-strncat-tests: Likewise.
24447         * modules/unistr/u8-strncmp-tests: Likewise.
24448         * modules/unistr/u8-strncpy-tests: Likewise.
24449         * modules/unistr/u8-strnlen-tests: Likewise.
24450         * modules/unistr/u8-to-u16-tests: Likewise.
24451         * modules/unistr/u8-to-u32-tests: Likewise.
24452         * modules/unistr/u8-uctomb-tests: Likewise.
24453         * modules/unistr/u16-check-tests: Likewise.
24454         * modules/unistr/u16-chr-tests: Likewise.
24455         * modules/unistr/u16-cmp-tests: Likewise.
24456         * modules/unistr/u16-cmp2-tests: Likewise.
24457         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24458         * modules/unistr/u16-cpy-tests: Likewise.
24459         * modules/unistr/u16-mblen-tests: Likewise.
24460         * modules/unistr/u16-mbsnlen-tests: Likewise.
24461         * modules/unistr/u16-mbtouc-tests: Likewise.
24462         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24463         * modules/unistr/u16-mbtoucr-tests: Likewise.
24464         * modules/unistr/u16-move-tests: Likewise.
24465         * modules/unistr/u16-next-tests: Likewise.
24466         * modules/unistr/u16-prev-tests: Likewise.
24467         * modules/unistr/u16-set-tests: Likewise.
24468         * modules/unistr/u16-stpcpy-tests: Likewise.
24469         * modules/unistr/u16-stpncpy-tests: Likewise.
24470         * modules/unistr/u16-strcat-tests: Likewise.
24471         * modules/unistr/u16-strcmp-tests: Likewise.
24472         * modules/unistr/u16-strcoll-tests: Likewise.
24473         * modules/unistr/u16-strcpy-tests: Likewise.
24474         * modules/unistr/u16-strdup-tests: Likewise.
24475         * modules/unistr/u16-strlen-tests: Likewise.
24476         * modules/unistr/u16-strmblen-tests: Likewise.
24477         * modules/unistr/u16-strmbtouc-tests: Likewise.
24478         * modules/unistr/u16-strncat-tests: Likewise.
24479         * modules/unistr/u16-strncmp-tests: Likewise.
24480         * modules/unistr/u16-strncpy-tests: Likewise.
24481         * modules/unistr/u16-strnlen-tests: Likewise.
24482         * modules/unistr/u16-to-u32-tests: Likewise.
24483         * modules/unistr/u16-to-u8-tests: Likewise.
24484         * modules/unistr/u16-uctomb-tests: Likewise.
24485         * modules/unistr/u32-check-tests: Likewise.
24486         * modules/unistr/u32-chr-tests: Likewise.
24487         * modules/unistr/u32-cmp-tests: Likewise.
24488         * modules/unistr/u32-cmp2-tests: Likewise.
24489         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24490         * modules/unistr/u32-cpy-tests: Likewise.
24491         * modules/unistr/u32-mblen-tests: Likewise.
24492         * modules/unistr/u32-mbsnlen-tests: Likewise.
24493         * modules/unistr/u32-mbtouc-tests: Likewise.
24494         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24495         * modules/unistr/u32-mbtoucr-tests: Likewise.
24496         * modules/unistr/u32-move-tests: Likewise.
24497         * modules/unistr/u32-next-tests: Likewise.
24498         * modules/unistr/u32-prev-tests: Likewise.
24499         * modules/unistr/u32-set-tests: Likewise.
24500         * modules/unistr/u32-stpcpy-tests: Likewise.
24501         * modules/unistr/u32-stpncpy-tests: Likewise.
24502         * modules/unistr/u32-strcat-tests: Likewise.
24503         * modules/unistr/u32-strcmp-tests: Likewise.
24504         * modules/unistr/u32-strcoll-tests: Likewise.
24505         * modules/unistr/u32-strcpy-tests: Likewise.
24506         * modules/unistr/u32-strdup-tests: Likewise.
24507         * modules/unistr/u32-strlen-tests: Likewise.
24508         * modules/unistr/u32-strmblen-tests: Likewise.
24509         * modules/unistr/u32-strmbtouc-tests: Likewise.
24510         * modules/unistr/u32-strncat-tests: Likewise.
24511         * modules/unistr/u32-strncmp-tests: Likewise.
24512         * modules/unistr/u32-strncpy-tests: Likewise.
24513         * modules/unistr/u32-strnlen-tests: Likewise.
24514         * modules/unistr/u32-to-u16-tests: Likewise.
24515         * modules/unistr/u32-to-u8-tests: Likewise.
24516         * modules/unistr/u32-uctomb-tests: Likewise.
24517         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24518         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24519         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24520         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24521         * modules/uniwidth/u8-strwidth-tests: Likewise.
24522         * modules/uniwidth/u8-width-tests: Likewise.
24523         * modules/uniwidth/u16-strwidth-tests: Likewise.
24524         * modules/uniwidth/u16-width-tests: Likewise.
24525         * modules/uniwidth/u32-strwidth-tests: Likewise.
24526         * modules/uniwidth/u32-width-tests: Likewise.
24527         * modules/uniwidth/width-tests: Likewise.
24528
24529 2010-05-18  Richard Jones  <rjones@redhat.com>
24530
24531         doc: users.txt: list hivex
24532         * users.txt: Add hivex.
24533
24534 2010-05-18  Richard Jones  <rjones@redhat.com>
24535
24536         doc: users.txt: list febootstrap
24537         * users.txt: Add febootstrap.
24538
24539 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24540
24541         bootstrap: fix an error when gnulib is not used as a git submodule
24542         * build-aux/bootstrap (gnulib_path): If its length is zero then
24543         assign "gnulib" to it.
24544         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24545
24546 2010-05-16  Bruno Haible  <bruno@clisp.org>
24547
24548         Avoid autoconf warnings about AM_ICONV.
24549         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24550         2.64.
24551
24552 2010-05-16  Bruno Haible  <bruno@clisp.org>
24553
24554         absolute-header: Make the macro usable in more situations.
24555         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24556         from gl_ABSOLUTE_HEADER.
24557         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24558
24559 2010-05-16  James Youngman  <jay@gnu.org>
24560
24561         doc: update users.txt
24562         * users.txt: Add CSSC.
24563
24564 2010-05-16  Jim Meyering  <meyering@redhat.com>
24565
24566         init.sh: fix an error in the previous change; add more comments
24567         * tests/init.sh: Compare exit code in loop against 9, not 2.
24568         Patch by Bruno Haible.
24569         Make the two tests more similar by adding an empty "then" clause.
24570         Add comments.
24571
24572         init.sh: avoid unnecessary shell re-exec
24573         * tests/init.sh: Improve the re-exec-required check to first test the
24574         current shell.  If it passes the test, do not search for a shell that
24575         does pass, and do not re-exec.  This test is particularly contorted to
24576         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24577         of $(...) evokes a syntax error and causes immediate shell exit with
24578         status 2.  Bruno Haible reported that the re-exec made it impossible
24579         to single-step through any init.sh-using script.
24580
24581 2010-05-16  Bruno Haible  <bruno@clisp.org>
24582
24583         Fix collision between gnulib's and libintl's printf replacements.
24584         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24585         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24586         (printf): When using GNU C, map the __printf__ function to rpl_printf
24587         via __asm__. When not using GNU C, define rpl_printf instead of
24588         __printf__.
24589         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24590         commit.
24591         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24592         commit.
24593         * m4/asm-underscore.m4: New file.
24594         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24595         * modules/stdio (Files): Add m4/asm-underscore.m4.
24596         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24597         Reported by Ben Pfaff.
24598
24599 2010-05-16  Bruno Haible  <bruno@clisp.org>
24600
24601         verify: Avoid skipping the test on openSUSE 11.0.
24602         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24603
24604 2010-05-13  Bruno Haible  <bruno@clisp.org>
24605
24606         Avoid useless warnings from G++.
24607         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24608         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24609         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24610
24611 2010-05-11  Jim Meyering  <meyering@redhat.com>
24612
24613         maint.mk: tweak preceding change
24614         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24615         regexps tighter by anchoring at EOL, and make the new group "shy"
24616         for slightly decreased overhead.
24617
24618 2010-05-11  Eric Blake  <eblake@redhat.com>
24619
24620         maint.mk: gnulib doesn't guarantee NSIG
24621         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24622
24623 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24624
24625         test-pwrite.c: Remove unused variable declaration.
24626         * tests/test-pwrite.c (main): Remove read_buf declaration.
24627
24628         Remove useless test-pwrite.sh file.
24629         * tests/test-pwrite.sh: Delete file.
24630         * modules/pwrite-tests: Remove references.
24631         Reported by Bruno Haible.
24632
24633 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24634
24635         init.sh: fix a typo
24636         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24637
24638 2010-05-10  Jim Meyering  <meyering@redhat.com>
24639
24640         maint.mk: avoid using a temporary file in the always-defined-macros check
24641         * top/maint.mk (.re-defmac): Remove rule.
24642         (gl_trap_): Remove definition.
24643         (sc_prohibit_always-defined_macros): Rewrite not to create and
24644         depend on a temporary file.  Instead, depend on GNU grep's ability
24645         to read a list of regular expressions from stdin when given "-f -".
24646
24647 2010-05-09  Bruno Haible  <bruno@clisp.org>
24648
24649         Update to GNU gettext 0.18, part 1.
24650         * m4/gettext.m4: Update to GNU gettext 0.18.
24651         * m4/intl.m4: Likewise.
24652         * m4/po.m4: Likewise.
24653         * modules/gettext (Files): Add m4/fcntl-o.m4.
24654         (configure.ac): Require gettext infrastructure from version 0.18.
24655
24656 2010-05-09  Jim Meyering  <meyering@redhat.com>
24657
24658         init.sh: enable MALLOC_PERTURB_
24659         * tests/init.sh: Enable glibc's malloc-perturbing option.
24660
24661         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24662         With my recent change in init.sh from the two-line form:
24663             -#   : ${srcdir=.}
24664             -#   . "$srcdir/init.sh"; path_prepend_ .
24665             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24666         I noticed that using the one-line form would cause this test
24667         to fail with a false-positive, or to stop working altogether,
24668         depending on whether help-version changed or all the tests did.
24669         * top/maint.mk (_hv_regex): Remove this definition.
24670         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24671         (_hv_regex_strong): Use a stronger regex to check for conformance.
24672         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24673         Give a separate diagnostic for lack of conforming use.
24674
24675         maint.mk: prohibit definition of symbols defined by gnulib
24676         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24677         definition of symbols defined by gnulib.
24678
24679 2010-05-09  Bruno Haible  <bruno@clisp.org>
24680
24681         acl: Avoid test failure on Cygwin-hosted mingw.
24682         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24683
24684 2010-05-09  Bruno Haible  <bruno@clisp.org>
24685
24686         error: Use system's fcntl function.
24687         * lib/error.c (fcntl): Undefine.
24688
24689 2010-05-09  Jim Meyering  <meyering@redhat.com>
24690
24691         verify: adjust formatting to be more consistent
24692         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24693         argument-list '('s, and after one comma.
24694
24695 2010-05-09  Bruno Haible  <bruno@clisp.org>
24696
24697         error: More reliable output on mingw.
24698         * lib/error.c: Include <windows.h>.
24699         (is_open): New function.
24700         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24701         defined.
24702
24703 2010-05-09  Bruno Haible  <bruno@clisp.org>
24704
24705         vasnprintf: Fix syntax errors in libintl build on mingw.
24706         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24707         pad_ourselves and prec_ourselves after use.
24708
24709 2010-05-08  Bruno Haible  <bruno@clisp.org>
24710
24711         * lib/config.charset: Update comments for Cygwin 1.7.
24712         * lib/localcharset.c: Likewise.
24713
24714 2010-05-07  Jim Meyering  <meyering@redhat.com>
24715
24716         init.sh: improve comments
24717         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24718         . "${srcdir=.}/init.sh"; path_prepend_ .
24719         Add a note about path_prepend_ and the alternative of using
24720         TESTS_ENVIRONMENT.
24721
24722 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24723
24724         exclude: Unescape hashed patterns in wildcard mode.
24725         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24726         to the hash list.
24727         * tests/test-exclude8.sh: New test case.
24728         * modules/exclude-tests: Add new test.
24729
24730 2010-05-05  Eric Blake  <eblake@redhat.com>
24731
24732         verify: automate tests
24733         * modules/verify-tests: New module.
24734         * tests/test-verify.sh: New file.
24735         * tests/test-verify.c: Guard each negative test with a unique id.
24736         Also avoid warning about unused left hand of comma expressions.
24737
24738 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24739
24740         Further improvements to verify.h, suggested by Eric Blake.
24741         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24742         the GL_* versions, to avoid collision with OpenGL.
24743         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24744         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24745         than testing merely whether it's defined.
24746
24747         Modify verify.h to pacify gcc -Wredundant_decls.
24748         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24749         These use the prefix "GL_" since they're likely to be useful elsewhere.
24750         We may need to break them out into a different .h file.
24751         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24752         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24753         of verify_function__.
24754
24755 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24756
24757         Tests for module pwrite.
24758         * modules/pwrite-tests: New file.
24759         * tests/test-pwrite.sh: New file.
24760         * tests/test-pwrite.c: New file.
24761
24762         New module pwrite.
24763         * lib/unistd.in.h (pwrite): New declaration.
24764         * lib/pwrite.c: New file, from glibc with modifications.
24765         * m4/pwrite.m4: New file.
24766         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24767         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24768         REPLACE_PWRITE.
24769         * modules/pwrite: New file.
24770         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24771         REPLACE_PWRITE.
24772         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24773         * doc/posix-functions/pwrite.texi: Mention the new module.
24774
24775 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24776
24777         pread: Update documentation.
24778         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24779
24780 2010-05-04  Eric Blake  <eblake@redhat.com>
24781
24782         docs: update cygwin progress
24783         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24784         this bug.
24785         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24786         Added in cygwin 1.7.2.
24787         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24788         Likewise.
24789         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24790         Likewise.
24791         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24792         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24793         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24794         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24795         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24796         Mention nproc module.
24797         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24798         bug in cygwin 1.7.5 addition.
24799         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24800         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24801         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24802         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24803         1.7.5.
24804         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24805         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24806         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24807         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24808         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24809         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24810         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24811         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24812         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24813         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24814         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24815         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24816         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24817         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24818         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24819         Likewise.
24820         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24821         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24822         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24823         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24824         Likewise.
24825         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24826         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24827         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24828         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24829         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24830         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24831         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24832         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24833         Likewise.
24834         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24835         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24836         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24837         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24838         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24839         Likewise.
24840         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24841         Likewise.
24842         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24843         Likewise.
24844         * doc/glibc-functions/xdrrec_endofrecord.texi
24845         (xdrrec_endofrecord): Likewise.
24846         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24847         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24848         Likewise.
24849         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24850         Likewise.
24851
24852 2010-05-04  Jim Meyering  <meyering@redhat.com>
24853
24854         gendocs.sh: make its "-s FILE" option more useful
24855         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24856         $PACKAGE to reflect the probably-different basename of "FILE".
24857
24858 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24859
24860         bootstrap: don't ignore download_po_files failure
24861         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24862         failure.
24863
24864 2010-05-03  Jim Meyering  <meyering@redhat.com>
24865
24866         maint.mk: allow to pass options to gendocs.sh
24867         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24868         (gendocs_options_): New overridable variable.
24869
24870         gnu-web-doc-update: don't ignore configure or build failure
24871         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24872
24873         announce-gen: backslash-escape '@'s in --help output
24874         * build-aux/announce-gen: Fix syntax errors.
24875
24876         maint.mk, announce-gen: allow project-specific announcement mail headers
24877         * top/maint.mk (translation_project_): Define default.
24878         (announcement_Cc_, announcement_mail_headers_): Likewise.
24879         (announcement): Invoke announce-gen with new --mail-headers option.
24880         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24881
24882         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24883         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24884         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24885         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24886         line in the "err2" output file when running "make check" in verbose
24887         mode (i.e., with set -x enabled).
24888
24889 2010-05-03  Bruno Haible  <bruno@clisp.org>
24890
24891         wctob: Fix for weird platforms.
24892         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24893         argument value.
24894
24895 2010-05-03  Jim Meyering  <meyering@redhat.com>
24896
24897         maint.mk: prohibit unwarranted use of <strings.h>
24898         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24899         strings.h in a file that does not also use strcasecmp, strncasecmp,
24900         ffs or ffsll.
24901
24902         maint.mk: remove obsolete comments
24903         * top/maint.mk: Remove stale, commented-out rules.
24904
24905 2010-05-02  Bruno Haible  <bruno@clisp.org>
24906
24907         wcwidth: Declare also when it's aliased.
24908         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24909         macro.
24910
24911 2010-05-02  Bruno Haible  <bruno@clisp.org>
24912
24913         Fix regression from 2010-04-25.
24914         * gnulib-tool (func_modules_transitive_closure): Check the status of
24915         all modules, not only of the tests that are of the form foo-tests where
24916         foo is a module.
24917
24918 2010-05-02  Bruno Haible  <bruno@clisp.org>
24919
24920         wctob: Work around nasty Cygwin 1.7.2 bug.
24921         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24922         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24923
24924 2010-05-01  Bruno Haible  <bruno@clisp.org>
24925
24926         fpurge: Sharper test.
24927         * tests/test-fpurge.c (main): Add one more ftell check.
24928         * modules/fpurge-tests (Depends-on): Add ftell.
24929         Suggested by Eric Blake.
24930
24931 2010-05-01  Bruno Haible  <bruno@clisp.org>
24932
24933         ftello: Another test.
24934         * tests/test-ftello3.c: New file.
24935         * modules/ftello-tests (Files): Add it.
24936         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24937         MOSTLYCLEANFILES.
24938
24939         ftell: Another test.
24940         * tests/test-ftell3.c: New file.
24941         * modules/ftell-tests (Files): Add it.
24942         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24943         MOSTLYCLEANFILES.
24944
24945 2010-05-01  Bruno Haible  <bruno@clisp.org>
24946
24947         ftell, ftello: Work around Solaris bug.
24948         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24949         * lib/ftello.c: Include stdio-impl.h.
24950         (ftello): On Solaris, when _IOWRT is set, compute the result without
24951         looking at _IOREAD.
24952         * modules/ftello (Files): Add lib/stdio-impl.h.
24953         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24954         * doc/posix-functions/ftello.texi: Likewise.
24955         Reported by Eric Blake.
24956
24957 2010-05-01  Bruno Haible  <bruno@clisp.org>
24958
24959         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24960         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24961         the _IOWRT flag is also set.
24962
24963 2010-05-01  Bruno Haible  <bruno@clisp.org>
24964
24965         Fix doc about a HP-UX stdio bug.
24966         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24967         * doc/posix-functions/ftello.texi: Likewise.
24968
24969 2010-05-01  Bruno Haible  <bruno@clisp.org>
24970
24971         lseek test: Fix failure on Solaris.
24972         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24973         output.
24974
24975 2010-04-30  Jim Meyering  <meyering@redhat.com>
24976
24977         bootstrap: don't ignore failure to generate po*/Makevars
24978         * build-aux/bootstrap (with_gettext): Don't ignore failure
24979         to create po/Makevars or runtime-po/Makevars.
24980
24981 2010-04-29  Eric Blake  <eblake@redhat.com>
24982
24983         headers: relax license to LGPLv2+
24984         * modules/fcntl-h (License): Relax license.
24985         * modules/getopt-posix (License): Likewise.
24986         * modules/locale (License): Likewise.
24987         * modules/math (License): Likewise.
24988         * modules/pty (License): Likewise.
24989         * modules/sched (License): Likewise.
24990         * modules/search (License): Likewise.
24991         * modules/spawn (License): Likewise.
24992         * modules/stdarg (License): Likewise.
24993         * modules/sysexits (License): Likewise.
24994
24995 2010-04-29  Jim Meyering  <meyering@redhat.com>
24996
24997         inttypes: relax license to LGPLv2+
24998         * modules/inttypes (License): Relax license.
24999
25000 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25001
25002         * top/maint.mk (indent): Run twice to produce idempotent results.
25003
25004 2010-04-28  Bruno Haible  <bruno@clisp.org>
25005
25006         getdate: Generate getdate.c in the source directory.
25007         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25008         MOSTLYCLEANFILES.
25009         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25010
25011 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25012
25013         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25014         is not declared as a const *; avoid warnings in that case.
25015
25016 2010-04-28  Eric Blake  <eblake@redhat.com>
25017
25018         canonicalize-lgpl: avoid compiler warning
25019         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25020         declaration' / 'extraneous semicolon' warning with some compilers.
25021         Reported by Andreas Gruenbacher.
25022
25023 2010-04-28  Jim Meyering  <meyering@redhat.com>
25024
25025         init.sh: ensure a more reliable exit status when exiting via trap
25026         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25027         Inspired by patches from Dmitry V. Levin.
25028         Also trap on signal 3 (SIGQUIT).
25029
25030 2010-04-27  Bruno Haible  <bruno@clisp.org>
25031
25032         Update doc about utimes().
25033         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25034         'utimens' module.
25035         Reported by Andreas Gruenbacher <agruen@suse.de>.
25036
25037 2010-04-27  Eric Blake  <eblake@redhat.com>
25038
25039         full-read, full-write: relax license
25040         * modules/full-read (License): Drop to LGPLv2+.
25041         * modules/full-write (License): Likewise.
25042         * modules/safe-read (License): Likewise.
25043         * modules/safe-write (License): Likewise.
25044
25045         pthread: mention library for linking
25046         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25047
25048 2010-04-27  Jim Meyering  <meyering@redhat.com>
25049
25050         maint.mk: fix a bug introduced in last change
25051         * top/maint.mk (gl_assured_headers_): Now that all names are on
25052         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25053         is not anchored to end of word, it should be adequate.
25054
25055         maint.mk: avoid side-effect in latest syntax-check
25056         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25057         to run commands via $(shell...), and hence to incur cost only when
25058         the new rule is actually run.
25059
25060         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25061         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25062         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25063         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25064         (gl_assured_headers_, az_, AZ_): Define.
25065         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25066
25067 2010-04-26  Jim Meyering  <jim@meyering.net>
25068             Bruno Haible  <bruno@clisp.org>
25069
25070         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25071         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25072         Prompted by an exchange with Gilles Espinasse.
25073
25074 2010-04-26  Jim Meyering  <meyering@redhat.com>
25075
25076         git-version-gen: aesthetic tweak
25077         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25078         so that the command remains on a single line.
25079
25080 2010-04-26  Eric Blake  <eblake@redhat.com>
25081
25082         git-version-gen: allow use on EBCDIC hosts
25083         * build-aux/git-version-gen (dirty): Use literal rather than tying
25084         ourselves to ascii.
25085         Reported by Steve Goetze.
25086
25087 2010-04-25  Bruno Haible  <bruno@clisp.org>
25088
25089         netdb: Add support for GNULIB_POSIXCHECK.
25090         * lib/netdb.in.h: Include warn-on-use.h.
25091         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25092         functions are used when GNULIB_POSIXCHECK is defined and the
25093         getaddrinfo module is not in use.
25094         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25095         freeaddrinfo, gai_strerror, getnameinfo are declared.
25096         * modules/netdb (Depends-on): Add warn-on-use.
25097         (Makefile.am): Include warn-on-use.h in netdb.h.
25098
25099 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25100
25101         build: avoid "make check" failure without .git/ directory
25102         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25103         there is no .git/ directory.
25104
25105 2010-04-25  Bruno Haible  <bruno@clisp.org>
25106
25107         ptsname: Fix misuse of ttyname_r.
25108         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25109         of errno.
25110
25111 2010-04-25  Bruno Haible  <bruno@clisp.org>
25112
25113         ttyname_r: Make it work on Solaris 10.
25114         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25115         if the system function has the POSIX declaration. Test whether the
25116         function fails if the buffer is less than 128 bytes large.
25117         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25118         system's ttyname_r function. Provide a reasonably large buffer.
25119         * modules/ttyname_r (Depends-on): Add extensions.
25120         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25121
25122 2010-04-25  Bruno Haible  <bruno@clisp.org>
25123
25124         Use the 'extensions' module for some more functions on Solaris.
25125         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25126         module.
25127         * doc/posix-functions/ctime_r.texi: Likewise.
25128         * doc/posix-functions/getgrgid_r.texi: Likewise.
25129         * doc/posix-functions/getgrnam_r.texi: Likewise.
25130         * doc/posix-functions/getpwnam_r.texi: Likewise.
25131         * doc/posix-functions/getpwuid_r.texi: Likewise.
25132         * doc/posix-functions/readdir_r.texi: Likewise.
25133         * doc/posix-functions/sigwait.texi: Likewise.
25134         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25135         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25136
25137 2010-04-25  Bruno Haible  <bruno@clisp.org>
25138
25139         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25140         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25141         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25142         * lib/ttyname_r.c: Include <limits.h>.
25143         (ttyname_r): Define using the system's ttyname_r function, if it exists
25144         and not on Solaris.
25145         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25146         set.
25147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25148         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25149         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25150         Reported by Simon Josefsson.
25151
25152 2010-04-25  Bruno Haible  <bruno@clisp.org>
25153
25154         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25155         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25156         * doc/posix-functions/ctime_r.texi: Likewise.
25157         * doc/posix-functions/getgrgid_r.texi: Likewise.
25158         * doc/posix-functions/getgrnam_r.texi: Likewise.
25159         * doc/posix-functions/getlogin_r.texi: Likewise.
25160         * doc/posix-functions/getpwnam_r.texi: Likewise.
25161         * doc/posix-functions/getpwuid_r.texi: Likewise.
25162         * doc/posix-functions/readdir_r.texi: Likewise.
25163         * doc/posix-functions/sigwait.texi: Likewise.
25164         * doc/posix-functions/ttyname_r.texi: Likewise.
25165         Reported by Simon Josefsson.
25166
25167 2010-04-25  Bruno Haible  <bruno@clisp.org>
25168
25169         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25170         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25171         also to --create-testdir.
25172         (func_acceptable): Don't consider the status of *-tests modules here.
25173         (func_modules_transitive_closure): Consider it here, before including a
25174         test module.
25175         (func_import, func_create_testdir): Set inc_all_direct_tests,
25176         inc_all_indirect_tests.
25177         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25178         --create-testdir and --create-megatestdir.
25179
25180 2010-04-25  Bruno Haible  <bruno@clisp.org>
25181
25182         gnulib-tool: Add --without-*-tests options.
25183         * gnulib-tool (func_usage): Document the --without-*-tests options.
25184         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25185         excl_unportable_tests): New variables.
25186         Fail if they are specified with --import or --update.
25187         (func_acceptable): Respect the excl_*_tests variables.
25188         (func_import): Set the excl_*_tests variables to empty.
25189
25190 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25191             Bruno Haible  <bruno@clisp.org>
25192
25193         Work around a MacOS X 10.4 bug with openpty.
25194         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25195         * tests/test-openpty.c (main): Close the master side explicitly.
25196
25197 2010-04-25  Bruno Haible  <bruno@clisp.org>
25198
25199         strnlen: Fix a C++ test error on MacOS X and Solaris.
25200         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25201         the function is not declared.
25202         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25203         Simon Josefsson.
25204
25205 2010-04-24  Bruno Haible  <bruno@clisp.org>
25206
25207         Avoid a gcc warning.
25208         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25209         of correct type for %08lx directive.
25210         Reported by Eric Blake.
25211
25212 2010-04-24  Bruno Haible  <bruno@clisp.org>
25213
25214         vasnprintf: Correct errno value in case of out-of-memory.
25215         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25216         or sprintf. Use the errno value from SNPRINTF or sprintf.
25217         Reported by Ian Beckwith <ianb@erislabs.net>.
25218
25219 2010-04-24  Bruno Haible  <bruno@clisp.org>
25220
25221         ansi-c++-opt: Find correct compiler when cross-compiling.
25222         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25223         AC_CHECK_PROGS.
25224         Reported by Simon Josefsson.
25225
25226 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25227
25228         vc-list-files: Add support for subversion
25229         * build-aux/vc-list-files: Use "svn list" to generate the list of
25230         files controlled by subversion.
25231
25232 2010-04-23  Jim Meyering  <meyering@redhat.com>
25233
25234         vc-list-files tests: convert to use init.sh
25235         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25236         path_prepend_.
25237         Use Exit, not exit.
25238         Use skip_ rather than open coding it.
25239         Remove trap set-up and compare definitions.
25240         * tests/test-vc-list-files-git.sh: Likewise.
25241         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25242
25243 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25244
25245         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25246         backup files.
25247
25248 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25249
25250         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25251
25252 2010-04-20  Eric Blake  <eblake@redhat.com>
25253
25254         tests: be robust to ignored SIGPIPE
25255         * tests/test-select-in.sh: Consume all output.
25256         * tests/test-lseek.sh: Check correct exit status, while avoiding
25257         EPIPE.
25258
25259 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25260             Bruno Haible  <bruno@clisp.org>
25261
25262         visibility: Don't use -fvisibility if it leads to a warning.
25263         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25264         yes, don't pretend that visibility works if it leads to a warning.
25265         Reported by Mike Gran <spk121@yahoo.com>.
25266
25267 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25268
25269         * build-aux/bootstrap: Use "git -h" for testing for supported options
25270         instead of "git --help".  The short-form option only shows a summary,
25271         and doesn't layout the full man page.  Grep for the full option name
25272         in the summary, too.
25273
25274 2010-04-19  Bruno Haible  <bruno@clisp.org>
25275
25276         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25277         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25278         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25279         mention of RELOCATABLE_STRIP.
25280         Reported by Sylvain Beucler <beuc@beuc.net>.
25281
25282 2010-04-19  Bruno Haible  <bruno@clisp.org>
25283
25284         * lib/diffseq.h: Fix typo in comment.
25285         Reported by Eric Blake.
25286
25287 2010-04-19  Bruno Haible  <bruno@clisp.org>
25288
25289         ioctl: Move autoconf macro to a .m4 file.
25290         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25291         * modules/ioctl (Files): Add it.
25292         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25293         Reported by Ian Beckwith <ianb@erislabs.net>.
25294
25295 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25296             Bruno Haible  <bruno@clisp.org>
25297
25298         diffseq: Accommodate use-case with abstract arrays.
25299         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25300         is not defined.
25301         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25302         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25303
25304 2010-04-18  Bruno Haible  <bruno@clisp.org>
25305
25306         * doc/posix-headers/stdbool.texi: More precise wording.
25307
25308 2010-04-17  Jim Meyering  <meyering@redhat.com>
25309
25310         maint.mk: use gnu-style indentation in an embedded perl script
25311         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25312         Rename variable: s/two/last_two_bytes/
25313
25314 2010-04-16  Eric Blake  <eblake@redhat.com>
25315
25316         test-stdbool: skip test that fails with Solaris CC
25317         * tests/test-stdbool.c (f): Skip test that causes compilation
25318         error under buggy C++ compiler.
25319         * lib/stdbool.in.h: Document the limitation.
25320         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25321
25322         setenv: allow compilation with C++
25323         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25324         register keyword.
25325
25326         stdint: allow test to pass with C++
25327         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25328
25329         getopt: allow compilation with C++
25330         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25331         struct.
25332         * lib/getopt.c (_getopt_internal_r): Use correct type.
25333         Reported by Dagobert Michelson, via Joel E. Denny.
25334
25335 2010-04-16  Bruno Haible  <bruno@clisp.org>
25336
25337         Override netdb.h always.
25338         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25339         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25340         Reported by Ludovic Courtès <ludo@gnu.org>.
25341
25342 2010-04-15  Bruno Haible  <bruno@clisp.org>
25343
25344         openpty: Fix mistake from 2010-03-21.
25345         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25346         Reported by Simon Josefsson.
25347
25348 2010-04-15  Eric Blake  <eblake@redhat.com>
25349
25350         test-forkpty: fix expected signature
25351         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25352         Reported by Simon Josefsson.
25353
25354 2010-04-15  Jim Meyering  <meyering@redhat.com>
25355
25356         maint.mk: texinfo_suffix_re_: correct the default regexp
25357         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25358
25359         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25360         make it configurable via texinfo_suffix_re_.
25361
25362 2010-04-14  Eric Blake  <eblake@redhat.com>
25363
25364         strtok_r: relax license to LGPLv2+
25365         * modules/strtok_r (License): Relax license.
25366         Reported by Matthias Bolte.
25367
25368 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25369
25370         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25371         version 1.4.4 by default instead of requiring the libgcrypt
25372         version used during build.  This makes it possible to use the
25373         application with older but still binary compatible libgcrypt
25374         versions.
25375
25376 2010-04-13  Eric Blake  <eblake@redhat.com>
25377
25378         getopt-gnu: match recent glibc fixes and posix ruling
25379         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25380         '+' handling, when requesting extensions.
25381         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25382         'W;' handling.
25383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25384         * doc/posix-functions/getopt.texi (getopt): Document this.
25385         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25386         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25387         Likewise.
25388
25389         getopt: merge bug fixes from glibc
25390         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25391         diagnostics.  Honor '+:' correctly.  Reject ';'.
25392
25393         getopt-posix: detect MacOS bug
25394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25395         optind when missing a required argument.
25396         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25397         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25398         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25399         Likewise.
25400
25401         getopt-posix: avoid spurious failure on Solaris
25402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25403         an indicator that setting optind=1 is sufficient for reset.
25404
25405         getopt-posix: avoid spurious failure on FreeBSD
25406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25407         in POSIX mode, since the m4 test uses it.
25408
25409         gnulib-tool: silence warning on BSD sh
25410         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25411
25412 2010-04-13  Jim Meyering  <meyering@redhat.com>
25413
25414         doc: users.txt: GNU patch now uses gnulib
25415         * users.txt: Add patch.
25416
25417 2010-04-12  Jim Meyering  <meyering@redhat.com>
25418
25419         maint.mk: generate more concise timing data for syntax-check rules
25420         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25421         " done" from each line that reports a syntax-check test duration.
25422
25423 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25424
25425         git-version-gen: use "git update-index..." rather than "git status"
25426         * build-aux/git-version-gen: Use git update-index --refresh, not
25427         "git status".  With some versions of git, "git status" would fail
25428         to update the index and result in an unwarranted "-dirty" suffix.
25429
25430 2010-04-11  Jim Meyering  <meyering@redhat.com>
25431
25432         openat: correct formatting (no semantic change)
25433         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25434         Suggested by Bruno Haible.
25435
25436 2010-04-11  Bruno Haible  <bruno@clisp.org>
25437
25438         Stricter declaration checking in testdirs.
25439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25440         If for_tests is true, augment AM_CPPFLAGS to define
25441         GNULIB_STRICT_CHECKING.
25442         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25443         GNULIB_STRICT_CHECKING is defined, verify that the function is
25444         declared.
25445
25446 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25447             Bruno Haible  <bruno@clisp.org>
25448
25449         libunistring: Improve configure output.
25450         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25451         Don't say "consider installing GNU libunistring" when checking again
25452         with libiconv.
25453
25454 2010-04-11  Bruno Haible  <bruno@clisp.org>
25455
25456         libunistring: Correct value of $LTLIBUNISTRING.
25457         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25458         correct the value of $LTLIBUNISTRING.
25459
25460 2010-04-11  Bruno Haible  <bruno@clisp.org>
25461
25462         havelib: Add static libraries to LIBS in the right order.
25463         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25464         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25465
25466 2010-04-11  Bruno Haible  <bruno@clisp.org>
25467
25468         libunistring: Detect libunistring also when it depends on libiconv.
25469         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25470         the second AC_LIB_HAVE_LINKFLAGS invocation.
25471
25472 2010-04-11  James Youngman  <jay@gnu.org>
25473
25474         close-stream: declare local scalars to be "const"
25475         * lib/close-stream.c (close_stream): Make boolean variables const
25476         to document the fact that we set but do not change them.
25477
25478 2010-04-11  Bruno Haible  <bruno@clisp.org>
25479
25480         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25481
25482 2010-04-11  Jim Meyering  <meyering@redhat.com>
25483
25484         maint.mk: don't include dist-check.mk
25485         * top/maint.mk: Remove bogus include directive.
25486
25487         maint.mk: improve empty-line-at-EOF check
25488         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25489         solution, rather than tail+Perl-based one.  The latter would read
25490         a few kilobytes from the end of each file, and did not handle empty
25491         files properly.
25492
25493         maint.mk: print the elapsed time for each syntax-check rule
25494         * top/maint.mk (sc_m_rules_): Save start time in a file.
25495         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25496         (local-check): Interpose the .z rules
25497
25498 2010-04-11  Jim Meyering  <meyering@redhat.com>
25499
25500         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25501         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25502         empty file with one that ends in an empty line.
25503
25504 2010-04-10  Bruno Haible  <bruno@clisp.org>
25505
25506         mkdir: Make it work on mingw64.
25507         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25508         * lib/mkdir.c: Update comment.
25509         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25510
25511 2010-04-10  Bruno Haible  <bruno@clisp.org>
25512
25513         Don't override improved macro from newer autoconf.
25514         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25515         autoconf >= 2.62.
25516         Reported by Joel E. Denny <jdenny@clemson.edu>.
25517
25518 2010-04-10  Jim Meyering  <meyering@redhat.com>
25519
25520         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25521         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25522
25523         maint.mk: correct a diagnostic
25524         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25525         in diagnostic; now use $prohibit.
25526
25527 2010-04-10  Bruno Haible  <address@hidden>
25528
25529         fchownat: Fix a C++ test error on Solaris 8.
25530         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25531         the function does not exist.
25532
25533 2010-04-10  Bruno Haible  <bruno@clisp.org>
25534
25535         vasnprintf: Add more tests.
25536         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25537         (test_function): Test converting an invalid wide string.
25538
25539         vasnprintf: Correct handling of unconvertible wide string arguments.
25540         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25541         VASNPRINTF.
25542         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25543         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25544         smaller than the expected maximum need for the directive. Set errno to
25545         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25546         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25548         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25549         * modules/vasnprintf (Files): Add m4/printf.m4.
25550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25551
25552 2010-04-10  Bruno Haible  <bruno@clisp.org>
25553
25554         vasnprintf: Fix crash in %ls directive.
25555         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25556         string is passed as argument to %ls, with no precision and no width.
25557         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25558
25559 2010-04-10  Bruno Haible  <bruno@clisp.org>
25560
25561         vasnprintf: Fix multiple test failures on mingw.
25562         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25563         _snprintf, or snwprintf, not _snwprintf.
25564
25565 2010-04-10  Bruno Haible  <bruno@clisp.org>
25566
25567         write: Fix a C++ test error on mingw.
25568         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25569
25570 2010-04-10  Bruno Haible  <bruno@clisp.org>
25571
25572         vasnprintf test: Reduce code duplication.
25573         * tests/test-vasnprintf.c (test_function): New function, extracted from
25574         test_vasnprintf.
25575         (test_vasnprintf, test_asnprintf): Invoke it.
25576
25577 2010-04-10  Bruno Haible  <bruno@clisp.org>
25578
25579         strnlen: Fix warning in C++ mode on MacOS X.
25580         * lib/string.in.h (strnlen): Use the modern idiom.
25581         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25582         defining strnlen as a macro already in <config.h>.
25583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25584         REPLACE_STRNLEN.
25585         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25587
25588 2010-04-08  James Youngman  <jay@gnu.org>
25589
25590         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25591         the example.
25592
25593 2010-04-09  Jim Meyering  <meyering@redhat.com>
25594
25595         maint.mk: print better diagnostic when there is no $(_hv_file)
25596         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25597         announce that when $(_hv_file) (aka help-version) does not exist.
25598
25599         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25600         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25601         not try to interpret its random input bytes.  Jarno Rajahalme reported
25602         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25603         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25604         (mktempd_): Likewise, just in case.
25605
25606         ftruncate: add two years to projected module removal date: 2012
25607         * m4/ftruncate.m4: Adjust comments.
25608
25609         ftruncate: mark module as obsolete; even MinGW provides it, now
25610         * modules/ftruncate (Status): Obsolete.
25611         (Notice): Say that.
25612         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25614
25615 2010-04-08  Bruno Haible  <bruno@clisp.org>
25616
25617         Fix side effects from tests-related modules.
25618         * modules/dprintf-posix (Comment): New section.
25619         * modules/fprintf-posix (Comment): Likewise.
25620         * modules/obstack-printf-posix (Comment): Likewise.
25621         * modules/printf-posix (Comment): Likewise.
25622         * modules/snprintf-posix (Comment): Likewise.
25623         * modules/sprintf-posix (Comment): Likewise.
25624         * modules/vasnprintf-posix (Comment): Likewise.
25625         * modules/vasprintf-posix (Comment): Likewise.
25626         * modules/vdprintf-posix (Comment): Likewise.
25627         * modules/vfprintf-posix (Comment): Likewise.
25628         * modules/vprintf-posix (Comment): Likewise.
25629         * modules/vsnprintf-posix (Comment): Likewise.
25630         * modules/vsprintf-posix (Comment): Likewise.
25631         * modules/xprintf-posix (Comment): Likewise.
25632         * modules/xvasprintf-posix (Comment): Likewise.
25633         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25634         * modules/floorf-tests (Depends-on): Likewise.
25635         * modules/round-tests (Depends-on): Likewise.
25636         * modules/roundf-tests (Depends-on): Likewise.
25637         * modules/trunc-tests (Depends-on): Likewise.
25638         * modules/truncf-tests (Depends-on): Likewise.
25639         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25640         'fprintf-posix' module is not present.
25641         * tests/test-floorf2.c (check): Likewise.
25642         * tests/test-trunc2.c (check): Likewise.
25643         * tests/test-truncf2.c (check): Likewise.
25644         * tests/test-round2.c (equal): Likewise.
25645         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25646
25647 2010-04-07  Karl Berry  <karl@gnu.org>
25648
25649         * config/srclist.txt,
25650         * config/srclistvars.sh,
25651         * config/srclist-update: doc fixes.
25652
25653 2010-04-07  Jim Meyering  <meyering@redhat.com>
25654
25655         maint.mk: add a PATH crosschecking syntax-check rule
25656         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25657         Useful if you use a test like the one in help-version (coreutils,
25658         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25659         printed by prog --version.
25660
25661 2010-04-06  Bruno Haible  <bruno@clisp.org>
25662
25663         Fix link error on mingw.
25664         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25665         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25666
25667 2010-04-06  Bruno Haible  <bruno@clisp.org>
25668
25669         Assume rmdir exists.
25670         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25671
25672 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25673
25674         doc: update users.txt
25675         * users.txt: Add gcal.
25676
25677 2010-04-06  Jim Meyering  <meyering@redhat.com>
25678
25679         init.sh: simply unset TMPDIR rather than risking env -i
25680         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25681         although it probably works fine on all Unix-based systems, some
25682         systems (Cygwin?) cannot tolerate a totally cleared environment.
25683         Suggestion from Eric Blake.
25684
25685 2010-04-06  Jim Meyering  <meyering@redhat.com>
25686
25687         init.sh: portability fix: use env's POSIX-specified -i option not -u
25688         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25689         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25690
25691 2010-04-05  Bruno Haible  <bruno@clisp.org>
25692
25693         btowc: Work around Cygwin 1.7.2 bug.
25694         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25695         does not map NUL to 0.
25696         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25697
25698 2010-04-05  Bruno Haible  <bruno@clisp.org>
25699
25700         Make the multithread modules work on Cygwin 1.7.2.
25701         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25702         imported symbols can be declared weak, so that it returns "no" on
25703         Cygwin 1.7.2.
25704
25705 2010-04-05  Bruno Haible  <bruno@clisp.org>
25706
25707         Use the module 'strncat'.
25708         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25709
25710         Tests for module 'strncat'.
25711         * modules/strncat-tests: New file.
25712         * tests/test-strncat.c: New file.
25713
25714         New module 'strncat'.
25715         * lib/string.in.h (strncat): New declaration.
25716         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25717         * m4/strncat.m4: New file, based on m4/memchr.m4.
25718         * modules/strncat: New file.
25719         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25720         is declared.
25721         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25722         REPLACE_STRNCAT.
25723         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25724         REPLACE_STRNCAT.
25725         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25726         module.
25727         * tests/test-string-c++.cc: Check signature of strncat.
25728
25729 2010-04-05  Jim Meyering  <meyering@redhat.com>
25730
25731         xstrtoumax-tests: convert to use init.sh
25732         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25733         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25734         Use Exit, not exit.
25735         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25736
25737         xstrtoimax-tests: convert to use init.sh
25738         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25739         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25740         Use Exit, not exit.
25741         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25742
25743 2010-04-05  Bruno Haible  <bruno@clisp.org>
25744
25745         sys_socket: Avoid #define replacements in C++ mode.
25746         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25747         warning to the function if possible, rather than #defining the symbol
25748         to a dysfunctional alias.
25749
25750 2010-04-05  Bruno Haible  <bruno@clisp.org>
25751
25752         fseeko: Fix C++ test error on mingw.
25753         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25754         gl_FUNC_FSEEKO.
25755         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25756         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25757         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25758         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25759
25760 2010-04-05  Bruno Haible  <bruno@clisp.org>
25761
25762         duplocale: Improve test output.
25763         * tests/test-duplocale.c (main): Print reason for skipped test.
25764
25765 2010-04-05  Bruno Haible  <bruno@clisp.org>
25766
25767         Assume rmdir exists.
25768         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25769         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25770
25771 2010-04-05  Bruno Haible  <bruno@clisp.org>
25772
25773         Fix link error on Solaris 8 with cc.
25774         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25775
25776 2010-04-05  Bruno Haible  <bruno@clisp.org>
25777
25778         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25779         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25780
25781 2010-04-05  Bruno Haible  <bruno@clisp.org>
25782
25783         vasprintf: Update documentation.
25784         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25785
25786 2010-04-05  Bruno Haible  <bruno@clisp.org>
25787
25788         ptsname: Improve test.
25789         * tests/test-ptsname.c (main): Also try the various master names of BSD
25790         systems.
25791
25792 2010-04-05  Bruno Haible  <bruno@clisp.org>
25793
25794         memchr: Avoid a possible C++ test error.
25795         * lib/string.in.h (memchr): Provide declaration if function is missing.
25796         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25797         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25799         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25800
25801 2010-04-05  Bruno Haible  <bruno@clisp.org>
25802
25803         strtok_r: Improve idiom.
25804         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25805         AC_LIBOBJ is used.
25806
25807 2010-04-05  Bruno Haible  <bruno@clisp.org>
25808
25809         strdup: Improve idiom.
25810         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25811         AC_LIBOBJ is used.
25812         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25813         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25814         when AC_LIBOBJ is used.
25815
25816 2010-04-05  Bruno Haible  <bruno@clisp.org>
25817
25818         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25819         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25820         don't set REPLACE_MBSINIT to 1.
25821         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25822         don't set REPLACE_MBRTOWC to 1.
25823         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25824         exist, don't set REPLACE_MBSRTOWCS to 1.
25825         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25826         exist, don't set REPLACE_MBSNRTOWCS to 1.
25827         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25828         don't set REPLACE_WCRTOMB to 1.
25829         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25830         exist, don't set REPLACE_WCSRTOMBS to 1.
25831         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25832         exist, don't set REPLACE_WCSNRTOMBS to 1.
25833
25834 2010-04-05  Bruno Haible  <bruno@clisp.org>
25835
25836         ldexpl: Improve idiom.
25837         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25838         make sure to set HAVE_DECL_LDEXPL to 0.
25839
25840 2010-04-05  Jim Meyering  <meyering@redhat.com>
25841
25842         xstrtol-tests: convert to use init.sh
25843         * modules/xstrtol-tests (Files): Add tests/init.sh.
25844         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25845         Use Exit, not exit.
25846         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25847
25848         atexit-tests: convert to use init.sh
25849         * modules/atexit-tests (Files): Add tests/init.sh.
25850         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25851         Use Exit, not exit.
25852         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25853
25854         init.sh: fix typo
25855         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25856
25857         init.sh: make it easier for a test script to write to the tty, ...
25858         when using automake's parallel-tests mode.
25859         * tests/init.sh (stderr_fileno_): Define overridable variable.
25860         (warn_): New function, to use it.
25861         (fail_, skip_, framework_failure_): Use warn_.
25862
25863 2010-04-04  Bruno Haible  <bruno@clisp.org>
25864
25865         btowc: Avoid warning.
25866         * lib/btowc.c: Include <stdlib.h>.
25867         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25868
25869 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         wchar: Port to NetBSD 1.5.
25873         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25874         * lib/wctype.in.h (WEOF): Likewise.
25875
25876 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25877             Bruno Haible  <bruno@clisp.org>
25878
25879         Port extended stdio to NetBSD 1.5.
25880         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25881         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25882         older.
25883
25884 2010-04-04  Bruno Haible  <bruno@clisp.org>
25885
25886         string: Remove unused substitution.
25887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25888         HAVE_DECL_STRERROR.
25889         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25890
25891 2010-04-04  Bruno Haible  <bruno@clisp.org>
25892
25893         strtod: Avoid a possible C++ test error.
25894         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25895         set REPLACE_STRTOD.
25896
25897 2010-04-04  Bruno Haible  <bruno@clisp.org>
25898
25899         strerror: Update documentation.
25900         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25901
25902 2010-04-04  Bruno Haible  <bruno@clisp.org>
25903
25904         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25905         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25906         _GL_CXXALIAS_SYS_CAST.
25907
25908 2010-04-04  Bruno Haible  <bruno@clisp.org>
25909
25910         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25911         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25912         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25913         REPLACE_FREXPL to 1.
25914         * doc/posix-functions/frexpl.texi: Update documentation.
25915
25916 2010-04-04  Bruno Haible  <bruno@clisp.org>
25917
25918         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25919         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25920
25921 2010-04-04  Bruno Haible  <bruno@clisp.org>
25922
25923         Implement nanosleep for native Windows.
25924         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25925
25926 2010-04-04  Bruno Haible  <bruno@clisp.org>
25927
25928         math: Fix some C++ test errors on Solaris 8.
25929         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25930
25931 2010-04-04  Bruno Haible  <bruno@clisp.org>
25932
25933         math: Fix some C++ test errors on Cygwin.
25934         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25935         truncl): Provide declaration if the system does not have it.
25936         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25937         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25938         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25939         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25940         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25941         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25942         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25943         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25944         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25945         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25946         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25947         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25948         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25949         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25950         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25951         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25953         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25954         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25955         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25956         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25957         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25958
25959 2010-04-04  Bruno Haible  <bruno@clisp.org>
25960
25961         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25962         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25963         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25964         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25965         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25966         * m4/isinf.m4 (gl_ISINF): Likewise.
25967         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25968
25969 2010-04-04  Bruno Haible  <bruno@clisp.org>
25970
25971         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25972         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25973
25974 2010-04-04  Bruno Haible  <bruno@clisp.org>
25975
25976         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25977         * modules/tmpfile (configure.ac): Update.
25978
25979         tmpfile: Fix C++ test error on mingw.
25980         * lib/stdio.in.h (tmpfile): New declaration.
25981         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25982         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25983         * modules/tmpfile (Depends-on): Add stdio.
25984         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25985         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25986         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25987         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25988         REPLACE_TMPFILE.
25989         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25990
25991 2010-04-04  Bruno Haible  <bruno@clisp.org>
25992
25993         ioctl: Fix C++ test error on mingw.
25994         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25995         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25996         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25997
25998 2010-04-03  Bruno Haible  <bruno@clisp.org>
25999
26000         wcwidth: Fix C++ test error on mingw.
26001         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26003         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26004
26005 2010-04-03  Bruno Haible  <bruno@clisp.org>
26006
26007         nanosleep: Fix C++ test error on mingw.
26008         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26009         * lib/time.in.h (nanosleep): Use modern idiom.
26010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26011         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26012         REPLACE_NANOSLEEP to 1.
26013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26014         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26015
26016 2010-04-03  Bruno Haible  <bruno@clisp.org>
26017
26018         strptime: Fix C++ test error on mingw.
26019         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26020         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26021         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26022         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26023         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26024         not REPLACE_STRPTIME.
26025         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26026         REPLACE_STRPTIME.
26027
26028 2010-04-03  Bruno Haible  <bruno@clisp.org>
26029
26030         timegm: Fix C++ test error on mingw.
26031         * lib/time.in.h (timegm): Use modern idiom.
26032         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26033         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26034         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26035         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26036
26037 2010-04-03  Bruno Haible  <bruno@clisp.org>
26038
26039         timegm: Assume declaration if function exists.
26040         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26041         if it exists. Don't clobber ac_cv_func_timegm.
26042
26043 2010-04-03  Bruno Haible  <bruno@clisp.org>
26044
26045         time_r: Fix C++ test error on mingw.
26046         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26047         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26048         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26049         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26050         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26051
26052 2010-04-03  Bruno Haible  <bruno@clisp.org>
26053
26054         time_r: Minor updates.
26055         * modules/time_r (Description): Mention the provided functions.
26056         * lib/time_r.c: Don't include <string.h>.
26057         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26058         * doc/posix-functions/localtime_r.texi: Likewise.
26059
26060 2010-04-03  Bruno Haible  <bruno@clisp.org>
26061
26062         time: Fix regression introduced on 2010-03-08.
26063         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26064         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26065
26066 2010-04-03  Jim Meyering  <meyering@redhat.com>
26067
26068         maint.mk: don't silently disable project-specific syntax-check rules
26069         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26070         that they need to convert their project-specific syntax-check rules
26071         to use the new _sc_search_regexp.
26072
26073 2010-04-03  Bruno Haible  <bruno@clisp.org>
26074
26075         fchdir: Fix regression introduced on 2010-03-08.
26076         * lib/unistd.in.h (fchdir): Fix declaration.
26077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26079         REPLACE_FCHDIR.
26080         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26081         REPLACE_FCHDIR.
26082
26083 2010-04-03  Bruno Haible  <bruno@clisp.org>
26084
26085         getpagesize: Fix C++ test error on mingw.
26086         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26087         system does not declare the function.
26088         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26089         declared.
26090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26091         HAVE_DECL_GETPAGESIZE.
26092         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26093
26094 2010-04-03  Bruno Haible  <bruno@clisp.org>
26095
26096         stdio: Make C++ tests work on mingw.
26097         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26098         does not declare the function.
26099
26100 2010-04-03  Bruno Haible  <bruno@clisp.org>
26101
26102         ftello: Fix C++ test error on mingw.
26103         * lib/stdio.in.h (ftello): Use modern idiom.
26104         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26105         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26106         is missing and that it needs to be replaced.
26107         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26109         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26110
26111 2010-04-03  Bruno Haible  <bruno@clisp.org>
26112
26113         fseeko: Fix C++ test error on mingw.
26114         * lib/stdio.in.h (fseeko): Use modern idiom.
26115         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26116         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26117         is missing and that it needs to be replaced.
26118         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26120         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26121
26122 2010-04-03  Bruno Haible  <bruno@clisp.org>
26123
26124         mkstemp: Fix C++ test error on mingw.
26125         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26127         function is missing and that it needs to be replaced.
26128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26129         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26130
26131 2010-04-03  Bruno Haible  <bruno@clisp.org>
26132
26133         stpncpy: Fix C++ test error on mingw.
26134         * lib/string.in.h (stpncpy): Use modern idiom.
26135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26136         function is missing and that it needs to be replaced.
26137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26138         REPLACE_STPNCPY.
26139         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26140
26141 2010-04-03  Bruno Haible  <bruno@clisp.org>
26142
26143         sys_stat: Fix C++ test error on mingw.
26144         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26145         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26146
26147 2010-04-03  Bruno Haible  <bruno@clisp.org>
26148
26149         pty: Update doc.
26150         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26151
26152 2010-04-03  Bruno Haible  <bruno@clisp.org>
26153
26154         unistd: Fix C++ test error on mingw.
26155         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26156
26157 2010-04-03  Bruno Haible  <bruno@clisp.org>
26158
26159         Update doc regarding mingw.
26160         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26161         * doc/glibc-functions/login_tty.texi: Likewise.
26162         * doc/glibc-functions/forkpty.texi: Likewise.
26163
26164 2010-04-03  Bruno Haible  <bruno@clisp.org>
26165
26166         stdlib: Avoid compilation failure of c-strtold on mingw.
26167         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26168
26169 2010-04-03  Bruno Haible  <bruno@clisp.org>
26170
26171         locale: Make C++ tests work on Cygwin and mingw.
26172         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26173         cannot provide the function.
26174         Reported by Simon Josefsson.
26175
26176 2010-04-03  Bruno Haible  <bruno@clisp.org>
26177
26178         localename: Port to MacOS X 10.6.
26179         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26180         memory layout of the locales in MacOS X 10.6 as well.
26181         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26182
26183 2010-04-02  Bruno Haible  <bruno@clisp.org>
26184
26185         gnulib-tool: Ensure that long-running tests are executed last.
26186         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26187         running tests after the one for the other tests.
26188
26189 2010-04-02  Bruno Haible  <bruno@clisp.org>
26190
26191         gnulib-tool: Ensure the tests in the main directory are executed first.
26192         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26193         start with the current directory.
26194
26195 2010-04-02  Bruno Haible  <bruno@clisp.org>
26196
26197         Tests for module 'havelib', moved here from GNU gettext.
26198         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26199         modifications.
26200         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26201         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26202         with modifications.
26203         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26204         modifications.
26205         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26206         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26207         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26208         with modifications.
26209         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26210         with modifications.
26211         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26212         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26213         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26214         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26215         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26216         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26217         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26218         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26219         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26220         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26221         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26222         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26223         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26224         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26225         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26226         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26227         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26228         with modifications.
26229         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26230         with modifications.
26231         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26232         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26233         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26234         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26235         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26236         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26237         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26238         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26239         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26240         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26241         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26242         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26243         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26244         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26245         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26246         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26247         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26248         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26249         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26250         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26251         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26252         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26253         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26254         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26255         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26256         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26257         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26258         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26259         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26260         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26261         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26262         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26263         * tests/havelib/rpathx/rpathx.c: New file, from
26264         gettext/autoconf-lib-link.
26265         * tests/havelib/rpathx/Makefile.am: New file, from
26266         gettext/autoconf-lib-link.
26267         * tests/havelib/rpathx/configure.ac: New file, from
26268         gettext/autoconf-lib-link with modifications.
26269         * tests/havelib/rpathy/rpathy.c: New file, from
26270         gettext/autoconf-lib-link.
26271         * tests/havelib/rpathy/Makefile.am: New file, from
26272         gettext/autoconf-lib-link.
26273         * tests/havelib/rpathy/configure.ac: New file, from
26274         gettext/autoconf-lib-link with modifications.
26275         * tests/havelib/rpathz/rpathz.c: New file, from
26276         gettext/autoconf-lib-link.
26277         * tests/havelib/rpathz/Makefile.am: New file, from
26278         gettext/autoconf-lib-link.
26279         * tests/havelib/rpathz/configure.ac: New file, from
26280         gettext/autoconf-lib-link with modifications.
26281         * tests/havelib/rpathlx/usex.c: New file, from
26282         gettext/autoconf-lib-link.
26283         * tests/havelib/rpathlx/Makefile.am: New file, from
26284         gettext/autoconf-lib-link.
26285         * tests/havelib/rpathlx/configure.ac: New file, from
26286         gettext/autoconf-lib-link with modifications.
26287         * tests/havelib/rpathly/usey.c: New file, from
26288         gettext/autoconf-lib-link.
26289         * tests/havelib/rpathly/Makefile.am: New file, from
26290         gettext/autoconf-lib-link.
26291         * tests/havelib/rpathly/configure.ac: New file, from
26292         gettext/autoconf-lib-link with modifications.
26293         * tests/havelib/rpathlz/usez.c: New file, from
26294         gettext/autoconf-lib-link.
26295         * tests/havelib/rpathlz/Makefile.am: New file, from
26296         gettext/autoconf-lib-link.
26297         * tests/havelib/rpathlz/configure.ac: New file, from
26298         gettext/autoconf-lib-link with modifications.
26299         * tests/havelib/rpathlyx/usey.c: New file, from
26300         gettext/autoconf-lib-link.
26301         * tests/havelib/rpathlyx/Makefile.am: New file, from
26302         gettext/autoconf-lib-link.
26303         * tests/havelib/rpathlyx/configure.ac: New file, from
26304         gettext/autoconf-lib-link with modifications.
26305         * tests/havelib/rpathlzyx/usez.c: New file, from
26306         gettext/autoconf-lib-link.
26307         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26308         gettext/autoconf-lib-link.
26309         * tests/havelib/rpathlzyx/configure.ac: New file, from
26310         gettext/autoconf-lib-link with modifications.
26311         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26312         with modifications.
26313
26314 2010-04-02  Bruno Haible  <bruno@clisp.org>
26315
26316         gnulib-tool: Create distributed built sources also for the tests.
26317         * gnulib-tool (func_create_testdir): Also generate distributed built
26318         sources in the tests directory.
26319
26320 2010-04-02  Bruno Haible  <bruno@clisp.org>
26321
26322         gnulib-tool: Obey user's environment variables.
26323         * gnulib-tool (func_create_testdir): When creating built sources,
26324         respect the environment variables for autoconf, automake, etc. given by
26325         the user.
26326
26327 2010-04-02  Bruno Haible  <bruno@clisp.org>
26328
26329         gnulib-tool: Provide the value of --m4-base to modules.
26330         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26331         of gl_m4_base.
26332
26333 2010-04-02  Eric Blake  <eblake@redhat.com>
26334
26335         maint.mk: fix some fallout
26336         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26337         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26338
26339 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26340
26341         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26342         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26343         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26344         (sc_cast_of_x_alloc_return_value): Likewise.
26345         (sc_cast_of_alloca_return_value): Likewise.
26346         (sc_space_tab): Likewise.
26347         (sc_prohibit_atoi_atof): Likewise.
26348         (sc_prohibit_magic_number_exit): Likewise.
26349         (sc_error_exit_success): Likewise.
26350         (sc_file_system): Likewise.
26351         (sc_prohibit_have_config_h): Likewise.
26352         (sc_require_config_h): Likewise.
26353         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26354         (sc_obsolete_symbols): Likewise.
26355         (sc_changelog): Likewise.
26356         (sc_program_name): Likewise.
26357         (sc_the_the): Likewise.
26358         (sc_trailing_blank): Likewise.
26359         (sc_two_space_separator_in_usage): Likewise.
26360         (sc_useless_cpp_parens): Likewise.
26361         (sc_GPL_version): Likewise.
26362         (sc_GFDL_version): Likewise.
26363         (sc_texinfo_acronym): Likewise.
26364         (sc_prohibit_cvs_keyword): Likewise.
26365         (sc_prohibit_stat_st_blocks): Likewise.
26366         (sc_prohibit_S_IS_definition): Likewise.
26367         (sc_redundant_const): Likewise.
26368         (sc_makefile_TAB_only_indentation): Likewise.
26369         (sc_m4_quote_check): Likewise.
26370         (sc_makefile_path_separator_check): Likewise.
26371         (sc_copyright_check): Likewise.
26372         (sc_Wundef_boolean): Likewise.
26373         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26374
26375         maint.mk: match 0 or more whitespace-before-function-call '('
26376         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26377         that have zero or two-and-more spaces between the function name
26378         and the open parenthesis.
26379         (sc_error_message_warn_fatal): Likewise.
26380         (sc_error_message_uppercase): Likewise.
26381         (sc_error_message_period): Likewise.
26382
26383 2010-03-31  Eric Blake  <eblake@redhat.com>
26384
26385         maint.mk: check for [ as well as test
26386         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26387         Based on a libvirt report by Matthias Bolte.
26388
26389         gnumakefile: don't squelch _version output
26390         * top/GNUmakefile (_version): Create one-shot dependency rather
26391         than using $(shell) when version must be regenerated.
26392         (_autoreconf): Run verbosely, by default.
26393
26394         sys_time: avoid compiler warnings
26395         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26396         unconditional, fixing regression from 2010-03-29.
26397         Reported by Simon Josefsson.
26398
26399 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26400
26401         maint.mk: s/_header_without_use/_sc_header_without_use/
26402         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26403         (sc_prohibit_assert_without_use): Use the new name.
26404         (sc_prohibit_close_stream_without_use): Likewise.
26405         (sc_prohibit_getopt_without_use): Likewise.
26406         (sc_prohibit_quotearg_without_use): Likewise.
26407         (sc_prohibit_quote_without_use): Likewise.
26408         (sc_prohibit_long_options_without_use): Likewise.
26409         (sc_prohibit_inttostr_without_use): Likewise.
26410         (sc_prohibit_ignore_value_without_use): Likewise.
26411         (sc_prohibit_error_without_use): Likewise.
26412         (sc_prohibit_xalloc_without_use): Likewise.
26413         (sc_prohibit_hash_without_use): Likewise.
26414         (sc_prohibit_hash_pjw_without_use): Likewise.
26415         (sc_prohibit_safe_read_without_use): Likewise.
26416         (sc_prohibit_argmatch_without_use): Likewise.
26417         (sc_prohibit_canonicalize_without_use): Likewise.
26418         (sc_prohibit_root_dev_ino_without_use): Likewise.
26419         (sc_prohibit_openat_without_use): Likewise.
26420         (sc_prohibit_c_ctype_without_use): Likewise.
26421         (sc_prohibit_signal_without_use): Likewise.
26422         (sc_prohibit_intprops_without_use): Likewise.
26423
26424 2010-03-30  Eric Blake  <eblake@redhat.com>
26425
26426         maint: improve module indicators
26427         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26428         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26429         columns, and avoid extra macro expansion.
26430
26431         fdopendir: work around FreeBSD bug
26432         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26433         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26434         * modules/dirent (Makefile.am): Substitute it.
26435         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26436         declaration.
26437         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26438         fix.
26439         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26440
26441 2010-03-29  Bruno Haible  <bruno@clisp.org>
26442
26443         Emit #pragma system_header after the inclusion guard, not before.
26444         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26445         guard that spans the entire file, not before. This enables an
26446         optimization in GCC's preprocessor.
26447         * lib/ctype.in.h: Likewise.
26448         * lib/dirent.in.h: Likewise.
26449         * lib/errno.in.h: Likewise.
26450         * lib/float.in.h: Likewise.
26451         * lib/getopt.in.h: Likewise.
26452         * lib/iconv.in.h: Likewise.
26453         * lib/langinfo.in.h: Likewise.
26454         * lib/locale.in.h: Likewise.
26455         * lib/math.in.h: Likewise.
26456         * lib/netdb.in.h: Likewise.
26457         * lib/netinet_in.in.h: Likewise.
26458         * lib/pty.in.h: Likewise.
26459         * lib/sched.in.h: Likewise.
26460         * lib/se-selinux.in.h: Likewise.
26461         * lib/search.in.h: Likewise.
26462         * lib/spawn.in.h: Likewise.
26463         * lib/stdarg.in.h: Likewise.
26464         * lib/stdint.in.h: Likewise.
26465         * lib/string.in.h: Likewise.
26466         * lib/strings.in.h: Likewise.
26467         * lib/sys_file.in.h: Likewise.
26468         * lib/sys_ioctl.in.h: Likewise.
26469         * lib/sys_time.in.h: Likewise.
26470         * lib/sys_times.in.h: Likewise.
26471         * lib/sys_utsname.in.h: Likewise.
26472         * lib/sys_wait.in.h: Likewise.
26473         * lib/sysexits.in.h: Likewise.
26474         * lib/wctype.in.h: Likewise.
26475
26476 2010-03-28  James Youngman  <jay@gnu.org>
26477
26478         save-cwd: don't leak a file descriptor when the caller execs.
26479         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26480         saved file descriptor.
26481         * modules/save-cwd (Depends-on): Depend on cloexec.
26482
26483 2010-03-29  Bruno Haible  <bruno@clisp.org>
26484
26485         Remove vestiges of fts-lgpl module.
26486         * lib/fts_.h: Assume GNULIB_FTS is 1.
26487         * lib/fts.c: Likewise.
26488         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26489
26490 2010-03-28  Bruno Haible  <bruno@clisp.org>
26491
26492         Fix definition of tests witness macro.
26493         * gnulib-tool (func_import): Fix definition of witness macro.
26494
26495 2010-03-28  Bruno Haible  <bruno@clisp.org>
26496
26497         Fix ioctl's protoype on glibc systems.
26498         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26499         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26500         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26501         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26502         signature. If not, arrange to replace the ioctl function.
26503         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26504         REPLACE_IOCTL.
26505         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26506         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26507         Reported by Ludovic Courtès <ludo@gnu.org>.
26508
26509 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26510
26511         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26512         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26513         made it so grep -r --include=GLOB* ... did not work.
26514
26515 2010-03-26  Jim Meyering  <meyering@redhat.com>
26516             Eric Blake  <eblake@redhat.com>
26517
26518         maint.mk: prohibit use of test's -o and -a operators
26519         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26520
26521 2010-03-28  Bruno Haible  <bruno@clisp.org>
26522
26523         Remove unused GNULIB_XYZ macro definitions.
26524         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26525         invocation.
26526
26527 2010-03-28  Bruno Haible  <bruno@clisp.org>
26528
26529         Mark privileged tests modules.
26530         * modules/idpriv-drop-tests (Status): New section.
26531         * modules/idpriv-droptemp-tests (Status): New section.
26532
26533 2010-03-28  Bruno Haible  <bruno@clisp.org>
26534
26535         Split C++ tests into separate tests modules.
26536         * modules/dirent-c++-tests: New file, extracted from
26537         modules/dirent-tests.
26538         * modules/dirent-tests: Depend on it.
26539         * modules/fcntl-h-c++-tests: New file, extracted from
26540         modules/fcntl-h-tests.
26541         * modules/fcntl-h-tests: Depend on it.
26542         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26543         * modules/glob-tests: Depend on it.
26544         * modules/iconv-h-c++-tests: New file, extracted from
26545         modules/iconv-h-tests.
26546         * modules/iconv-h-tests: Depend on it.
26547         * modules/langinfo-c++-tests: New file, extracted from
26548         modules/langinfo-tests.
26549         * modules/langinfo-tests: Depend on it.
26550         * modules/locale-c++-tests: New file, extracted from
26551         modules/locale-tests.
26552         * modules/locale-tests: Depend on it.
26553         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26554         * modules/math-tests: Depend on it.
26555         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26556         * modules/pty-tests: Depend on it.
26557         * modules/search-c++-tests: New file, extracted from
26558         modules/search-tests.
26559         * modules/search-tests: Depend on it.
26560         * modules/signal-c++-tests: New file, extracted from
26561         modules/signal-tests.
26562         * modules/signal-tests: Depend on it.
26563         * modules/spawn-c++-tests: New file, extracted from
26564         modules/spawn-tests.
26565         * modules/spawn-tests: Depend on it.
26566         * modules/stdio-c++-tests: New file, extracted from
26567         modules/stdio-tests.
26568         * modules/stdio-tests: Depend on it.
26569         * modules/stdlib-c++-tests: New file, extracted from
26570         modules/stdlib-tests.
26571         * modules/stdlib-tests: Depend on it.
26572         * modules/string-c++-tests: New file, extracted from
26573         modules/string-tests.
26574         * modules/string-tests: Depend on it.
26575         * modules/sys_ioctl-c++-tests: New file, extracted from
26576         modules/sys_ioctl-tests.
26577         * modules/sys_ioctl-tests: Depend on it.
26578         * modules/sys_select-c++-tests: New file, extracted from
26579         modules/sys_select-tests.
26580         * modules/sys_select-tests: Depend on it.
26581         * modules/sys_socket-c++-tests: New file, extracted from
26582         modules/sys_socket-tests.
26583         * modules/sys_socket-tests: Depend on it.
26584         * modules/sys_stat-c++-tests: New file, extracted from
26585         modules/sys_stat-tests.
26586         * modules/sys_stat-tests: Depend on it.
26587         * modules/sys_time-c++-tests: New file, extracted from
26588         modules/sys_time-tests.
26589         * modules/sys_time-tests: Depend on it.
26590         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26591         * modules/time-tests: Depend on it.
26592         * modules/unistd-c++-tests: New file, extracted from
26593         modules/unistd-tests.
26594         * modules/unistd-tests: Depend on it.
26595         * modules/wchar-c++-tests: New file, extracted from
26596         modules/wchar-tests.
26597         * modules/wchar-tests: Depend on it.
26598         * modules/wctype-c++-tests: New file, extracted from
26599         modules/wctype-tests.
26600         * modules/wctype-tests: Depend on it.
26601         Reported by Simon Josefsson.
26602
26603 2010-03-28  Bruno Haible  <bruno@clisp.org>
26604
26605         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26606         * gnulib-tool (func_exists_module): New function, extracted from
26607         func_verify_module.
26608         (func_verify_module): Use it.
26609         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26610         'foo' only if 'foo' exists.
26611         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26612         module.
26613
26614 2010-03-28  Bruno Haible  <bruno@clisp.org>
26615
26616         gnulib-tool: Add support for special categories of tests.
26617         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26618         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26619         (func_usage): Document them.
26620         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26621         inc_unportable_tests, inc_all_tests): New variables.
26622         (func_acceptable): Consider these variables.
26623         (func_modules_transitive_closure): Make it work when the 'Status' field
26624         consists of multiple words.
26625         (func_import): Store and restore the values of inc_cxx_tests,
26626         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26627         inc_all_tests in gnulib-comp.m4.
26628         (func_create_testdir): Set inc_all_tests to true.
26629         * doc/gnulib.texi (Extra tests modules): New section.
26630         Suggested by Jim Meyering.
26631
26632 2010-03-28  Bruno Haible  <bruno@clisp.org>
26633
26634         ansi-c++-opt: Allow turning off the C++ build by default.
26635         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26636         gl_CXX_CHOICE_DEFAULT_NO is defined.
26637         Requested by Eric Blake.
26638
26639 2010-03-28  Bruno Haible  <bruno@clisp.org>
26640
26641         unistd: Avoid #define replacements in C++ mode.
26642         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26643         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26644         setsockopt, shutdown, select): In C++, attach a warning to the function
26645         if possible, rather than #defining the symbol to a dysfunctional alias.
26646         Reported by John W. Eaton <jwe@gnu.org>.
26647
26648 2010-03-28  Bruno Haible  <bruno@clisp.org>
26649
26650         Fix link errors on mingw.
26651         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26652         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26653         $(LIBSOCKET).
26654         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26655         $(LIBSOCKET).
26656
26657 2010-03-28  Bruno Haible  <bruno@clisp.org>
26658             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26659
26660         lib-ignore: Determine different options for different compilers.
26661         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26662         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26663         Add comments.
26664         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26665         * NEWS: Mention the change.
26666
26667 2010-03-27  Bruno Haible  <bruno@clisp.org>
26668
26669         Remove unused GNULIB_XYZ macro definitions.
26670         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26671         * modules/fseek (configure.ac): Likewise.
26672         * modules/ioctl (configure.ac): Likewise.
26673         * modules/open (configure.ac): Likewise.
26674         * modules/stdlib-safer (configure.ac): Likewise.
26675
26676 2010-03-27  Bruno Haible  <bruno@clisp.org>
26677
26678         Add a remark about certain modules.
26679         * modules/malloc (Comment): New section.
26680         * modules/realloc (Comment): Likewise.
26681         * modules/sigpipe (Comment): Likewise.
26682
26683 2010-03-27  Bruno Haible  <bruno@clisp.org>
26684
26685         Resolve conflict between the two kinds of module indicators.
26686         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26687         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26688         * modules/canonicalize (configure.ac): Invoke
26689         gl_MODULE_INDICATOR_FOR_TESTS.
26690         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26691         GNULIB_XYZ.
26692         * tests/test-dirent-c++.cc: Likewise.
26693         * tests/test-dirent-safer.c: Likewise.
26694         * tests/test-dup2.c: Likewise.
26695         * tests/test-fchdir.c: Likewise.
26696         * tests/test-fcntl-h-c++.cc: Likewise.
26697         * tests/test-getopt.c: Likewise.
26698         * tests/test-getopt.h: Likewise.
26699         * tests/test-langinfo-c++.cc: Likewise.
26700         * tests/test-locale-c++.cc: Likewise.
26701         * tests/test-math-c++.cc: Likewise.
26702         * tests/test-pty-c++.cc: Likewise.
26703         * tests/test-search-c++.cc: Likewise.
26704         * tests/test-signal-c++.cc: Likewise.
26705         * tests/test-spawn-c++.cc: Likewise.
26706         * tests/test-stdio-c++.cc: Likewise.
26707         * tests/test-stdlib-c++.cc: Likewise.
26708         * tests/test-string-c++.cc: Likewise.
26709         * tests/test-sys_ioctl-c++.cc: Likewise.
26710         * tests/test-sys_select-c++.cc: Likewise.
26711         * tests/test-sys_socket-c++.cc: Likewise.
26712         * tests/test-sys_stat-c++.cc: Likewise.
26713         * tests/test-sys_time-c++.cc: Likewise.
26714         * tests/test-time-c++.cc: Likewise.
26715         * tests/test-unistd-c++.cc: Likewise.
26716         * tests/test-wchar-c++.cc: Likewise.
26717         * tests/uninorm/test-u8-nfc.c: Likewise.
26718         * tests/uninorm/test-u8-nfd.c: Likewise.
26719         * tests/uninorm/test-u8-nfkc.c: Likewise.
26720         * tests/uninorm/test-u8-nfkd.c: Likewise.
26721         * tests/uninorm/test-u16-nfc.c: Likewise.
26722         * tests/uninorm/test-u16-nfd.c: Likewise.
26723         * tests/uninorm/test-u16-nfkc.c: Likewise.
26724         * tests/uninorm/test-u16-nfkd.c: Likewise.
26725         * tests/uninorm/test-u32-nfc.c: Likewise.
26726         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26727         * tests/uninorm/test-u32-nfd.c: Likewise.
26728         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26729         * tests/uninorm/test-u32-nfkc.c: Likewise.
26730         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26731         * tests/uninorm/test-u32-nfkd.c: Likewise.
26732         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26733         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26734
26735 2010-03-27  Bruno Haible  <bruno@clisp.org>
26736
26737         Distinguish two kinds of module indicators.
26738         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26739         gl_MODULE_INDICATOR.
26740         (gl_MODULE_INDICATOR): New macro.
26741         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26742         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26743         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26744         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26745         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26746         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26747         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26748         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26749         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26750         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26751         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26752         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26754         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26755         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26756         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26757         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26758         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26759         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26760         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26761         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26762         * modules/cloexec (configure.ac): Likewise.
26763         * modules/getopt-gnu (configure.ac): Likewise.
26764         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26765         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26766         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26767         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26768
26769 2010-03-27  Bruno Haible  <bruno@clisp.org>
26770
26771         New module description field 'Comment'.
26772         * gnulib-tool: New option --extract-comment.
26773         (func_usage): Document it.
26774         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26775         (func_get_comment): New function.
26776         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26777
26778 2010-03-27  Bruno Haible  <bruno@clisp.org>
26779
26780         Addendum to 2010-02-07 commit.
26781         * gnulib-tool (func_usage): Document --extract-applicability option.
26782
26783 2010-03-27  Bruno Haible  <bruno@clisp.org>
26784
26785         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26786         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26787         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26788         rather than link errors.
26789
26790 2010-03-27  Bruno Haible  <bruno@clisp.org>
26791
26792         Avoid side effects from tests-related modules on the compilation of lib.
26793         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26794         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26795         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26796         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26797         macro.
26798         (func_import): Define a witness macro. Assign it a value that depends
26799         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26800         tests-related modules.
26801         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26802         Reported by Jim Meyering.
26803
26804 2010-03-27  Bruno Haible  <bruno@clisp.org>
26805
26806         Factorize common .m4 code.
26807         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26808         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26809         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26810         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26811         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26812         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26813         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26814         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26815         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26816         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26817         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26818         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26819         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26820         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26821         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26822         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26823         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26824         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26826         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26827         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26829         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26831         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26832         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26833         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26834         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26835         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26836         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26837         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26838         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26839
26840 2010-03-27  Bruno Haible  <bruno@clisp.org>
26841
26842         Fix a compilation error on Cygwin with g++ >= 4.3.
26843         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26844         if it is undefined or if we alias it to chmod.
26845         (lstat): Don't warn about the use of this function if it is undefined
26846         or if we alias it to stat.
26847         Reported by Simon Josefsson.
26848
26849 2010-03-27  Bruno Haible  <bruno@clisp.org>
26850
26851         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26852         * modules/getlogin (configure.ac): Update.
26853
26854         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26855         * modules/getlogin_r (configure.ac): Update.
26856
26857         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26859         * modules/inet_ntop (configure.ac): Update.
26860
26861         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26862         * modules/inet_pton (configure.ac): Update.
26863
26864         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26865         * modules/mbslen (configure.ac): Update.
26866
26867         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26868         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26869         * modules/forkpty (configure.ac): Update.
26870         * modules/openpty (configure.ac): Update.
26871
26872 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26873
26874         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26875         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26876
26877 2010-03-25  Eric Blake  <eblake@redhat.com>
26878
26879         maint: use pragma consistently across replacement headers
26880         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26881         * lib/dirent.in.h (system_header): Likewise.
26882         * lib/errno.in.h (system_header): Likewise.
26883         * lib/float.in.h (system_header): Likewise.
26884         * lib/getopt.in.h (system_header): Likewise.
26885         * lib/iconv.in.h (system_header): Likewise.
26886         * lib/inttypes.in.h (system_header): Likewise.
26887         * lib/langinfo.in.h (system_header): Likewise.
26888         * lib/locale.in.h (system_header): Likewise.
26889         * lib/math.in.h (system_header): Likewise.
26890         * lib/netdb.in.h (system_header): Likewise.
26891         * lib/netinet_in.in.h (system_header): Likewise.
26892         * lib/pty.in.h (system_header): Likewise.
26893         * lib/sched.in.h (system_header): Likewise.
26894         * lib/se-selinux.in.h (system_header): Likewise.
26895         * lib/search.in.h (system_header): Likewise.
26896         * lib/spawn.in.h (system_header): Likewise.
26897         * lib/stdarg.in.h (system_header): Likewise.
26898         * lib/stdint.in.h (system_header): Likewise.
26899         * lib/string.in.h (system_header): Likewise.
26900         * lib/strings.in.h (system_header): Likewise.
26901         * lib/sys_file.in.h (system_header): Likewise.
26902         * lib/sys_ioctl.in.h (system_header): Likewise.
26903         * lib/sys_socket.in.h (system_header): Likewise.
26904         * lib/sys_times.in.h (system_header): Likewise.
26905         * lib/sys_utsname.in.h (system_header): Likewise.
26906         * lib/sys_wait.in.h (system_header): Likewise.
26907         * lib/sysexits.in.h (system_header): Likewise.
26908         * lib/unistd.in.h (system_header): Likewise.
26909         * lib/wctype.in.h (system_header): Likewise.
26910
26911         arpa/inet: fix mingw compilation warning
26912         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26913         Reported by Matthew Bolte.
26914
26915 2010-03-25  Bruno Haible  <bruno@clisp.org>
26916
26917         Avoid collision between gnulib wrapper and libintl wrapper.
26918         * lib/printf.c (printf): Don't define if a printf wrapper is already
26919         defined in intl/printf.c.
26920         Reported by Michel Boaventura <michel@michelboaventura.com>.
26921
26922 2010-03-25  Bruno Haible  <bruno@clisp.org>
26923
26924         Use ANSI C.
26925         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26926
26927 2010-03-25  Bruno Haible  <bruno@clisp.org>
26928
26929         Minor formatting changes.
26930         * lib/acosl.c: Insert space before function argument list.
26931         * lib/argz.c: Likewise.
26932         * lib/asinl.c: Likewise.
26933         * lib/expl.c: Likewise.
26934         * lib/gen-uni-tables.c: Likewise.
26935         * lib/gettext.h: Likewise.
26936         * lib/glthread/lock.h: Likewise.
26937         * lib/tanl.c: Likewise.
26938         * lib/uniname/uniname.c: Likewise.
26939         * tests/test-idpriv-drop.c: Likewise.
26940         * tests/test-idpriv-droptemp.c: Likewise.
26941         * tests/test-lock.c: Likewise.
26942         * tests/test-tls.c: Likewise.
26943         * lib/argp-help.c: Insert space before function-like macro argument
26944         list.
26945         * lib/memcmp.c: Likewise.
26946         * tests/test-base64.c: Likewise.
26947         * lib/localename.c: Insert space before sizeof's argument list.
26948         * lib/safe-alloc.h: Likewise.
26949         * lib/file-set.h: Insert space before macro argument list.
26950         * tests/test-argp.c: Likewise.
26951         * lib/argp-namefrob.h: Insert space before function parameter list.
26952         * lib/getaddrinfo.c: Likewise.
26953         * lib/netdb.in.h: Likewise.
26954         * lib/parse-duration.h: Likewise.
26955         * lib/parse-duration.c: Likewise.
26956         * lib/poll.c: Likewise.
26957         * lib/select.c: Likewise.
26958         * lib/trim.h: Likewise.
26959         * tests/test-usleep.c: Likewise.
26960         * lib/ldexpl.c: Insert space before function parameter list and before
26961         function argument list.
26962         * lib/logl.c: Likewise.
26963         * lib/sqrtl.c: Likewise.
26964         * lib/trim.c: Likewise.
26965         * lib/cosl.c: Use GNU style indentation. Insert space before function
26966         argument list.
26967         * lib/sinl.c: Likewise.
26968         * lib/tsearch.c: Insert space after 'for'.
26969         Reported by Jim Meyering.
26970
26971 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26972
26973         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26974         config header before grepping, as it's not present before
26975         autoreconf/configure are run.  Reported by Simon Josefsson.
26976
26977 2010-03-23  Bruno Haible  <bruno@clisp.org>
26978
26979         pt_chown: Make it work with automake < 1.11.
26980         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26981         Reported by Simon Josefsson.
26982
26983 2010-03-23  Bruno Haible  <bruno@clisp.org>
26984
26985         pt_chown: Don't depend on GPLed modules.
26986         * lib/pt_chown.c: Don't include idpriv.h.
26987         (main): Don't drop privileges.
26988         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26989         Reported by Simon Josefsson.
26990
26991 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26992
26993         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26994         suggestions from karl@freefriends.org (Karl Berry).
26995
26996 2010-03-22  Eric Blake  <eblake@redhat.com>
26997
26998         gethostname: further tweaks
26999         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27000         are overriding gethostname.
27001         Suggested by Bruno Haible.
27002
27003 2010-03-21  Bruno Haible  <bruno@clisp.org>
27004
27005         Fix comments.
27006         * lib/forkpty.c (rpl_forkpty): Fix comment.
27007         * lib/openpty.c (rpl_openpty): Likewise.
27008         Reported by Eric Blake.
27009
27010 2010-03-22  Eric Blake  <eblake@redhat.com>
27011
27012         gethostname: fix build on mingw
27013         * lib/unistd.in.h (includes): Work around fact that mingw
27014         <winsock2.h> re-includes <unistd.h>, by avoiding any
27015         redeclarations if we are being included by <winsock2.h>.
27016         Reported by Matthias Bolte.
27017
27018 2010-03-21  Bruno Haible  <bruno@clisp.org>
27019
27020         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27021         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27022         modifications.
27023         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27024         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27025         provide the replacement.
27026         * modules/forkpty (Depends-on): Add openpty, login_tty.
27027         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27028         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27029         * doc/glibc-functions/forkpty.texi: More supported platforms.
27030         * config/srclist.txt: Add forkpty.c (commented).
27031
27032 2010-03-21  Bruno Haible  <bruno@clisp.org>
27033
27034         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27035         (Makefile.am): Verify that PTY_LIB is defined.
27036
27037         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27038
27039 2010-03-21  Bruno Haible  <bruno@clisp.org>
27040
27041         Tests for module 'login_tty'.
27042         * modules/login_tty-tests: New file.
27043         * tests/test-login_tty.c: New file.
27044
27045         New module 'login_tty'.
27046         * lib/login_tty.c: New file.
27047         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27048         * modules/login_tty: New file.
27049         * doc/glibc-functions/login_tty.texi: Mention the new module.
27050
27051 2010-03-21  Bruno Haible  <bruno@clisp.org>
27052
27053         login_tty: Documentation.
27054         * doc/glibc-functions/login_tty.texi: New file.
27055         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27056
27057 2010-03-21  Bruno Haible  <bruno@clisp.org>
27058
27059         pty: Consistent macro naming.
27060         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27061         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27062         * modules/pty (configure.ac): Update.
27063
27064 2010-03-21  Bruno Haible  <bruno@clisp.org>
27065
27066         Tests for openpty: Make stricter.
27067         * tests/test-openpty.c (main): Add test of canonical processing and
27068         erase.
27069         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27070
27071         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27072         * lib/openpty.c (openpty): New replacement function.
27073         * lib/pty.in.h: Include <termios.h>.
27074         (openpty): Update declaration. Add comments.
27075         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27076         is not declared, arrange to provide the replacement. Check for _getpty
27077         and posix_openpt.
27078         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27079         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27080         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27081         * modules/pty-tests (test_pty_c___LDADD): New variable.
27082         * doc/glibc-functions/openpty.texi: More supported platforms.
27083
27084 2010-03-21  Bruno Haible  <bruno@clisp.org>
27085
27086         setenv: Tweaks.
27087         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27088         the test program.
27089         * doc/posix-functions/setenv.texi: Update platforms list.
27090
27091 2010-03-21  Bruno Haible  <bruno@clisp.org>
27092
27093         New module 'unlockpt'.
27094         * lib/unlockpt.c: New file, from glibc with modifications.
27095         * m4/unlockpt.m4: New file.
27096         * modules/unlockpt: New file.
27097         * lib/stdlib.in.h (unlockpt): New declaration.
27098         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27099         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27100         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27101         HAVE_UNLOCKPT.
27102         * doc/posix-functions/unlockpt.texi: Mention the new module.
27103         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27104         * config/srclist.txt: Add unlockpt.c (commented).
27105
27106 2010-03-21  Jim Meyering  <meyering@redhat.com>
27107
27108         maint.mk: prohibit inclusion of "intprops.h" without use
27109         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27110
27111 2010-03-21  Bruno Haible  <bruno@clisp.org>
27112
27113         New module 'grantpt'.
27114         * lib/grantpt.c: New file, from glibc with modifications.
27115         * m4/grantpt.m4: New file.
27116         * modules/grantpt: New file.
27117         * lib/stdlib.in.h (grantpt): New declaration.
27118         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27119         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27120         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27121         HAVE_GRANTPT.
27122         * doc/posix-functions/grantpt.texi: Mention the new module.
27123         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27124         * config/srclist.txt: Add grantpt.c (commented).
27125
27126 2010-03-21  Bruno Haible  <bruno@clisp.org>
27127
27128         New module 'pt_chown'.
27129         * lib/pt_chown.c: New file, from glibc with modifications.
27130         * lib/pty-private.h: New file, from glibc with modifications.
27131         * modules/pt_chown: New file.
27132         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27133
27134 2010-03-21  Bruno Haible  <bruno@clisp.org>
27135
27136         Tests for module 'ptsname'.
27137         * modules/ptsname-tests: New file.
27138         * tests/test-ptsname.c: New file.
27139
27140         New module 'ptsname'.
27141         * lib/ptsname.c: New file, from glibc with modifications.
27142         * m4/ptsname.m4: New file.
27143         * modules/ptsname: New file.
27144         * lib/stdlib.in.h (ptsname): New declaration.
27145         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27146         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27147         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27148         HAVE_PTSNAME.
27149         * doc/posix-functions/ptsname.texi: Mention the new module.
27150         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27151         * config/srclist.txt: Add ptsname.c (commented).
27152
27153 2010-03-21  Bruno Haible  <bruno@clisp.org>
27154
27155         Tests for module 'ttyname_r'.
27156         * modules/ttyname_r-tests: New file.
27157         * tests/test-ttyname_r.c: New file.
27158
27159         New module 'ttyname_r'.
27160         * lib/ttyname_r.c: New file.
27161         * m4/ttyname_r.m4: New file.
27162         * modules/ttyname_r: New file.
27163         * lib/unistd.in.h (ttyname_r): New declaration.
27164         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27165         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27166         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27167         HAVE_TTYNAME_R.
27168         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27169         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27170
27171 2010-03-20  Bruno Haible  <bruno@clisp.org>
27172
27173         signal: Undefine macro definitions in C++ mode.
27174         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27175         sigfillset): Undefine macro definitions from the system header in C++
27176         mode.
27177         Reported by John W. Eaton <jwe@gnu.org>.
27178
27179 2010-03-20  Bruno Haible  <bruno@clisp.org>
27180
27181         Ensure no #include statements inside extern "C" { ... }.
27182         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27183         contain #include statements.
27184         * lib/time.in.h: Likewise.
27185
27186 2010-03-20  Bruno Haible  <bruno@clisp.org>
27187
27188         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27189         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27190         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27191         Reported by John W. Eaton <jwe@gnu.org>.
27192
27193 2010-03-20  Bruno Haible  <bruno@clisp.org>
27194
27195         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27196         Reported by Jim Meyering.
27197
27198 2010-03-20  Bruno Haible  <bruno@clisp.org>
27199
27200         pipe: Set errno upon failure.
27201         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27202         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27203         errno value in error message.
27204
27205 2010-03-20  Bruno Haible  <bruno@clisp.org>
27206             Jim Meyering  <meyering@redhat.com>
27207
27208         lchown: Avoid "unused variable" warning.
27209         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27210
27211 2010-03-20  Bruno Haible  <bruno@clisp.org>
27212
27213         Work around unlink() bug on MacOS X 10.5.6.
27214         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27215         attempting to unlink a parent directory.
27216         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27217         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27218         activate for the replacement function.
27219         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27220
27221 2010-03-20  Bruno Haible  <bruno@clisp.org>
27222
27223         Fix link errors on Solaris 8.
27224         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27225         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27226
27227 2010-03-19  Jim Meyering  <meyering@redhat.com>
27228
27229         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27230         The _LIBC implementation of build_range_exp correctly honors the
27231         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27232         However, the non-_LIBC implementation would ignore that syntax-bit
27233         flag and return REG_ERANGE unconditionally.
27234         This change makes it honor that flag.
27235         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27236         Make two pointer parameters "const".
27237         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27238         (parse_bracket_exp): Update caller.
27239
27240         regex.m4: correct the reversed range endpoint ([b-a]) test
27241         * m4/regex.m4: When requiring that [b-a] evoke failure,
27242         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27243         test pass once again for x86-based systems.
27244
27245 2010-03-19  Bruno Haible  <bruno@clisp.org>
27246
27247         scandir: Fix link error on Solaris 8.
27248         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27249         macros.
27250
27251 2010-03-19  Bruno Haible  <bruno@clisp.org>
27252
27253         getusershell: Fix documentation.
27254         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27255         module.
27256         * doc/glibc-functions/setusershell.texi: Likewise.
27257
27258         getusershell: Provide declaration, missing on Solaris 9.
27259         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27260         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27261         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27262         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27264         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27265         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27266         HAVE_GETUSERSHELL.
27267         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27268
27269 2010-03-19  Bruno Haible  <bruno@clisp.org>
27270
27271         wctype: Provide iswblank function.
27272         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27273         exists and is fine.
27274         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27275         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27276         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27277         * doc/posix-functions/iswblank.texi: Update.
27278
27279 2010-03-19  Bruno Haible  <bruno@clisp.org>
27280
27281         Tests of module 'pty' in C++ mode.
27282         * modules/pty-tests: New file.
27283         * tests/test-pty-c++.cc: New file.
27284         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27285
27286 2010-03-19  Eric Blake  <eblake@redhat.com>
27287
27288         logb: fix documentation
27289         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27290         1.5 declaration bug.
27291
27292         forkpty, openpty: prefer glibc's const-safe prototype
27293         * lib/forkpty.c (rpl_forkpty): New file.
27294         * lib/openpty.c (rpl_openpty): Likewise.
27295         * modules/forkpty (Files): Distribute it.
27296         * modules/openpty (Files): Likewise.
27297         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27298         check...
27299         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27300         replacement for for non-const BSD signature.
27301         * modules/pty (Makefile.am): Substitute witnesses.
27302         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27303         * tests/test-forkpty.c: Update signature check.
27304         * tests/test-openpty.c: Likewise.
27305         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27306         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27307
27308         forkpty, openpty: split functions into new modules
27309         * modules/pty (Makefile.am): Substitute new witnesses.
27310         (Libraries): Move library detection...
27311         * modules/forkpty: ...into new module.
27312         * modules/openpty: Another new module.
27313         * modules/pty-tests: Rename and split...
27314         * modules/forkpty-tests: ...to this...
27315         * modules/openpty-tests: ...and this.
27316         * tests/test-pty.c: Rename and split...
27317         * tests/test-forkpty.c: ...to this...
27318         * tests/test-openpty.c: ...and this.
27319         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27320         (gl_PTY): Split library searching...
27321         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27322         (gl_FORKPTY, gl_OPENPTY): New macros.
27323         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27324         * NEWS: Mention the split.
27325         * MODULES.html.sh (Misc): Document the modules.
27326         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27327         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27328
27329         pty: improve replacement header
27330         * lib/pty.in.h: New file.
27331         * modules/pty (Files): Ship it.
27332         (Makefile.am): Always build replacement.
27333         * m4/pty.m4: Rename...
27334         * m4/pty_h.m4: ...to this.
27335         (gl_PTY): Modernize setting of witness macros; update check of
27336         forkpty to take proper advantage of cache.
27337         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27338
27339         getopt: avoid compiler warning
27340         * lib/getopt.c (attribute_hidden): Remove unused macro.
27341
27342 2010-03-18  Bruno Haible  <bruno@clisp.org>
27343
27344         Fix link errors on Solaris 8.
27345         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27346         * modules/search-tests (test_search_c___LDADD): Likewise.
27347         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27348         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27349         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27350         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27351         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27352         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27353         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27354
27355 2010-03-18  Bruno Haible  <bruno@clisp.org>
27356
27357         Fix bug introduced on 2010-03-14.
27358         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27359         (gl_SPAWN_H): Require it.
27360         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27361         Reported by Simon Josefsson.
27362
27363 2010-03-18  Bruno Haible  <bruno@clisp.org>
27364
27365         Fix typo introduced on 2009-12-31.
27366         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27367         posix_spawn_file_actions_adddup2.
27368
27369 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27370         and Eric Blake  <eblake@redhat.com>
27371
27372         test-vc-list-files-git: make more robust
27373         * tests/test-vc-list-files-git.sh: Unset problematic environment
27374         variables.  Chain commands together.
27375
27376 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27377
27378         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27379         `AC_CHECK_DECL' invocation.
27380
27381 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27382
27383         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27384         appears before executable statements. Suggested by Petr Sumbera
27385         <Petr.Sumbera@Sun.COM>.
27386
27387 2010-03-14  Bruno Haible  <bruno@clisp.org>
27388
27389         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27390         portability problems. Instead use a simpler test.
27391         (main): Check that invalid arguments are rejected only on Linux.
27392
27393 2010-03-14  Bruno Haible  <bruno@clisp.org>
27394
27395         Fix bug introduced on 2009-12-31.
27396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27397         gl_PREREQ_SYS_H_WINSOCK2 always.
27398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27399         SYS_SOCKET_H variable.
27400         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27401         Update comments.
27402         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27403         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27404         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27405         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27406         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27407
27408 2010-03-14  Bruno Haible  <bruno@clisp.org>
27409
27410         Fix values returned by sinl, cosl.
27411         * lib/trigl.h: Add specification comments.
27412         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27413         that combines the values from the precomputed table with the values of
27414         the Chebyshev polynomials.
27415
27416 2010-03-14  Bruno Haible  <bruno@clisp.org>
27417
27418         Fix compilation error when modules 'posix_spawn[p]' are not used.
27419         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27420         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27421
27422 2010-03-14  Bruno Haible  <bruno@clisp.org>
27423
27424         Fix compilation error on mingw when module 'time_r' is not used.
27425         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27426         is 1.
27427         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27428         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27429         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27430         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27431
27432 2010-03-14  Bruno Haible  <bruno@clisp.org>
27433
27434         Fix compilation error with Sun C.
27435         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27436         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27437         instead of GCC specific ULONG_LONG_MAX.
27438         * lib/xstrtoll.c: Likewise.
27439         * lib/xstrtoull.c: Likewise.
27440
27441 2010-03-13  Bruno Haible  <bruno@clisp.org>
27442
27443         Allow the user to disable C++ code and tests.
27444         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27445         (gl_PROG_ANSI_CXX): Require it.
27446
27447 2010-03-13  Bruno Haible  <bruno@clisp.org>
27448
27449         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27450         cases.
27451
27452 2010-03-13  Bruno Haible  <bruno@clisp.org>
27453
27454         Test that gnulib does not break the standard C++ headers.
27455         * tests/test-locale-c++2.cc: New file.
27456         * modules/locale-tests (Files): Add it.
27457         (Makefile.am): Compile it for test-locale-c++.
27458         * tests/test-math-c++2.cc: New file.
27459         * modules/math-tests (Files): Add it.
27460         (Makefile.am): Compile it for test-math-c++.
27461         * tests/test-signal-c++2.cc: New file.
27462         * modules/signal-tests (Files): Add it.
27463         (Makefile.am): Compile it for test-signal-c++.
27464         * tests/test-stdio-c++2.cc: New file.
27465         * modules/stdio-tests (Files): Add it.
27466         (Makefile.am): Compile it for test-stdio-c++.
27467         * tests/test-stdlib-c++2.cc: New file.
27468         * modules/stdlib-tests (Files): Add it.
27469         (Makefile.am): Compile it for test-stdlib-c++.
27470         * tests/test-string-c++2.cc: New file.
27471         * modules/string-tests (Files): Add it.
27472         (Makefile.am): Compile it for test-string-c++.
27473         * tests/test-time-c++2.cc: New file.
27474         * modules/time-tests (Files): Add it.
27475         (Makefile.am): Compile it for test-time-c++.
27476         Reported by John W. Eaton <jwe@gnu.org>.
27477
27478 2010-03-13  Bruno Haible  <bruno@clisp.org>
27479
27480         * gnulib-tool (func_usage): Clarify which options are available for
27481         --create-testdir and --create-megatestdir.
27482
27483 2010-03-13  Bruno Haible  <bruno@clisp.org>
27484
27485         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27486         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27487         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27488         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27489         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27490         when appropriate.
27491         Reported by Jim Meyering.
27492
27493 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27494
27495         * gnulib-tool (func_import): Explain origin of code.
27496
27497 2010-03-12  Bruno Haible  <bruno@clisp.org>
27498
27499         Fix problem with automake's definition of CXXLINK.
27500         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27501         Reported by Simon Josefsson and Ludovic Courtès.
27502
27503 2010-03-12  Bruno Haible  <bruno@clisp.org>
27504
27505         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27506         stable releases.
27507
27508 2010-03-11  Bruno Haible  <bruno@clisp.org>
27509
27510         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27511         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27512         whether the system provides one variant or multiple variants of the
27513         function.
27514         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27515         C++ compilers.
27516         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27517         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27518         Reported by Jim Meyering.
27519
27520 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27521
27522         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27523
27524 2010-03-08  Bruno Haible  <bruno@clisp.org>
27525
27526         gnulib-tool: Add support for --libtool in --create-testdir.
27527         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27528         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27529
27530 2010-03-08  Eric Blake  <eblake@redhat.com>
27531
27532         gnulib-tool.texi: mention possibility of git submodule
27533         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27534         submodules.
27535         * doc/.gitignore: Ignore another generated file.
27536
27537 2010-03-08  Karl Berry  <karl@gnu.org>
27538
27539         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27540         of committing gnulib files while skipping others.
27541
27542 2010-03-07  Bruno Haible  <bruno@clisp.org>
27543
27544         Tests of module 'wctype' in C++ mode.
27545         * tests/test-wctype-c++.cc: New file.
27546         * modules/wctype-tests (Files): Add it and tests/signature.h.
27547         (Depends-on): Add ansi-c++-opt.
27548         (Makefile.am): Arrange to compile and run test-wctype-c++.
27549
27550         Tests of module 'wchar' in C++ mode.
27551         * tests/test-wchar-c++.cc: New file.
27552         * modules/wchar-tests (Files): Add it and tests/signature.h.
27553         (Depends-on): Add ansi-c++-opt.
27554         (Makefile.am): Arrange to compile and run test-wchar-c++.
27555         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27556         gl_MODULE_INDICATOR.
27557
27558         Tests of module 'unistd' in C++ mode.
27559         * tests/test-unistd-c++.cc: New file.
27560         * modules/unistd-tests (Files): Add it and tests/signature.h.
27561         (Depends-on): Add ansi-c++-opt.
27562         (Makefile.am): Arrange to compile and run test-unistd-c++.
27563         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27564         gl_MODULE_INDICATOR.
27565
27566         Tests of module 'time' in C++ mode.
27567         * tests/test-time-c++.cc: New file.
27568         * modules/time-tests (Files): Add it and tests/signature.h.
27569         (Depends-on): Add ansi-c++-opt.
27570         (Makefile.am): Arrange to compile and run test-time-c++.
27571         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27572
27573         Tests of module 'sys_time' in C++ mode.
27574         * tests/test-sys_time-c++.cc: New file.
27575         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27576         (Depends-on): Add ansi-c++-opt.
27577         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27578         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27579         gl_MODULE_INDICATOR.
27580
27581         Tests of module 'sys_stat' in C++ mode.
27582         * tests/test-sys_stat-c++.cc: New file.
27583         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27584         (Depends-on): Add ansi-c++-opt.
27585         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27586         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27587         gl_MODULE_INDICATOR.
27588
27589         Tests of module 'sys_socket' in C++ mode.
27590         * tests/test-sys_socket-c++.cc: New file.
27591         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27592         (Depends-on): Add ansi-c++-opt.
27593         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27594         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27595         gl_MODULE_INDICATOR.
27596
27597         Tests of module 'sys_select' in C++ mode.
27598         * tests/test-sys_select-c++.cc: New file.
27599         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27600         (Depends-on): Add ansi-c++-opt.
27601         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27602         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27603         gl_MODULE_INDICATOR.
27604
27605         Tests of module 'sys_ioctl' in C++ mode.
27606         * tests/test-sys_ioctl-c++.cc: New file.
27607         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27608         (Depends-on): Add ansi-c++-opt.
27609         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27610         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27611         gl_MODULE_INDICATOR.
27612
27613         Tests of module 'string' in C++ mode.
27614         * tests/test-string-c++.cc: New file.
27615         * modules/string-tests (Files): Add it and tests/signature.h.
27616         (Depends-on): Add ansi-c++-opt.
27617         (Makefile.am): Arrange to compile and run test-string-c++.
27618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27619         gl_MODULE_INDICATOR.
27620
27621         Tests of module 'stdlib' in C++ mode.
27622         * tests/test-stdlib-c++.cc: New file.
27623         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27624         (Depends-on): Add ansi-c++-opt.
27625         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27626         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27627         gl_MODULE_INDICATOR.
27628
27629         Tests of module 'stdio' in C++ mode.
27630         * tests/test-stdio-c++.cc: New file.
27631         * modules/stdio-tests (Files): Add it and tests/signature.h.
27632         (Depends-on): Add ansi-c++-opt.
27633         (Makefile.am): Arrange to compile and run test-stdio-c++.
27634         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27635         gl_MODULE_INDICATOR.
27636
27637         Tests of module 'spawn' in C++ mode.
27638         * tests/test-spawn-c++.cc: New file.
27639         * modules/spawn-tests (Files): Add it and tests/signature.h.
27640         (Depends-on): Add ansi-c++-opt.
27641         (Makefile.am): Arrange to compile and run test-spawn-c++.
27642         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27643         gl_MODULE_INDICATOR.
27644
27645         Tests of module 'signal' in C++ mode.
27646         * tests/test-signal-c++.cc: New file.
27647         * modules/signal-tests (Files): Add it and tests/signature.h.
27648         (Depends-on): Add ansi-c++-opt.
27649         (Makefile.am): Arrange to compile and run test-signal-c++.
27650         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27651         gl_MODULE_INDICATOR.
27652
27653         Tests of module 'search' in C++ mode.
27654         * tests/test-search-c++.cc: New file.
27655         * modules/search-tests (Files): Add it and tests/signature.h.
27656         (Depends-on): Add ansi-c++-opt.
27657         (Makefile.am): Arrange to compile and run test-search-c++.
27658         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27659         gl_MODULE_INDICATOR.
27660
27661         Tests of module 'math' in C++ mode.
27662         * tests/test-math-c++.cc: New file.
27663         * modules/math-tests (Files): Add it and tests/signature.h.
27664         (Depends-on): Add ansi-c++-opt.
27665         (Makefile.am): Arrange to compile and run test-math-c++.
27666         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27667
27668         Tests of module 'locale' in C++ mode.
27669         * tests/test-locale-c++.cc: New file.
27670         * modules/locale-tests (Files): Add it and tests/signature.h.
27671         (Depends-on): Add ansi-c++-opt.
27672         (Makefile.am): Arrange to compile and run test-locale-c++.
27673         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27674         gl_MODULE_INDICATOR.
27675
27676         Tests of module 'langinfo' in C++ mode.
27677         * tests/test-langinfo-c++.cc: New file.
27678         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27679         (Depends-on): Add ansi-c++-opt.
27680         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27681         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27682         gl_MODULE_INDICATOR.
27683
27684         Tests of module 'iconv-h' in C++ mode.
27685         * tests/test-iconv-h-c++.cc: New file.
27686         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27687         (Depends-on): Add ansi-c++-opt.
27688         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27689
27690         Tests of module 'glob' in C++ mode.
27691         * tests/test-glob-c++.cc: New file.
27692         * modules/glob-tests (Files): Add it.
27693         (Depends-on): Add ansi-c++-opt.
27694         (Makefile.am): Arrange to compile and run test-glob-c++.
27695
27696         Tests of module 'fcntl-h' in C++ mode.
27697         * tests/test-fcntl-h-c++.cc: New file.
27698         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27699         (Depends-on): Add ansi-c++-opt.
27700         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27701         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27702         gl_MODULE_INDICATOR.
27703
27704         Tests of module 'dirent' in C++ mode.
27705         * tests/test-dirent-c++.cc: New file.
27706         * modules/dirent-tests (Files): Add it and tests/signature.h.
27707         (Depends-on): Add ansi-c++-opt.
27708         (Makefile.am): Arrange to compile and run test-dirent-c++.
27709         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27710         gl_MODULE_INDICATOR.
27711
27712         New module 'ansi-c++-opt'.
27713         * modules/ansi-c++-opt: New file.
27714         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27715
27716         Document C++ namespace mode.
27717         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27718
27719         wctype: Avoid #define replacements in C++ mode.
27720         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27721         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27722         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27723         In C++, define a namespaced alias symbol.
27724         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27725         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27726         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27727         rule.
27728
27729         wchar: Avoid #define replacements in C++ mode.
27730         * lib/wchar.in.h: Include c++defs.h.
27731         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27732         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27733         symbol.
27734         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27735         * modules/wchar (Depends-on): Add c++defs.
27736         (Makefile.am): Update wchar.h rule.
27737
27738         unistd: Avoid #define replacements in C++ mode.
27739         * lib/unistd.in.h: Include c++defs.h.
27740         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27741         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27742         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27743         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27744         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27745         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27746         symbol.
27747         (environ): Update.
27748         * modules/unistd (Depends-on): Add c++defs.
27749         (Makefile.am): Update unistd.h rule.
27750
27751         time: Avoid #define replacements in C++ mode.
27752         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27753         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27754         define a namespaced alias symbol.
27755         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27756         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27757         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27758         * modules/time (Depends-on): Add c++defs, warn-on-use.
27759         (Makefile.am): Update time.h rule.
27760         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27761         * modules/nanosleep (configure.ac): Likewise.
27762         * modules/strptime (configure.ac): Likewise.
27763         * modules/timegm (configure.ac): Likewise.
27764
27765         sys_time: Avoid #define replacements in C++ mode.
27766         * lib/sys_time.in.h: Include c++defs.h.
27767         (gettimeofday): In C++, define a namespaced alias symbol.
27768         * modules/sys_time (Depends-on): Add c++defs.
27769         (Makefile.am): Update sys/time.h rule.
27770
27771         sys_stat: Avoid #define replacements in C++ mode.
27772         * lib/sys_stat.in.h: Include c++defs.h.
27773         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27774         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27775         namespaced alias symbol.
27776         In C++, define a namespaced alias symbol.
27777         * modules/sys_stat (Depends-on): Add c++defs.
27778         (Makefile.am): Update sys/stat.h rule.
27779
27780         sys_socket: Avoid #define replacements in C++ mode.
27781         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27782         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27783         definitions also when the system has a <sys/socket.h>.
27784         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27785         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27786         In C++, define a namespaced alias symbol.
27787         * modules/sys_socket (Depends-on): Add c++defs.
27788         (Makefile.am): Update sys/socket.h rule.
27789
27790         sys_select: Avoid #define replacements in C++ mode.
27791         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27792         definitions also when the system has a <sys/select.h>.
27793         (select): In C++, define a namespaced alias symbol.
27794         * modules/sys_select (Depends-on): Add c++defs.
27795         (Makefile.am): Update sys/select.h rule.
27796
27797         sys_ioctl: Avoid #define replacements in C++ mode.
27798         * lib/sys_ioctl.in.h: Include c++defs.h.
27799         (ioctl): In C++, define a namespaced alias symbol.
27800         * modules/sys_ioctl (Depends-on): Add c++defs.
27801         (Makefile.am): Update sys/ioctl.h rule.
27802
27803         string: Avoid #define replacements in C++ mode.
27804         * lib/string.in.h: Include c++defs.h.
27805         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27806         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27807         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27808         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27809         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27810         * modules/string (Depends-on): Add c++defs.
27811         (Makefile.am): Update string.h rule.
27812
27813         stdlib: Avoid #define replacements in C++ mode.
27814         * lib/stdlib.in.h: Include c++defs.h.
27815         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27816         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27817         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27818         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27819         symbol.
27820         * modules/stdlib (Depends-on): Add c++defs.
27821         (Makefile.am): Update stdlib.h rule.
27822
27823         stdio: Avoid #define replacements in C++ mode.
27824         * lib/stdio.in.h: Include c++defs.h.
27825         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27826         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27827         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27828         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27829         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27830         namespaced alias symbol.
27831         * modules/stdio (Depends-on): Add c++defs.
27832         (Makefile.am): Update stdio.h rule.
27833
27834         spawn: Avoid #define replacements in C++ mode.
27835         * lib/spawn.in.h: Include c++defs.h.
27836         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27837         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27838         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27839         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27840         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27841         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27842         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27843         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27844         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27845         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27846         In C++, define a namespaced alias symbol.
27847         * modules/spawn (Depends-on): Add c++defs.
27848         (Makefile.am): Update spawn.h rule.
27849
27850         signal: Avoid #define replacements in C++ mode.
27851         * lib/signal.in.h: Include c++defs.h.
27852         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27853         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27854         namespaced alias symbol.
27855         * modules/signal (Depends-on): Add c++defs.
27856         (Makefile.am): Update signal.h rule.
27857
27858         search: Avoid #define replacements in C++ mode.
27859         * lib/search.in.h: Include c++defs.h.
27860         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27861         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27862         symbol.
27863         * modules/search (Depends-on): Add c++defs.
27864         (Makefile.am): Update search.h rule.
27865
27866         math: Avoid #define replacements in C++ mode.
27867         * lib/math.in.h: Include c++defs.h.
27868         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27869         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27870         trunc, truncl): In C++, define a namespaced alias symbol.
27871         * modules/math (Depends-on): Add c++defs.
27872         (Makefile.am): Update math.h rule.
27873
27874         locale: Avoid #define replacements in C++ mode.
27875         * lib/locale.in.h: Include c++defs.h.
27876         (duplocale): In C++, define a namespaced alias symbol.
27877         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27878         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27879         * modules/locale (Depends-on): Add c++defs.
27880         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27881
27882         langinfo: Avoid #define replacements in C++ mode.
27883         * lib/langinfo.in.h: Include c++defs.h.
27884         (nl_langinfo): In C++, define a namespaced alias symbol.
27885         * modules/langinfo (Depends-on): Add c++defs.
27886         (Makefile.am): Update langinfo.h rule.
27887
27888         iconv-h: Avoid #define replacements in C++ mode.
27889         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27890         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27891         symbol.
27892         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27893         whenever iconv is present.
27894         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27895         (Makefile.am): Update iconv.h rule.
27896
27897         glob: Avoid #define replacements in C++ mode.
27898         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27899         (_gl_glob_errfunc_fn): New type.
27900         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27901         symbol.
27902         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27903         (Makefile.am): Update glob.h rule.
27904
27905         fcntl-h: Avoid #define replacements in C++ mode.
27906         * lib/fcntl.in.h: Include c++defs.h.
27907         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27908         * modules/fcntl-h (Depends-on): Add c++defs.
27909         (Makefile.am): Update fcntl.h rule.
27910
27911         dirent: Avoid #define replacements in C++ mode.
27912         * lib/dirent.in.h: Include c++defs.h.
27913         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27914         namespaced alias symbol.
27915         (dirfd): Update declaration.
27916         * modules/dirent (Depends-on): Add c++defs.
27917         (Makefile.am): Update dirent.h rule.
27918
27919         ctype: Make it usable in C++ code.
27920         * lib/ctype.in.h: Include c++defs.h.
27921         (isblank): Declare as extern "C".
27922         * modules/ctype (Depends-on): Add c++defs.
27923         (Makefile.am): Update ctype.h rule.
27924
27925         New module 'c++defs'.
27926         * modules/c++defs: New file.
27927         * build-aux/c++defs.h: New file.
27928         Reported by John W. Eaton <jwe@gnu.org>.
27929
27930 2010-03-07  Bruno Haible  <bruno@clisp.org>
27931
27932         logb: Provide missing declaration for Cygwin.
27933         * lib/math.in.h (logb): New declaration.
27934         * m4/logb.m4: New file.
27935         * modules/logb (Files): Add m4/logb.m4.
27936         (Depends-on): Add math.
27937         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27938         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27940         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27941         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27942
27943 2010-03-07  Bruno Haible  <bruno@clisp.org>
27944
27945         Fix test-cond link error.
27946         * tests/test-cond.c: Include <stdio.h>.
27947
27948 2010-03-07  Bruno Haible  <bruno@clisp.org>
27949
27950         Fix test-dirent-safer link error.
27951         * modules/dirent-safer-tests (Makefile.am): Define
27952         test_dirent_safer_LDADD.
27953
27954 2010-03-07  Bruno Haible  <bruno@clisp.org>
27955
27956         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27957         among default module list.
27958
27959 2010-03-07  Bruno Haible  <bruno@clisp.org>
27960
27961         Fix link error on platforms with GNU libiconv.
27962         * modules/unistr/u8-strcoll-tests (Makefile): Define
27963         test_u8_strcoll_LDADD.
27964         * modules/unistr/u16-strcoll-tests (Makefile): Define
27965         test_u16_strcoll_LDADD.
27966         * modules/unistr/u32-strcoll-tests (Makefile): Define
27967         test_u32_strcoll_LDADD.
27968
27969 2010-03-07  Bruno Haible  <bruno@clisp.org>
27970
27971         Use POSIX declarations for socket functions.
27972         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27973         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27974         rpl_sendto): Change declaration to match POSIX.
27975         * lib/connect.c (rpl_connect): Likewise.
27976         * lib/accept.c (rpl_accept): Likewise.
27977         * lib/bind.c (rpl_bind): Likewise.
27978         * lib/getpeername.c (rpl_getpeername): Likewise.
27979         * lib/getsockname.c (rpl_getsockname): Likewise.
27980         * lib/recv.c (rpl_recv): Likewise.
27981         * lib/send.c (rpl_send): Likewise.
27982         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27983         * lib/sendto.c (rpl_sendto): Likewise.
27984
27985 2010-03-06  Bruno Haible  <bruno@clisp.org>
27986
27987         Clarify access, euidaccess, faccessat.
27988         * doc/posix-functions/faccessat.texi: Mention security problem under
27989         "Other problems", not "Portability problems".
27990         * doc/posix-functions/access.texi: Likewise. Mention a related security
27991         problem.
27992         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27993         * lib/euidaccess.c: Add comments about platforms.
27994         * lib/unistd.in.h (access, euidaccess): Add warnings.
27995
27996 2010-03-07  Bruno Haible  <bruno@clisp.org>
27997
27998         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27999         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28000         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28001         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28002         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28003         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28004         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28005         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28006         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28008         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28009         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28010         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28011         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28012         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28013         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28014         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28015         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28016         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28017         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28018         Likewise.
28019         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28020         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28021         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28022         Likewise.
28023         * tests/test-spawn.c (main): Make it work when
28024         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28025
28026 2010-03-07  Bruno Haible  <bruno@clisp.org>
28027
28028         Fix incorrect Makefile.am generation in German locale.
28029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28030         Execute sed command with character range in C locale.
28031
28032 2010-03-06  Bruno Haible  <bruno@clisp.org>
28033
28034         Tests for module 'iconv-h'.
28035         * modules/iconv-h-tests: New file.
28036         * tests/test-iconv-h.c: New file.
28037
28038         New module 'iconv-h'.
28039         * modules/iconv-h: New file.
28040         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28041         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28042         (configure.ac): Remove gl_ICONV_H.
28043         (Makefile.am): Remove rule for iconv.h.
28044
28045 2010-03-06  Bruno Haible  <bruno@clisp.org>
28046
28047         More consistent naming of *.m4 files.
28048         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28049         * modules/wctype (Files): Update.
28050
28051         More consistent naming of *.m4 files.
28052         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28053         * modules/wchar (Files): Update.
28054
28055 2010-03-06  Jim Meyering  <meyering@redhat.com>
28056
28057         euidaccess: relax license to LGPLv2+
28058         * modules/euidaccess (License): Relax to LGPLv2+.
28059
28060 2010-03-06  Bruno Haible  <bruno@clisp.org>
28061
28062         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28063         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28064         (Makefile.am): Augment lib_SOURCES instead.
28065
28066 2010-03-04  Jim Meyering  <meyering@redhat.com>
28067
28068         utime: remove obsolete module
28069         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28070         unnecessary for years, and has been marked as obsolete for 10 months.
28071         * modules/utime: Remove file.
28072         * lib/utime.c: Remove file.
28073         * m4/utime.m4: Remove file.
28074         * m4/utimes-null.m4: Remove file.
28075         * doc/posix-functions/utime.texi (utime): Remove reference to
28076         the module.  Move the sole "fixed by gnulib" item into the
28077         "problems not fixed by Gnulib" list.
28078         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28079
28080 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28081
28082         * modules/exit (License): Relax license to LGPLv2+.
28083         (Status): Mark as obsolete.
28084         * NEWS: Mention deprecated 'exit' module.
28085         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28086         of now obsolete 'exit'.
28087
28088 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28089
28090         fts-lgpl: remove unused module
28091         * modules/fts-lgpl: Remove.
28092         * MODULES.html.sh (func_all_modules): Adjust.
28093         * check-module (find_included_lib_files): Adjust.
28094         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28095
28096 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28097
28098         copy-acl: enhance Solaris ACL error handling
28099         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28100         * lib/set-mode-acl.c (qset_acl): Likewise.
28101
28102 2010-03-02  Bruno Haible  <bruno@clisp.org>
28103
28104         spawn: Don't override the system defined values on FreeBSD 8.
28105         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28106         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28107         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28108         if HAVE_POSIX_SPAWN is 1.
28109         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28110
28111 2010-03-01  Bruno Haible  <bruno@clisp.org>
28112
28113         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28114         regarding Automake.
28115
28116 2010-02-25  Bruno Haible  <bruno@clisp.org>
28117
28118         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28119         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28120         setting, not afterwards.
28121         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28122
28123 2010-02-24  Eric Blake  <eblake@redhat.com>
28124
28125         bootstrap, git-version-gen: use timestamp
28126         * build-aux/git-version-gen (scriptversion): Force UTC.
28127         * build-aux/bootstrap (scriptversion): New variable.
28128
28129         bootstrap: allow older git
28130         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28131         older than 1.6.4.  Requested by the libvirt project.
28132
28133 2010-02-23  Eric Blake  <eblake@redhat.com>
28134
28135         warn-on-use: work with old autoconf
28136         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28137         AS_VAR semantics of autoconf 2.60.
28138         Reported by Bruno Haible.
28139
28140         bootstrap: improve some comments
28141         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28142         clarification comments.
28143
28144         gettimeofday: provide correct function
28145         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28146         when replacement is declared, otherwise provide gettimeofday.
28147         Reported by Michael Goffioul.
28148
28149 2010-02-23  Jim Meyering  <meyering@redhat.com>
28150
28151         lib-ignore: relax license to "unlimited", not LGPLv2+
28152         * modules/lib-ignore (License): Relax to "unlimited".
28153
28154 2010-02-23  Jim Meyering  <meyering@redhat.com>
28155
28156         lib-ignore: relax license to LGPLv2+
28157         * modules/lib-ignore (License): Relax to LGPLv2+.
28158
28159 2010-02-22  Eric Blake  <eblake@redhat.com>
28160
28161         lseek: avoid bash 3.2 broken pipe bug
28162         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28163         warning from bash 3.2.
28164         Reported by Ben Pfaff, with analysis from Bruno Haible.
28165
28166         bootstrap: support non-FSF copyright holder
28167         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28168         bootstrap.conf override of COPYRIGHT_HOLDER.
28169         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28170
28171         bootstrap: interoperate with gettext 0.14.1
28172         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28173
28174         bootstrap: allow for alternate submodule location
28175         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28176         hardcoding submodule location.
28177         (gnulib_mk): Allow direct use of Makefile.am.
28178
28179         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28180         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28181         rather than reconfiguring where the submodule points.
28182
28183         gettimeofday: restore support for platforms that lack function
28184         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28185         replacement if function is missing.
28186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28187         * modules/sys_time (Makefile.am): Substitute it.
28188         * lib/sys_time.in.h (gettimeofday): Check it.
28189         Reported by Michael Goffioul.
28190
28191 2010-02-21  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/stdio.in.h (obstack_printf): Fix typo.
28194
28195 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28196
28197         vc-list-files: use bzr ls's -R option
28198         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28199         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28200
28201 2010-02-21  Jim Meyering  <meyering@redhat.com>
28202
28203         init.sh: fix EXEEXT shims to work also for names like test-prog
28204         * tests/init.sh: Re-exec a better shell, when needed.
28205         If the current shell lacks support for posix $(...), an init.sh-using
28206         test will now try to find a shell that supports that.  If EXEEXT is
28207         nonempty, we also require support for hyphen-in-alias-name and shell
28208         substitutions like ${var#glob}.  Failure to find such a shell results
28209         in a skipped test.
28210
28211 2010-02-21  Bruno Haible  <bruno@clisp.org>
28212
28213         Really work around around "broken pipe" error message from bash 3.2.
28214         * gnulib-tool (func_reset_sigpipe): Remove function.
28215         (echo): In bash 3.2, define to a function that uses printf.
28216         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28217
28218 2010-02-20  Bruno Haible  <bruno@clisp.org>
28219
28220         Restore support for automake 1.9.6 with autoconf 2.61.
28221         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28222         Reported by James Youngman <jay@gnu.org>.
28223
28224 2010-02-20  Bruno Haible  <bruno@clisp.org>
28225
28226         Improve *printf warning condition.
28227         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28228         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28229         and the function is overridden due to SIGPIPE emulation.
28230
28231 2010-02-20  Bruno Haible  <bruno@clisp.org>
28232
28233         * lib/stdio.in.h: Tweak comments.
28234
28235 2010-02-19  Bruno Haible  <bruno@clisp.org>
28236
28237         Make it easier to find modules. New gnulib-tool option '--find'.
28238         * gnulib-tool: New option --find.
28239         (func_usage): Document it.
28240         (func_sanitize_modulelist): New function, extracted from
28241         func_all_modules.
28242         (func_all_modules): Invoke it.
28243         * doc/gnulib-tool.texi (Which modules?): New node.
28244
28245 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28246
28247         * lib/sys_select.in.h: Provide select replacement even if
28248         sys/select.h exists on a system, for Interix.
28249
28250 2010-02-18  Jim Meyering  <meyering@redhat.com>
28251
28252         init.sh: don't use $(...) just yet
28253         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28254         to accommodate e.g., Solaris' /bin/sh.
28255
28256 2010-02-17  Bruno Haible  <bruno@clisp.org>
28257
28258         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28259         Reported by Ludovic Courtès <ludo@gnu.org>.
28260
28261 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28262
28263         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28264         linking with -lintl.
28265
28266 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28267
28268         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28269         if not provided by the system's netdb.h.  Reported by
28270         ludo@gnu.org (Ludovic Courtès).
28271
28272 2010-02-15  Jim Meyering  <meyering@redhat.com>
28273
28274         init.sh: improve portability and efficiency
28275         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28276         "dummy" in a for loop.
28277         Use '!', not '^' to select the complement of a character set used
28278         in a "case" statement.
28279         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28280         Suggestions from Eric Blake.
28281
28282         init.sh: automatically accommodate programs with the .exe suffix
28283         Automatically arrange for an invocation of "prog" to execute the
28284         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28285         may use the simpler "prog", yet still work when built on a system
28286         that requires specifying the added suffix.
28287         Do this by constructing a function named "prog" that invokes
28288         "prog.exe" for each .exe file in selected directories.
28289         * tests/init.sh (find_exe_basenames_): New function.
28290         (create_exe_shim_functions_): New function.
28291         (path_prepend_): Use it.
28292
28293         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28294         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28295         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28296
28297 2010-02-14  Jim Meyering  <meyering@redhat.com>
28298
28299         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28300         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28301         (sc_prohibit_hash_pjw_without_use): New rule.
28302
28303         maint.mk: allow the default upload destination dir to be overridden
28304         * top/maint.mk (upload_dest_dir_): Define with a default that
28305         preserves the status quo.
28306         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28307         Reported by Peter Simons.
28308
28309         maint.mk: prohibit inclusion of "hash.h" without_use
28310         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28311
28312 2010-02-10  Jim Meyering  <meyering@redhat.com>
28313
28314         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28315         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28316
28317 2010-02-09  Eric Blake  <ebb9@byu.net>
28318         and Bruno Haible  <bruno@clisp.org>
28319
28320         obstack-printf-posix: ensure declaration
28321         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28322         extracted from gl_FUNC_OBSTACK_PRINTF.
28323         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28324         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28325         Likewise.
28326         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28327         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28328         0.
28329
28330 2010-02-08  Bruno Haible  <bruno@clisp.org>
28331
28332         gnulib-tool: Fix typo in 2010-02-07 commit.
28333         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28334         Reported by Eric Blake.
28335
28336 2010-02-07  Bruno Haible  <bruno@clisp.org>
28337
28338         gnulib-tool: Fix up caching patches.
28339         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28340         option --no-cache. Use associative arrays when supported by the shell.
28341         (sed_comments): New variable.
28342         (modcache): Renamed from do_cache.
28343         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28344         abbreviate unnecessarily.
28345         (have_associative): New variable.
28346         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28347         way also for ksh and zsh.
28348         (func_init_sed_convert_to_cache_statements): New function, extracted
28349         from func_cache_lookup_module. Add support for associative arrays.
28350         Don't set the c_MODULE_cached variable here. Ignore all lines before
28351         the first field header. Remove only the final newline, not all trailing
28352         newlines. Support empty fields correctly. Limit the use of 'eval' to
28353         assignments.
28354         (func_get_description, func_get_status, func_get_notice,
28355         func_get_applicability, func_get_filelist, func_get_dependencies,
28356         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28357         func_get_automake_snippet, func_get_include_directive,
28358         func_get_link_directive, func_get_license, func_get_maintainer):
28359         Update documentation. List the unoptimized code first. Add support for
28360         associative arrays. Limit the use of 'eval' to assignments.
28361         (func_get_applicability): Undo stylistic pessimisations.
28362         (func_get_automake_snippet, func_get_include_directive): Reduce code
28363         duplication.
28364         (func_modules_transitive_closure, func_modules_add_dummy,
28365         func_modules_notice, func_modules_to_filelist, func_add_file,
28366         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28367         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28368         func_create_testdir, func_create_megatestdir): Update documentation.
28369
28370 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28371
28372         * gnulib-tool (func_cache_lookup_module): Store the module name
28373         belonging to the cache variable; error out if two different
28374         module names map to the same cache variable name.
28375
28376 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28377
28378         gnulib-tool: Make caching optional.
28379         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28380         Update matching short versions of --no-changelog.
28381         (func_usage): Update.
28382         (sed_extract_cache_prog): Renamed from ...
28383         (sed_extract_prog): ... this; revert to old extraction script.
28384         (func_get_description, func_get_status)
28385         (func_get_notice, func_get_applicability, func_get_filelist)
28386         (func_get_dependencies, func_get_autoconf_early_snippet)
28387         (func_get_autoconf_snippet, func_get_automake_snippet)
28388         (func_get_include_directive, func_get_link_directive)
28389         (func_get_license, func_get_maintainer): If $do_cache is false,
28390         use old, non-caching extraction scripts.
28391         Suggestion by Bruno Haible.
28392
28393 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28394
28395         gnulib-tool: cache module metainformation.
28396         * gnulib-tool (sed_extract_prog): Match newline before each
28397         header, and rewrite header to a shell variable suffix.
28398         (func_cache_var, func_cache_lookup_module): New functions,
28399         to turn a module name into a cache variable prefix, and to
28400         look up and cache module metainformation.
28401         (func_get_description, func_get_status)
28402         (func_get_notice, func_get_applicability, func_get_filelist)
28403         (func_get_dependencies, func_get_autoconf_early_snippet)
28404         (func_get_autoconf_snippet, func_get_automake_snippet)
28405         (func_get_include_directive, func_get_link_directive)
28406         (func_get_license, func_get_maintainer): Use
28407         func_cache_lookup_module.
28408
28409 2010-02-07  Bruno Haible  <bruno@clisp.org>
28410
28411         fnctl: Fix missing dependency.
28412         * modules/fcntl (Depends-on): Add getdtablesize.
28413         Reported by John W. Eaton <jwe@gnu.org>.
28414
28415 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28416
28417         Argp: fix recognition of short alias options.
28418
28419         * lib/argp-parse.c (convert_options): Fix improper use of
28420         `|' between character values.
28421         * tests/test-argp.c (group1_option): New alias option
28422         --read (-r).
28423         (group1_parser): Special handling for 'r'.
28424         (test15): New test case.
28425         (test_fun): Add test15.
28426         * tests/test-argp-2.sh: Update expected --help and --usage
28427         outputs.
28428
28429 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28430
28431         * tests/test-argp.c: Fix indentation.
28432
28433 2010-02-04  Eric Blake  <ebb9@byu.net>
28434
28435         gettimeofday: expose type of second argument
28436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28437         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28438         * tests/test-gettimeofday.c: Use it to silence warning.
28439         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28440         the issue.
28441
28442 2010-02-03  Jim Meyering  <meyering@redhat.com>
28443
28444         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28445         * lib/regcomp.c (TYPE_SIGNED): Define.
28446         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28447
28448         regcomp.c: avoid a new -Wshadow warning
28449         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28450
28451 2010-02-01  Jim Meyering  <meyering@redhat.com>
28452
28453         removing useless parentheses in cpp #define directives
28454         For motivation, see commit c0221df4, "define STREQ(a,b)
28455         consistently, removing useless parentheses"
28456         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28457         * lib/mountlist.c (MNT_IGNORE): Likewise.
28458         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28459
28460 2010-02-01  Eric Blake  <ebb9@byu.net>
28461
28462         sys_time: use link-warning
28463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28464         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28465         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28466         * modules/sys_time (Depends-on): Add warn-on-use.
28467         (Makefile.am): Always build replacement.
28468         (configure.ac): Update substitutions.
28469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28470         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28471         bother with SYS_TIME_H.
28472         * modules/gettimeofday (configure.ac): Declare indicator.
28473         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28474         in use.
28475
28476         closein-tests: silence compiler warning
28477         * tests/test-closein.c (main): Ignore fread result.
28478         * modules/closein-tests (Depends-on): Add ignore-value.
28479
28480         tests: silence warning about system return
28481         * tests/test-areadlink-with-size.c (main): Ignore system result.
28482         * tests/test-areadlink.c (main): Likewise.
28483         * tests/test-areadlinkat-with-size.c (main): Likewise.
28484         * tests/test-areadlinkat.c (main): Likewise.
28485         * tests/test-canonicalize-lgpl.c (main): Likewise.
28486         * tests/test-canonicalize.c (main): Likewise.
28487         * tests/test-chown.c (main): Likewise.
28488         * tests/test-fchownat.c (main): Likewise.
28489         * tests/test-fdutimensat.c (main): Likewise.
28490         * tests/test-fstatat.c (main): Likewise.
28491         * tests/test-futimens.c (main): Likewise.
28492         * tests/test-lchown.c (main): Likewise.
28493         * tests/test-link.c (main): Likewise.
28494         * tests/test-linkat.c (main): Likewise.
28495         * tests/test-lstat.c (main): Likewise.
28496         * tests/test-mkdir.c (main): Likewise.
28497         * tests/test-mkdirat.c (main): Likewise.
28498         * tests/test-mkfifo.c (main): Likewise.
28499         * tests/test-mkfifoat.c (main): Likewise.
28500         * tests/test-mknod.c (main): Likewise.
28501         * tests/test-readlink.c (main): Likewise.
28502         * tests/test-remove.c (main): Likewise.
28503         * tests/test-rename.c (main): Likewise.
28504         * tests/test-renameat.c (main): Likewise.
28505         * tests/test-rmdir.c (main): Likewise.
28506         * tests/test-symlink.c (main): Likewise.
28507         * tests/test-symlinkat.c (main): Likewise.
28508         * tests/test-unlink.c (main): Likewise.
28509         * tests/test-unlinkat.c (main): Likewise.
28510         * tests/test-utimens.c (main): Likewise.
28511         * tests/test-utimensat.c (main): Likewise.
28512         * modules/areadlink-tests (Depends-on): Add ignore-value.
28513         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28514         * modules/areadlinkat-tests (Depends-on): Likewise.
28515         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28516         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28517         * modules/canonicalize-tests (Depends-on): Likewise.
28518         * modules/chown-tests (Depends-on): Likewise.
28519         * modules/fdutimensat-tests (Depends-on): Likewise.
28520         * modules/futimens-tests (Depends-on): Likewise.
28521         * modules/lchown-tests (Depends-on): Likewise.
28522         * modules/link-tests (Depends-on): Likewise.
28523         * modules/linkat-tests (Depends-on): Likewise.
28524         * modules/lstat-tests (Depends-on): Likewise.
28525         * modules/mkdir-tests (Depends-on): Likewise.
28526         * modules/mkfifo-tests (Depends-on): Likewise.
28527         * modules/mkfifoat-tests (Depends-on): Likewise.
28528         * modules/mknod-tests (Depends-on): Likewise.
28529         * modules/openat-tests (Depends-on): Likewise.
28530         * modules/readlink-tests (Depends-on): Likewise.
28531         * modules/remove-tests (Depends-on): Likewise.
28532         * modules/rename-tests (Depends-on): Likewise.
28533         * modules/renameat-tests (Depends-on): Likewise.
28534         * modules/rmdir-tests (Depends-on): Likewise.
28535         * modules/symlink-tests (Depends-on): Likewise.
28536         * modules/symlinkat-tests (Depends-on): Likewise.
28537         * modules/unlink-tests (Depends-on): Likewise.
28538         * modules/utimens-tests (Depends-on): Likewise.
28539         * modules/utimensat-tests (Depends-on): Likewise.
28540
28541 2010-01-31  Bruno Haible  <bruno@clisp.org>
28542
28543         Perform the same test for many <math.h> functions.
28544         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28545         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28546         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28547         of gl_MATHFUNC.
28548         * modules/acos (configure.ac): Likewise.
28549         * modules/asin (configure.ac): Likewise.
28550         * modules/atan (configure.ac): Likewise.
28551         * modules/atan2 (configure.ac): Likewise.
28552         * modules/cbrt (configure.ac): Likewise.
28553         * modules/copysign (configure.ac): Likewise.
28554         * modules/cos (configure.ac): Likewise.
28555         * modules/cosh (configure.ac): Likewise.
28556         * modules/erf (configure.ac): Likewise.
28557         * modules/erfc (configure.ac): Likewise.
28558         * modules/exp (configure.ac): Likewise.
28559         * modules/fmod (configure.ac): Likewise.
28560         * modules/hypot (configure.ac): Likewise.
28561         * modules/j0 (configure.ac): Likewise.
28562         * modules/j1 (configure.ac): Likewise.
28563         * modules/jn (configure.ac): Likewise.
28564         * modules/lgamma (configure.ac): Likewise.
28565         * modules/log (configure.ac): Likewise.
28566         * modules/log10 (configure.ac): Likewise.
28567         * modules/log1p (configure.ac): Likewise.
28568         * modules/pow (configure.ac): Likewise.
28569         * modules/remainder (configure.ac): Likewise.
28570         * modules/sin (configure.ac): Likewise.
28571         * modules/sinh (configure.ac): Likewise.
28572         * modules/tan (configure.ac): Likewise.
28573         * modules/tanh (configure.ac): Likewise.
28574         * modules/y0 (configure.ac): Likewise.
28575         * modules/y1 (configure.ac): Likewise.
28576         * modules/yn (configure.ac): Likewise.
28577         Suggested by Paolo Bonzini.
28578
28579 2010-01-31  Bruno Haible  <bruno@clisp.org>
28580
28581         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28582
28583 2010-01-31  Bruno Haible  <bruno@clisp.org>
28584
28585         Work around getdelim() bug on FreeBSD 8.0.
28586         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28587         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28588         not work.
28589         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28590         is 1.
28591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28592         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28593         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28594         a non-zero size.
28595         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28596
28597 2010-01-31  Bruno Haible  <bruno@clisp.org>
28598
28599         Work around getline() bug on FreeBSD 8.0.
28600         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28601         and a non-zero size.
28602         * tests/test-getline.c (main): Likewise.
28603         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28604         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28605
28606 2010-01-28  Eric Blake  <ebb9@byu.net>
28607
28608         regex: fix build failure
28609         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28610         platforms.
28611
28612 2010-01-28  Jim Meyering  <meyering@redhat.com>
28613
28614         regex: do not ignore memory allocation failure
28615         * lib/regex_internal.c (create_cd_newstate): Detect
28616         re_node_set_init_copy failure.   Extracted from glibc commit
28617         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28618
28619         regex: sync more white-space changes from libc
28620         * lib/regex_internal.c: White-space only changes.
28621         * lib/regexec.c: Likewise.
28622
28623         regex: add many uses of __attribute_warn_unused_result__
28624         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28625         * lib/regexec.c: Likewise.
28626         Extracted from a messy glibc commit.
28627
28628         regcomp.c: spelling and merge-artifact from glibc
28629         * lib/regcomp.c: Merge remainder of glibc's
28630         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28631
28632         regcomp.c: sync white-space changes from glibc
28633         * lib/regcomp.c: Merge to accommodate white space
28634         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28635
28636         regcomp.c: do not ignore internal return values
28637         * lib/regcomp.c: Do not ignore internal return values.
28638         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28639         but without its white-space changes and spelling fixes.
28640
28641         regex_internal.h: define __attribute_warn_unused_result__
28642         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28643
28644         maint: add a syntax-check rule to check for vulnerable Makefile.in
28645         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28646
28647 2010-01-27  Jim Meyering  <meyering@redhat.com>
28648
28649         ncftpput-ftp: clean up spaces
28650         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28651         Remove trailing blanks.
28652
28653 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28654
28655         * build-aux/git-version-gen: Fix copyright statement.
28656         * build-aux/gnupload: Likewise.
28657         * tests/test-arcfour.c: Likewise.
28658         * tests/test-arctwo.c: Likewise.
28659         * tests/test-count-one-bits.c: Likewise.
28660         * tests/test-crc.c: Likewise.
28661         * tests/test-des.c: Likewise.
28662         * tests/test-gc-arcfour.c: Likewise.
28663         * tests/test-gc-arctwo.c: Likewise.
28664         * tests/test-gc-des.c: Likewise.
28665         * tests/test-gc-hmac-md5.c: Likewise.
28666         * tests/test-gc-hmac-sha1.c: Likewise.
28667         * tests/test-gc-md2.c: Likewise.
28668         * tests/test-gc-md4.c: Likewise.
28669         * tests/test-gc-md5.c: Likewise.
28670         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28671         * tests/test-gc-rijndael.c: Likewise.
28672         * tests/test-gc-sha1.c: Likewise.
28673         * tests/test-gc.c: Likewise.
28674         * tests/test-gethostname.c: Likewise.
28675         * tests/test-gettimeofday.c: Likewise.
28676         * tests/test-hash.c: Likewise.
28677         * tests/test-hmac-md5.c: Likewise.
28678         * tests/test-hmac-sha1.c: Likewise.
28679         * tests/test-md2.c: Likewise.
28680         * tests/test-md4.c: Likewise.
28681         * tests/test-md5.c: Likewise.
28682         * tests/test-memchr.c: Likewise.
28683         * tests/test-memchr2.c: Likewise.
28684         * tests/test-memcmp.c: Likewise.
28685         * tests/test-memmem.c: Likewise.
28686         * tests/test-memrchr.c: Likewise.
28687         * tests/test-rawmemchr.c: Likewise.
28688         * tests/test-read-file.c: Likewise.
28689         * tests/test-rijndael.c: Likewise.
28690         * tests/test-sockets.c: Likewise.
28691         * tests/test-strchrnul.c: Likewise.
28692         * tests/test-strstr.c: Likewise.
28693         * tests/test-strtod.c: Likewise.
28694         * build-aux/ncftpput-ftp: Likewise.
28695
28696 2010-01-26  Eric Blake  <ebb9@byu.net>
28697
28698         ignore-value: update recommended header name
28699         * modules/ignore-value (Include): Only use <> for headers that
28700         exist in glibc.
28701
28702 2010-01-26  Jim Meyering  <meyering@redhat.com>
28703
28704         test-userspec.c: avoid compiler warnings
28705         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28706         and "initialization discards qualifiers..." warnings.
28707         Put the first "uid" in its own scope, and make char* members "const".
28708
28709 2010-01-25  Bruno Haible  <bruno@clisp.org>
28710
28711         gnulib-tool: Make warning diagnostics consistent.
28712         * gnulib-tool (func_warning): New function.
28713         Use it everywhere where gnulib-tool produces output to stderr and it is
28714         not a fatal error.
28715
28716 2010-01-25  Bruno Haible  <bruno@clisp.org>
28717
28718         Fix test dependencies.
28719         * modules/xstrtol-tests (Depends-on): Add inttypes.
28720         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28721
28722 2010-01-25 Pádraig Brady <P@draigBrady.com>
28723
28724         syntax-check: detect incorrect boolean macro values in config.h
28725         * modules/maintainer-makefile (configure.ac): Parameterize the location
28726         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28727         The logic is from Eric Blake and the location indicated by Jim Meyering.
28728         Note the more natural CONFIG_HEADER name is prohibited by automake
28729         for backwards compatibility reasons.
28730         * top/maint.mk (sc_Wundef_boolean): New rule.
28731
28732 2010-01-25  Jim Meyering  <meyering@redhat.com>
28733
28734         bootstrap: detect MacOS 10.6's shasum, too
28735         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28736         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28737
28738 2010-01-23  Jim Meyering  <meyering@redhat.com>
28739
28740         xstrtoll: new module
28741         * modules/xstrtoll: New file.
28742         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28743         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28744         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28745         ./configure fails if you use this module and lack "long long".
28746         * modules/xstrtoll-tests: New module.
28747         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28748         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28749         new init.sh-based test framework.
28750
28751 2010-01-24  Bruno Haible  <bruno@clisp.org>
28752
28753         Tests for module 'yn'.
28754         * modules/yn-tests: New file.
28755         * tests/test-yn.c: New file.
28756
28757         Tests for module 'y1'.
28758         * modules/y1-tests: New file.
28759         * tests/test-y1.c: New file.
28760
28761         Tests for module 'y0'.
28762         * modules/y0-tests: New file.
28763         * tests/test-y0.c: New file.
28764
28765         Tests for module 'tanh'.
28766         * modules/tanh-tests: New file.
28767         * tests/test-tanh.c: New file.
28768
28769         Tests for module 'tan'.
28770         * modules/tan-tests: New file.
28771         * tests/test-tan.c: New file.
28772
28773         Tests for module 'sqrt'.
28774         * modules/sqrt-tests: New file.
28775         * tests/test-sqrt.c: New file.
28776
28777         Tests for module 'sinh'.
28778         * modules/sinh-tests: New file.
28779         * tests/test-sinh.c: New file.
28780
28781         Tests for module 'sin'.
28782         * modules/sin-tests: New file.
28783         * tests/test-sin.c: New file.
28784
28785         Tests for module 'rint'.
28786         * modules/rint-tests: New file.
28787         * tests/test-rint.c: New file.
28788
28789         Tests for module 'remainder'.
28790         * modules/remainder-tests: New file.
28791         * tests/test-remainder.c: New file.
28792
28793         Tests for module 'pow'.
28794         * modules/pow-tests: New file.
28795         * tests/test-pow.c: New file.
28796
28797         Tests for module 'nextafter'.
28798         * modules/nextafter-tests: New file.
28799         * tests/test-nextafter.c: New file.
28800
28801         Tests for module 'modf'.
28802         * modules/modf-tests: New file.
28803         * tests/test-modf.c: New file.
28804
28805         Tests for module 'logb'.
28806         * modules/logb-tests: New file.
28807         * tests/test-logb.c: New file.
28808
28809         Tests for module 'log1p'.
28810         * modules/log1p-tests: New file.
28811         * tests/test-log1p.c: New file.
28812
28813         Tests for module 'log10'.
28814         * modules/log10-tests: New file.
28815         * tests/test-log10.c: New file.
28816
28817         Tests for module 'log'.
28818         * modules/log-tests: New file.
28819         * tests/test-log.c: New file.
28820
28821         Tests for module 'lgamma'.
28822         * modules/lgamma-tests: New file.
28823         * tests/test-lgamma.c: New file.
28824
28825         Tests for module 'ldexp'.
28826         * modules/ldexp-tests: New file.
28827         * tests/test-ldexp.c: New file.
28828
28829         Tests for module 'jn'.
28830         * modules/jn-tests: New file.
28831         * tests/test-jn.c: New file.
28832
28833         Tests for module 'j1'.
28834         * modules/j1-tests: New file.
28835         * tests/test-j1.c: New file.
28836
28837         Tests for module 'j0'.
28838         * modules/j0-tests: New file.
28839         * tests/test-j0.c: New file.
28840
28841         Tests for module 'hypot'.
28842         * modules/hypot-tests: New file.
28843         * tests/test-hypot.c: New file.
28844
28845         Tests for module 'fmod'.
28846         * modules/fmod-tests: New file.
28847         * tests/test-fmod.c: New file.
28848
28849         Tests for module 'fabs'.
28850         * modules/fabs-tests: New file.
28851         * tests/test-fabs.c: New file.
28852
28853         Tests for module 'exp'.
28854         * modules/exp-tests: New file.
28855         * tests/test-exp.c: New file.
28856
28857         Tests for module 'erfc'.
28858         * modules/erfc-tests: New file.
28859         * tests/test-erfc.c: New file.
28860
28861         Tests for module 'erf'.
28862         * modules/erf-tests: New file.
28863         * tests/test-erf.c: New file.
28864
28865         Tests for module 'cosh'.
28866         * modules/cosh-tests: New file.
28867         * tests/test-cosh.c: New file.
28868
28869         Tests for module 'cos'.
28870         * modules/cos-tests: New file.
28871         * tests/test-cos.c: New file.
28872
28873         Tests for module 'copysign'.
28874         * modules/copysign-tests: New file.
28875         * tests/test-copysign.c: New file.
28876
28877         Tests for module 'cbrt'.
28878         * modules/cbrt-tests: New file.
28879         * tests/test-cbrt.c: New file.
28880
28881         Tests for module 'atan2'.
28882         * modules/atan2-tests: New file.
28883         * tests/test-atan2.c: New file.
28884
28885         Tests for module 'atan'.
28886         * modules/atan-tests: New file.
28887         * tests/test-atan.c: New file.
28888
28889         Tests for module 'asin'.
28890         * modules/asin-tests: New file.
28891         * tests/test-asin.c: New file.
28892
28893         Tests for module 'acos'.
28894         * modules/acos-tests: New file.
28895         * tests/test-acos.c: New file.
28896
28897 2010-01-24  Bruno Haible  <bruno@clisp.org>
28898
28899         Fix tests for common <math.h> functions.
28900         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28901         code snippet that references the function pointer, rather than merely
28902         calling the function. Substitute the FUNC_LIBM variable.
28903         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28904         * modules/acos (configure.ac): Likewise.
28905         * modules/asin (configure.ac): Likewise.
28906         * modules/atan (configure.ac): Likewise.
28907         * modules/atan2 (configure.ac): Likewise.
28908         * modules/cbrt (configure.ac): Likewise.
28909         * modules/copysign (configure.ac): Likewise.
28910         * modules/cos (configure.ac): Likewise.
28911         * modules/cosh (configure.ac): Likewise.
28912         * modules/erf (configure.ac): Likewise.
28913         * modules/erfc (configure.ac): Likewise.
28914         * modules/exp (configure.ac): Likewise.
28915         * modules/fabs (configure.ac): Likewise.
28916         * modules/fmod (configure.ac): Likewise.
28917         * modules/hypot (configure.ac): Likewise.
28918         * modules/j0 (configure.ac): Likewise.
28919         * modules/j1 (configure.ac): Likewise.
28920         * modules/jn (configure.ac): Likewise.
28921         * modules/ldexp (configure.ac): Likewise.
28922         * modules/lgamma (configure.ac): Likewise.
28923         * modules/log (configure.ac): Likewise.
28924         * modules/log10 (configure.ac): Likewise.
28925         * modules/log1p (configure.ac): Likewise.
28926         * modules/logb (configure.ac): Likewise.
28927         * modules/modf (configure.ac): Likewise.
28928         * modules/nextafter (configure.ac): Likewise.
28929         * modules/pow (configure.ac): Likewise.
28930         * modules/remainder (configure.ac): Likewise.
28931         * modules/rint (configure.ac): Likewise.
28932         * modules/sin (configure.ac): Likewise.
28933         * modules/sinh (configure.ac): Likewise.
28934         * modules/tan (configure.ac): Likewise.
28935         * modules/tanh (configure.ac): Likewise.
28936         * modules/y0 (configure.ac): Likewise.
28937         * modules/y1 (configure.ac): Likewise.
28938         * modules/yn (configure.ac): Likewise.
28939
28940 2010-01-24  Bruno Haible  <bruno@clisp.org>
28941
28942         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28943         * tests/test-acosl.c (x): New variable.
28944         (main): Store argument in x and fetch it from x.
28945         * tests/test-asinl.c (x): New variable.
28946         (main): Store argument in x and fetch it from x.
28947         * tests/test-atanl.c (x): New variable.
28948         (main): Store argument in x and fetch it from x.
28949         * tests/test-cosl.c (x): New variable.
28950         (main): Store argument in x and fetch it from x.
28951         * tests/test-expl.c (x): New variable.
28952         (main): Store argument in x and fetch it from x.
28953         * tests/test-logl.c (x): New variable.
28954         (main): Store argument in x and fetch it from x.
28955         * tests/test-sinl.c (x): New variable.
28956         (main): Store argument in x and fetch it from x.
28957         * tests/test-sqrtl.c (x): New variable.
28958         (main): Store argument in x and fetch it from x.
28959         * tests/test-tanl.c (x): New variable.
28960         (main): Store argument in x and fetch it from x.
28961
28962 2010-01-24  Bruno Haible  <bruno@clisp.org>
28963
28964         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28965         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28966         assignments to the initial TESTS_ENVIRONMENT.
28967         * doc/gnulib.texi (Unit test modules): Document it.
28968         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28969         TESTS_ENVIRONMENT.
28970         * modules/btowc-tests (Makefile.am): Likewise.
28971         * modules/c-stack-tests (Makefile.am): Likewise.
28972         * modules/c-strcase-tests (Makefile.am): Likewise.
28973         * modules/copy-file-tests (Makefile.am): Likewise.
28974         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28975         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28976         * modules/mbrtowc-tests (Makefile.am): Likewise.
28977         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28978         * modules/mbscasestr-tests (Makefile.am): Likewise.
28979         * modules/mbschr-tests (Makefile.am): Likewise.
28980         * modules/mbscspn-tests (Makefile.am): Likewise.
28981         * modules/mbsinit-tests (Makefile.am): Likewise.
28982         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28983         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28984         * modules/mbspbrk-tests (Makefile.am): Likewise.
28985         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28986         * modules/mbsrchr-tests (Makefile.am): Likewise.
28987         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28988         * modules/mbsspn-tests (Makefile.am): Likewise.
28989         * modules/mbsstr-tests (Makefile.am): Likewise.
28990         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28991         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28992         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28993         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28994         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28995         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28996         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28997         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28998         * modules/wcrtomb-tests (Makefile.am): Likewise.
28999         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29000         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29001         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29002         assignments from TESTS_ENVIRONMENT.
29003         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29004         augmentation.
29005         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29006         * modules/atexit-tests (Makefile.am): Likewise.
29007         * modules/binary-io-tests (Makefile.am): Likewise.
29008         * modules/closein-tests (Makefile.am): Likewise.
29009         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29010         * modules/exclude-tests (Makefile.am): Likewise.
29011         * modules/fflush-tests (Makefile.am): Likewise.
29012         * modules/fpending-tests (Makefile.am): Likewise.
29013         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29014         * modules/freadahead-tests (Makefile.am): Likewise.
29015         * modules/freadptr-tests (Makefile.am): Likewise.
29016         * modules/freadseek-tests (Makefile.am): Likewise.
29017         * modules/fseek-tests (Makefile.am): Likewise.
29018         * modules/fseeko-tests (Makefile.am): Likewise.
29019         * modules/ftell-tests (Makefile.am): Likewise.
29020         * modules/ftello-tests (Makefile.am): Likewise.
29021         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29022         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29023         * modules/lseek-tests (Makefile.am): Likewise.
29024         * modules/parse-duration-tests (Makefile.am): Likewise.
29025         * modules/perror-tests (Makefile.am): Likewise.
29026         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29027         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29028         * modules/pipe-tests (Makefile.am): Likewise.
29029         * modules/pread-tests (Makefile.am): Likewise.
29030         * modules/printf-posix-tests (Makefile.am): Likewise.
29031         * modules/select-tests (Makefile.am): Likewise.
29032         * modules/sigpipe-tests (Makefile.am): Likewise.
29033         * modules/tsearch-tests (Makefile.am): Likewise.
29034         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29035         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29036         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29037         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29038         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29039         * modules/version-etc-tests (Makefile.am): Likewise.
29040         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29041         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29042         * modules/xalloc-die-tests (Makefile.am): Likewise.
29043         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29044         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29045         * modules/xstrtol-tests (Makefile.am): Likewise.
29046         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29047         * modules/yesno-tests (Makefile.am): Likewise.
29048         Suggested by Jim Meyering.
29049
29050 2010-01-24  Bruno Haible  <bruno@clisp.org>
29051
29052         More documentation.
29053         * doc/gnulib.texi (Writing modules): New chapter.
29054         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29055         the new chapter.
29056
29057 2010-01-24  Jim Meyering  <meyering@redhat.com>
29058
29059         maint.mk: do not prepend "./" after filtering
29060         * top/maint.mk (_prepend_srcdir_prefix): New variable
29061         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29062         "./" when $(srcdir) is ".".
29063
29064         define STREQ(a,b) consistently, removing useless parentheses
29065         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29066         since the only risk is that "a" or "b" contains an unparenthesized
29067         comma, but if either did that, STREQ would have 3 or more arguments.
29068         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29069         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29070         * lib/hash-triple.c (STREQ): Likewise.
29071         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29072         * lib/getugroups.c (STREQ): Likewise.
29073
29074 2010-01-23  Jim Meyering  <meyering@redhat.com>
29075
29076         maint.mk: fix syntax-check in a non-srcdir build directory
29077         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29078         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29079
29080 2010-01-22  Jim Meyering  <meyering@redhat.com>
29081
29082         userspec: add unit tests
29083         * tests/test-userspec.c: New file.
29084         * modules/userspec-tests: Likewise.
29085
29086 2010-01-21  Jim Meyering  <meyering@redhat.com>
29087
29088         maint.mk: handle source file names containing "." robustly
29089         * top/maint.mk (_dot_escaped_srcdir): Define.
29090         (VC_LIST): Use it in LHS of sed substitution.
29091
29092 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29093
29094         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29095         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29096         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29097         from a non-srcdir build.
29098
29099 2010-01-20  Eric Blake  <ebb9@byu.net>
29100
29101         warn-on-use: use instead of link-warning
29102         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29103         * modules/unistd (Depends-on, Makefile.am): Likewise.
29104         * modules/arpa_inet (Depends-on): Replace link-warning with
29105         warn-on-use.
29106         (Makefile.am): Update rules accordingly.
29107         * modules/ctype (Depends-on, Makefile.am): Likewise.
29108         * modules/dirent (Depends-on, Makefile.am): Likewise.
29109         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29110         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29111         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29112         * modules/locale (Depends-on, Makefile.am): Likewise.
29113         * modules/math (Depends-on, Makefile.am): Likewise.
29114         * modules/search (Depends-on, Makefile.am): Likewise.
29115         * modules/signal (Depends-on, Makefile.am): Likewise.
29116         * modules/spawn (Depends-on, Makefile.am): Likewise.
29117         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29118         * modules/string (Depends-on, Makefile.am): Likewise.
29119         * modules/strings (Depends-on, Makefile.am): Likewise.
29120         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29121         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29122         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29123         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29124         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29125         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29126         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29127         * modules/wchar (Depends-on, Makefile.am): Likewise.
29128         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29129         should be poisoned.
29130         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29131         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29132         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29133         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29134         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29135         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29136         * m4/math_h.m4 (gl_MATH_H): Likewise.
29137         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29138         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29139         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29140         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29141         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29142         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29143         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29144         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29145         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29146         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29149         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29150         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29151         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29152         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29153         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29154         GL_LINK_WARNING.
29155         * lib/ctype.in.h: Likewise.
29156         * lib/dirent.in.h: Likewise.
29157         * lib/fcntl.in.h: Likewise.
29158         * lib/inttypes.in.h: Likewise.
29159         * lib/langinfo.in.h: Likewise.
29160         * lib/locale.in.h: Likewise.
29161         * lib/math.in.h: Likewise.
29162         * lib/search.in.h: Likewise.
29163         * lib/signal.in.h: Likewise.
29164         * lib/spawn.in.h: Likewise.
29165         * lib/stdio.in.h: Likewise.
29166         * lib/stdlib.in.h: Likewise.
29167         * lib/string.in.h: Likewise.
29168         * lib/strings.in.h: Likewise.
29169         * lib/sys_file.in.h: Likewise.
29170         * lib/sys_ioctl.in.h: Likewise.
29171         * lib/sys_select.in.h: Likewise.
29172         * lib/sys_socket.in.h: Likewise.
29173         * lib/sys_stat.in.h: Likewise.
29174         * lib/sys_times.in.h: Likewise.
29175         * lib/sys_utsname.in.h: Likewise.
29176         * lib/unistd.in.h: Likewise.
29177         * lib/wchar.in.h: Likewise.
29178
29179 2010-01-20  Bruno Haible  <bruno@clisp.org>
29180
29181         Avoid duplicate -lm.
29182         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29183         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29184         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29185         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29186         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29187         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29188         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29189         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29190         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29191         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29192         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29193         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29194         Reported by Paolo Bonzini.
29195
29196 2010-01-19  Bruno Haible  <bruno@clisp.org>
29197
29198         langinfo, nl_langinfo: Relicense under LGPLv2+.
29199         * modules/langinfo (License): Change to LGPLv2+.
29200         * modules/nl_langinfo (License): Likewise.
29201         Patch by David Lutterkort <lutter@redhat.com>.
29202
29203 2010-01-19  Bruno Haible  <bruno@clisp.org>
29204
29205         Avoid compilation error with cc on OSF/1 5.1.
29206         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29207         statement, not before.
29208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29209
29210 2010-01-18  Bruno Haible  <bruno@clisp.org>
29211
29212         Avoid a link error due to the __printf__ symbol.
29213         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29214         and 2.6.x.
29215         (__format__, __printf__): Remove definitions.
29216         * lib/argp-fmtstream.h: Likewise.
29217         * lib/argp.h: Likewise.
29218         * lib/error.h: Likewise.
29219         * lib/vasnprintf.h: Likewise.
29220         * lib/xprintf.h: Likewise.
29221         * lib/xvasprintf.h: Likewise.
29222         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29223
29224 2010-01-18  Bruno Haible  <bruno@clisp.org>
29225
29226         Tests for module 'tanl'.
29227         * modules/tanl-tests: New file.
29228         * tests/test-tanl.c: New file.
29229
29230         Tests for module 'sqrtl'.
29231         * modules/sqrtl-tests: New file.
29232         * tests/test-sqrtl.c: New file.
29233
29234         Tests for module 'sinl'.
29235         * modules/sinl-tests: New file.
29236         * tests/test-sinl.c: New file.
29237
29238         Tests for module 'logl'.
29239         * modules/logl-tests: New file.
29240         * tests/test-logl.c: New file.
29241
29242         Tests for module 'expl'.
29243         * modules/expl-tests: New file.
29244         * tests/test-expl.c: New file.
29245
29246         Tests for module 'cosl'.
29247         * modules/cosl-tests: New file.
29248         * tests/test-cosl.c: New file.
29249
29250         Tests for module 'atanl'.
29251         * modules/atanl-tests: New file.
29252         * tests/test-atanl.c: New file.
29253
29254         Tests for module 'asinl'.
29255         * modules/asinl-tests: New file.
29256         * tests/test-asinl.c: New file.
29257
29258         Tests for module 'acosl'.
29259         * modules/acosl-tests: New file.
29260         * tests/test-acosl.c: New file.
29261
29262         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29263         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29264         tanl): Use the standard gnulib idiom.
29265         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29266         * lib/sinl.c: Likewise.
29267         * lib/tanl.c: Don't include trigl.c.
29268         (kernel_tanl): Make static.
29269         * lib/sincosl.c: Include trigl.h first.
29270         * lib/trigl.c: Likewise.
29271         * m4/acosl.m4: New file.
29272         * m4/asinl.m4: New file.
29273         * m4/atanl.m4: New file.
29274         * m4/cosl.m4: New file.
29275         * m4/expl.m4: New file.
29276         * m4/logl.m4: New file.
29277         * m4/sinl.m4: New file.
29278         * m4/sqrtl.m4: New file.
29279         * m4/tanl.m4: New file.
29280         * m4/mathl.m4: Remove file.
29281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29282         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29283         Don't initialize GNULIB_MATHL.
29284         * modules/acosl: New file.
29285         * modules/asinl: New file.
29286         * modules/atanl: New file.
29287         * modules/cosl: New file.
29288         * modules/expl: New file.
29289         * modules/logl: New file.
29290         * modules/sinl: New file.
29291         * modules/sqrtl: New file.
29292         * modules/tanl: New file.
29293         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29294         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29295         substitute GNULIB_MATHL.
29296         * modules/mathl: Rewritten.
29297         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29298         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29299         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29300         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29301         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29302         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29303         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29304         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29305         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29306
29307 2010-01-18  Bruno Haible  <bruno@clisp.org>
29308
29309         sqrt: Make gl_FUNC_SQRT requirable.
29310         * m4/sqrt.m4: New file.
29311         * modules/sqrt (Files): Add it.
29312         (configure.ac): Invoke gl_FUNC_SQRT.
29313
29314 2010-01-18  Bruno Haible  <bruno@clisp.org>
29315
29316         New modules for common <math.h> functions.
29317         * m4/mathfunc.m4: New file.
29318         * modules/acos: New file.
29319         * modules/asin: New file.
29320         * modules/atan: New file.
29321         * modules/atan2: New file.
29322         * modules/cbrt: New file.
29323         * modules/copysign: New file.
29324         * modules/cos: New file.
29325         * modules/cosh: New file.
29326         * modules/erf: New file.
29327         * modules/erfc: New file.
29328         * modules/exp: New file.
29329         * modules/fabs: New file.
29330         * modules/fmod: New file.
29331         * modules/hypot: New file.
29332         * modules/j0: New file.
29333         * modules/j1: New file.
29334         * modules/jn: New file.
29335         * modules/ldexp: New file.
29336         * modules/lgamma: New file.
29337         * modules/log: New file.
29338         * modules/log10: New file.
29339         * modules/log1p: New file.
29340         * modules/logb: New file.
29341         * modules/modf: New file.
29342         * modules/nextafter: New file.
29343         * modules/pow: New file.
29344         * modules/remainder: New file.
29345         * modules/rint: New file.
29346         * modules/sin: New file.
29347         * modules/sinh: New file.
29348         * modules/sqrt: New file.
29349         * modules/tan: New file.
29350         * modules/tanh: New file.
29351         * modules/y0: New file.
29352         * modules/y1: New file.
29353         * modules/yn: New file.
29354         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29355         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29356         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29357         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29358         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29359         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29360         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29361         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29362         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29363         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29364         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29365         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29366         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29367         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29368         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29369         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29370         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29371         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29372         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29373         * doc/posix-functions/log.texi: Mention the 'log' module.
29374         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29375         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29376         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29377         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29378         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29379         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29380         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29381         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29382         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29383         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29384         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29385         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29386         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29387         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29388         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29389         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29390
29391 2010-01-18  Jim Meyering  <meyering@redhat.com>
29392
29393         ignore-value: relax license to LGPLv2+
29394         * modules/ignore-value (License): Relax to LGPLv2+.
29395
29396         getdate: don't leak when TZ contains two or more '"'s
29397         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29398         double quote in TZ after the first one.
29399
29400         readtokens: do not leak internal token_lengths buffer
29401         * lib/readtokens.c (readtokens): Free the local, lengths,
29402         when the supplied "token_lengths" parameter is NULL.
29403
29404 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29405
29406         Fix a couple of missing LIBTHREAD link failures on AIX.
29407         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29408         $(LIBTHREAD).
29409         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29410
29411         Link test-poll against INET_PTON_LIB.
29412         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29413         for inet_pton on Solaris 10.
29414
29415 2010-01-17  Bruno Haible  <bruno@clisp.org>
29416
29417         unistdio/*-sprintf: Fix typo in module description.
29418         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29419         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29420         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29421         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29422         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29423         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29424         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29426
29427 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29428
29429         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29430         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29431         variables in shell case patterns, for AIX and HP-UX ksh.
29432
29433         Split large sed scripts, for HP-UX sed.
29434         * modules/stdio: Split sed scripts around 50 sed commands,
29435         to avoid HP-UX limit of 99 commands, in the near future.
29436         * modules/string: Likewise.
29437         * modules/unistd: Likewise.
29438
29439         gnulib-tool: avoid writing in the current directory.
29440         * gnulib-tool (func_emit_lib_Makefile_am)
29441         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29442         not in the current directory, so concurrent gnulib-tool
29443         instances do not interfere.
29444
29445 2010-01-16  Jim Meyering  <meyering@redhat.com>
29446
29447         doc: update users.txt
29448         * users.txt: Add grep.
29449         (diffutils, gzip): Update URLs.
29450
29451 2010-01-12  Bruno Haible  <bruno@clisp.org>
29452
29453         posix_spawn: Avoid test failure on Cygwin.
29454         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29455         characters.
29456         Reported by Simon Josefsson.
29457
29458 2010-01-12  Bruno Haible  <bruno@clisp.org>
29459
29460         * tests/test-cond.c (main): When skipping the test, show the reason.
29461
29462 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29463
29464         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29465
29466 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29467
29468         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29469         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29470
29471 2010-01-12  Eric Blake  <ebb9@byu.net>
29472
29473         build: guarantee AS_VAR_IF
29474         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29475         (gl_AS_VAR_IF): Move...
29476         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29477         Reported by Simon Josefsson.
29478
29479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29480
29481         * lib/stdio.in.h: Fix typo.
29482
29483 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29484
29485         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29486         libgpg-error.
29487
29488 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29489
29490         * tests/test-xalloc-die.sh: Use $EXEEXT.
29491
29492 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29493             Bruno Haible  <bruno@clisp.org>
29494
29495         getlogin, getlogin_r: Avoid test failure.
29496         * tests/test-getlogin.c: Include <stdio.h>.
29497         (main): Skip the test when the function fails because stdin is not a
29498         tty.
29499         * tests/test-getlogin_r.c: Include <stdio.h>.
29500         (main): Skip the test when the function fails because stdin is not a
29501         tty.
29502
29503 2010-01-11  Eric Blake  <ebb9@byu.net>
29504
29505         tests: avoid more large file warnings
29506         * tests/test-fflush.c: Avoid warning about ftell use.
29507         * tests/test-fseek.c: Avoid warning about fseek use.
29508
29509 2010-01-10  Bruno Haible  <bruno@clisp.org>
29510
29511         nproc: Work better on Linux when /proc and /sys are not mounted.
29512         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29513         as lower bound when, on glibc/Linux systems,
29514         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29515         Suggested by Pádraig Brady <P@draigbrady.com>.
29516         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29517
29518         nproc: Refactor.
29519         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29520         extracted from num_processors.
29521         (num_processors): Call it.
29522
29523 2010-01-11  Jim Meyering  <meyering@redhat.com>
29524
29525         utimecmp: avoid new warning from upcoming gcc-4.5.0
29526         * lib/utimecmp.c (BILLION): Define using #define rather than an
29527         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29528
29529 2010-01-11  Eric Blake  <ebb9@byu.net>
29530
29531         math: add portability warnings for classification macros
29532         * modules/math (Depends-on): Add warn-on-use.
29533         (Makefile.am): Provide new substitutions.
29534         * m4/math_h.m4 (gl_MATH_H): Require inline.
29535         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29536         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29537         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29538         implement warnings.
29539
29540         unistd: warn on use of environ without module
29541         * modules/unistd (Depends-on): Add warn-on-use.
29542         (Makefile.am): Provide new substitutions.
29543         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29544         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29545
29546         stdio: warn on suspicious uses
29547         * modules/stdio (Depends-on): Add warn-on-use.
29548         (Makefile.am): Provide new substitutions.
29549         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29550         fseeko.
29551         * lib/stdio.in.h (gets): Always warn on use.
29552         (fseek, ftell): Adjust when warnings are issued, and honor
29553         _GL_NO_LARGE_FILES as a way to silence the warning.
29554         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29555         any warning about large file offsets.
29556         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29557         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29558         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29559         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29560         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29561         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29562         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29563         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29564
29565         warn-on-use: new module
29566         * modules/warn-on-use: New file.
29567         * build-aux/warn-on-use.h: Likewise.
29568         * m4/warn-on-use.m4: Likewise.
29569         * MODULES.html.sh (Support for building): Mention it.
29570
29571 2010-01-10  Bruno Haible  <bruno@clisp.org>
29572
29573         Tests for module 'unistr/u32-strdup'.
29574         * modules/unistr/u32-strdup-tests: New file.
29575         * tests/unistr/test-u32-strdup.c: New file.
29576
29577         Tests for module 'unistr/u16-strdup'.
29578         * modules/unistr/u16-strdup-tests: New file.
29579         * tests/unistr/test-u16-strdup.c: New file.
29580
29581         Tests for module 'unistr/u8-strdup'.
29582         * modules/unistr/u8-strdup-tests: New file.
29583         * tests/unistr/test-u8-strdup.c: New file.
29584         * tests/unistr/test-strdup.h: New file.
29585
29586         Tests for module 'unistr/u32-strncmp'.
29587         * modules/unistr/u32-strncmp-tests: New file.
29588         * tests/unistr/test-u32-strncmp.c: New file.
29589
29590         Tests for module 'unistr/u16-strncmp'.
29591         * modules/unistr/u16-strncmp-tests: New file.
29592         * tests/unistr/test-u16-strncmp.c: New file.
29593
29594         Tests for module 'unistr/u8-strncmp'.
29595         * modules/unistr/u8-strncmp-tests: New file.
29596         * tests/unistr/test-u8-strncmp.c: New file.
29597         * tests/unistr/test-strncmp.h: New file.
29598
29599         Tests for module 'unistr/u32-strcoll'.
29600         * modules/unistr/u32-strcoll-tests: New file.
29601         * tests/unistr/test-u32-strcoll.c: New file.
29602
29603         Tests for module 'unistr/u16-strcoll'.
29604         * modules/unistr/u16-strcoll-tests: New file.
29605         * tests/unistr/test-u16-strcoll.c: New file.
29606
29607         Tests for module 'unistr/u8-strcoll'.
29608         * modules/unistr/u8-strcoll-tests: New file.
29609         * tests/unistr/test-u8-strcoll.c: New file.
29610
29611         Tests for module 'unistr/u32-strcmp'.
29612         * modules/unistr/u32-strcmp-tests: New file.
29613         * tests/unistr/test-u32-strcmp.c: New file.
29614         * tests/unistr/test-u32-strcmp.h: New file.
29615
29616         Tests for module 'unistr/u16-strcmp'.
29617         * modules/unistr/u16-strcmp-tests: New file.
29618         * tests/unistr/test-u16-strcmp.c: New file.
29619         * tests/unistr/test-u16-strcmp.h: New file.
29620
29621         Tests for module 'unistr/u8-strcmp'.
29622         * modules/unistr/u8-strcmp-tests: New file.
29623         * tests/unistr/test-u8-strcmp.c: New file.
29624         * tests/unistr/test-u8-strcmp.h: New file.
29625         * tests/unistr/test-strcmp.h: New file.
29626
29627         Tests for module 'unistr/u32-strncat'.
29628         * modules/unistr/u32-strncat-tests: New file.
29629         * tests/unistr/test-u32-strncat.c: New file.
29630
29631         Tests for module 'unistr/u16-strncat'.
29632         * modules/unistr/u16-strncat-tests: New file.
29633         * tests/unistr/test-u16-strncat.c: New file.
29634
29635         Tests for module 'unistr/u8-strncat'.
29636         * modules/unistr/u8-strncat-tests: New file.
29637         * tests/unistr/test-u8-strncat.c: New file.
29638         * tests/unistr/test-strncat.h: New file.
29639
29640         Tests for module 'unistr/u32-strcat'.
29641         * modules/unistr/u32-strcat-tests: New file.
29642         * tests/unistr/test-u32-strcat.c: New file.
29643
29644         Tests for module 'unistr/u16-strcat'.
29645         * modules/unistr/u16-strcat-tests: New file.
29646         * tests/unistr/test-u16-strcat.c: New file.
29647
29648         Tests for module 'unistr/u8-strcat'.
29649         * modules/unistr/u8-strcat-tests: New file.
29650         * tests/unistr/test-u8-strcat.c: New file.
29651         * tests/unistr/test-strcat.h: New file.
29652
29653         Tests for module 'unistr/u32-stpncpy'.
29654         * modules/unistr/u32-stpncpy-tests: New file.
29655         * tests/unistr/test-u32-stpncpy.c: New file.
29656
29657         Tests for module 'unistr/u16-stpncpy'.
29658         * modules/unistr/u16-stpncpy-tests: New file.
29659         * tests/unistr/test-u16-stpncpy.c: New file.
29660
29661         Tests for module 'unistr/u8-stpncpy'.
29662         * modules/unistr/u8-stpncpy-tests: New file.
29663         * tests/unistr/test-u8-stpncpy.c: New file.
29664         * tests/unistr/test-stpncpy.h: New file.
29665
29666         Tests for module 'unistr/u32-strncpy'.
29667         * modules/unistr/u32-strncpy-tests: New file.
29668         * tests/unistr/test-u32-strncpy.c: New file.
29669
29670         Tests for module 'unistr/u16-strncpy'.
29671         * modules/unistr/u16-strncpy-tests: New file.
29672         * tests/unistr/test-u16-strncpy.c: New file.
29673
29674         Tests for module 'unistr/u8-strncpy'.
29675         * modules/unistr/u8-strncpy-tests: New file.
29676         * tests/unistr/test-u8-strncpy.c: New file.
29677         * tests/unistr/test-strncpy.h: New file.
29678
29679         Tests for module 'unistr/u32-stpcpy'.
29680         * modules/unistr/u32-stpcpy-tests: New file.
29681         * tests/unistr/test-u32-stpcpy.c: New file.
29682
29683         Tests for module 'unistr/u16-stpcpy'.
29684         * modules/unistr/u16-stpcpy-tests: New file.
29685         * tests/unistr/test-u16-stpcpy.c: New file.
29686
29687         Tests for module 'unistr/u8-stpcpy'.
29688         * modules/unistr/u8-stpcpy-tests: New file.
29689         * tests/unistr/test-u8-stpcpy.c: New file.
29690         * tests/unistr/test-stpcpy.h: New file.
29691
29692         Tests for module 'unistr/u32-strcpy'.
29693         * modules/unistr/u32-strcpy-tests: New file.
29694         * tests/unistr/test-u32-strcpy.c: New file.
29695
29696         Tests for module 'unistr/u16-strcpy'.
29697         * modules/unistr/u16-strcpy-tests: New file.
29698         * tests/unistr/test-u16-strcpy.c: New file.
29699
29700         Tests for module 'unistr/u8-strcpy'.
29701         * modules/unistr/u8-strcpy-tests: New file.
29702         * tests/unistr/test-u8-strcpy.c: New file.
29703         * tests/unistr/test-strcpy.h: New file.
29704
29705         Tests for module 'unistr/u32-strnlen'.
29706         * modules/unistr/u32-strnlen-tests: New file.
29707         * tests/unistr/test-u32-strnlen.c: New file.
29708
29709         Tests for module 'unistr/u16-strnlen'.
29710         * modules/unistr/u16-strnlen-tests: New file.
29711         * tests/unistr/test-u16-strnlen.c: New file.
29712
29713         Tests for module 'unistr/u8-strnlen'.
29714         * modules/unistr/u8-strnlen-tests: New file.
29715         * tests/unistr/test-u8-strnlen.c: New file.
29716         * tests/unistr/test-strnlen.h: New file.
29717
29718         Tests for module 'unistr/u32-strlen'.
29719         * modules/unistr/u32-strlen-tests: New file.
29720         * tests/unistr/test-u32-strlen.c: New file.
29721
29722         Tests for module 'unistr/u16-strlen'.
29723         * modules/unistr/u16-strlen-tests: New file.
29724         * tests/unistr/test-u16-strlen.c: New file.
29725
29726         Tests for module 'unistr/u8-strlen'.
29727         * modules/unistr/u8-strlen-tests: New file.
29728         * tests/unistr/test-u8-strlen.c: New file.
29729
29730         Tests for module 'unistr/u32-prev'.
29731         * modules/unistr/u32-prev-tests: New file.
29732         * tests/unistr/test-u32-prev.c: New file.
29733
29734         Tests for module 'unistr/u16-prev'.
29735         * modules/unistr/u16-prev-tests: New file.
29736         * tests/unistr/test-u16-prev.c: New file.
29737
29738         Tests for module 'unistr/u8-prev'.
29739         * modules/unistr/u8-prev-tests: New file.
29740         * tests/unistr/test-u8-prev.c: New file.
29741
29742         Tests for module 'unistr/u32-next'.
29743         * modules/unistr/u32-next-tests: New file.
29744         * tests/unistr/test-u32-next.c: New file.
29745
29746         Tests for module 'unistr/u16-next'.
29747         * modules/unistr/u16-next-tests: New file.
29748         * tests/unistr/test-u16-next.c: New file.
29749
29750         Tests for module 'unistr/u8-next'.
29751         * modules/unistr/u8-next-tests: New file.
29752         * tests/unistr/test-u8-next.c: New file.
29753
29754         Tests for module 'unistr/u32-strmbtouc'.
29755         * modules/unistr/u32-strmbtouc-tests: New file.
29756         * tests/unistr/test-u32-strmbtouc.c: New file.
29757
29758         Tests for module 'unistr/u16-strmbtouc'.
29759         * modules/unistr/u16-strmbtouc-tests: New file.
29760         * tests/unistr/test-u16-strmbtouc.c: New file.
29761
29762         Tests for module 'unistr/u8-strmbtouc'.
29763         * modules/unistr/u8-strmbtouc-tests: New file.
29764         * tests/unistr/test-u8-strmbtouc.c: New file.
29765
29766         Tests for module 'unistr/u32-strmblen'.
29767         * modules/unistr/u32-strmblen-tests: New file.
29768         * tests/unistr/test-u32-strmblen.c: New file.
29769
29770         Tests for module 'unistr/u16-strmblen'.
29771         * modules/unistr/u16-strmblen-tests: New file.
29772         * tests/unistr/test-u16-strmblen.c: New file.
29773
29774         Tests for module 'unistr/u8-strmblen'.
29775         * modules/unistr/u8-strmblen-tests: New file.
29776         * tests/unistr/test-u8-strmblen.c: New file.
29777
29778         Tests for module 'unistr/u32-cpy-alloc'.
29779         * modules/unistr/u32-cpy-alloc-tests: New file.
29780         * tests/unistr/test-u32-cpy-alloc.c: New file.
29781
29782         Tests for module 'unistr/u16-cpy-alloc'.
29783         * modules/unistr/u16-cpy-alloc-tests: New file.
29784         * tests/unistr/test-u16-cpy-alloc.c: New file.
29785
29786         Tests for module 'unistr/u8-cpy-alloc'.
29787         * modules/unistr/u8-cpy-alloc-tests: New file.
29788         * tests/unistr/test-u8-cpy-alloc.c: New file.
29789         * tests/unistr/test-cpy-alloc.h: New file.
29790
29791         Tests for module 'unistr/u32-mbsnlen'.
29792         * modules/unistr/u32-mbsnlen-tests: New file.
29793         * tests/unistr/test-u32-mbsnlen.c: New file.
29794
29795         Tests for module 'unistr/u16-mbsnlen'.
29796         * modules/unistr/u16-mbsnlen-tests: New file.
29797         * tests/unistr/test-u16-mbsnlen.c: New file.
29798
29799         Tests for module 'unistr/u8-mbsnlen'.
29800         * modules/unistr/u8-mbsnlen-tests: New file.
29801         * tests/unistr/test-u8-mbsnlen.c: New file.
29802
29803         Tests for module 'unistr/u32-chr'.
29804         * modules/unistr/u32-chr-tests: New file.
29805         * tests/unistr/test-u32-chr.c: New file.
29806
29807         Tests for module 'unistr/u16-chr'.
29808         * modules/unistr/u16-chr-tests: New file.
29809         * tests/unistr/test-u16-chr.c: New file.
29810
29811         Tests for module 'unistr/u8-chr'.
29812         * modules/unistr/u8-chr-tests: New file.
29813         * tests/unistr/test-u8-chr.c: New file.
29814         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29815
29816         Tests for module 'unistr/u32-cmp2'.
29817         * modules/unistr/u32-cmp2-tests: New file.
29818         * tests/unistr/test-u32-cmp2.c: New file.
29819
29820         Tests for module 'unistr/u16-cmp2'.
29821         * modules/unistr/u16-cmp2-tests: New file.
29822         * tests/unistr/test-u16-cmp2.c: New file.
29823
29824         Tests for module 'unistr/u8-cmp2'.
29825         * modules/unistr/u8-cmp2-tests: New file.
29826         * tests/unistr/test-u8-cmp2.c: New file.
29827         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29828
29829         Tests for module 'unistr/u32-cmp'.
29830         * modules/unistr/u32-cmp-tests: New file.
29831         * tests/unistr/test-u32-cmp.c: New file.
29832
29833         Tests for module 'unistr/u16-cmp'.
29834         * modules/unistr/u16-cmp-tests: New file.
29835         * tests/unistr/test-u16-cmp.c: New file.
29836
29837         Tests for module 'unistr/u8-cmp'.
29838         * modules/unistr/u8-cmp-tests: New file.
29839         * tests/unistr/test-u8-cmp.c: New file.
29840         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29841
29842         Tests for module 'unistr/u32-set'.
29843         * modules/unistr/u32-set-tests: New file.
29844         * tests/unistr/test-u32-set.c: New file.
29845
29846         Tests for module 'unistr/u16-set'.
29847         * modules/unistr/u16-set-tests: New file.
29848         * tests/unistr/test-u16-set.c: New file.
29849
29850         Tests for module 'unistr/u8-set'.
29851         * modules/unistr/u8-set-tests: New file.
29852         * tests/unistr/test-u8-set.c: New file.
29853         * tests/unistr/test-set.h: New file.
29854
29855         Tests for module 'unistr/u32-move'.
29856         * modules/unistr/u32-move-tests: New file.
29857         * tests/unistr/test-u32-move.c: New file.
29858
29859         Tests for module 'unistr/u16-move'.
29860         * modules/unistr/u16-move-tests: New file.
29861         * tests/unistr/test-u16-move.c: New file.
29862
29863         Tests for module 'unistr/u8-move'.
29864         * modules/unistr/u8-move-tests: New file.
29865         * tests/unistr/test-u8-move.c: New file.
29866         * tests/unistr/test-move.h: New file.
29867
29868         Tests for module 'unistr/u32-cpy'.
29869         * modules/unistr/u32-cpy-tests: New file.
29870         * tests/unistr/test-u32-cpy.c: New file.
29871
29872         Tests for module 'unistr/u16-cpy'.
29873         * modules/unistr/u16-cpy-tests: New file.
29874         * tests/unistr/test-u16-cpy.c: New file.
29875
29876         Tests for module 'unistr/u8-cpy'.
29877         * modules/unistr/u8-cpy-tests: New file.
29878         * tests/unistr/test-u8-cpy.c: New file.
29879         * tests/unistr/test-cpy.h: New file.
29880
29881 2010-01-09  Bruno Haible  <bruno@clisp.org>
29882
29883         Tests for module 'unistr/u32-uctomb'.
29884         * modules/unistr/u32-uctomb-tests: New file.
29885         * tests/unistr/test-u32-uctomb.c: New file.
29886
29887         Tests for module 'unistr/u16-uctomb'.
29888         * modules/unistr/u16-uctomb-tests: New file.
29889         * tests/unistr/test-u16-uctomb.c: New file.
29890
29891         Tests for module 'unistr/u8-uctomb'.
29892         * modules/unistr/u8-uctomb-tests: New file.
29893         * tests/unistr/test-u8-uctomb.c: New file.
29894
29895         Tests for module 'unistr/u32-mbtoucr'.
29896         * modules/unistr/u32-mbtoucr-tests: New file.
29897         * tests/unistr/test-u32-mbtoucr.c: New file.
29898
29899         Tests for module 'unistr/u16-mbtoucr'.
29900         * modules/unistr/u16-mbtoucr-tests: New file.
29901         * tests/unistr/test-u16-mbtoucr.c: New file.
29902
29903         Tests for module 'unistr/u8-mbtoucr'.
29904         * modules/unistr/u8-mbtoucr-tests: New file.
29905         * tests/unistr/test-u8-mbtoucr.c: New file.
29906
29907         Tests for module 'unistr/u32-mbtouc'.
29908         * modules/unistr/u32-mbtouc-tests: New file.
29909         * tests/unistr/test-u32-mbtouc.c: New file.
29910
29911         Tests for module 'unistr/u16-mbtouc'.
29912         * modules/unistr/u16-mbtouc-tests: New file.
29913         * tests/unistr/test-u16-mbtouc.c: New file.
29914
29915         Tests for module 'unistr/u8-mbtouc'.
29916         * modules/unistr/u8-mbtouc-tests: New file.
29917         * tests/unistr/test-u8-mbtouc.c: New file.
29918
29919         Tests for module 'unistr/u32-mbtouc-unsafe'.
29920         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29921         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29922         * tests/unistr/test-u32-mbtouc.h: New file.
29923
29924         Tests for module 'unistr/u16-mbtouc-unsafe'.
29925         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29926         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29927         * tests/unistr/test-u16-mbtouc.h: New file.
29928
29929         Tests for module 'unistr/u8-mbtouc-unsafe'.
29930         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29931         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29932         * tests/unistr/test-u8-mbtouc.h: New file.
29933
29934         Tests for module 'unistr/u32-mblen'.
29935         * modules/unistr/u32-mblen-tests: New file.
29936         * tests/unistr/test-u32-mblen.c: New file.
29937
29938         Tests for module 'unistr/u16-mblen'.
29939         * modules/unistr/u16-mblen-tests: New file.
29940         * tests/unistr/test-u16-mblen.c: New file.
29941
29942         Tests for module 'unistr/u8-mblen'.
29943         * modules/unistr/u8-mblen-tests: New file.
29944         * tests/unistr/test-u8-mblen.c: New file.
29945
29946         Tests for module 'unistr/u32-to-u16'.
29947         * modules/unistr/u32-to-u16-tests: New file.
29948         * tests/unistr/test-u32-to-u16.c: New file.
29949
29950         Tests for module 'unistr/u32-to-u8'.
29951         * modules/unistr/u32-to-u8-tests: New file.
29952         * tests/unistr/test-u32-to-u8.c: New file.
29953
29954         Tests for module 'unistr/u16-to-u32'.
29955         * modules/unistr/u16-to-u32-tests: New file.
29956         * tests/unistr/test-u16-to-u32.c: New file.
29957
29958         Tests for module 'unistr/u16-to-u8'.
29959         * modules/unistr/u16-to-u8-tests: New file.
29960         * tests/unistr/test-u16-to-u8.c: New file.
29961
29962         Tests for module 'unistr/u8-to-u32'.
29963         * modules/unistr/u8-to-u32-tests: New file.
29964         * tests/unistr/test-u8-to-u32.c: New file.
29965
29966         Tests for module 'unistr/u8-to-u16'.
29967         * modules/unistr/u8-to-u16-tests: New file.
29968         * tests/unistr/test-u8-to-u16.c: New file.
29969
29970         Tests for module 'unistr/u32-check'.
29971         * modules/unistr/u32-check-tests: New file.
29972         * tests/unistr/test-u32-check.c: New file.
29973
29974         Tests for module 'unistr/u16-check'.
29975         * modules/unistr/u16-check-tests: New file.
29976         * tests/unistr/test-u16-check.c: New file.
29977
29978         Tests for module 'unistr/u8-check'.
29979         * modules/unistr/u8-check-tests: New file.
29980         * tests/unistr/test-u8-check.c: New file.
29981
29982         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29983         (category_equals): New function.
29984         (main): Add more tests.
29985         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29986
29987         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29988
29989 2010-01-10  Bruno Haible  <bruno@clisp.org>
29990
29991         unistr/u*-strcoll: Try harder to distinguish different strings.
29992         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29993         compare s1 and s2 to see if they are different.
29994
29995 2010-01-10  Bruno Haible  <bruno@clisp.org>
29996
29997         unistr/u*-stpncpy: Fix the return value.
29998         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29999         description of the return value consistent with stpncpy in glibc.
30000         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30001         written non-NUL unit.
30002
30003 2010-01-10  Bruno Haible  <bruno@clisp.org>
30004
30005         unistr/u*-next: Add missing dependencies.
30006         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30007         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30008         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30009
30010 2010-01-10  Bruno Haible  <bruno@clisp.org>
30011
30012         unistr/u8-mbsnlen: Fix return value for incomplete character.
30013         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30014         u8_mblen.
30015         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30016         Remove unistr/u8-mblen.
30017         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30018         u16_mblen.
30019         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30020         Remove unistr/u16-mblen.
30021
30022 2010-01-10  Bruno Haible  <bruno@clisp.org>
30023
30024         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30025         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30026         Reported by Brian Gough <bjg@gnu.org> and
30027         Chris Clayton <chris2553@googlemail.com> via
30028         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30029
30030 2010-01-09  Bruno Haible  <bruno@clisp.org>
30031
30032         unistr/u16-to-u32: Reject invalid input.
30033         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30034         u16_mbtouc.
30035         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30036         Remove unistr/u16-mbtouc.
30037
30038         unistr/u16-to-u8: Reject invalid input.
30039         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30040         u16_mbtouc.
30041         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30042         Remove unistr/u16-mbtouc.
30043
30044         unistr/u8-to-u32: Reject invalid input.
30045         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30046         u8_mbtouc.
30047         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30048         Remove unistr/u8-mbtouc.
30049
30050         unistr/u8-to-u16: Reject invalid input.
30051         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30052         u8_mbtouc.
30053         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30054         Remove unistr/u8-mbtouc.
30055
30056 2010-01-09  Bruno Haible  <bruno@clisp.org>
30057
30058         Tests for module 'getlogin'.
30059         * modules/getlogin-tests: New file.
30060         * tests/test-getlogin.c: New file.
30061
30062         New module 'getlogin'.
30063         * lib/unistd.in.h (getlogin): New declaration.
30064         * lib/getlogin.c: New file.
30065         * m4/getlogin.m4: New file.
30066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30067         HAVE_GETLOGIN.
30068         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30069         HAVE_GETLOGIN.
30070         * modules/getlogin: New file.
30071         * doc/posix-functions/getlogin.texi: Mention the new module.
30072         Reported by John W. Eaton <jwe@gnu.org>.
30073
30074 2010-01-09  Bruno Haible  <bruno@clisp.org>
30075
30076         getlogin_r: Support for native Windows.
30077         * lib/getlogin_r.c: Include <windows.h>
30078         (getlogin_r): Implement for native Windows.
30079         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30080         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30081         via John W. Eaton <jwe@gnu.org>.
30082
30083 2010-01-09  Bruno Haible  <bruno@clisp.org>
30084
30085         getlogin_r: Small fixes.
30086         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30087         succeeds.
30088         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30089         before testing whether getlogin_r is declared. No need to set
30090         HAVE_DECL_GETLOGIN_R to 1.
30091         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30092
30093 2010-01-09  Bruno Haible  <bruno@clisp.org>
30094
30095         * lib/unistd.in.h (getlogin_r): Add comment.
30096
30097 2010-01-09  Bruno Haible  <bruno@clisp.org>
30098
30099         Tests for module 'getlogin_r'.
30100         * modules/getlogin_r-tests: New file.
30101         * tests/test-getlogin_r.c: New file.
30102
30103 2010-01-09  Jim Meyering  <meyering@redhat.com>
30104
30105         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30106         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30107         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30108
30109 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30110
30111         * lib/dup2.c (rpl_dup2): Improve comment.
30112
30113 2010-01-08  Eric Blake  <ebb9@byu.net>
30114
30115         maint.mk: allow packages to add makefile @@ exceptions
30116         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30117         (sc_makefile_check): Rename...
30118         (sc_makefile_at_at_check): ...to this, and use hook.
30119
30120         dup2: work around mingw bug
30121         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30122         Reported by Simon Josefsson.
30123
30124 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30125
30126         glob: Fix C++ compilation.
30127         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30128         C++.
30129
30130 2010-01-07  Bruno Haible  <bruno@clisp.org>
30131
30132         Fix indentation of wctype.in.h, broken since 2007-01-06.
30133         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30134
30135 2010-01-07  Bruno Haible  <bruno@clisp.org>
30136
30137         mbslen: Avoid collision with system function.
30138         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30139         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30140         * m4/mbslen.m4: New file.
30141         * modules/mbslen (Files): Add it.
30142         (configure.ac): Invoke gl_MBSLEN.
30143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30144         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30145         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30146         via Ian Beckwith <ianb@erislabs.net>.
30147
30148 2010-01-07  Bruno Haible  <bruno@clisp.org>
30149
30150         dirent: Document the last fix.
30151         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30152
30153 2010-01-07  Bruno Haible  <bruno@clisp.org>
30154
30155         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30156         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30157         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30158         va_list are defined.
30159         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30160         Reported by Eric Blake.
30161
30162 2010-01-07  Bruno Haible  <bruno@clisp.org>
30163
30164         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30165         * modules/xlist (Depends-on): Add 'list',
30166         * modules/xoset (Depends-on): Add 'oset'.
30167         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30168
30169 2010-01-07  Bruno Haible  <bruno@clisp.org>
30170
30171         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30172         * doc/posix-functions/strncasecmp.texi: Likewise.
30173
30174 2010-01-07  Bruno Haible  <bruno@clisp.org>
30175
30176         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30177
30178 2010-01-07  John W. Eaton  <jwe@octave.org>
30179
30180         wctype: allow C++ use
30181         * lib/wctype.in.h: Add extern "C" block for C++.
30182
30183 2010-01-06  Eric Blake  <ebb9@byu.net>
30184
30185         maint.mk: detect incorrect GFDL usage
30186         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30187
30188 2010-01-06  Jim Meyering  <meyering@redhat.com>
30189         and Eric Blake  <ebb9@byu.net>
30190
30191         maint.mk: ignore multi-line copyright in NEWS
30192         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30193
30194 2010-01-06  Eric Blake  <ebb9@byu.net>
30195
30196         select: add missing dependency
30197         * modules/select-tests (Depends-on): Move sockets dependency...
30198         * modules/select (Depends-on): ...here.
30199         Reported by Ian Beckwith.
30200
30201         doc: regenerate INSTALL
30202         * doc/INSTALL: Reflect recent autoconf update.
30203         * doc/INSTALL.ISO: Likewise.
30204         * doc/INSTALL.UTF-8: Likewise.
30205
30206         pread: fix compilation on glibc
30207         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30208         Reported by Ralf Wildenhues.
30209
30210         dirent: fix test failure
30211         * lib/dirent.in.h (includes): Guarantee ino_t.
30212         Reported by Ralf Wildenhues.
30213
30214 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30215
30216         linkat, renameat: avoid bad free
30217         * lib/at-func2.c (at_func2): Fix typo.
30218         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30219
30220 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30221
30222         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30223         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30224         to avoid failure of symlink test later.
30225
30226 2010-01-06  Eric Blake  <ebb9@byu.net>
30227
30228         stdio, unistd: guarantee ssize_t
30229         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30230         2008 are exposed when needed.
30231         * lib/stdio.in.h (includes): Likewise.
30232         Reported by Ralf Wildenhues.
30233
30234 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30235
30236         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30237         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30238         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30239
30240 2010-01-06  Jim Meyering  <meyering@redhat.com>
30241
30242         readtokens: this module *does* require xalloc.h
30243         It uses only functions that were omitted by the old syntax-check rule.
30244         * lib/readtokens.c: Include "xalloc.h" once again.
30245         * modules/readtokens (Depends-on): Add xalloc.
30246         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30247
30248 2010-01-05  Eric Blake  <ebb9@byu.net>
30249
30250         maint: support 'make announcement' from a VPATH build
30251         * top/maint.mk (announcement): Look for correct NEWS file.
30252
30253 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30254
30255         utimens (fdutimens): ignore a negative FD, per contract
30256         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30257         when we have a valid file descriptor.  Otherwise, using a brand
30258         new glibc (with just-patched futimens that now fails with EBADF)
30259         would cause this function to fail with ENOSYS.
30260         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30261         See also http://bugzilla.redhat.com/552320.
30262
30263 2010-01-05  Eric Blake  <ebb9@byu.net>
30264
30265         strcase: document what it provides
30266         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30267         gnulib module.
30268         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30269         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30270
30271 2010-01-05  Jim Meyering  <meyering@redhat.com>
30272
30273         maint: remove useless inclusions of "xalloc.h"
30274         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30275         * lib/readtokens.c: Likewise.
30276         * lib/same.c: Likewise.
30277         * modules/getloadavg (Depends-on): Remove xalloc.
30278         * modules/readtokens: Likewise.
30279         * modules/same: Likewise.
30280
30281         maint.mk: include 4 more function names in alloca.h-checking regexp
30282         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30283         regexp.  Before, we would give a false-positive (saying alloca.h
30284         is included unnecessarily) when the only uses involved omitted symbols.
30285
30286         xalloc.h: use consistent formatting
30287         * lib/xalloc.h: Move declarations to start in the first column.
30288
30289 2010-01-05  Eric Blake  <ebb9@byu.net>
30290
30291         mkdir: avoid xalloc
30292         * lib/mkdir.c (includes): Drop unused header.
30293         Reported by John W. Eaton.
30294
30295 2010-01-04  Jim Meyering  <meyering@redhat.com>
30296
30297         nl_langinfo: avoid configure-time syntax error
30298         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30299         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30300         the empty string.  Don't let that provoke a shell syntax error.
30301
30302         regcomp, regexec, fnmatch: avoid array bounds read error
30303         * lib/regcomp.c (build_equiv_class): From glibc:
30304         Use only the low 24 bits of a findidx return value as an index
30305         into the weights array.  Patch by Ulrich Drepper:
30306         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30307         * lib/regexec.c (check_node_accept_bytes): Likewise.
30308         * lib/fnmatch_loop.c (FCT): Likewise.
30309
30310         regcomp: skip collseq lookup when there are no rules
30311         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30312         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30313
30314         regcomp: recognize ill-formed { } expressions
30315         * lib/regcomp.c (parse_dup_op): From glibc:
30316         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30317
30318         regcomp: fix typo in comment
30319         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30320         s/satisfy/satisfies/.
30321
30322         regcomp: sync from glibc: remove dead store
30323         * lib/regcomp.c (duplicate_node_closure): Remove useless
30324         search_duplicated_node call and dead store.
30325
30326         regcomp: sync from glibc; always use nl_langinfo
30327         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30328         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30329         * modules/regex (Depends-on): Add nl_langinfo.
30330
30331 2010-01-04  Eric Blake  <ebb9@byu.net>
30332
30333         fdopendir: fix configure test
30334         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30335
30336 2010-01-01  Bruno Haible  <bruno@clisp.org>
30337
30338         wchar: Remove unused configure check.
30339         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30340
30341 2010-01-01  Eric Blake  <ebb9@byu.net>
30342
30343         headers: make check of system header explicit
30344         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30345         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30346         ourselves.
30347         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30349         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30350         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30351         internals.
30352         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30353         missing.
30354         Suggested by Bruno Haible.
30355
30356 2010-01-01  Jim Meyering  <meyering@redhat.com>
30357
30358         ChangeLog: tweak to eliminate unnecessary copyright line
30359         * ChangeLog: Remove a copyright line that was mistakenly updated
30360         by today's update-copyright run.  Reported by Eric Blake.
30361
30362         test-update-copyright: don't let envvar setting cause test failure
30363         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30364
30365 2010-01-01  Bruno Haible  <bruno@clisp.org>
30366
30367         localename: Avoid gcc warning.
30368         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30369         function if it is not used.
30370
30371 2010-01-01  Jim Meyering  <meyering@redhat.com>
30372
30373         update nearly all FSF copyright year lists to include 2010
30374         Use the same procedure as for 2009, outlined in
30375         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30376
30377         version-etc: set COPYRIGHT_YEAR to 2010
30378         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30379
30380 2009-12-31  Eric Blake  <ebb9@byu.net>
30381
30382         doc: correct availability of cygwin 1.5.x getopt
30383         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30384         variables.
30385         * doc/posix-functions/opterr.texi (opterr): Likewise.
30386         * doc/posix-functions/optind.texi (optind): Likewise.
30387         * doc/posix-functions/optopt.texi (optopt): Likewise.
30388         * doc/posix-functions/tzname.texi (tzname): Likewise.
30389
30390         openat: update maintainer
30391         * modules/openat (Maintainer): Add myself.
30392
30393         utimens: avoid shadowing warning
30394         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30395         buffers into one, to avoid shadowing, as well as avoiding a
30396         redundant stat.
30397         Reported by Jim Meyering.
30398
30399         test-dup2: avoid compiler warning
30400         * tests/test-dup2.c (is_inheritable): Only define if used.
30401
30402 2010-01-01  Bruno Haible  <bruno@clisp.org>
30403
30404         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30405         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30406         defined, use wctomb instead of wcrtomb.
30407
30408 2010-01-01  Bruno Haible  <bruno@clisp.org>
30409
30410         iconv: Reject native Solaris iconv.
30411         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30412         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30413
30414 2009-12-31  Bruno Haible  <bruno@clisp.org>
30415
30416         * tests/test-signal.c (main): Remove test of 'SIG'.
30417
30418 2009-12-31  Bruno Haible  <bruno@clisp.org>
30419
30420         spawn: Fix incomplete fix.
30421         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30422         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30423         warnings for GNULIB_POSIXCHECK again.
30424         Reported by Eric Blake.
30425
30426 2009-12-31  Bruno Haible  <bruno@clisp.org>
30427
30428         Avoid namespace pollution on glibc systems.
30429         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30430         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30431         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30432         glibc systems.
30433
30434 2009-12-31  Bruno Haible  <bruno@clisp.org>
30435
30436         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30437         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30438         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30439         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30440         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30441         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30442         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30443
30444 2009-12-31  Bruno Haible  <bruno@clisp.org>
30445
30446         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30447         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30448         afterwards.
30449
30450 2009-12-31  Bruno Haible  <bruno@clisp.org>
30451
30452         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30453         SYS_UTSNAME_H.
30454
30455 2009-12-31  Bruno Haible  <bruno@clisp.org>
30456
30457         spawn: Fix misapplied patch.
30458         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30459         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30460         warnings for GNULIB_POSIXCHECK.
30461
30462 2009-12-31  Bruno Haible  <bruno@clisp.org>
30463
30464         times: Update after sys_times changed.
30465         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30466         * modules/times (Files): Add it.
30467         (configure.ac): Invoke gl_FUNC_TIMES.
30468
30469 2009-12-31  Bruno Haible  <bruno@clisp.org>
30470
30471         Use AC_C_INLINE where necessary.
30472         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30473         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30474         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30475         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30476         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30477         * m4/mbiter.m4 (gl_MBITER): Likewise.
30478         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30479         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30480         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30481         * modules/u64 (configure.ac): Likewise.
30482
30483 2009-12-31  Bruno Haible  <bruno@clisp.org>
30484
30485         Use AC_C_INLINE instead of module 'inline' where possible.
30486         * modules/inline (Description): Clarify purpose.
30487         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30488         * modules/count-one-bits (Depends-on): Remove inline.
30489         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30490         * modules/openat (Depends-on): Remove inline.
30491         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30492         instead of depending on module 'inline'.
30493         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30494         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30495         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30496         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30497         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30498         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30499         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30500         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30501         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30502         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30503         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30504         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30505         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30506         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30507         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30508         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30509         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30510         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30511         Likewise.
30512         * modules/unictype/property-ascii-hex-digit (Depends-on,
30513         configure.ac): Likewise.
30514         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30515         configure.ac): Likewise.
30516         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30517         configure.ac): Likewise.
30518         * modules/unictype/property-bidi-block-separator (Depends-on,
30519         configure.ac): Likewise.
30520         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30521         configure.ac): Likewise.
30522         * modules/unictype/property-bidi-common-separator (Depends-on,
30523         configure.ac): Likewise.
30524         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30525         Likewise.
30526         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30527         configure.ac): Likewise.
30528         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30529         configure.ac): Likewise.
30530         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30531         configure.ac): Likewise.
30532         * modules/unictype/property-bidi-european-digit (Depends-on,
30533         configure.ac): Likewise.
30534         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30535         configure.ac): Likewise.
30536         * modules/unictype/property-bidi-left-to-right (Depends-on,
30537         configure.ac): Likewise.
30538         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30539         configure.ac): Likewise.
30540         * modules/unictype/property-bidi-other-neutral (Depends-on,
30541         configure.ac): Likewise.
30542         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30543         Likewise.
30544         * modules/unictype/property-bidi-segment-separator (Depends-on,
30545         configure.ac): Likewise.
30546         * modules/unictype/property-bidi-whitespace (Depends-on,
30547         configure.ac): Likewise.
30548         * modules/unictype/property-combining (Depends-on, configure.ac):
30549         Likewise.
30550         * modules/unictype/property-composite (Depends-on, configure.ac):
30551         Likewise.
30552         * modules/unictype/property-currency-symbol (Depends-on,
30553         configure.ac): Likewise.
30554         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30555         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30556         Likewise.
30557         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30558         configure.ac): Likewise.
30559         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30560         Likewise.
30561         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30562         Likewise.
30563         * modules/unictype/property-extender (Depends-on, configure.ac):
30564         Likewise.
30565         * modules/unictype/property-format-control (Depends-on, configure.ac):
30566         Likewise.
30567         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30568         Likewise.
30569         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30570         Likewise.
30571         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30572         Likewise.
30573         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30574         Likewise.
30575         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30576         Likewise.
30577         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30578         Likewise.
30579         * modules/unictype/property-id-start (Depends-on, configure.ac):
30580         Likewise.
30581         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30582         Likewise.
30583         * modules/unictype/property-ids-binary-operator (Depends-on,
30584         configure.ac): Likewise.
30585         * modules/unictype/property-ids-trinary-operator (Depends-on,
30586         configure.ac): Likewise.
30587         * modules/unictype/property-ignorable-control (Depends-on,
30588         configure.ac): Likewise.
30589         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30590         Likewise.
30591         * modules/unictype/property-join-control (Depends-on, configure.ac):
30592         Likewise.
30593         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30594         Likewise.
30595         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30596         Likewise.
30597         * modules/unictype/property-logical-order-exception (Depends-on,
30598         configure.ac): Likewise.
30599         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30600         Likewise.
30601         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30602         * modules/unictype/property-non-break (Depends-on, configure.ac):
30603         Likewise.
30604         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30605         Likewise.
30606         * modules/unictype/property-numeric (Depends-on, configure.ac):
30607         Likewise.
30608         * modules/unictype/property-other-alphabetic (Depends-on,
30609         configure.ac): Likewise.
30610         * modules/unictype/property-other-default-ignorable-code-point
30611         (Depends-on, configure.ac): Likewise.
30612         * modules/unictype/property-other-grapheme-extend (Depends-on,
30613         configure.ac): Likewise.
30614         * modules/unictype/property-other-id-continue (Depends-on,
30615         configure.ac): Likewise.
30616         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30617         Likewise.
30618         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30619         Likewise.
30620         * modules/unictype/property-other-math (Depends-on, configure.ac):
30621         Likewise.
30622         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30623         Likewise.
30624         * modules/unictype/property-paired-punctuation (Depends-on,
30625         configure.ac): Likewise.
30626         * modules/unictype/property-paragraph-separator (Depends-on,
30627         configure.ac): Likewise.
30628         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30629         Likewise.
30630         * modules/unictype/property-pattern-white-space (Depends-on,
30631         configure.ac): Likewise.
30632         * modules/unictype/property-private-use (Depends-on, configure.ac):
30633         Likewise.
30634         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30635         Likewise.
30636         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30637         Likewise.
30638         * modules/unictype/property-radical (Depends-on, configure.ac):
30639         Likewise.
30640         * modules/unictype/property-sentence-terminal (Depends-on,
30641         configure.ac): Likewise.
30642         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30643         Likewise.
30644         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30645         * modules/unictype/property-terminal-punctuation (Depends-on,
30646         configure.ac): Likewise.
30647         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30648         Likewise.
30649         * modules/unictype/property-unassigned-code-value (Depends-on,
30650         configure.ac): Likewise.
30651         * modules/unictype/property-unified-ideograph (Depends-on,
30652         configure.ac): Likewise.
30653         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30654         Likewise.
30655         * modules/unictype/property-variation-selector (Depends-on,
30656         configure.ac): Likewise.
30657         * modules/unictype/property-white-space (Depends-on, configure.ac):
30658         Likewise.
30659         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30660         Likewise.
30661         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30662         Likewise.
30663         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30664         Likewise.
30665         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30666         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30667         Likewise.
30668
30669 2009-12-31  Bruno Haible  <bruno@clisp.org>
30670
30671         Remove unnecessary AC_C_INLINE invocation.
30672         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30673         since 2009-08-21.
30674
30675 2009-12-31  Jim Meyering  <meyering@redhat.com>
30676
30677         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30678         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30679         With this change, we can all remove the gpg_key_ID = ... definition
30680         from our respective cfg.mk files.
30681
30682         maint.mk: create announcement template in ~/, not in /tmp
30683         * top/maint.mk (emit_upload_commands): Adjust.
30684         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30685         Remove temporary file, .ci-msg.
30686
30687 2009-12-31  Eric Blake  <ebb9@byu.net>
30688
30689         link-warning: always build headers with link warnings
30690         * modules/arpa_inet (Makefile.am): Always build replacement
30691         header.
30692         * modules/ctype (Makefile.am): Likewise.
30693         * modules/dirent (Makefile.am): Likewise.
30694         * modules/inttypes (Makefile.am): Likewise.
30695         * modules/langinfo (Makefile.am): Likewise.
30696         * modules/locale (Makefile.am): Likewise.
30697         * modules/spawn (Makefile.am): Likewise.
30698         * modules/sys_file (Makefile.am): Likewise.
30699         * modules/sys_ioctl (Makefile.am): Likewise.
30700         * modules/sys_select (Makefile.am): Likewise.
30701         * modules/sys_socket (Makefile.am): Likewise.
30702         * modules/sys_times (Makefile.am): Likewise.
30703         * modules/sys_utsname (Makefile.am): Likewise.
30704         * modules/sys_wait (Makefile.am): Likewise.
30705         * modules/wchar (Makefile.am): Likewise.
30706         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30707         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30708         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30709         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30710         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30711         Likewise.
30712         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30713         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30714         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30715         Likewise.
30716         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30717         Likewise.
30718         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30719         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30720         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30722         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30723         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30724         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30725         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30726         (gl_WCHAR_H_DEFAULTS): Likewise.
30727
30728 2009-12-31  Eric Blake  <ebb9@byu.net>
30729
30730         signal, spawn: use link warnings
30731         * lib/signal.in.h (sigset_t): Make unconditional.
30732         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30733         (sigpending, sigprocmask, sigaction): Add link warnings.
30734         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30735         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30736         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30737         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30738         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30739         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30740         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30741         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30742         (posix_spawn_file_actions_destroy)
30743         (posix_spawn_file_actions_addopen)
30744         (posix_spawn_file_actions_addclose)
30745         (posix_spawn_file_actions_adddup2): Likewise.
30746         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30747         * tests/test-signal.c (main): Enhance test.
30748
30749         spawn: improve wrapper support
30750         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30751         (gl_SPAWN_H_DEFAULTS): New defaults.
30752         * modules/spawn (Makefile.am): Substitute them.
30753         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30754         Only declare if missing or broken.
30755
30756         sys_times, sys_utsname: use include_next
30757         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30758         header.
30759         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30760         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30761         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30762         * modules/sys_times (Depends-on): Add include_next.
30763         (Makefile.am): Substitute additional values.
30764         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30765         * lib/sys_times.in.h (includes): Include native header, if
30766         available.
30767         * lib/sys_utsname.in.h (includes): Likewise.
30768         * tests/test-sys_times.c (main): Enhance test.
30769
30770         fdutimensat: revert prior patch
30771         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30772         utimens.h.
30773         Reported by Bruno Haible.
30774
30775 2009-12-30  Eric Blake  <ebb9@byu.net>
30776
30777         sys_wait: drop link-warning dependency
30778         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30779         link-warning efforts.
30780         * lib/sys_wait.in.h: Likewise.
30781
30782         fdutimensat: remove bogus dependency
30783         * modules/fdutimensat (Depends-on): Drop inline.
30784
30785         unistd: fix typo
30786         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30787
30788 2009-12-30  Bruno Haible  <bruno@clisp.org>
30789
30790         Fix compilation error with Solaris cc.
30791         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30792         * lib/unicase/u16-is-invariant.c: Likewise.
30793         * lib/unicase/u32-is-invariant.c: Likewise.
30794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30795
30796 2009-12-30  Bruno Haible  <bruno@clisp.org>
30797
30798         Fix test crash.
30799         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30800         locales.
30801         Reported by Simon Josefsson <simon@josefsson.org>.
30802
30803 2009-12-30  Bruno Haible  <bruno@clisp.org>
30804
30805         Fix compilation error on most platforms.
30806         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30807         Reported by Simon Josefsson <simon@josefsson.org>
30808         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30809
30810 2009-12-30  Eric Blake  <ebb9@byu.net>
30811
30812         futimens, utimensat: work around ntfs-3g bug
30813         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30814         a ctime bug is present, and expand workaround to cover ntfs-3g.
30815         * lib/utimens.c (fdutimens, lutimens): Likewise.
30816         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30817         (validate_timespec): Adjust return value.
30818         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30819         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30820         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30821
30822 2009-12-29  Eric Blake  <ebb9@byu.net>
30823
30824         link-warning: make usage consistent
30825         * modules/ctype (Depends-on): Add link-warning.
30826         (Makefile.am): Update rules accordingly.
30827         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30828         * modules/locale (Depends-on, Makefile.am): Likewise.
30829         * modules/sys_file (Makefile.am): Likewise.
30830         * modules/getopt-posix (Makefile.am): Delete unused link warning
30831         efforts.
30832         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30833         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30834         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30835         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30836
30837         stdio: remove unused variables
30838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30839         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30840         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30841
30842         tests: test more substitute headers
30843         * modules/ctype-tests: New file.
30844         * modules/dirent-tests: Likewise.
30845         * modules/spawn-tests: Likewise.
30846         * modules/sys_file-tests: Likewise.
30847         * modules/sys_ioctl-tests: Likewise.
30848         * modules/sys_wait-tests: Likewise.
30849         * tests/test-ctype.c: Likewise.
30850         * tests/test-dirent.c: Likewise.
30851         * tests/test-spawn.c: Likewise.
30852         * tests/test-sys_file.c: Likewise.
30853         * tests/test-sys_ioctl.c: Likewise.
30854         * tests/test-sys_wait.c: Likewise.
30855         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30856         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30857         whether or not flock is in use.
30858
30859         tests: remove License section from module
30860         * modules/arpa_inet-tests: Remove unneeded section.
30861         * modules/byteswap-tests: Likewise.
30862         * modules/ceilf-tests: Likewise.
30863         * modules/ceill-tests: Likewise.
30864         * modules/crypto/des-tests: Likewise.
30865         * modules/crypto/gc-arcfour-tests: Likewise.
30866         * modules/crypto/gc-arctwo-tests: Likewise.
30867         * modules/crypto/gc-des-tests: Likewise.
30868         * modules/crypto/gc-hmac-md5-tests: Likewise.
30869         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30870         * modules/crypto/gc-md2-tests: Likewise.
30871         * modules/crypto/gc-md4-tests: Likewise.
30872         * modules/crypto/gc-md5-tests: Likewise.
30873         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30874         * modules/crypto/gc-rijndael-tests: Likewise.
30875         * modules/crypto/gc-sha1-tests: Likewise.
30876         * modules/crypto/gc-tests: Likewise.
30877         * modules/crypto/md2-tests: Likewise.
30878         * modules/crypto/md4-tests: Likewise.
30879         * modules/fcntl-h-tests: Likewise.
30880         * modules/floorf-tests: Likewise.
30881         * modules/floorl-tests: Likewise.
30882         * modules/frexp-nolibm-tests: Likewise.
30883         * modules/frexp-tests: Likewise.
30884         * modules/frexpl-nolibm-tests: Likewise.
30885         * modules/frexpl-tests: Likewise.
30886         * modules/getaddrinfo-tests: Likewise.
30887         * modules/inttypes-tests: Likewise.
30888         * modules/isfinite-tests: Likewise.
30889         * modules/isinf-tests: Likewise.
30890         * modules/ldexpl-tests: Likewise.
30891         * modules/locale-tests: Likewise.
30892         * modules/math-tests: Likewise.
30893         * modules/netdb-tests: Likewise.
30894         * modules/netinet_in-tests: Likewise.
30895         * modules/printf-frexp-tests: Likewise.
30896         * modules/printf-frexpl-tests: Likewise.
30897         * modules/priv-set-tests: Likewise.
30898         * modules/random_r-tests: Likewise.
30899         * modules/round-tests: Likewise.
30900         * modules/roundf-tests: Likewise.
30901         * modules/roundl-tests: Likewise.
30902         * modules/search-tests: Likewise.
30903         * modules/select-tests: Likewise.
30904         * modules/signal-tests: Likewise.
30905         * modules/stdbool-tests: Likewise.
30906         * modules/stddef-tests: Likewise.
30907         * modules/stdint-tests: Likewise.
30908         * modules/stdio-tests: Likewise.
30909         * modules/stdlib-tests: Likewise.
30910         * modules/string-tests: Likewise.
30911         * modules/strings-tests: Likewise.
30912         * modules/sys_select-tests: Likewise.
30913         * modules/sys_socket-tests: Likewise.
30914         * modules/sys_stat-tests: Likewise.
30915         * modules/sys_time-tests: Likewise.
30916         * modules/sys_utsname-tests: Likewise.
30917         * modules/sysexits-tests: Likewise.
30918         * modules/time-tests: Likewise.
30919         * modules/trunc-tests: Likewise.
30920         * modules/truncf-tests: Likewise.
30921         * modules/truncl-tests: Likewise.
30922         * modules/tsearch-tests: Likewise.
30923         * modules/unistd-tests: Likewise.
30924         * modules/wchar-tests: Likewise.
30925         * modules/wctype-tests: Likewise.
30926
30927         tests: fix license on several tests
30928         * tests/test-des.c: Update to GPLv3+.
30929         * tests/test-flock.c: Likewise.
30930         * tests/test-fsync.c: Likewise.
30931         * tests/test-futimens.h: Likewise.
30932         * tests/test-gc-arcfour.c: Likewise.
30933         * tests/test-gc-arctwo.c: Likewise.
30934         * tests/test-gc-des.c: Likewise.
30935         * tests/test-gc-hmac-md5.c: Likewise.
30936         * tests/test-gc-hmac-sha1.c: Likewise.
30937         * tests/test-gc-md2.c: Likewise.
30938         * tests/test-gc-md4.c: Likewise.
30939         * tests/test-gc-md5.c: Likewise.
30940         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30941         * tests/test-gc-rijndael.c: Likewise.
30942         * tests/test-gc-sha1.c: Likewise.
30943         * tests/test-gc.c: Likewise.
30944         * tests/test-getcwd.c: Likewise.
30945         * tests/test-link.c: Likewise.
30946         * tests/test-link.h: Likewise.
30947         * tests/test-lutimens.h: Likewise.
30948         * tests/test-md2.c: Likewise.
30949         * tests/test-md4.c: Likewise.
30950         * tests/test-mkdir.h: Likewise.
30951         * tests/test-rename.c: Likewise.
30952         * tests/test-rename.h: Likewise.
30953         * tests/test-safe-alloc.c: Likewise.
30954         * tests/test-utimens-common.h: Likewise.
30955         * tests/test-utimens.h: Likewise.
30956
30957         maint: sync license texts
30958         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30959         * doc/gpl-3.0.texi: Revert copyright year update.
30960         * doc/lgpl-3.0.texi: Likewise.
30961
30962 2009-12-29  Jim Meyering  <meyering@redhat.com>
30963
30964         update nearly all FSF copyright year lists to include 2009
30965         The files named by the following are exempted:
30966             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30967               test -f "$dst" && { echo "$dst"; continue; }
30968               test -d "$dst" || continue
30969               echo "$dst"/$(basename "$src")
30970             done > exempt
30971             git ls-files tests/unictype >> exempt
30972         In the remaining files, convert to all-interval notation if
30973         - there is already at least one year interval like 2000-2003
30974         - the file is maintained by me
30975         - the file is in lib/uni*/, where that style already prevails
30976         Otherwise, use update-copyright's default.
30977
30978 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30979         and Eric Blake  <ebb9@byu.net>
30980
30981         tests: don't require debug system() to pass
30982         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30983         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30984         * tests/test-unlink.h (test_unlink_func): Likewise.
30985         * tests/test-fstatat.c (main): ...into callers.
30986         * tests/test-lstat.c (main): Likewise.
30987         * tests/test-rmdir.c (main): Likewise.
30988         * tests/test-unlink.c (main): Likewise.
30989         * tests/test-unlinkat.c (main): Likewise.
30990         * tests/test-areadlink-with-size.c (main): Don't require a
30991         debug-only system call to pass, aiding cross-testing to mingw.
30992         * tests/test-areadlink.c (main): Likewise.
30993         * tests/test-areadlinkat-with-size.c (main): Likewise.
30994         * tests/test-areadlinkat.c (main): Likewise.
30995         * tests/test-canonicalize-lgpl.c (main): Likewise.
30996         * tests/test-canonicalize.c (main): Likewise.
30997         * tests/test-chown.c (main): Likewise.
30998         * tests/test-fchownat.c (main): Likewise.
30999         * tests/test-lchown.c (main): Likewise.
31000         * tests/test-fdutimensat.c (main): Likewise.
31001         * tests/test-futimens.c (main): Likewise.
31002         * tests/test-link.c (main): Likewise.
31003         * tests/test-linkat.c (main): Likewise.
31004         * tests/test-mkdir.c (main): Likewise.
31005         * tests/test-mkdirat.c (main): Likewise.
31006         * tests/test-mkfifo.c (main): Likewise.
31007         * tests/test-mkfifoat.c (main): Likewise.
31008         * tests/test-mknod.c (main): Likewise.
31009         * tests/test-readlink.c (main): Likewise.
31010         * tests/test-remove.c (main): Likewise.
31011         * tests/test-rename.c (main): Likewise.
31012         * tests/test-renameat.c (main): Likewise.
31013         * tests/test-symlink.c (main): Likewise.
31014         * tests/test-symlinkat.c (main): Likewise.
31015         * tests/test-utimens.c (main): Likewise.
31016         * tests/test-utimensat.c (main): Likewise.
31017
31018 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31019
31020         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31021         on $(UNUSED_PARAMETER_H) to avoid build failure.
31022
31023 2009-12-28  Jim Meyering  <meyering@redhat.com>
31024
31025         update-copyright: you may specify a max. line length other than 72
31026         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31027
31028         maint: use consistent FSF copyright line syntax
31029         * lib/posixtm.c: Add missing comma in FSF copyright line.
31030         * lib/posixtm.h: Likewise.
31031         * lib/getugroups.c: Add missing ", Inc.".
31032
31033         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31034         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31035         FSF copyright line.  Remove trailing blanks.
31036
31037 2009-12-28  Eric Blake  <ebb9@byu.net>
31038
31039         test-dup2: reduce dependencies
31040         * modules/cloexec (Configure.ac): Set witness.
31041         * modules/dup2-tests (Depends-on): Drop cloexec.
31042         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31043         not present.
31044         Suggested by Bruno Haible.
31045
31046 2009-12-26  Bruno Haible  <bruno@clisp.org>
31047
31048         Remove an unneeded dependency.
31049         * modules/fseterr (Depends-on): Remove dup2.
31050
31051 2009-12-26  Eric Blake  <ebb9@byu.net>
31052
31053         tests: use macros.h in more places
31054         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31055         (ASSERT_STREAM): Provide default of stderr.
31056         * tests/test-dirent-safer.c: Include macros.h, using alternate
31057         stream for assertions.
31058         * tests/test-dup-safer.c: Likewise.
31059         * tests/test-freopen-safer.c: Likewise.
31060         * tests/test-getopt.c: Likewise.
31061         * tests/test-openat-safer.c: Likewise.
31062         * tests/test-pipe.c: Likewise.
31063         * tests/test-popen-safer.c: Likewise.
31064         * modules/dirent-safer-tests (Files): Include macros.h.
31065         * modules/unistd-safer-tests (Files): Likewise.
31066         * modules/freopen-safer-tests (Files): Likewise.
31067         * modules/getopt-posix-tests (Files): Likewise.
31068         * modules/openat-safer-tests (Files): Likewise.
31069         * modules/pipe-tests (Files): Likewise.
31070
31071 2009-12-26  Bruno Haible  <bruno@clisp.org>
31072
31073         javacomp: Portability fix.
31074         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31075         that it also works on Solaris.
31076
31077 2009-12-26  Bruno Haible  <bruno@clisp.org>
31078
31079         localename: Fix storage allocation of gl_locale_name_thread's result.
31080         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31081         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31082         all platforms that have 'uselocale'.
31083         (gl_locale_name_thread_unsafe): New function, extracted from
31084         gl_locale_name_thread.
31085         (gl_locale_name_thread): Call struniq on all platforms that have
31086         'uselocale'.
31087         * tests/test-localename.c (test_locale_name_thread): Check that the
31088         resulting strings are permanently allocated.
31089         * modules/localename-tests (Depends-on): Add strdup.
31090
31091 2009-12-26  Bruno Haible  <bruno@clisp.org>
31092
31093         * tests/test-localename.c (categories): Fill in the strings.
31094
31095 2009-12-26  Jim Meyering  <meyering@redhat.com>
31096
31097         isdir: complete the removal of m4/isdir.m4
31098         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31099
31100         isdir: clean up, since at least grep still uses it
31101         * lib/isdir.c: Include "isdir.h".
31102         (S_ISDIR): Remove now-unneeded definition.
31103         * modules/isdir (Files): Add lib/isdir.h.
31104         * lib/isdir.h: New file, with declaration.
31105         * m4/isdir.m4: Remove file -- unneeded.
31106
31107 2009-12-25  Bruno Haible  <bruno@clisp.org>
31108
31109         selinux-h: Make generated .h files standalone.
31110         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31111         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31112         * lib/se-selinux.in.h: Likewise.
31113         * modules/selinux-h (Depends-on): Add unused-parameter.
31114         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31115         selinux/selinux.h and selinux/context.h.
31116         Suggested by Eric Blake.
31117
31118 2009-12-25  Bruno Haible  <bruno@clisp.org>
31119
31120         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31121         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31122         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31123         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31124         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31125
31126 2009-12-24  Bruno Haible  <bruno@clisp.org>
31127
31128         openat: Fix warning.
31129         * lib/openat-proc.c: Include <unistd.h>.
31130
31131 2009-12-24  Bruno Haible  <bruno@clisp.org>
31132
31133         New module 'unused-parameter'.
31134         * build-aux/unused-parameter.h: New file, extracted from earlier
31135         gnulib-common.m4.
31136         * modules/unused-parameter: New file.
31137         * lib/unistr.h: Include unused-parameter.h.
31138         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31139         _GL_UNUSED.
31140         * modules/unistr/base (Depends-on): Add unused-parameter.
31141
31142 2009-12-24  Bruno Haible  <bruno@clisp.org>
31143
31144         Add missing dependencies to 'extensions' module.
31145         * m4/extensions.m4: Add comment.
31146         * modules/accept4 (Depends-on): Add extensions.
31147         * modules/dup3 (Depends-on): Likewise.
31148         * modules/fcntl (Depends-on): Likewise.
31149         * modules/futimens (Depends-on): Likewise.
31150         * modules/mknod (Depends-on): Likewise.
31151         * modules/pipe2 (Depends-on): Likewise.
31152         * modules/stat-time (Depends-on): Likewise.
31153         * modules/strcasestr-simple (Depends-on): Likewise.
31154         * modules/strsignal (Depends-on): Likewise.
31155         * modules/utimensat (Depends-on): Likewise.
31156         * modules/localcharset (Depends-on): Likewise. Needed because of
31157         gl_FCNTL_O_FLAGS.
31158         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31159         AC_TYPE_MBSTATE_T.
31160         * modules/wcsnrtombs (Depends-on): Likewise.
31161         * modules/wcsrtombs (Depends-on): Likewise.
31162
31163 2009-12-24  Bruno Haible  <bruno@clisp.org>
31164
31165         binary-io: Avoid gcc warning due to SET_BINARY.
31166         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31167         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31168
31169 2009-12-24  Bruno Haible  <bruno@clisp.org>
31170
31171         Avoid future namespace pollution on glibc systems.
31172         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31173         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31174         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31175         glibc systems.
31176
31177 2009-12-24  Bruno Haible  <bruno@clisp.org>
31178
31179         Refactor common macros used in tests.
31180         * tests/macros.h: New file.
31181         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31182         and/or <stdlib.h>, if appropriate.
31183         (ASSERT, SIZEOF): Remove macros.
31184         * tests/test-areadlink-with-size.c: Likewise.
31185         * tests/test-areadlinkat.c: Likewise.
31186         * tests/test-areadlinkat-with-size.c: Likewise.
31187         * tests/test-argmatch.c: Likewise.
31188         * tests/test-argv-iter.c: Likewise.
31189         * tests/test-array-mergesort.c: Likewise.
31190         * tests/test-array_list.c: Likewise.
31191         * tests/test-array_oset.c: Likewise.
31192         * tests/test-avltree_list.c: Likewise.
31193         * tests/test-avltree_oset.c: Likewise.
31194         * tests/test-avltreehash_list.c: Likewise.
31195         * tests/test-base64.c: Likewise.
31196         * tests/test-binary-io.c: Likewise.
31197         * tests/test-bitrotate.c: Likewise.
31198         * tests/test-btowc.c: Likewise.
31199         * tests/test-byteswap.c: Likewise.
31200         * tests/test-c-ctype.c: Likewise.
31201         * tests/test-c-stack.c: Likewise.
31202         * tests/test-c-strcasecmp.c: Likewise.
31203         * tests/test-c-strcasestr.c: Likewise.
31204         * tests/test-c-strncasecmp.c: Likewise.
31205         * tests/test-c-strstr.c: Likewise.
31206         * tests/test-canonicalize-lgpl.c: Likewise.
31207         * tests/test-canonicalize.c: Likewise.
31208         * tests/test-carray_list.c: Likewise.
31209         * tests/test-ceilf1.c: Likewise.
31210         * tests/test-ceilf2.c: Likewise.
31211         * tests/test-ceill.c: Likewise.
31212         * tests/test-chown.c: Likewise.
31213         * tests/test-cloexec.c: Likewise.
31214         * tests/test-copy-acl.c: Likewise.
31215         * tests/test-copy-file.c: Likewise.
31216         * tests/test-count-one-bits.c: Likewise.
31217         * tests/test-dprintf-posix.c: Likewise.
31218         * tests/test-dup2.c: Likewise.
31219         * tests/test-dup3.c: Likewise.
31220         * tests/test-duplocale.c: Likewise.
31221         * tests/test-fbufmode.c: Likewise.
31222         * tests/test-fchdir.c: Likewise.
31223         * tests/test-fchownat.c: Likewise.
31224         * tests/test-fcntl-safer.c: Likewise.
31225         * tests/test-fcntl.c: Likewise.
31226         * tests/test-fdopendir.c: Likewise.
31227         * tests/test-fdutimensat.c: Likewise.
31228         * tests/test-fflush2.c: Likewise.
31229         * tests/test-file-has-acl.c: Likewise.
31230         * tests/test-filevercmp.c: Likewise.
31231         * tests/test-flock.c: Likewise.
31232         * tests/test-floorf1.c: Likewise.
31233         * tests/test-floorf2.c: Likewise.
31234         * tests/test-floorl.c: Likewise.
31235         * tests/test-fnmatch.c: Likewise.
31236         * tests/test-fopen.h: Likewise.
31237         * tests/test-fpending.c: Likewise.
31238         * tests/test-fprintf-posix.c: Likewise.
31239         * tests/test-fpurge.c: Likewise.
31240         * tests/test-freadable.c: Likewise.
31241         * tests/test-freadahead.c: Likewise.
31242         * tests/test-freading.c: Likewise.
31243         * tests/test-freadptr.c: Likewise.
31244         * tests/test-freadptr2.c: Likewise.
31245         * tests/test-freadseek.c: Likewise.
31246         * tests/test-freopen.c: Likewise.
31247         * tests/test-frexp.c: Likewise.
31248         * tests/test-frexpl.c: Likewise.
31249         * tests/test-fseek.c: Likewise.
31250         * tests/test-fseeko.c: Likewise.
31251         * tests/test-fstatat.c: Likewise.
31252         * tests/test-fstrcmp.c: Likewise.
31253         * tests/test-fsync.c: Likewise.
31254         * tests/test-ftell.c: Likewise.
31255         * tests/test-ftello.c: Likewise.
31256         * tests/test-func.c: Likewise.
31257         * tests/test-futimens.c: Likewise.
31258         * tests/test-fwritable.c: Likewise.
31259         * tests/test-fwriting.c: Likewise.
31260         * tests/test-getcwd.c: Likewise.
31261         * tests/test-getdate.c: Likewise.
31262         * tests/test-getdelim.c: Likewise.
31263         * tests/test-getdtablesize.c: Likewise.
31264         * tests/test-getgroups.c: Likewise.
31265         * tests/test-getline.c: Likewise.
31266         * tests/test-getndelim2.c: Likewise.
31267         * tests/test-glob.c: Likewise.
31268         * tests/test-hash.c: Likewise.
31269         * tests/test-i-ring.c: Likewise.
31270         * tests/test-iconv-utf.c: Likewise.
31271         * tests/test-iconv.c: Likewise.
31272         * tests/test-idpriv-drop.c: Likewise.
31273         * tests/test-idpriv-droptemp.c: Likewise.
31274         * tests/test-inet_ntop.c: Likewise.
31275         * tests/test-inet_pton.c: Likewise.
31276         * tests/test-isblank.c: Likewise.
31277         * tests/test-isfinite.c: Likewise.
31278         * tests/test-isinf.c: Likewise.
31279         * tests/test-isnan.c: Likewise.
31280         * tests/test-isnand.h: Likewise.
31281         * tests/test-isnanf.h: Likewise.
31282         * tests/test-isnanl.h: Likewise.
31283         * tests/test-lchown.c: Likewise.
31284         * tests/test-ldexpl.c: Likewise.
31285         * tests/test-link.c: Likewise.
31286         * tests/test-linkat.c: Likewise.
31287         * tests/test-linked_list.c: Likewise.
31288         * tests/test-linkedhash_list.c: Likewise.
31289         * tests/test-localename.c: Likewise.
31290         * tests/test-lseek.c: Likewise.
31291         * tests/test-lstat.c: Likewise.
31292         * tests/test-mbmemcasecmp.c: Likewise.
31293         * tests/test-mbmemcasecoll.c: Likewise.
31294         * tests/test-mbrtowc.c: Likewise.
31295         * tests/test-mbscasecmp.c: Likewise.
31296         * tests/test-mbscasestr1.c: Likewise.
31297         * tests/test-mbscasestr2.c: Likewise.
31298         * tests/test-mbscasestr3.c: Likewise.
31299         * tests/test-mbscasestr4.c: Likewise.
31300         * tests/test-mbschr.c: Likewise.
31301         * tests/test-mbscspn.c: Likewise.
31302         * tests/test-mbsinit.c: Likewise.
31303         * tests/test-mbsncasecmp.c: Likewise.
31304         * tests/test-mbsnrtowcs.c: Likewise.
31305         * tests/test-mbspbrk.c: Likewise.
31306         * tests/test-mbspcasecmp.c: Likewise.
31307         * tests/test-mbsrchr.c: Likewise.
31308         * tests/test-mbsrtowcs.c: Likewise.
31309         * tests/test-mbsspn.c: Likewise.
31310         * tests/test-mbsstr1.c: Likewise.
31311         * tests/test-mbsstr2.c: Likewise.
31312         * tests/test-mbsstr3.c: Likewise.
31313         * tests/test-memchr.c: Likewise.
31314         * tests/test-memchr2.c: Likewise.
31315         * tests/test-memcmp.c: Likewise.
31316         * tests/test-memmem.c: Likewise.
31317         * tests/test-memrchr.c: Likewise.
31318         * tests/test-mkdir.c: Likewise.
31319         * tests/test-mkdirat.c: Likewise.
31320         * tests/test-mkfifo.c: Likewise.
31321         * tests/test-mkfifoat.c: Likewise.
31322         * tests/test-mknod.c: Likewise.
31323         * tests/test-nanosleep.c: Likewise.
31324         * tests/test-nl_langinfo.c: Likewise.
31325         * tests/test-obstack-printf.c: Likewise.
31326         * tests/test-open.c: Likewise.
31327         * tests/test-openat.c: Likewise.
31328         * tests/test-pipe-filter-gi1.c: Likewise.
31329         * tests/test-pipe-filter-gi2-main.c: Likewise.
31330         * tests/test-pipe-filter-ii1.c: Likewise.
31331         * tests/test-pipe-filter-ii2-main.c: Likewise.
31332         * tests/test-pipe2.c: Likewise.
31333         * tests/test-popen.h: Likewise.
31334         * tests/test-posixtm.c: Likewise.
31335         * tests/test-pread.c: Likewise.
31336         * tests/test-printf-frexp.c: Likewise.
31337         * tests/test-printf-frexpl.c: Likewise.
31338         * tests/test-printf-posix.c: Likewise.
31339         * tests/test-priv-set.c: Likewise.
31340         * tests/test-quotearg.c: Likewise.
31341         * tests/test-random_r.c: Likewise.
31342         * tests/test-rawmemchr.c: Likewise.
31343         * tests/test-rbtree_list.c: Likewise.
31344         * tests/test-rbtree_oset.c: Likewise.
31345         * tests/test-rbtreehash_list.c: Likewise.
31346         * tests/test-readlink.c: Likewise.
31347         * tests/test-remove.c: Likewise.
31348         * tests/test-rename.c: Likewise.
31349         * tests/test-renameat.c: Likewise.
31350         * tests/test-rmdir.c: Likewise.
31351         * tests/test-round1.c: Likewise.
31352         * tests/test-roundf1.c: Likewise.
31353         * tests/test-roundl.c: Likewise.
31354         * tests/test-safe-alloc.c: Likewise.
31355         * tests/test-sameacls.c: Likewise.
31356         * tests/test-set-mode-acl.c: Likewise.
31357         * tests/test-setenv.c: Likewise.
31358         * tests/test-sigaction.c: Likewise.
31359         * tests/test-signbit.c: Likewise.
31360         * tests/test-sleep.c: Likewise.
31361         * tests/test-snprintf-posix.c: Likewise.
31362         * tests/test-snprintf.c: Likewise.
31363         * tests/test-sprintf-posix.c: Likewise.
31364         * tests/test-stat-time.c: Likewise.
31365         * tests/test-stat.c: Likewise.
31366         * tests/test-strcasestr.c: Likewise.
31367         * tests/test-strchrnul.c: Likewise.
31368         * tests/test-strerror.c: Likewise.
31369         * tests/test-striconv.c: Likewise.
31370         * tests/test-striconveh.c: Likewise.
31371         * tests/test-striconveha.c: Likewise.
31372         * tests/test-strsignal.c: Likewise.
31373         * tests/test-strstr.c: Likewise.
31374         * tests/test-strtod.c: Likewise.
31375         * tests/test-strverscmp.c: Likewise.
31376         * tests/test-symlink.c: Likewise.
31377         * tests/test-symlinkat.c: Likewise.
31378         * tests/test-trunc1.c: Likewise.
31379         * tests/test-trunc2.c: Likewise.
31380         * tests/test-truncf1.c: Likewise.
31381         * tests/test-truncf2.c: Likewise.
31382         * tests/test-truncl.c: Likewise.
31383         * tests/test-uname.c: Likewise.
31384         * tests/test-unlink.c: Likewise.
31385         * tests/test-unlinkat.c: Likewise.
31386         * tests/test-unsetenv.c: Likewise.
31387         * tests/test-usleep.c: Likewise.
31388         * tests/test-utimens.c: Likewise.
31389         * tests/test-utimensat.c: Likewise.
31390         * tests/test-vasnprintf-posix.c: Likewise.
31391         * tests/test-vasnprintf-posix2.c: Likewise.
31392         * tests/test-vasnprintf.c: Likewise.
31393         * tests/test-vasprintf-posix.c: Likewise.
31394         * tests/test-vasprintf.c: Likewise.
31395         * tests/test-vdprintf-posix.c: Likewise.
31396         * tests/test-vfprintf-posix.c: Likewise.
31397         * tests/test-vprintf-posix.c: Likewise.
31398         * tests/test-vsnprintf-posix.c: Likewise.
31399         * tests/test-vsnprintf.c: Likewise.
31400         * tests/test-vsprintf-posix.c: Likewise.
31401         * tests/test-wcrtomb.c: Likewise.
31402         * tests/test-wcsnrtombs.c: Likewise.
31403         * tests/test-wcsrtombs.c: Likewise.
31404         * tests/test-wctype.c: Likewise.
31405         * tests/test-wcwidth.c: Likewise.
31406         * tests/test-xfprintf-posix.c: Likewise.
31407         * tests/test-xmemdup0.c: Likewise.
31408         * tests/test-xprintf-posix.c: Likewise.
31409         * tests/test-xvasprintf.c: Likewise.
31410         * tests/unicase/test-locale-language.c: Likewise.
31411         * tests/unicase/test-mapping-part1.h: Likewise.
31412         * tests/unicase/test-predicate-part1.h: Likewise.
31413         * tests/unicase/test-u8-casecmp.c: Likewise.
31414         * tests/unicase/test-u8-casecoll.c: Likewise.
31415         * tests/unicase/test-u8-casefold.c: Likewise.
31416         * tests/unicase/test-u8-is-cased.c: Likewise.
31417         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31418         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31419         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31420         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31421         * tests/unicase/test-u8-tolower.c: Likewise.
31422         * tests/unicase/test-u8-totitle.c: Likewise.
31423         * tests/unicase/test-u8-toupper.c: Likewise.
31424         * tests/unicase/test-u16-casecmp.c: Likewise.
31425         * tests/unicase/test-u16-casecoll.c: Likewise.
31426         * tests/unicase/test-u16-casefold.c: Likewise.
31427         * tests/unicase/test-u16-is-cased.c: Likewise.
31428         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31429         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31430         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31431         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31432         * tests/unicase/test-u16-tolower.c: Likewise.
31433         * tests/unicase/test-u16-totitle.c: Likewise.
31434         * tests/unicase/test-u16-toupper.c: Likewise.
31435         * tests/unicase/test-u32-casecmp.c: Likewise.
31436         * tests/unicase/test-u32-casecoll.c: Likewise.
31437         * tests/unicase/test-u32-casefold.c: Likewise.
31438         * tests/unicase/test-u32-is-cased.c: Likewise.
31439         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31440         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31441         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31442         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31443         * tests/unicase/test-u32-tolower.c: Likewise.
31444         * tests/unicase/test-u32-totitle.c: Likewise.
31445         * tests/unicase/test-u32-toupper.c: Likewise.
31446         * tests/unicase/test-ulc-casecmp.c: Likewise.
31447         * tests/unicase/test-ulc-casecoll.c: Likewise.
31448         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31449         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31450         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31451         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31452         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31453         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31454         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31455         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31456         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31457         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31458         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31459         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31460         * tests/unictype/test-bidi_byname.c: Likewise.
31461         * tests/unictype/test-bidi_name.c: Likewise.
31462         * tests/unictype/test-bidi_of.c: Likewise.
31463         * tests/unictype/test-bidi_test.c: Likewise.
31464         * tests/unictype/test-block_list.c: Likewise.
31465         * tests/unictype/test-block_of.c: Likewise.
31466         * tests/unictype/test-block_test.c: Likewise.
31467         * tests/unictype/test-categ_and.c: Likewise.
31468         * tests/unictype/test-categ_and_not.c: Likewise.
31469         * tests/unictype/test-categ_byname.c: Likewise.
31470         * tests/unictype/test-categ_name.c: Likewise.
31471         * tests/unictype/test-categ_none.c: Likewise.
31472         * tests/unictype/test-categ_of.c: Likewise.
31473         * tests/unictype/test-categ_or.c: Likewise.
31474         * tests/unictype/test-categ_test_withtable.c: Likewise.
31475         * tests/unictype/test-combining.c: Likewise.
31476         * tests/unictype/test-decdigit.c: Likewise.
31477         * tests/unictype/test-digit.c: Likewise.
31478         * tests/unictype/test-mirror.c: Likewise.
31479         * tests/unictype/test-numeric.c: Likewise.
31480         * tests/unictype/test-pr_byname.c: Likewise.
31481         * tests/unictype/test-pr_test.c: Likewise.
31482         * tests/unictype/test-predicate-part1.h: Likewise.
31483         * tests/unictype/test-scripts.c: Likewise.
31484         * tests/unictype/test-sy_c_ident.c: Likewise.
31485         * tests/unictype/test-sy_java_ident.c: Likewise.
31486         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31487         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31488         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31489         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31490         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31491         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31492         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31493         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31494         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31495         * tests/uninorm/test-compat-decomposition.c: Likewise.
31496         * tests/uninorm/test-composition.c: Likewise.
31497         * tests/uninorm/test-decomposing-form.c: Likewise.
31498         * tests/uninorm/test-decomposition.c: Likewise.
31499         * tests/uninorm/test-u8-nfc.c: Likewise.
31500         * tests/uninorm/test-u8-nfd.c: Likewise.
31501         * tests/uninorm/test-u8-nfkc.c: Likewise.
31502         * tests/uninorm/test-u8-nfkd.c: Likewise.
31503         * tests/uninorm/test-u8-normcmp.c: Likewise.
31504         * tests/uninorm/test-u8-normcoll.c: Likewise.
31505         * tests/uninorm/test-u16-nfc.c: Likewise.
31506         * tests/uninorm/test-u16-nfd.c: Likewise.
31507         * tests/uninorm/test-u16-nfkc.c: Likewise.
31508         * tests/uninorm/test-u16-nfkd.c: Likewise.
31509         * tests/uninorm/test-u16-normcmp.c: Likewise.
31510         * tests/uninorm/test-u16-normcoll.c: Likewise.
31511         * tests/uninorm/test-u32-nfc.c: Likewise.
31512         * tests/uninorm/test-u32-nfd.c: Likewise.
31513         * tests/uninorm/test-u32-nfkc.c: Likewise.
31514         * tests/uninorm/test-u32-nfkd.c: Likewise.
31515         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31516         * tests/uninorm/test-u32-normcmp.c: Likewise.
31517         * tests/uninorm/test-u32-normcoll.c: Likewise.
31518         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31519         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31520         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31521         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31522         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31523         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31524         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31525         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31526         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31527         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31528         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31529         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31530         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31531         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31532         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31533         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31534         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31535         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31536         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31537         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31538         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31539         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31540         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31541         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31542         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31543         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31544         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31545         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31546         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31547         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31548         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31549         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31550         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31551         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31552         * tests/uniwidth/test-u8-width.c: Likewise.
31553         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31554         * tests/uniwidth/test-u16-width.c: Likewise.
31555         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31556         * tests/uniwidth/test-u32-width.c: Likewise.
31557         * tests/uniwidth/test-uc_width.c: Likewise.
31558         * tests/uniwidth/test-uc_width2.c: Likewise.
31559         * modules/acl-tests (Files): Add tests/macros.h.
31560         * modules/areadlink-tests (Files): Likewise.
31561         * modules/areadlink-with-size-tests (Files): Likewise.
31562         * modules/areadlinkat-tests (Files): Likewise.
31563         * modules/areadlinkat-with-size-tests (Files): Likewise.
31564         * modules/argmatch-tests (Files): Likewise.
31565         * modules/argv-iter-tests (Files): Likewise.
31566         * modules/array-list-tests (Files): Likewise.
31567         * modules/array-mergesort-tests (Files): Likewise.
31568         * modules/array-oset-tests (Files): Likewise.
31569         * modules/avltree-list-tests (Files): Likewise.
31570         * modules/avltree-oset-tests (Files): Likewise.
31571         * modules/avltreehash-list-tests (Files): Likewise.
31572         * modules/base64-tests (Files): Likewise.
31573         * modules/binary-io-tests (Files): Likewise.
31574         * modules/bitrotate-tests (Files): Likewise.
31575         * modules/btowc-tests (Files): Likewise.
31576         * modules/byteswap-tests (Files): Likewise.
31577         * modules/c-ctype-tests (Files): Likewise.
31578         * modules/c-stack-tests (Files): Likewise.
31579         * modules/c-strcase-tests (Files): Likewise.
31580         * modules/c-strcasestr-tests (Files): Likewise.
31581         * modules/c-strstr-tests (Files): Likewise.
31582         * modules/canonicalize-lgpl-tests (Files): Likewise.
31583         * modules/canonicalize-tests (Files): Likewise.
31584         * modules/carray-list-tests (Files): Likewise.
31585         * modules/ceilf-tests (Files): Likewise.
31586         * modules/ceill-tests (Files): Likewise.
31587         * modules/chown-tests (Files): Likewise.
31588         * modules/cloexec-tests (Files): Likewise.
31589         * modules/copy-file-tests (Files): Likewise.
31590         * modules/count-one-bits-tests (Files): Likewise.
31591         * modules/dprintf-posix-tests (Files): Likewise.
31592         * modules/dup2-tests (Files): Likewise.
31593         * modules/dup3-tests (Files): Likewise.
31594         * modules/duplocale-tests (Files): Likewise.
31595         * modules/fbufmode-tests (Files): Likewise.
31596         * modules/fchdir-tests (Files): Likewise.
31597         * modules/fcntl-safer-tests (Files): Likewise.
31598         * modules/fcntl-tests (Files): Likewise.
31599         * modules/fdopendir-tests (Files): Likewise.
31600         * modules/fdutimensat-tests (Files): Likewise.
31601         * modules/fflush-tests (Files): Likewise.
31602         * modules/filevercmp-tests (Files): Likewise.
31603         * modules/flock-tests (Files): Likewise.
31604         * modules/floorf-tests (Files): Likewise.
31605         * modules/floorl-tests (Files): Likewise.
31606         * modules/fnmatch-tests (Files): Likewise.
31607         * modules/fopen-safer-tests (Files): Likewise.
31608         * modules/fopen-tests (Files): Likewise.
31609         * modules/fpending-tests (Files): Likewise.
31610         * modules/fprintf-posix-tests (Files): Likewise.
31611         * modules/fpurge-tests (Files): Likewise.
31612         * modules/freadable-tests (Files): Likewise.
31613         * modules/freadahead-tests (Files): Likewise.
31614         * modules/freading-tests (Files): Likewise.
31615         * modules/freadptr-tests (Files): Likewise.
31616         * modules/freadseek-tests (Files): Likewise.
31617         * modules/freopen-tests (Files): Likewise.
31618         * modules/frexp-nolibm-tests (Files): Likewise.
31619         * modules/frexp-tests (Files): Likewise.
31620         * modules/frexpl-nolibm-tests (Files): Likewise.
31621         * modules/frexpl-tests (Files): Likewise.
31622         * modules/fseek-tests (Files): Likewise.
31623         * modules/fseeko-tests (Files): Likewise.
31624         * modules/fstrcmp-tests (Files): Likewise.
31625         * modules/fsync-tests (Files): Likewise.
31626         * modules/ftell-tests (Files): Likewise.
31627         * modules/ftello-tests (Files): Likewise.
31628         * modules/func-tests (Files): Likewise.
31629         * modules/futimens-tests (Files): Likewise.
31630         * modules/fwritable-tests (Files): Likewise.
31631         * modules/fwriting-tests (Files): Likewise.
31632         * modules/getcwd-tests (Files): Likewise.
31633         * modules/getdate-tests (Files): Likewise.
31634         * modules/getdelim-tests (Files): Likewise.
31635         * modules/getdtablesize-tests (Files): Likewise.
31636         * modules/getgroups-tests (Files): Likewise.
31637         * modules/getline-tests (Files): Likewise.
31638         * modules/getndelim2-tests (Files): Likewise.
31639         * modules/glob-tests (Files): Likewise.
31640         * modules/hash-tests (Files): Likewise.
31641         * modules/i-ring-tests (Files): Likewise.
31642         * modules/iconv-tests (Files): Likewise.
31643         * modules/iconv_open-utf-tests (Files): Likewise.
31644         * modules/idpriv-drop-tests (Files): Likewise.
31645         * modules/idpriv-droptemp-tests (Files): Likewise.
31646         * modules/inet_ntop-tests (Files): Likewise.
31647         * modules/inet_pton-tests (Files): Likewise.
31648         * modules/isblank-tests (Files): Likewise.
31649         * modules/isfinite-tests (Files): Likewise.
31650         * modules/isinf-tests (Files): Likewise.
31651         * modules/isnan-tests (Files): Likewise.
31652         * modules/isnand-nolibm-tests (Files): Likewise.
31653         * modules/isnand-tests (Files): Likewise.
31654         * modules/isnanf-nolibm-tests (Files): Likewise.
31655         * modules/isnanf-tests (Files): Likewise.
31656         * modules/isnanl-nolibm-tests (Files): Likewise.
31657         * modules/isnanl-tests (Files): Likewise.
31658         * modules/lchown-tests (Files): Likewise.
31659         * modules/ldexpl-tests (Files): Likewise.
31660         * modules/link-tests (Files): Likewise.
31661         * modules/linkat-tests (Files): Likewise.
31662         * modules/linked-list-tests (Files): Likewise.
31663         * modules/linkedhash-list-tests (Files): Likewise.
31664         * modules/localename-tests (Files): Likewise.
31665         * modules/lseek-tests (Files): Likewise.
31666         * modules/lstat-tests (Files): Likewise.
31667         * modules/mbmemcasecmp-tests (Files): Likewise.
31668         * modules/mbmemcasecoll-tests (Files): Likewise.
31669         * modules/mbrtowc-tests (Files): Likewise.
31670         * modules/mbscasecmp-tests (Files): Likewise.
31671         * modules/mbscasestr-tests (Files): Likewise.
31672         * modules/mbschr-tests (Files): Likewise.
31673         * modules/mbscspn-tests (Files): Likewise.
31674         * modules/mbsinit-tests (Files): Likewise.
31675         * modules/mbsncasecmp-tests (Files): Likewise.
31676         * modules/mbsnrtowcs-tests (Files): Likewise.
31677         * modules/mbspbrk-tests (Files): Likewise.
31678         * modules/mbspcasecmp-tests (Files): Likewise.
31679         * modules/mbsrchr-tests (Files): Likewise.
31680         * modules/mbsrtowcs-tests (Files): Likewise.
31681         * modules/mbsspn-tests (Files): Likewise.
31682         * modules/mbsstr-tests (Files): Likewise.
31683         * modules/memchr-tests (Files): Likewise.
31684         * modules/memchr2-tests (Files): Likewise.
31685         * modules/memcmp-tests (Files): Likewise.
31686         * modules/memmem-tests (Files): Likewise.
31687         * modules/memrchr-tests (Files): Likewise.
31688         * modules/mkdir-tests (Files): Likewise.
31689         * modules/mkfifo-tests (Files): Likewise.
31690         * modules/mkfifoat-tests (Files): Likewise.
31691         * modules/mknod-tests (Files): Likewise.
31692         * modules/nanosleep-tests (Files): Likewise.
31693         * modules/nl_langinfo-tests (Files): Likewise.
31694         * modules/obstack-printf-tests (Files): Likewise.
31695         * modules/open-tests (Files): Likewise.
31696         * modules/openat-tests (Files): Likewise.
31697         * modules/pipe-filter-gi-tests (Files): Likewise.
31698         * modules/pipe-filter-ii-tests (Files): Likewise.
31699         * modules/pipe2-tests (Files): Likewise.
31700         * modules/popen-safer-tests (Files): Likewise.
31701         * modules/popen-tests (Files): Likewise.
31702         * modules/posixtm-tests (Files): Likewise.
31703         * modules/pread-tests (Files): Likewise.
31704         * modules/printf-frexp-tests (Files): Likewise.
31705         * modules/printf-frexpl-tests (Files): Likewise.
31706         * modules/printf-posix-tests (Files): Likewise.
31707         * modules/priv-set-tests (Files): Likewise.
31708         * modules/quotearg-tests (Files): Likewise.
31709         * modules/random_r-tests (Files): Likewise.
31710         * modules/rawmemchr-tests (Files): Likewise.
31711         * modules/rbtree-list-tests (Files): Likewise.
31712         * modules/rbtree-oset-tests (Files): Likewise.
31713         * modules/rbtreehash-list-tests (Files): Likewise.
31714         * modules/readlink-tests (Files): Likewise.
31715         * modules/remove-tests (Files): Likewise.
31716         * modules/rename-tests (Files): Likewise.
31717         * modules/renameat-tests (Files): Likewise.
31718         * modules/rmdir-tests (Files): Likewise.
31719         * modules/round-tests (Files): Likewise.
31720         * modules/roundf-tests (Files): Likewise.
31721         * modules/roundl-tests (Files): Likewise.
31722         * modules/safe-alloc-tests (Files): Likewise.
31723         * modules/setenv-tests (Files): Likewise.
31724         * modules/sigaction-tests (Files): Likewise.
31725         * modules/signbit-tests (Files): Likewise.
31726         * modules/sleep-tests (Files): Likewise.
31727         * modules/snprintf-posix-tests (Files): Likewise.
31728         * modules/snprintf-tests (Files): Likewise.
31729         * modules/sprintf-posix-tests (Files): Likewise.
31730         * modules/stat-tests (Files): Likewise.
31731         * modules/stat-time-tests (Files): Likewise.
31732         * modules/strcasestr-tests (Files): Likewise.
31733         * modules/strchrnul-tests (Files): Likewise.
31734         * modules/strerror-tests (Files): Likewise.
31735         * modules/striconv-tests (Files): Likewise.
31736         * modules/striconveh-tests (Files): Likewise.
31737         * modules/striconveha-tests (Files): Likewise.
31738         * modules/strsignal-tests (Files): Likewise.
31739         * modules/strstr-tests (Files): Likewise.
31740         * modules/strtod-tests (Files): Likewise.
31741         * modules/strverscmp-tests (Files): Likewise.
31742         * modules/symlink-tests (Files): Likewise.
31743         * modules/symlinkat-tests (Files): Likewise.
31744         * modules/trunc-tests (Files): Likewise.
31745         * modules/truncf-tests (Files): Likewise.
31746         * modules/truncl-tests (Files): Likewise.
31747         * modules/uname-tests (Files): Likewise.
31748         * modules/unicase/cased-tests (Files): Likewise.
31749         * modules/unicase/ignorable-tests (Files): Likewise.
31750         * modules/unicase/locale-language-tests (Files): Likewise.
31751         * modules/unicase/tolower-tests (Files): Likewise.
31752         * modules/unicase/totitle-tests (Files): Likewise.
31753         * modules/unicase/toupper-tests (Files): Likewise.
31754         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31755         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31756         * modules/unicase/u8-casefold-tests (Files): Likewise.
31757         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31758         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31759         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31760         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31761         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31762         * modules/unicase/u8-tolower-tests (Files): Likewise.
31763         * modules/unicase/u8-totitle-tests (Files): Likewise.
31764         * modules/unicase/u8-toupper-tests (Files): Likewise.
31765         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31766         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31767         * modules/unicase/u16-casefold-tests (Files): Likewise.
31768         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31769         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31770         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31771         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31772         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31773         * modules/unicase/u16-tolower-tests (Files): Likewise.
31774         * modules/unicase/u16-totitle-tests (Files): Likewise.
31775         * modules/unicase/u16-toupper-tests (Files): Likewise.
31776         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31777         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31778         * modules/unicase/u32-casefold-tests (Files): Likewise.
31779         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31780         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31781         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31782         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31783         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31784         * modules/unicase/u32-tolower-tests (Files): Likewise.
31785         * modules/unicase/u32-totitle-tests (Files): Likewise.
31786         * modules/unicase/u32-toupper-tests (Files): Likewise.
31787         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31788         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31789         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31790         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31791         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31792         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31793         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31794         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31795         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31796         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31797         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31798         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31799         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31800         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31801         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31802         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31803         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31804         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31805         * modules/unictype/block-list-tests (Files): Likewise.
31806         * modules/unictype/block-of-tests (Files): Likewise.
31807         * modules/unictype/block-test-tests (Files): Likewise.
31808         * modules/unictype/category-C-tests (Files): Likewise.
31809         * modules/unictype/category-Cc-tests (Files): Likewise.
31810         * modules/unictype/category-Cf-tests (Files): Likewise.
31811         * modules/unictype/category-Cn-tests (Files): Likewise.
31812         * modules/unictype/category-Co-tests (Files): Likewise.
31813         * modules/unictype/category-Cs-tests (Files): Likewise.
31814         * modules/unictype/category-L-tests (Files): Likewise.
31815         * modules/unictype/category-Ll-tests (Files): Likewise.
31816         * modules/unictype/category-Lm-tests (Files): Likewise.
31817         * modules/unictype/category-Lo-tests (Files): Likewise.
31818         * modules/unictype/category-Lt-tests (Files): Likewise.
31819         * modules/unictype/category-Lu-tests (Files): Likewise.
31820         * modules/unictype/category-M-tests (Files): Likewise.
31821         * modules/unictype/category-Mc-tests (Files): Likewise.
31822         * modules/unictype/category-Me-tests (Files): Likewise.
31823         * modules/unictype/category-Mn-tests (Files): Likewise.
31824         * modules/unictype/category-N-tests (Files): Likewise.
31825         * modules/unictype/category-Nd-tests (Files): Likewise.
31826         * modules/unictype/category-Nl-tests (Files): Likewise.
31827         * modules/unictype/category-No-tests (Files): Likewise.
31828         * modules/unictype/category-P-tests (Files): Likewise.
31829         * modules/unictype/category-Pc-tests (Files): Likewise.
31830         * modules/unictype/category-Pd-tests (Files): Likewise.
31831         * modules/unictype/category-Pe-tests (Files): Likewise.
31832         * modules/unictype/category-Pf-tests (Files): Likewise.
31833         * modules/unictype/category-Pi-tests (Files): Likewise.
31834         * modules/unictype/category-Po-tests (Files): Likewise.
31835         * modules/unictype/category-Ps-tests (Files): Likewise.
31836         * modules/unictype/category-S-tests (Files): Likewise.
31837         * modules/unictype/category-Sc-tests (Files): Likewise.
31838         * modules/unictype/category-Sk-tests (Files): Likewise.
31839         * modules/unictype/category-Sm-tests (Files): Likewise.
31840         * modules/unictype/category-So-tests (Files): Likewise.
31841         * modules/unictype/category-Z-tests (Files): Likewise.
31842         * modules/unictype/category-Zl-tests (Files): Likewise.
31843         * modules/unictype/category-Zp-tests (Files): Likewise.
31844         * modules/unictype/category-Zs-tests (Files): Likewise.
31845         * modules/unictype/category-and-not-tests (Files): Likewise.
31846         * modules/unictype/category-and-tests (Files): Likewise.
31847         * modules/unictype/category-byname-tests (Files): Likewise.
31848         * modules/unictype/category-name-tests (Files): Likewise.
31849         * modules/unictype/category-none-tests (Files): Likewise.
31850         * modules/unictype/category-of-tests (Files): Likewise.
31851         * modules/unictype/category-or-tests (Files): Likewise.
31852         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31853         * modules/unictype/combining-class-tests (Files): Likewise.
31854         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31855         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31856         * modules/unictype/ctype-blank-tests (Files): Likewise.
31857         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31858         * modules/unictype/ctype-digit-tests (Files): Likewise.
31859         * modules/unictype/ctype-graph-tests (Files): Likewise.
31860         * modules/unictype/ctype-lower-tests (Files): Likewise.
31861         * modules/unictype/ctype-print-tests (Files): Likewise.
31862         * modules/unictype/ctype-punct-tests (Files): Likewise.
31863         * modules/unictype/ctype-space-tests (Files): Likewise.
31864         * modules/unictype/ctype-upper-tests (Files): Likewise.
31865         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31866         * modules/unictype/decimal-digit-tests (Files): Likewise.
31867         * modules/unictype/digit-tests (Files): Likewise.
31868         * modules/unictype/mirror-tests (Files): Likewise.
31869         * modules/unictype/numeric-tests (Files): Likewise.
31870         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31871         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31872         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31873         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31874         Likewise.
31875         * modules/unictype/property-bidi-block-separator-tests (Files):
31876         Likewise.
31877         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31878         Likewise.
31879         * modules/unictype/property-bidi-common-separator-tests (Files):
31880         Likewise.
31881         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31882         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31883         Likewise.
31884         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31885         Likewise.
31886         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31887         Likewise.
31888         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31889         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31890         Likewise.
31891         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31892         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31893         Likewise.
31894         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31895         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31896         * modules/unictype/property-bidi-segment-separator-tests (Files):
31897         Likewise.
31898         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31899         * modules/unictype/property-byname-tests (Files): Likewise.
31900         * modules/unictype/property-combining-tests (Files): Likewise.
31901         * modules/unictype/property-composite-tests (Files): Likewise.
31902         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31903         * modules/unictype/property-dash-tests (Files): Likewise.
31904         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31905         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31906         Likewise.
31907         * modules/unictype/property-deprecated-tests (Files): Likewise.
31908         * modules/unictype/property-diacritic-tests (Files): Likewise.
31909         * modules/unictype/property-extender-tests (Files): Likewise.
31910         * modules/unictype/property-format-control-tests (Files): Likewise.
31911         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31912         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31913         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31914         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31915         * modules/unictype/property-hyphen-tests (Files): Likewise.
31916         * modules/unictype/property-id-continue-tests (Files): Likewise.
31917         * modules/unictype/property-id-start-tests (Files): Likewise.
31918         * modules/unictype/property-ideographic-tests (Files): Likewise.
31919         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31920         * modules/unictype/property-ids-trinary-operator-tests (Files):
31921         Likewise.
31922         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31923         * modules/unictype/property-iso-control-tests (Files): Likewise.
31924         * modules/unictype/property-join-control-tests (Files): Likewise.
31925         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31926         * modules/unictype/property-line-separator-tests (Files): Likewise.
31927         * modules/unictype/property-logical-order-exception-tests (Files):
31928         Likewise.
31929         * modules/unictype/property-lowercase-tests (Files): Likewise.
31930         * modules/unictype/property-math-tests (Files): Likewise.
31931         * modules/unictype/property-non-break-tests (Files): Likewise.
31932         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31933         * modules/unictype/property-numeric-tests (Files): Likewise.
31934         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31935         * modules/unictype/property-other-default-ignorable-code-point-tests
31936         (Files): Likewise.
31937         * modules/unictype/property-other-grapheme-extend-tests (Files):
31938         Likewise.
31939         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31940         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31941         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31942         * modules/unictype/property-other-math-tests (Files): Likewise.
31943         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31944         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31945         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31946         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31947         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31948         * modules/unictype/property-private-use-tests (Files): Likewise.
31949         * modules/unictype/property-punctuation-tests (Files): Likewise.
31950         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31951         * modules/unictype/property-radical-tests (Files): Likewise.
31952         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31953         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31954         * modules/unictype/property-space-tests (Files): Likewise.
31955         * modules/unictype/property-terminal-punctuation-tests (Files):
31956         Likewise.
31957         * modules/unictype/property-test-tests (Files): Likewise.
31958         * modules/unictype/property-titlecase-tests (Files): Likewise.
31959         * modules/unictype/property-unassigned-code-value-tests (Files):
31960         Likewise.
31961         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31962         * modules/unictype/property-uppercase-tests (Files): Likewise.
31963         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31964         * modules/unictype/property-white-space-tests (Files): Likewise.
31965         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31966         * modules/unictype/property-xid-start-tests (Files): Likewise.
31967         * modules/unictype/property-zero-width-tests (Files): Likewise.
31968         * modules/unictype/scripts-tests (Files): Likewise.
31969         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31970         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31971         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31972         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31973         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31974         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31975         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31976         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31977         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31978         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31979         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31980         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31981         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31982         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31983         * modules/uninorm/composition-tests (Files): Likewise.
31984         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31985         * modules/uninorm/decomposition-tests (Files): Likewise.
31986         * modules/uninorm/filter-tests (Files): Likewise.
31987         * modules/uninorm/nfc-tests (Files): Likewise.
31988         * modules/uninorm/nfd-tests (Files): Likewise.
31989         * modules/uninorm/nfkc-tests (Files): Likewise.
31990         * modules/uninorm/nfkd-tests (Files): Likewise.
31991         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31992         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31993         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31994         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31995         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31996         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31997         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31998         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31999         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32000         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32001         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32002         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32003         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32004         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32005         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32006         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32007         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32008         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32009         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32010         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32011         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32012         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32013         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32014         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32015         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32016         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32017         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32018         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32019         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32020         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32021         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32022         * modules/uniwidth/u8-width-tests (Files): Likewise.
32023         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32024         * modules/uniwidth/u16-width-tests (Files): Likewise.
32025         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32026         * modules/uniwidth/u32-width-tests (Files): Likewise.
32027         * modules/uniwidth/width-tests (Files): Likewise.
32028         * modules/unlink-tests (Files): Likewise.
32029         * modules/unsetenv-tests (Files): Likewise.
32030         * modules/usleep-tests (Files): Likewise.
32031         * modules/utimens-tests (Files): Likewise.
32032         * modules/utimensat-tests (Files): Likewise.
32033         * modules/vasnprintf-posix-tests (Files): Likewise.
32034         * modules/vasnprintf-tests (Files): Likewise.
32035         * modules/vasprintf-posix-tests (Files): Likewise.
32036         * modules/vasprintf-tests (Files): Likewise.
32037         * modules/vdprintf-posix-tests (Files): Likewise.
32038         * modules/vfprintf-posix-tests (Files): Likewise.
32039         * modules/vprintf-posix-tests (Files): Likewise.
32040         * modules/vsnprintf-posix-tests (Files): Likewise.
32041         * modules/vsnprintf-tests (Files): Likewise.
32042         * modules/vsprintf-posix-tests (Files): Likewise.
32043         * modules/wcrtomb-tests (Files): Likewise.
32044         * modules/wcsnrtombs-tests (Files): Likewise.
32045         * modules/wcsrtombs-tests (Files): Likewise.
32046         * modules/wctype-tests (Files): Likewise.
32047         * modules/wcwidth-tests (Files): Likewise.
32048         * modules/xmemdup0-tests (Files): Likewise.
32049         * modules/xprintf-posix-tests (Files): Likewise.
32050         * modules/xvasprintf-tests (Files): Likewise.
32051
32052 2009-12-24  Eric Blake  <ebb9@byu.net>
32053
32054         test-nanosleep: fix typo
32055         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32056         patch.
32057         Reported by Bruno Haible.
32058
32059 2009-12-24  Bruno Haible  <bruno@clisp.org>
32060
32061         Reduce namespace pollution on glibc systems.
32062         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32063         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32064         systems.
32065         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32066         <getopt.h> on glibc systems.
32067         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32068         systems.
32069         * lib/fcntl.c: Include <unistd.h> here instead.
32070
32071 2009-12-24  Bruno Haible  <bruno@clisp.org>
32072
32073         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32074
32075 2009-12-24  Eric Blake  <ebb9@byu.net>
32076
32077         tests: add signature checks
32078         * tests/signature.h (SIGNATURE_CHECK): New file.
32079         * modules/atexit-tests (Files): Use it.
32080         * modules/btowc-tests (Files): Likewise.
32081         * modules/canonicalize-lgpl-tests (Files): Likewise.
32082         * modules/ceilf-tests (Files): Likewise.
32083         * modules/ceill-tests (Files): Likewise.
32084         * modules/chown-tests (Files): Likewise.
32085         * modules/dprintf-posix-tests (Files): Likewise.
32086         * modules/dup2-tests (Files): Likewise.
32087         * modules/dup3-tests (Files): Likewise.
32088         * modules/duplocale-tests (Files): Likewise.
32089         * modules/fchdir-tests (Files): Likewise.
32090         * modules/fcntl-tests (Files): Likewise.
32091         * modules/fdopendir-tests (Files): Likewise.
32092         * modules/fflush-tests (Files): Likewise.
32093         * modules/flock-tests (Files): Likewise.
32094         * modules/floorf-tests (Files): Likewise.
32095         * modules/floorl-tests (Files): Likewise.
32096         * modules/fnmatch-tests (Files): Likewise.
32097         * modules/fopen-tests (Files): Likewise.
32098         * modules/fprintf-posix-tests (Files): Likewise.
32099         * modules/freopen-tests (Files): Likewise.
32100         * modules/frexp-nolibm-tests (Files): Likewise.
32101         * modules/frexp-tests (Files): Likewise.
32102         * modules/frexpl-nolibm-tests (Files): Likewise.
32103         * modules/frexpl-tests (Files): Likewise.
32104         * modules/fseek-tests (Files): Likewise.
32105         * modules/fseeko-tests (Files): Likewise.
32106         * modules/fsync-tests (Files): Likewise.
32107         * modules/ftell-tests (Files): Likewise.
32108         * modules/ftello-tests (Files): Likewise.
32109         * modules/futimens-tests (Files): Likewise.
32110         * modules/getaddrinfo-tests (Files): Likewise.
32111         * modules/getcwd-tests (Files): Likewise.
32112         * modules/getdelim-tests (Files): Likewise.
32113         * modules/getdtablesize-tests (Files): Likewise.
32114         * modules/getgroups-tests (Files): Likewise.
32115         * modules/gethostname-tests (Files): Likewise.
32116         * modules/getline-tests (Files): Likewise.
32117         * modules/getopt-posix-tests (Files): Likewise.
32118         * modules/gettimeofday-tests (Files): Likewise.
32119         * modules/glob-tests (Files): Likewise.
32120         * modules/iconv-tests (Files): Likewise.
32121         * modules/inet_ntop-tests (Files): Likewise.
32122         * modules/inet_pton-tests (Files): Likewise.
32123         * modules/isblank-tests (Files): Likewise.
32124         * modules/lchown-tests (Files): Likewise.
32125         * modules/ldexpl-tests (Files): Likewise.
32126         * modules/link-tests (Files): Likewise.
32127         * modules/linkat-tests (Files): Likewise.
32128         * modules/lseek-tests (Files): Likewise.
32129         * modules/lstat-tests (Files): Likewise.
32130         * modules/mbrtowc-tests (Files): Likewise.
32131         * modules/mbsinit-tests (Files): Likewise.
32132         * modules/mbsnrtowcs-tests (Files): Likewise.
32133         * modules/mbsrtowcs-tests (Files): Likewise.
32134         * modules/memchr-tests (Files): Likewise.
32135         * modules/memcmp-tests (Files): Likewise.
32136         * modules/memmem-tests (Files): Likewise.
32137         * modules/memrchr-tests (Files): Likewise.
32138         * modules/mkdir-tests (Files): Likewise.
32139         * modules/mkfifo-tests (Files): Likewise.
32140         * modules/mkfifoat-tests (Files): Likewise.
32141         * modules/mknod-tests (Files): Likewise.
32142         * modules/nanosleep-tests (Files): Likewise.
32143         * modules/nl_langinfo-tests (Files): Likewise.
32144         * modules/obstack-printf-tests (Files): Likewise.
32145         * modules/open-tests (Files): Likewise.
32146         * modules/openat-tests (Files): Likewise.
32147         * modules/perror-tests (Files): Likewise.
32148         * modules/pipe2-tests (Files): Likewise.
32149         * modules/poll-tests (Files): Likewise.
32150         * modules/popen-tests (Files): Likewise.
32151         * modules/posix_spawn-tests (Files): Likewise.
32152         * modules/posix_spawnp-tests (Files): Likewise.
32153         * modules/pread-tests (Files): Likewise.
32154         * modules/printf-posix-tests (Files): Likewise.
32155         * modules/pty-tests (Files): Likewise.
32156         * modules/random_r-tests (Files): Likewise.
32157         * modules/rawmemchr-tests (Files): Likewise.
32158         * modules/readlink-tests (Files): Likewise.
32159         * modules/remove-tests (Files): Likewise.
32160         * modules/rename-tests (Files): Likewise.
32161         * modules/renameat-tests (Files): Likewise.
32162         * modules/rmdir-tests (Files): Likewise.
32163         * modules/round-tests (Files): Likewise.
32164         * modules/roundf-tests (Files): Likewise.
32165         * modules/roundl-tests (Files): Likewise.
32166         * modules/select-tests (Files): Likewise.
32167         * modules/setenv-tests (Files): Likewise.
32168         * modules/sigaction-tests (Files): Likewise.
32169         * modules/sleep-tests (Files): Likewise.
32170         * modules/snprintf-posix-tests (Files): Likewise.
32171         * modules/snprintf-tests (Files): Likewise.
32172         * modules/sprintf-posix-tests (Files): Likewise.
32173         * modules/stat-tests (Files): Likewise.
32174         * modules/strcasestr-tests (Files): Likewise.
32175         * modules/strchrnul-tests (Files): Likewise.
32176         * modules/strerror-tests (Files): Likewise.
32177         * modules/strsignal-tests (Files): Likewise.
32178         * modules/strstr-tests (Files): Likewise.
32179         * modules/strtod-tests (Files): Likewise.
32180         * modules/strverscmp-tests (Files): Likewise.
32181         * modules/symlink-tests (Files): Likewise.
32182         * modules/symlinkat-tests (Files): Likewise.
32183         * modules/times-tests (Files): Likewise.
32184         * modules/trunc-tests (Files): Likewise.
32185         * modules/truncf-tests (Files): Likewise.
32186         * modules/truncl-tests (Files): Likewise.
32187         * modules/tsearch-tests (Files): Likewise.
32188         * modules/uname-tests (Files): Likewise.
32189         * modules/unlink-tests (Files): Likewise.
32190         * modules/unsetenv-tests (Files): Likewise.
32191         * modules/usleep-tests (Files): Likewise.
32192         * modules/utimensat-tests (Files): Likewise.
32193         * modules/vasprintf-tests (Files): Likewise.
32194         * modules/vdprintf-posix-tests (Files): Likewise.
32195         * modules/vfprintf-posix-tests (Files): Likewise.
32196         * modules/vprintf-posix-tests (Files): Likewise.
32197         * modules/vsnprintf-posix-tests (Files): Likewise.
32198         * modules/vsnprintf-tests (Files): Likewise.
32199         * modules/vsprintf-posix-tests (Files): Likewise.
32200         * modules/wcrtomb-tests (Files): Likewise.
32201         * modules/wcsnrtombs-tests (Files): Likewise.
32202         * modules/wcsrtombs-tests (Files): Likewise.
32203         * modules/wcwidth-tests (Files): Likewise.
32204         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32205         * tests/test-isinf.c (isinf): Likewise.
32206         * tests/test-isnan.c (isnan): Likewise.
32207         * tests/test-signbit.c (signbit): Likewise.
32208         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32209         declaration, either as macro or with correct signature.
32210         (select): Ensure function under test is declared with correct
32211         signature in correct header.
32212         * tests/test-atexit.c (atexit): Likewise.
32213         * tests/test-btowc.c (btowc): Likewise.
32214         * tests/test-canonicalize-lgpl.c (realpath)
32215         (canonicalize_file_name): Likewise.
32216         * tests/test-ceilf1.c (ceilf): Likewise.
32217         * tests/test-ceill.c (ceill): Likewise.
32218         * tests/test-chown.c (chown): Likewise.
32219         * tests/test-dprintf-posix.c (dprintf): Likewise.
32220         * tests/test-dup2.c (dup2): Likewise.
32221         * tests/test-dup3.c (dup3): Likewise.
32222         * tests/test-duplocale.c (duplocale): Likewise.
32223         * tests/test-fchdir.c (fchdir): Likewise.
32224         * tests/test-fchownat.c (fchownat): Likewise.
32225         * tests/test-fcntl.c (fcntl): Likewise.
32226         * tests/test-fdopendir.c (fdopendir): Likewise.
32227         * tests/test-fflush.c (fflush): Likewise.
32228         * tests/test-flock.c (flock): Likewise.
32229         * tests/test-floorf1.c (floorf): Likewise.
32230         * tests/test-floorl.c (floorl): Likewise.
32231         * tests/test-fnmatch.c (fnmatch): Likewise.
32232         * tests/test-fopen.c (fopen): Likewise.
32233         * tests/test-fprintf-posix.c (fprintf): Likewise.
32234         * tests/test-freopen.c (freopen): Likewise.
32235         * tests/test-frexp.c (frexp): Likewise.
32236         * tests/test-frexpl.c (frexpl): Likewise.
32237         * tests/test-fseek.c (fseek): Likewise.
32238         * tests/test-fseeko.c (fseeko): Likewise.
32239         * tests/test-fstatat.c (fstatat): Likewise.
32240         * tests/test-fsync.c (fsync): Likewise.
32241         * tests/test-ftell.c (ftell): Likewise.
32242         * tests/test-ftello.c (ftello): Likewise.
32243         * tests/test-futimens.c (futimens): Likewise.
32244         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32245         (gai_strerror): Likewise.
32246         * tests/test-getcwd.c (getcwd): Likewise.
32247         * tests/test-getdelim.c (getdelim): Likewise.
32248         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32249         * tests/test-getgroups.c (getgroups): Likewise.
32250         * tests/test-gethostname.c (gethostname): Likewise.
32251         * tests/test-getline.c (getline): Likewise.
32252         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32253         Likewise.
32254         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32255         * tests/test-glob.c (glob, globfree): Likewise.
32256         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32257         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32258         * tests/test-inet_pton.c (inet_pton): Likewise.
32259         * tests/test-isblank.c (isblank): Likewise.
32260         * tests/test-lchown.c (lchown): Likewise.
32261         * tests/test-ldexpl.c (ldexpl): Likewise.
32262         * tests/test-link.c (link): Likewise.
32263         * tests/test-linkat.c (linkat): Likewise.
32264         * tests/test-lseek.c (lseek): Likewise.
32265         * tests/test-lstat.c (lstat): Likewise.
32266         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32267         * tests/test-mbsinit.c (mbsinit): Likewise.
32268         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32269         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32270         * tests/test-memchr.c (memchr): Likewise.
32271         * tests/test-memcmp.c (memcmp): Likewise.
32272         * tests/test-memmem.c (memmem): Likewise.
32273         * tests/test-memrchr.c (memrchr): Likewise.
32274         * tests/test-mkdir.c (mkdir): Likewise.
32275         * tests/test-mkdirat.c (mkdirat): Likewise.
32276         * tests/test-mkfifo.c (mkfifo): Likewise.
32277         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32278         * tests/test-mknod.c (mknod): Likewise.
32279         * tests/test-nanosleep.c (nanosleep): Likewise.
32280         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32281         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32282         Likewise.
32283         * tests/test-open.c (open): Likewise.
32284         * tests/test-openat.c (openat): Likewise.
32285         * tests/test-perror.c (perror): Likewise.
32286         * tests/test-pipe2.c (pipe2): Likewise.
32287         * tests/test-poll.c (poll): Likewise.
32288         * tests/test-popen.c (popen, pclose): Likewise.
32289         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32290         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32291         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32292         (posix_spawn_file_actions_destroy)
32293         (posix_spawn_file_actions_addclose)
32294         (posix_spawn_file_actions_addopen)
32295         (posix_spawn_file_actions_adddup2): Likewise.
32296         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32297         * tests/test-pread.c (pread): Likewise.
32298         * tests/test-printf-posix.c (printf): Likewise.
32299         * tests/test-pty.c (openpty, forkpty): Likewise.
32300         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32301         (random_r): Likewise.
32302         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32303         * tests/test-readlink.c (readlink): Likewise.
32304         * tests/test-remove.c (remove): Likewise.
32305         * tests/test-rename.c (rename): Likewise.
32306         * tests/test-renameat.c (renameat): Likewise.
32307         * tests/test-rmdir.c (rmdir): Likewise.
32308         * tests/test-round1.c (round): Likewise.
32309         * tests/test-roundf1.c (roundf): Likewise.
32310         * tests/test-roundl.c (roundl): Likewise.
32311         * tests/test-setenv.c (setenv): Likewise.
32312         * tests/test-sigaction.c (sigaction): Likewise.
32313         * tests/test-sleep.c (sleep): Likewise.
32314         * tests/test-snprintf.c (snprintf): Likewise.
32315         * tests/test-sprintf-posix.c (sprintf): Likewise.
32316         * tests/test-stat.c (stat): Likewise.
32317         * tests/test-stpncpy.c (stpncpy): Likewise.
32318         * tests/test-strcasestr.c (strcasestr): Likewise.
32319         * tests/test-strchrnul.c (strchrnul): Likewise.
32320         * tests/test-strerror.c (strerror): Likewise.
32321         * tests/test-strsignal.c (strsignal): Likewise.
32322         * tests/test-strstr.c (strstr): Likewise.
32323         * tests/test-strtod.c (strtod): Likewise.
32324         * tests/test-strverscmp.c (strverscmp): Likewise.
32325         * tests/test-symlink.c (symlink): Likewise.
32326         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32327         * tests/test-times.c (times): Likewise.
32328         * tests/test-trunc1.c (trunc): Likewise.
32329         * tests/test-truncf1.c (truncf): Likewise.
32330         * tests/test-truncl.c (truncl): Likewise.
32331         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32332         Likewise.
32333         * tests/test-uname.c (uname): Likewise.
32334         * tests/test-unlink.c (unlink): Likewise.
32335         * tests/test-unlinkat.c (unlinkat): Likewise.
32336         * tests/test-unsetenv.c (unsetenv): Likewise.
32337         * tests/test-usleep.c (usleep): Likewise.
32338         * tests/test-utimensat.c (utimensat): Likewise.
32339         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32340         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32341         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32342         * tests/test-vprintf-posix.c (vprintf): Likewise.
32343         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32344         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32345         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32346         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32347         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32348         * tests/test-wcwidth.c (wcwidth): Likewise.
32349
32350         build: pull in conditional headers during GNULIB_POSIXCHECK
32351         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32352         definitions from any conditionally-included headers.
32353         * lib/stdlib.in.h (includes): Likewise.
32354         * lib/unistd.in.h (includes): Likewise.
32355
32356 2009-12-24  Bruno Haible  <bruno@clisp.org>
32357
32358         * tests/test-argv-iter.c: Include header file being tested immediately
32359         after config.h.
32360         * tests/test-base64.c: Likewise.
32361         * tests/test-flock.c: Likewise.
32362         * tests/test-fsync.c: Likewise.
32363         * tests/test-getdate.c: Likewise.
32364         * tests/test-getndelim2.c: Likewise.
32365         * tests/test-isfinite.c: Likewise.
32366         * tests/test-isinf.c: Likewise.
32367         * tests/test-strerror.c: Likewise.
32368         * tests/test-strsignal.c: Likewise.
32369
32370 2009-12-23  Eric Blake  <ebb9@byu.net>
32371
32372         unistd: work around cygwin bug
32373         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32374         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32375         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32376
32377 2009-12-23  Bruno Haible  <bruno@clisp.org>
32378
32379         localename: More tests.
32380         * tests/test-localename.c (SIZEOF): New macro.
32381         (categories): New variable.
32382         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32383         test_locale_name_default): Add test w.r.t. thread locale.
32384         (test_locale_name_thread): New function.
32385         (main): Invoke it.
32386
32387         localename: Make aware of thread locale.
32388         * lib/localename.h (gl_locale_name_thread): New declaration.
32389         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32390         behaviour with respect to thread locale.
32391         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32392         <langinfo.h>, glthread/lock.h.
32393         (SIZE_BITS): New macro.
32394         (string_hash): New function.
32395         (struct hash_node): New type.
32396         (HASH_TABLE_SIZE): New macro.
32397         (struniq_hash_table, struniq_lock): New variables.
32398         (struniq): New function.
32399         (gl_locale_name_thread): New function.
32400         (gl_locale_name): Invoke it.
32401         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32402         * modules/localename (Depends-on): Add lock.
32403         Reported by Mike Gran <spk121@yahoo.com>.
32404
32405 2009-12-23  Eric Blake  <ebb9@byu.net>
32406
32407         va-args: new module
32408         * modules/va-args: New file.
32409         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32410         * MODULES.html.sh (Core language properties): Mention it.
32411
32412         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32413         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32414         named alias for __attribute__((__unused__)).
32415         * lib/chown.c: Update client.
32416         * lib/fchmodat.c: Likewise.
32417         * lib/fts.c: Likewise.
32418         * lib/getdate.y: Likewise.
32419         * lib/getgroups.c: Likewise.
32420         * lib/getopt.c: Likewise.
32421         * lib/getugroups.c: Likewise.
32422         * lib/mkdir.c: Likewise.
32423         * lib/mkfifo.c: Likewise.
32424         * lib/mkfifoat.c: Likewise.
32425         * lib/mknod.c: Likewise.
32426         * lib/mknodat.c: Likewise.
32427         * lib/readlink.c: Likewise.
32428         * lib/se-context.in.h: Likewise.
32429         * lib/se-selinux.in.h: Likewise.
32430         * lib/sockets.c: Likewise.
32431         * lib/symlink.c: Likewise.
32432         * lib/symlinkat.c: Likewise.
32433         * lib/unicodeio.c: Likewise.
32434         * lib/unistr.h: Likewise.
32435         * tests/test-areadlink.c: Likewise.
32436         * tests/test-areadlinkat.c: Likewise.
32437         * tests/test-filenamecat.c: Likewise.
32438         * tests/test-fseeko.c: Likewise.
32439         * tests/test-ftello.c: Likewise.
32440         * tests/test-getdate.c: Likewise.
32441         * tests/test-getgroups.c: Likewise.
32442         * tests/test-gethostname.c: Likewise.
32443         * tests/test-quotearg.c: Likewise.
32444         * tests/test-version-etc.c: Likewise.
32445         * tests/test-xalloc-die.c: Likewise.
32446         * tests/test-xfprintf-posix.c: Likewise.
32447         * tests/test-xprintf-posix.c: Likewise.
32448         * tests/test-xvasprintf.c: Likewise.
32449
32450         tests: avoid compiler warnings
32451         * tests/test-fcntl.c (main): Delete unused parameters.
32452         * tests/test-freopen-safer.c (main): Likewise.
32453         * tests/test-xalloc-die.c (main): Mark unused parameters.
32454         * tests/test-fseeko.c (main): Likewise.
32455         * tests/test-ftello.c (main): Likewise.
32456         * tests/test-nanosleep.c (main): Avoid declaration warning.
32457         * tests/test-sleep.c (main): Likewise.
32458         * tests/test-unsetenv.c (main): Silence warning about string
32459         literal.
32460         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32461
32462 2009-12-23  Bruno Haible  <bruno@clisp.org>
32463
32464         * tests/test-localename.c (test_locale_name): New function, extracted
32465         from main. Also test mixed situations.
32466         (test_locale_name_posix, test_locale_name_environ,
32467         test_locale_name_default): New functions.
32468         (main): Invoke them all.
32469         * modules/localename-tests (configure.ac): Test for newlocale.
32470
32471 2009-12-23  Bruno Haible  <bruno@clisp.org>
32472
32473         unistd: Ensure getcwd gets declared before being overridden.
32474         * lib/unistd.in.h: Conditionally include <io.h>.
32475
32476 2009-12-22  Bruno Haible  <bruno@clisp.org>
32477
32478         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32479         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32480         (gl_WCHAR_H): Invoke it.
32481         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32482         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32483         Reported by Karl Berry <karl@freefriends.org>.
32484
32485 2009-12-22  Eric Blake  <ebb9@byu.net>
32486
32487         math, unistd: avoid redundant includes
32488         * lib/math.in.h (isnan): No need to re-include <math.h>.
32489         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32490
32491         getsubopt: work around cygwin bug
32492         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32493         avoid conflicting with system getsubopt.
32494         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32495         bug.
32496
32497         getopt: synchronize from glibc
32498         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32499         parameter order.  Adjust all callers.
32500         (_getopt_internal_r, main): Adjust quoting in error messages.
32501         Drop considerations for outdated POSIX 1003.2 error message.
32502         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32503         callers.
32504         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32505
32506         test-getopt: test stderr behavior
32507         * modules/getopt-posix-tests (Depends-on): Add dup2.
32508         * tests/test-getopt.c (ASSERT): Avoid stderr.
32509         (main): Move stderr to a temporary file.
32510         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32511         Instead, add parameter to inform caller if output occurred.
32512         (test_getopt): Adjust all existing tests to expect silence, and
32513         add new tests of leading ":".
32514         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32515         glibc shortcomings with leading "-:" or "+:" in optstring.
32516         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32517         Likewise.
32518         * doc/posix-functions/getopt.texi (getopt): Likewise.
32519
32520         test-getopt: enhance test
32521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32522         supports optind=0.
32523         * tests/test-getopt.c (OPTIND_MIN): Move...
32524         * tests/test-getopt.h (OPTIND_MIN): ...here.
32525         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32526         Require that optind=0 works, since modern BSD supports it in
32527         addition to optreset, and since coreutils expects it.
32528         (test_getopt_long_only): New test.
32529         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32530         glibc shortcomings with 'W;', and enforcement of optind=0.
32531         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32532         Likewise.
32533
32534 2009-12-21  Bruno Haible  <bruno@clisp.org>
32535
32536         localename: Improvements for MacOS X and Cygwin.
32537         * lib/localename.h (gl_locale_name_environ): New declaration.
32538         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32539         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32540         (gl_locale_name_posix): Invoke it.
32541         (gl_locale_name_default): Add comments. Use Windows native API also on
32542         Cygwin.
32543
32544 2009-12-21  Bruno Haible  <bruno@clisp.org>
32545
32546         Update list of Win32 locale ids.
32547         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32548         (LANG_SAMI): Renamed from LANG_SAAMI.
32549         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32550         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32551         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32552         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32553         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32554         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32555         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32556         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32557         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32558         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32559         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32560         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32561         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32562         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32563         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32564         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32565         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32566         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32567         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32568         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32569         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32570         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32571         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32572         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32573         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32574         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32575         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32576         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32577         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32578         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32579         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32580         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32581         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32582         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32583         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32584         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32585         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32586         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32587         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32588         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32589         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32590         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32591         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32592         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32593         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32594         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32595         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32596         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32597         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32598         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32599         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32600         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32601         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32602         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32603         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32604         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32605         Add more languages and countries for Sami, Sorbian. Add more countries
32606         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32607         for Pashto. Change country for Syriac, Tswana.
32608
32609 2009-12-21  Eric Blake  <ebb9@byu.net>
32610
32611         test-utimens: avoid spurious failure
32612         * tests/test-chown.h (nap): Factor...
32613         * tests/nap.h: ...into new file.
32614         * tests/test-lchown.h (nap): Avoid duplication.
32615         * tests/test-utimens-common.h (nap): Use shared implementation,
32616         necessary on file systems with 1-second resolution.
32617         * modules/chown-tests (Files): Include new file.
32618         * modules/fdutimensat-tests (Files): Likewise.
32619         * modules/futimens-tests (Files): Likewise.
32620         * modules/lchown-tests (Files): Likewise.
32621         * modules/openat-tests (Files): Likewise.
32622         * modules/utimens-tests (Files): Likewise.
32623         * modules/utimensat-tests (Files): Likewise.
32624
32625 2009-12-19  Eric Blake  <ebb9@byu.net>
32626
32627         futimens, utimensat: work around Linux bug
32628         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32629         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32630         * lib/utimensat.c (rpl_utimensat): Work around it.
32631         * lib/futimens.c (rpl_futimens): Adjust comment.
32632
32633         utimens: work around Linux ctime bug
32634         * lib/utimens.c (detect_ctime_bug): New helper function.
32635         (update_timespec): Differentiate between workaround needed for
32636         this bug vs. what is needed for systems that lack utimensat.
32637         (fdutimens, lutimens): Work around bug.
32638
32639         utimens: check for ctime update
32640         * tests/test-utimens-common.h (check_ctime): Define.
32641         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32642         * tests/test-futimens.h (test_futimens): Likewise.
32643         * tests/test-lutimens.h (test_lutimens): Likewise.
32644         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32645         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32646
32647 2009-12-19  Bruno Haible  <bruno@clisp.org>
32648
32649         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32650         * tests/test-dprintf-posix2.sh: New file.
32651         * tests/test-dprintf-posix2.c: New file.
32652         * modules/dprintf-posix-tests (Files): Add them.
32653         (configure.ac): Check for getrlimit and setrlimit.
32654         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32655
32656 2009-12-19  Bruno Haible  <bruno@clisp.org>
32657
32658         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32659         * tests/test-fprintf-posix3.sh: New file.
32660         * tests/test-fprintf-posix3.c: New file.
32661         * modules/fprintf-posix-tests (Files): Add them.
32662         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32663
32664 2009-12-19  Eric Blake  <ebb9@byu.net>
32665
32666         dirfd: fix prototype
32667         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32668         * lib/dirfd.c (dirfd): Likewise.
32669
32670         canonicalize: reduce memory usage
32671         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32672         allocation to size.
32673         Reported by Solar Designer <solar@openwall.com>.
32674
32675 2009-12-19  Bruno Haible  <bruno@clisp.org>
32676
32677         New module attribute 'Applicability'.
32678         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32679         * gnulib-tool: New option --extract-applicability.
32680         (func_usage): Document it.
32681         (sed_extract_prog): Recognize it.
32682         (func_get_applicability): New function.
32683         (func_import): Generalize handling of 'link-warning' module.
32684         * modules/link-warning (Applicability): New section.
32685         * modules/arg-nonnull (Applicability): New section.
32686         Repoted by Simon Josefsson <simon@josefsson.org>.
32687
32688 2009-12-19  Bruno Haible  <bruno@clisp.org>
32689
32690         fflush: tweak
32691         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32692         * lib/fseeko.c (rpl_fseeko): Likewise.
32693
32694 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32695
32696         * lib/gl_list.h: Fix typo in comment.
32697
32698 2009-12-16  Eric Blake  <ebb9@byu.net>
32699
32700         fcntl: use to simplify other modules
32701         * modules/cloexec (Depends-on): Add fcntl.
32702         * modules/fchdir (Depends-on): Likewise.
32703         * modules/fd-safer-flag (Depends-on): Likewise.
32704         * modules/unistd-safer (Depends-on): Likewise.
32705         * modules/dup3 (configure.ac): Set module indicator.
32706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32707         missing.
32708         * lib/fchdir.c (_gl_register_dup): Fix comment.
32709         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32710         * lib/dup-safer.c (dup_safer): Likewise.
32711         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32712         * lib/dup3.c (dup3): Likewise.
32713         * tests/test-fchdir.c (main): Enhance test.
32714         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32715
32716         fcntl: port portions of fcntl to mingw
32717         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32718         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32719         replacement for mingw.
32720         * modules/fcntl (Description): Update.
32721         (Depends-on): Add dup2.
32722         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32723         * modules/fcntl-h (Makefile.am): Substitute it.
32724         * lib/fcntl.in.h (fcntl): Update declaration.
32725         (F_DUPFD, F_GETFD): New macros, when needed.
32726         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32727         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32728         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32729         we now guarantee.
32730
32731         fcntl: work around cygwin bug in F_DUPFD
32732         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32733         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32734         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32735         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32736         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32737
32738         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32739         * modules/fcntl (Files): List new files.
32740         (configure.ac): Run a test.
32741         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32742         * lib/fcntl.c (rpl_fcntl): Likewise.
32743         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32744         (gl_FCNTL_H): Always replace fcntl.h.
32745         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32746         * lib/fcntl.in.h (fcntl): Declare replacement.
32747         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32748         needed, plus a witness.
32749         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32750         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32751         * tests/test-fcntl.c: New file.
32752         * modules/fcntl-tests: Likewise.
32753
32754         binary-io: avoid potential compilation warning
32755         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32756         directives.
32757
32758         fflush: avoid compilation error on NetBSD
32759         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32760         between off_t and fpos_t, since the latter is sometimes a struct.
32761         * lib/fseeko.c (rpl_fseeko): Likewise.
32762         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32763
32764 2009-12-15  Eric Blake  <ebb9@byu.net>
32765
32766         fcntl-h, stdio, sys_ioctl: fix declarations
32767         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32768         function must not take arguments.
32769         * lib/sys_ioctl.in.h (ioctl): Likewise.
32770         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32771         (open): Add a link warning.
32772
32773 2009-12-15  Jim Meyering  <meyering@redhat.com>
32774
32775         areadlink, areadlink-with-size: relax license to LGPLv2+
32776         * modules/areadlink (License): Relax to LGPLv2+.
32777         * modules/areadlink-with-size (License): Likewise.
32778
32779 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32780             Bruno Haible  <bruno@clisp.org>
32781
32782         *printf: Fix memory leak.
32783         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32784         * lib/vfprintf.c (vfprintf): Likewise.
32785         * lib/dprintf.c (dprintf): Likewise.
32786         * lib/vdprintf.c (vdprintf): Likewise.
32787
32788 2009-12-14  Eric Blake  <ebb9@byu.net>
32789
32790         accept4: adjust module dependencies
32791         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32792
32793         utimens: one more try at avoiding compiler warning
32794         * lib/utimens.c (lutimens): Lower scope of result.
32795
32796 2009-12-13  Bruno Haible  <bruno@clisp.org>
32797
32798         Move the malloc checking from module 'list' to new module 'xlist'.
32799         * modules/xlist: New file.
32800         * lib/gl_xlist.h: New file.
32801         * lib/gl_xlist.c: New file.
32802         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32803         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32804         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32805         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32806         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32807         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32808         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32809         gl_sortedlist_nx_add): New declarations.
32810         (struct gl_list_implementation): Rename and change methods accordingly.
32811         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32812         (gl_list_nx_create): Renamed from gl_list_create.
32813         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32814         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32815         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32816         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32817         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32818         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32819         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32820         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32821         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32822         gl_list_create_empty.
32823         (gl_list_nx_create): Renamed from gl_list_create.
32824         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32825         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32826         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32827         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32828         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32829         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32830         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32831         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32832         * lib/gl_array_list.c: Don't include xalloc.h.
32833         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32834         NULL upon out-of-memory.
32835         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32836         out-of-memory.
32837         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32838         Change return type to 'int'.
32839         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32840         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32841         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32842         upon out-of-memory.
32843         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32844         upon out-of-memory.
32845         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32846         upon out-of-memory.
32847         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32848         upon out-of-memory.
32849         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32850         out-of-memory.
32851         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32852         Update.
32853         (gl_array_list_implementation): Update.
32854         * lib/gl_carray_list.c: Don't include xalloc.h.
32855         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32856         Return NULL upon out-of-memory.
32857         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32858         out-of-memory.
32859         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32860         Change return type to 'int'.
32861         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32862         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32863         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32864         upon out-of-memory.
32865         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32866         upon out-of-memory.
32867         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32868         out-of-memory.
32869         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32870         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32871         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32872         Update.
32873         (gl_carray_list_implementation): Update.
32874         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32875         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32876         gl_linked_create_empty. Return NULL upon out-of-memory.
32877         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32878         out-of-memory.
32879         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32880         Change return type to 'int'. Return -1 upon out-of-memory.
32881         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32882         out-of-memory.
32883         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32884         upon out-of-memory.
32885         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32886         upon out-of-memory.
32887         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32888         NULL upon out-of-memory.
32889         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32890         upon out-of-memory.
32891         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32892         out-of-memory.
32893         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32894         Update.
32895         * lib/gl_linked_list.c: Don't include xalloc.h.
32896         (gl_linked_list_implementation): Update.
32897         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32898         (add_to_bucket): Change return type to 'int'.
32899         (gl_linkedhash_list_implementation): Update.
32900         * lib/gl_anytree_list1.h (free_subtree): New function.
32901         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32902         gl_tree_create_empty. Return NULL upon out-of-memory.
32903         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32904         Change return type to 'int'. Return -1 upon out-of-memory.
32905         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32906         out-of-memory.
32907         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32908         (gl_tree_remove_node): New function, moved here from
32909         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32910         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32911         Update.
32912         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32913         malloc, not xmalloc. Return NULL upon out-of-memory.
32914         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32915         out-of-memory.
32916         (gl_tree_remove_node_from_tree): New function, extracted from
32917         gl_tree_remove_node.
32918         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32919         upon out-of-memory.
32920         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32921         out-of-memory.
32922         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32923         upon out-of-memory.
32924         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32925         upon out-of-memory.
32926         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32927         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32928         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_avltree_list.c: Don't include xalloc.h. Include
32943         gl_anytree_list1.h before gl_anyavltree_list2.h.
32944         (gl_avltree_list_implementation): Update.
32945         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32946         gl_anytree_list1.h before gl_anyavltree_list2.h.
32947         (gl_rbtree_list_implementation): Update.
32948         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32949         Change return type to 'int'. Return -1 upon out-of-memory. Use
32950         __builtin_expect.
32951         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32952         (gl_avltreehash_list_implementation): Update.
32953         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32954         (gl_rbtreehash_list_implementation): Update.
32955         * modules/array-list (Depends-on): Remove xalloc.
32956         * modules/carray-list (Depends-on): Likewise.
32957         * modules/linked-list (Depends-on): Likewise.
32958         * modules/linkedhash-list (Depends-on): Likewise.
32959         * modules/avltree-list (Depends-on): Likewise.
32960         * modules/rbtree-list (Depends-on): Likewise.
32961         * modules/avltreehash-list (Depends-on): Likewise.
32962         * modules/rbtreehash-list (Depends-on): Likewise.
32963
32964         * modules/xsublist: New file.
32965         * lib/gl_xsublist.h: New file.
32966         * lib/gl_xsublist.c: New file.
32967         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32968         (gl_sublist_nx_create): New declaration.
32969         * lib/gl_sublist.c: Don't include xalloc.h.
32970         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32971         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32972         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32973         Change return type to 'int'. Return -1 upon out-of-memory.
32974         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32975         upon out-of-memory.
32976         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32977         NULL upon out-of-memory.
32978         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32979         upon out-of-memory.
32980         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32981         NULL upon out-of-memory.
32982         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32983         NULL upon out-of-memory.
32984         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32985         upon out-of-memory.
32986         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32987         (gl_sublist_list_implementation): Update.
32988         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32989         upon out-of-memory.
32990         * modules/sublist (Depends-on): Remove xalloc.
32991
32992         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32993         * tests/test-carray_list.c: Likewise.
32994         * tests/test-linked_list.c: Likewise.
32995         * tests/test-linkedhash_list.c: Likewise.
32996         * tests/test-avltree_list.c: Likewise.
32997         * tests/test-rbtree_list.c: Likewise.
32998         * tests/test-avltreehash_list.c: Likewise.
32999         * tests/test-rbtreehash_list.c: Likewise.
33000         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33001         * modules/carray-list-tests (Makefile.am): Likewise.
33002         * modules/linked-list-tests (Makefile.am): Likewise.
33003         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33004         * modules/avltree-list-tests (Makefile.am): Likewise.
33005         * modules/rbtree-list-tests (Makefile.am): Likewise.
33006         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33007         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33008
33009         * NEWS: Mention the changes.
33010
33011         * lib/clean-temp.c: Include gl_xlist.h.
33012         * modules/clean-temp (Depends-on): Add xlist.
33013
33014         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33015         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33016
33017         * tests/test-array_oset.c: Include gl_xlist.h.
33018         * modules/array-oset-tests (Depends-on): Add xlist.
33019
33020         Reported by José E. Marchesi <jemarch@gnu.org>.
33021
33022 2009-12-13  Bruno Haible  <bruno@clisp.org>
33023
33024         Move the malloc checking from module 'oset' to new module 'xoset'.
33025         * modules/xoset: New file.
33026         * lib/gl_xoset.h: New file.
33027         * lib/gl_xoset.c: New file.
33028         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33029         declarations.
33030         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33031         (struct gl_oset_implementation): Rename and change methods accordingly.
33032         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33033         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33034         'int'. Mark as __warn_unused_result__.
33035         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33036         gl_oset_create_empty.
33037         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33038         'int'.
33039         * lib/gl_array_oset.c: Don't include xalloc.h.
33040         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33041         malloc, not xmalloc.
33042         (grow): Change return type to 'int'. Don't call xalloc_die.
33043         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33044         to 'int'.
33045         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33046         'int'.
33047         (gl_array_oset_implementation): Update.
33048         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33049         gl_tree_create_empty.
33050         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33051         'int'.
33052         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33053         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33054         xmalloc.
33055         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33056         not xmalloc.
33057         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33058         xmalloc.
33059         (gl_avltree_oset_implementation): Update.
33060         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33061         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33062         xmalloc.
33063         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33064         not xmalloc.
33065         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33066         xmalloc.
33067         (gl_rbtree_oset_implementation): Update.
33068         * modules/array-oset (Depends-on): Remove xalloc.
33069         * modules/avltree-oset (Depends-on): Likewise.
33070         * modules/rbtree-oset (Depends-on): Likewise.
33071         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33072         * tests/test-avltree_oset.c: Likewise.
33073         * tests/test-rbtree_oset.c: Likewise.
33074         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33075         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33076         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33077         * NEWS: Mention the change.
33078
33079 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33080
33081         maint.mk: allow a project to override release-prep commands
33082         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33083         commands into a new rule.
33084         (release-prep): New rule.
33085         (release-prep-hook): New overridable variable.
33086
33087 2009-12-13  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33090
33091 2009-12-13  Jim Meyering  <meyering@redhat.com>
33092
33093         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33094         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33095
33096 2009-12-12  Bruno Haible  <bruno@clisp.org>
33097
33098         duplocale: Tweak.
33099         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33100
33101 2009-12-12  Karl Berry  <karl@gnu.org>
33102
33103         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33104
33105 2009-12-12  Bruno Haible  <bruno@clisp.org>
33106
33107         * m4/po.m4: Undo incorrect untabification.
33108
33109 2009-12-12  Bruno Haible  <bruno@clisp.org>
33110
33111         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33112         * modules/c-strtod (Depends-on): Add locale.
33113         * modules/c-strtold (Depends-on): Likewise.
33114
33115 2009-12-12  Bruno Haible  <bruno@clisp.org>
33116
33117         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33118
33119 2009-12-11  Eric Blake  <ebb9@byu.net>
33120
33121         setenv: relax requirement in light of POSIX ruling
33122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33123         not NULL.
33124         * tests/test-setenv.c (main): Relax test.
33125         * tests/test-unsetenv.c (main): Likewise.
33126         * doc/posix-functions/setenv.texi (setenv): Document this.
33127         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33128
33129 2009-12-11  Bruno Haible  <bruno@clisp.org>
33130
33131         New module 'fd-safer-flag'.
33132         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33133         * lib/dup-safer.c (dup_safer_flag): Remove function.
33134         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33135         * lib/fd-safer.c (fd_safer_flag): Remove function.
33136         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33137         * modules/cloexec (configure.ac): Drop indicator macro.
33138         * modules/fd-safer-flag: New file.
33139         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33140         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33141         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33142
33143 2009-12-11  Bruno Haible  <bruno@clisp.org>
33144
33145         Tests for module 'nl_langinfo'.
33146         * modules/nl_langinfo-tests: New file.
33147         * tests/test-nl_langinfo.sh: New file.
33148         * tests/test-nl_langinfo.c: New file.
33149
33150         New module 'nl_langinfo'.
33151         * lib/nl_langinfo.c: New file.
33152         * m4/nl_langinfo.m4: New file.
33153         * modules/nl_langinfo: New file.
33154         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33155
33156 2009-12-11  Bruno Haible  <bruno@clisp.org>
33157
33158         Tests for module 'langinfo'.
33159         * modules/langinfo-tests: New file.
33160         * tests/test-langinfo.c: New file.
33161
33162         New module 'langinfo'.
33163         * lib/langinfo.in.h: New file.
33164         * m4/langinfo_h.m4: New file.
33165         * modules/langinfo: New file.
33166         * doc/posix-headers/langinfo.texi: Mention the new module.
33167
33168 2009-12-11  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/config.charset: Untabify.
33171
33172 2009-12-11  Bruno Haible  <bruno@clisp.org>
33173
33174         * modules/unistd-safer (configure.ac): Drop indicator macro.
33175
33176 2009-12-11  Bruno Haible  <bruno@clisp.org>
33177
33178         Move pipe2-safer code to its own file.
33179         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33180         * lib/pipe-safer.c (pipe2_safer): Remove function.
33181         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33182         (Makefile.am): Add it to lib_SOURCES.
33183
33184 2009-12-10  Bruno Haible  <bruno@clisp.org>
33185
33186         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33187
33188 2009-12-10  Bruno Haible  <bruno@clisp.org>
33189
33190         Declare which arguments expect non-NULL values, for GCC and clang.
33191         * build-aux/arg-nonnull.h: New file.
33192         * modules/arg-nonnull: New file.
33193         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33194         (inet_ntop, inet_pton): Use it.
33195         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33196         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33197         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33198         (open, openat): Use it.
33199         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33200         (fnmatch): Use it.
33201         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33202         (getopt, getopt_long, getopt_long_only): Use it.
33203         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33204         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33205         Use it.
33206         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33207         (iconv_open): Use it.
33208         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33209         (strtoimax, strtoumax): Use it.
33210         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33211         (duplocale): Use it.
33212         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33213         (frexp, frexpl): Use it.
33214         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33215         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33216         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33217         (tsearch, tfind, tdelete, twalk): Use it.
33218         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33219         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33220         sigpending): Use it.
33221         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33222         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33223         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33224         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33225         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33226         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33227         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33228         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33229         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33230         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33231         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33232         Use it.
33233         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33234         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33235         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33236         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33237         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33238         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33239         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33240         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33241         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33242         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33243         strtoull, unsetenv): Use it.
33244         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33245         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33246         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33247         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33248         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33249         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33250         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33251         (strcasecmp, strncasecmp): Use it.
33252         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33253         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33254         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33255         rpl_setsockopt): Use it.
33256         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33257         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33258         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33259         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33260         (gettimeofday): Use it.
33261         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33262         (times): Use it.
33263         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33264         (uname): Use it.
33265         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33266         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33267         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33268         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33269         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33270         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33271         unlinkat, write): Use it.
33272         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33273         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33274         * lib/argv-iter.h: Include arg-nonnull.h.
33275         (_ATTRIBUTE_NONNULL_): Remove macro.
33276         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33277         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33278         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33279         optimization.
33280         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33281         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33282         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33283         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33284         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33285         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33286         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33287         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33288         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33289         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33290         * modules/dirent (Depends-on): Add arg-nonnull.
33291         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33292         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33293         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33294         * modules/fnmatch (Depends-on): Add arg-nonnull.
33295         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33296         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33297         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33298         * modules/glob (Depends-on): Add arg-nonnull.
33299         (Makefile.am): Insert arg-nonnull.h into glob.h.
33300         * modules/iconv_open (Depends-on): Add arg-nonnull.
33301         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33302         * modules/inttypes (Depends-on): Add arg-nonnull.
33303         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33304         * modules/locale (Depends-on): Add arg-nonnull.
33305         (Makefile.am): Insert arg-nonnull.h into locale.h.
33306         * modules/math (Depends-on): Add arg-nonnull.
33307         (Makefile.am): Insert arg-nonnull.h into math.h.
33308         * modules/netdb (Depends-on): Add arg-nonnull.
33309         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33310         * modules/search (Depends-on): Add arg-nonnull.
33311         (Makefile.am): Insert arg-nonnull.h into search.h.
33312         * modules/signal (Depends-on): Add arg-nonnull.
33313         (Makefile.am): Insert arg-nonnull.h into signal.h.
33314         * modules/spawn (Depends-on): Add arg-nonnull.
33315         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33316         * modules/stdio (Depends-on): Add arg-nonnull.
33317         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33318         * modules/stdlib (Depends-on): Add arg-nonnull.
33319         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33320         * modules/string (Depends-on): Add arg-nonnull.
33321         (Makefile.am): Insert arg-nonnull.h into string.h.
33322         * modules/strings (Depends-on): Add arg-nonnull.
33323         (Makefile.am): Insert arg-nonnull.h into strings.h.
33324         * modules/sys_socket (Depends-on): Add arg-nonnull.
33325         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33326         * modules/sys_stat (Depends-on): Add arg-nonnull.
33327         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33328         * modules/sys_time (Depends-on): Add arg-nonnull.
33329         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33330         * modules/sys_times (Depends-on): Add arg-nonnull.
33331         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33332         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33333         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33334         * modules/time (Depends-on): Add arg-nonnull.
33335         (Makefile.am): Insert arg-nonnull.h into time.h.
33336         * modules/unistd (Depends-on): Add arg-nonnull.
33337         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33338         * modules/wchar (Depends-on): Add arg-nonnull.
33339         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33340         * modules/argv-iter (Depends-on): Add arg-nonnull.
33341         * tests/test-canonicalize.c (null_ptr): New function.
33342         (main): Use it.
33343         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33344         (main): Use it.
33345         * tests/test-memmem.c (null_ptr): New function.
33346         (main): Use it.
33347         Reported by Jim Meyering.
33348
33349 2009-12-10  Bruno Haible  <bruno@clisp.org>
33350
33351         Use spaces for indentation, not tabs.
33352         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33353         * m4/*.m4: Untabify.
33354         * build-aux/*.h: Untabify.
33355         * tests/**/*.[hc]: Untabify.
33356         * README: New section "Indent with spaces, not TABs", based on
33357         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33358         * NEWS: Mention the change.
33359
33360 2009-12-10  Bruno Haible  <bruno@clisp.org>
33361
33362         pty test: Fix link error.
33363         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33364         test_pty_LDADD.
33365
33366 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33367
33368         * modules/pty: New file.
33369         * modules/pty-tests: New file.
33370         * m4/pty.m4: New file.
33371         * tests/test-pty.c: New file.
33372         * doc/glibc-headers/pty.texi: Modified.
33373         * doc/glibc-functions/forkpty.texi: Modified.
33374         * doc/glibc-functions/openpty.texi: Modified.
33375
33376 2009-12-10  Bruno Haible  <bruno@clisp.org>
33377
33378         Avoid syntax error in C++ mode.
33379         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33380
33381 2009-12-10  Bruno Haible  <bruno@clisp.org>
33382
33383         Use sed with option -e.
33384         * gnulib-tool (func_version, func_emit_copyright_notice,
33385         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33386         option -e to sed.
33387         * modules/link-warning (Makefile.am): Likewise.
33388
33389 2009-12-10  Jim Meyering  <meyering@redhat.com>
33390
33391         mgetgroups: do not write bytes beyond end of malloc'd buffer
33392         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33393         username, we call getgroups with a one-element-shorter buffer,
33394         but still told it the length was original, max_n_groups.
33395
33396 2009-12-09  Eric Blake  <ebb9@byu.net>
33397
33398         cloexec: relax license
33399         * modules/cloexec (Maintainer): Add myself.
33400         (License): Use LGPL, not GPL.
33401
33402         link-warning: optimize generation
33403         * modules/link-warning (Makefile.am): Reduce process usage.
33404
33405 2009-12-09  Bruno Haible  <bruno@clisp.org>
33406
33407         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33408         workaround was added on 2009-11-17.
33409
33410 2009-12-09  Jim Meyering  <meyering@redhat.com>
33411             Bruno Haible  <bruno@clisp.org>
33412
33413         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33414         * modules/link-warning (Makefile.am): Make the comment-removing sed
33415         command more robust in the face of bootstrap-prepended comment lines.
33416
33417 2009-12-09  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33420         most one group.
33421
33422 2009-12-09  Simon Josefsson <simon@josefsson.org>
33423             Bruno Haible  <bruno@clisp.org>
33424
33425         * build-aux/link-warning.h: Add copyright notice.
33426         * modules/link-warning (Makefile.am): Generate link-warning.h from
33427         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33428         * NEWS: Mention change in link-warning module.
33429         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33430         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33431         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33432         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33433         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33434         * modules/math (Makefile.am): Add dependency to math.h.
33435         * modules/search (Makefile.am): Add dependency to search.h.
33436         * modules/signal (Makefile.am): Add dependency to signal.h.
33437         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33438         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33439         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33440         * modules/string (Makefile.am): Add dependency to string.h.
33441         * modules/strings (Makefile.am): Add dependency to strings.h.
33442         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33443         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33444         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33445         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33446         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33447         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33448         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33449         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33450         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33451
33452 2009-12-09  Bruno Haible  <bruno@clisp.org>
33453
33454         fchdir: Optimize away rpl_fstat when possible.
33455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33456         REPLACE_OPEN_DIRECTORY.
33457         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33458
33459 2009-12-09  Bruno Haible  <bruno@clisp.org>
33460
33461         * lib/fchdir.c: Update comment.
33462
33463 2009-12-09  Bruno Haible  <bruno@clisp.org>
33464
33465         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33466
33467 2009-12-08  Eric Blake  <ebb9@byu.net>
33468
33469         fchdir: avoid memory leak on re-registration.
33470         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33471
33472 2009-12-08  Jim Meyering  <meyering@redhat.com>
33473
33474         init.sh: avoid Solaris 10 /bin/sh portability problem
33475         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33476         sourced script:
33477           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33478           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33479           bar
33480         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33481         and two tests used that idiom.
33482         * tests/init.sh: Update suggested usage comments.
33483         (path_prepend_): New function, to be used in place
33484         of the --src-path=DIR option.
33485         (setup_): Move PATH-prepending code into path_prepend_.
33486         * tests/test-pread.sh: Adapt to new usage.
33487         * tests/test-xalloc-die.sh: Likewise.
33488
33489 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33490
33491         * doc/gnulib.texi (Glibc pty.h): Add.
33492         * doc/glibc-functions/forkpty.texi: Add.
33493         * doc/glibc-functions/openpty.texi: Add.
33494         Suggested by Bruno Haible.
33495
33496 2009-12-08  Eric Blake  <ebb9@byu.net>
33497
33498         fchdir: fix logic bugs
33499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33500         * tests/test-fchdir.c (main): Enhance test.
33501         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33502         is in use.
33503
33504         dup2: fix logic bugs
33505         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33506         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33507         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33508         exists.
33509         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33510
33511 2009-12-07  Eric Blake  <ebb9@byu.net>
33512
33513         unlink: fix m4 detection
33514         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33515
33516         unistd-safer: add unit test
33517         * modules/unistd-safer-tests: New file.
33518         * tests/test-dup-safer.c: Likewise.
33519         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33520         * tests/test-dup2.c (setmode): Likewise.
33521         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33522
33523         cloexec: preserve text vs. binary across dup_cloexec
33524         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33525         mode.
33526         * modules/dup2-tests (Depends-on): Add binary-io.
33527         * modules/cloexec-tests (Depends-on): Likewise.
33528         * tests/test-dup2.c (setmode, is_mode): New helpers.
33529         (main): Add tests that translation mode is preserved.
33530         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33531         Reported by Bruno Haible.
33532
33533         mgetgroups: reduce duplicate listings
33534         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33535         resulting array.
33536         * tests/test-chown.h (test_chown): Simplify client.
33537         * tests/test-lchown.h (test_lchown): Likewise.
33538
33539 2009-12-06  Bruno Haible  <bruno@clisp.org>
33540
33541         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33542         value.
33543
33544 2009-12-06  Bruno Haible  <bruno@clisp.org>
33545
33546         * lib/progname.c: Include stdio.h, stdlib.h.
33547         (set_program_name): Reject a NULL argument.
33548
33549 2009-12-05  Eric Blake  <ebb9@byu.net>
33550
33551         pipe2-safer: new module
33552         * modules/pipe2-safer: New file.
33553         * lib/unistd-safer.h (pipe2_safer): New prototype.
33554         * lib/unistd--.h (pipe2): New wrapper.
33555         * lib/pipe-safer.c (pipe2_safer): New function.
33556         * modules/pipe (Depends-on): Add pipe2-safer.
33557         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33558
33559         stdlib-safer: preserve cloexec flag for mkostemp[s]
33560         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33561         fd_safer_flag.
33562
33563         unistd-safer: allow preservation of cloexec status via flag
33564         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33565         prototypes.
33566         * lib/dup-safer.c (dup_safer_flag): New function.
33567         * lib/fd-safer.c (fd_safer_flag): Likewise.
33568         * modules/cloexec (configure.ac): Set witness.
33569
33570         test-dup2: enhance test
33571         * modules/dup2-tests (Depends-on): Add cloexec.
33572         * tests/test-dup2.c (main): Enhance test.
33573
33574         cloexec: add dup_cloexec
33575         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33576         header and comments.
33577         * lib/cloexec.c (set_cloexec_flag): Add comments.
33578         (dup_cloexec): New function, with mingw implementation borrowed
33579         from...
33580         * lib/w32spawn.h (dup_noinherit): ...here.
33581         * modules/execute (Depends-on): Add cloexec.
33582         * modules/pipe (Depends-on): Likewise.
33583         * modules/cloexec (Depends-on): Add dup2.
33584         * modules/cloexec-tests (Files): New file.
33585         * tests/test-cloexec.c: Likewise.
33586
33587         test-xalloc-die: fix test for mingw
33588         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33589         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33590         directory and .exe suffix off argv[0] output.
33591
33592         test-fseeko: fix test for mingw
33593         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33594         than undefining fseek, so test will pass on mingw.
33595
33596 2009-12-05  Bruno Haible  <bruno@clisp.org>
33597
33598         * lib/progname.h (set_program_name): Clarify specification.
33599         * lib/progname.c (set_program_name): Likewise.
33600         Reported by Jim Meyering.
33601
33602 2009-12-05  Jim Meyering  <meyering@redhat.com>
33603
33604         maint.mk: backslash-escape parens in default regexp
33605         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33606         backslash-escape the literal parentheses.
33607
33608         maint.mk: news-date-check: use grep -E
33609         * top/maint.mk (today): Define a Make variable, not a...
33610         (news-date-check): ...shell variable.
33611         (news-date-regexp): Use the Make variable.
33612         Use grep's -E option.  Change the failing diagnostic to mention
33613         the variable, $(news-date-regexp).
33614
33615 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33616
33617         maintainer-makefile: allow customization of NEWS entry format
33618         * top/maint.mk (news-date-regexp): New overridable variable.
33619         (news-date-check): Use it.
33620
33621 2009-12-04  Eric Blake  <ebb9@byu.net>
33622
33623         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33624         * lib/mgetgroups.h (xgetgroups): New prototype.
33625         * lib/mgetgroups.c (xgetgroups): New wrapper.
33626         (mgetgroups): Handle ENOSYS.
33627         * modules/mgetgroups (Depends-on): Add realloc.
33628         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33629
33630         mgetgroups: avoid argument promotion issues with -1
33631         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33632         for invalid gid_t.
33633         * tests/test-chown.h (getegid, test_chown): Likewise.
33634         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33635
33636 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33637
33638         exclude: Fix header file problems.
33639         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33640
33641 2009-12-01  Jim Meyering  <meyering@redhat.com>
33642
33643         fts: fts_open: do not let an empty string cause immediate failure
33644         This is required in support of GNU rm, for which the command
33645         "rm A '' B" must process and remove both A and B, in spite of
33646         the empty string argument.
33647         * lib/fts.c (fts_open): Do not let the presence of an empty string
33648         cause fts_open to fail immediately.  Most fts-using tools must be
33649         able to process all arguments, in order, and can be expected to
33650         diagnose such arguments themselves.
33651
33652 2009-11-30  Eric Blake  <ebb9@byu.net>
33653
33654         utimens: fix compilation error
33655         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33656         Declare variable at right scope.
33657
33658 2009-11-29  Jim Meyering  <meyering@redhat.com>
33659
33660         bootstrap: handle perl-5.11's changed --version output
33661         * build-aux/bootstrap (get_version): Handle perl separately,
33662         since perl-5.11's --version output is different.
33663
33664 2009-11-28  Jim Meyering  <meyering@redhat.com>
33665
33666         userspec: depend on the inttostr module, too
33667         * modules/userspec (Depends-on): Add inttostr.
33668
33669         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33670         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33671         number of MAXUID when it evaluates to (uid_t) -1.
33672         Likewise for group ID.  Reported by Matt McCutchen in
33673         <http://savannah.gnu.org/bugs/?28113>
33674
33675         userspec: reformat to use spaces, not TABs
33676         * lib/userspec.c: Expand TABs to spaces.
33677         Add Emacs' "indent-tabs-mode: nil" hint.
33678
33679 2009-11-27  Eric Blake  <ebb9@byu.net>
33680
33681         getopt-gnu: flush out another BSD bug
33682         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33683         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33684         flush out BSD bug.
33685         * tests/test-getopt.h (test_getopt): End lists with NULL.
33686         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33687         (test_getopt_long_posix): Enhance test.
33688         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33689         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33690         getopt-gnu.
33691         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33692         Likewise.
33693
33694 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33695
33696         * modules/idpriv-droptemp-tests (Notice): Fix text.
33697
33698 2009-11-27  Jim Meyering  <meyering@redhat.com>
33699
33700         test-xalloc-die: avoid spurious failure due to libtool argv difference
33701         In a libtool-enabled project, this test would fail due to a difference
33702         in the emitted program name, e.g.,
33703         -test-xalloc-die: memory exhausted
33704         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33705         Use program to avoid that.
33706         * modules/xalloc-die-tests (Depends-on): Add progname.
33707         * tests/test-xalloc-die.c: Include progname.h".
33708         (program_name): Remove decl.
33709         (main): Call set_program_name.
33710         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33711
33712 2009-11-26  Richard Jones  <rjones@redhat.com>
33713
33714         w32sock: leave win32 error in place.
33715         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33716
33717 2009-11-26  Eric Blake  <ebb9@byu.net>
33718
33719         init.sh: suggest to use skip_ and fail_ functions in comments
33720         * tests/init.sh: Add a sentence.
33721
33722 2009-11-25  Bruno Haible  <bruno@clisp.org>
33723
33724         init.sh: add documentation in comments
33725         * tests/init.sh: Add some developer and user documentation.
33726
33727 2009-11-26  Jim Meyering  <meyering@redhat.com>
33728
33729         init.sh: accommodate even those who specify bogus srcdir manually
33730         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33731         configure-time tests to be sanitized, so that there is no need to
33732         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33733         (with no double quotes) suffices.  However, since tests may be
33734         invoked manually, and since you may explicitly set srcdir to the
33735         name of a directory containing spaces, do quote its uses here.
33736         * tests/test-pread.sh: Likewise.
33737         Suggested by Bruno Haible.
33738
33739         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33740         * tests/test-pread.sh: Write no data into the pipe, because
33741         test-pread actually reads none.  This avoids a diagnostic,
33742         "bash: echo: write error: Broken pipe", that arises in the unusual
33743         event something is ignoring SIGPIPE, and might be interpreted
33744         as some sort of failure.  Reported by Bruno Haible.
33745
33746 2009-11-25  Jim Meyering  <meyering@redhat.com>
33747
33748         test-pread: cover failure with ESPIPE and EINVAL
33749         * tests/test-pread.c (main): Test for failure, too.
33750         * tests/test-pread.sh: Invoke with stdin on a pipe.
33751         Suggested by Eric Blake.
33752
33753         pread: improvement and fix
33754         * modules/pread (Depends-on): Depend on lseek, for portability to
33755         e.g., mingw.  Suggested by Eric Blake.
33756         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33757
33758         unistd.in.h: correct declaration of pread
33759         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33760         Reported by Richard W.M. Jones.
33761
33762         test-pread.sh: distribute the test script
33763         * modules/pread-tests (Files): Include test-pread.sh.
33764
33765         test-pread.sh: clean up
33766         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33767         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33768         That is unnecessary, since it's always ".".
33769         Suggestion from Eric Blake.
33770
33771         test-pread.sh: make executable
33772         * tests/test-pread.sh: Set executable bit.
33773         Reported by Eric Blake.
33774
33775         correct typo in test-pread.sh
33776         * tests/test-pread.sh: Add #! line.
33777
33778         test pread
33779         * tests/test-pread.c: New file.
33780         * tests/test-pread.sh: Likewise.
33781         * modules/pread-tests: Likewise.
33782
33783         pread: new module
33784         * modules/pread: New file.
33785         * lib/unistd.in.h (pread): Define/declare.
33786         * lib/pread.c (pread): New file.
33787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33788         * modules/unistd (Makefile.am): Substitute witnesses.
33789         * doc/posix-functions/pread.texi (pread): Update.
33790         * MODULES.html.sh: Add pread.
33791
33792 2009-11-25  Jim Meyering  <meyering@redhat.com>
33793
33794         tests/init.sh: new file to be used via most *.sh tests
33795         * tests/init.sh: New file.
33796
33797 2009-11-25  Eric Blake  <ebb9@byu.net>
33798
33799         utimens: work around older Linux failure with symlinks
33800         * lib/utimens.c (lutimensat_works_really): New variable.
33801         (fdutimens, lutimens): Use it to manage kernels that support
33802         nanosecond times on files, but not on symlinks.
33803         Reported by OndÅ™ej Vašík.
33804
33805         utimes: fix configure grammar
33806         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33807
33808 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33809
33810         regex: Fix fastmap for multibyte character ranges.
33811         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33812         characters when a multibyte character range is included.
33813
33814 2009-11-22  Andy Wingo  <wingo@pobox.com>
33815
33816         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33817         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33818
33819 2009-11-24  Bruno Haible  <bruno@clisp.org>
33820
33821         doc: Most *_l functions exist in MacOS X 10.5.
33822         * doc/posix-functions/duplocale.texi: Update platforms list.
33823         * doc/posix-functions/freelocale.texi: Likewise.
33824         * doc/posix-functions/newlocale.texi: Likewise.
33825         * doc/posix-functions/uselocale.texi: Likewise.
33826         * doc/posix-functions/isalnum_l.texi: Likewise.
33827         * doc/posix-functions/isalpha_l.texi: Likewise.
33828         * doc/posix-functions/isblank_l.texi: Likewise.
33829         * doc/posix-functions/iscntrl_l.texi: Likewise.
33830         * doc/posix-functions/isdigit_l.texi: Likewise.
33831         * doc/posix-functions/isgraph_l.texi: Likewise.
33832         * doc/posix-functions/islower_l.texi: Likewise.
33833         * doc/posix-functions/isprint_l.texi: Likewise.
33834         * doc/posix-functions/ispunct_l.texi: Likewise.
33835         * doc/posix-functions/isspace_l.texi: Likewise.
33836         * doc/posix-functions/isupper_l.texi: Likewise.
33837         * doc/posix-functions/iswalnum_l.texi: Likewise.
33838         * doc/posix-functions/iswalpha_l.texi: Likewise.
33839         * doc/posix-functions/iswblank_l.texi: Likewise.
33840         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33841         * doc/posix-functions/iswctype_l.texi: Likewise.
33842         * doc/posix-functions/iswdigit_l.texi: Likewise.
33843         * doc/posix-functions/iswgraph_l.texi: Likewise.
33844         * doc/posix-functions/iswlower_l.texi: Likewise.
33845         * doc/posix-functions/iswprint_l.texi: Likewise.
33846         * doc/posix-functions/iswpunct_l.texi: Likewise.
33847         * doc/posix-functions/iswspace_l.texi: Likewise.
33848         * doc/posix-functions/iswupper_l.texi: Likewise.
33849         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33850         * doc/posix-functions/isxdigit_l.texi: Likewise.
33851         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33852         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33853         * doc/posix-functions/strcoll_l.texi: Likewise.
33854         * doc/posix-functions/strfmon_l.texi: Likewise.
33855         * doc/posix-functions/strftime_l.texi: Likewise.
33856         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33857         * doc/posix-functions/strxfrm_l.texi: Likewise.
33858         * doc/posix-functions/tolower_l.texi: Likewise.
33859         * doc/posix-functions/toupper_l.texi: Likewise.
33860         * doc/posix-functions/towctrans_l.texi: Likewise.
33861         * doc/posix-functions/towlower_l.texi: Likewise.
33862         * doc/posix-functions/towupper_l.texi: Likewise.
33863         * doc/posix-functions/wcscoll_l.texi: Likewise.
33864         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33865         * doc/posix-functions/wctrans_l.texi: Likewise.
33866         * doc/posix-functions/wctype_l.texi: Likewise.
33867         * doc/glibc-functions/strptime_l.texi: Likewise.
33868         * doc/glibc-functions/strtod_l.texi: Likewise.
33869         * doc/glibc-functions/strtof_l.texi: Likewise.
33870         * doc/glibc-functions/strtol_l.texi: Likewise.
33871         * doc/glibc-functions/strtold_l.texi: Likewise.
33872         * doc/glibc-functions/strtoll_l.texi: Likewise.
33873         * doc/glibc-functions/strtoul_l.texi: Likewise.
33874         * doc/glibc-functions/strtoull_l.texi: Likewise.
33875         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33876         * doc/glibc-functions/wcstod_l.texi: Likewise.
33877         * doc/glibc-functions/wcstof_l.texi: Likewise.
33878         * doc/glibc-functions/wcstol_l.texi: Likewise.
33879         * doc/glibc-functions/wcstold_l.texi: Likewise.
33880         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33881         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33882         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33883
33884 2009-11-24  Bruno Haible  <bruno@clisp.org>
33885
33886         duplocale: Fix logic bug.
33887         * lib/duplocale.c: Don't include <langinfo.h>.
33888         (_NL_LOCALE_NAME): Remove macro.
33889         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33890         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33891
33892 2009-11-23  Jim Meyering  <meyering@redhat.com>
33893
33894         test-update-copyright: don't hard-code /usr/bin/perl
33895         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33896         perl to print the current year.  Gilles Espinasse reported that
33897         the replaced use of perl was hard-coded as /usr/bin/perl.
33898
33899 2009-11-23  Bruno Haible  <bruno@clisp.org>
33900
33901         duplocale: Add support for glibc 2.3.x.
33902         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33903
33904 2009-11-22  Bruno Haible  <bruno@clisp.org>
33905
33906         vasnprintf: Tiny optimization.
33907         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33908         MacOS X.
33909
33910 2009-11-22  Bruno Haible  <bruno@clisp.org>
33911
33912         Tests for module 'duplocale'.
33913         * modules/duplocale-tests: New file.
33914         * tests/test-duplocale.c: New file.
33915
33916         New module 'duplocale'.
33917         * m4/duplocale.m4: New file.
33918         * lib/locale.in.h (duplocale): New declaration.
33919         * lib/duplocale.c: New file.
33920         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33921         gl_LOCALE_H_DEFAULTS): New macros.
33922         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33923         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33924         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33925         REPLACE_DUPLOCALE.
33926         * modules/duplocale: New file.
33927         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33928
33929 2009-11-22  Bruno Haible  <bruno@clisp.org>
33930
33931         * modules/locale-tests (configure.ac): Test for newlocale function.
33932         * tests/test-locale.c: When the system has extended locale functions,
33933         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33934
33935         locale: Make locale_t available when possible.
33936         * lib/locale.in.h: Include <xlocale.h> when it exists.
33937         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33938         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33939         * modules/locale (Depends-on): Add extensions.
33940         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33941         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33942
33943 2009-11-22  Bruno Haible  <bruno@clisp.org>
33944
33945         Add comments.
33946         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33947         invocation.
33948         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33949         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33950         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33951
33952 2009-11-22  Bruno Haible  <bruno@clisp.org>
33953
33954         error: account for the possibility of freopen (stdout).
33955         * lib/error.c: Include <unistd.h>.
33956         (flush_stdout): New function, extracted from error and error_at_line.
33957         Determine stdout's fd dynamically.
33958         (error, error_at_line): Invoke flush_stdout.
33959         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33960         * modules/error (Depends-on): Add unistd.
33961
33962 2009-11-22  Bruno Haible  <bruno@clisp.org>
33963
33964         diffseq: Add comment.
33965         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33966
33967 2009-11-22  Jim Meyering  <meyering@redhat.com>
33968
33969         c-stack: avoid defining an unused static function
33970         * lib/c-stack.c (find_stack_direction): Do not define this function
33971         when it will not be used.
33972
33973         diffseq: avoid spurious gcc warnings
33974         * lib/diffseq.h (IF_LINT2): Define.
33975         (compareseq): Use it to initialize two members of "part".
33976         This avoids two used-uninitialized warnings.
33977
33978 2009-11-21  Jim Meyering  <meyering@redhat.com>
33979
33980         c-stack: avoid "ignoring return value of `write'" warning
33981         * lib/c-stack.c: Include "ignore-value.h".
33982         (die): Explicitly ignore each write return value.
33983         * modules/c-stack (Depends-on): Add ignore-value.
33984
33985 2009-11-21  Bruno Haible  <bruno@clisp.org>
33986
33987         diffseq: reduce scope of variable 'best'.
33988         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33989         variable, earlier used for two different purposes.
33990
33991 2009-11-21  Jim Meyering  <meyering@redhat.com>
33992
33993         diffseq: remove useless assignment to "best"
33994         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33995         assignment.  At that point "best" is already guaranteed to be zero.
33996
33997 2009-11-20  Eric Blake  <ebb9@byu.net>
33998
33999         build: mention ftp redirector in release announcements
34000         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34001         values that used to come from cfg.mk; mention FTP redirect URL.
34002         * build-aux/announce-gen: Mention the mirror list.
34003         Suggested by Karl Berry.
34004
34005         nanosleep: improve port to mingw
34006         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34008         LIB_NANOSLEEP, but only when needed.
34009         * modules/select (Link): Document LIBSOCKET.
34010         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34011         enough.
34012
34013         nanosleep: work around cygwin bug
34014         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34015         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34016         bug.
34017         (getnow): Delete, not needed.
34018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34019         LIB_CLOCK_GETTIME.
34020         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34021         clock-time, gettime.
34022         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34023         bug.
34024         * modules/nanosleep-tests: New test.
34025         * tests/test-nanosleep.c: New file.
34026
34027         sleep: work around cygwin bug
34028         * lib/sleep.c (rpl_sleep): Work around the bug.
34029         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34030         (gl_PREREQ_SLEEP): Delete unused macro.
34031         * modules/sleep (Depends-on): Add verify.
34032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34033         * modules/unistd (Makefile.am): Substitute witness.
34034         * lib/unistd.in.h (sleep): Update prototype.
34035         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34036         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34037         * modules/sleep-tests (Depends-on): Check for alarm.
34038
34039 2009-11-20  Jim Meyering  <meyering@redhat.com>
34040
34041         maint.mk: improve sc_prohibit_magic_number_exit
34042         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34043         so it does not match uses like System.exit(1).
34044         Add comments showing how to correct all offenders.
34045
34046 2009-11-19  Eric Blake  <ebb9@byu.net>
34047
34048         xalloc-die-tests: add missing library
34049         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34050
34051         test-xvasprintf: silence compiler warnings
34052         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34053         empty string from gcc.
34054
34055 2009-11-19  Jim Meyering  <meyering@redhat.com>
34056
34057         xfreopen: new module, from coreutils
34058         * modules/xfreopen: New module.
34059         * lib/xfreopen.c: New file.
34060         * lib/xfreopen.h: New file.
34061         * MODULES.html.sh (File stream based Input/Output"): Add it.
34062
34063 2009-11-19  Eric Blake  <ebb9@byu.net>
34064
34065         manywarnings: depend on warnings
34066         * modules/manywarnings (Depends-on): Add warnings.
34067
34068         build: avoid compiler warnings
34069         * lib/select.c (rpl_select): Delete unused variable.
34070         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34071
34072 2009-11-18  Eric Blake  <ebb9@byu.net>
34073
34074         tests: avoid false negative with --with-packager
34075         * tests/test-version-etc.sh: Discard packager information.
34076         * tests/test-argp-version-etc-1.sh: Likewise.
34077         Reported by Mike Frysinger.
34078
34079         utimens: fix regression on Solaris
34080         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34081         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34082         can only change fd timestamps via futimesat.  Instead, use an
34083         additional witness macro to avoid BSD bug.
34084         Reported by Jim Meyering.
34085
34086 2009-11-17  Eric Blake  <ebb9@byu.net>
34087
34088         usleep: use it to simplify tests
34089         * modules/stat-time-tests (Depends-on): Add usleep.
34090         (configure.ac): Drop usleep check.
34091         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34092         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34093         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34094         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34095         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34096         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34097         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34098         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34099         Likewise.
34100         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34101         * tests/test-lchown.h (nap): Likewise.
34102         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34103         * tests/test-stat-time.c (nap): Likewise.
34104         * tests/test-utimens-common.h (nap): Update comments.
34105
34106         usleep: new module
34107         * modules/usleep: New file.
34108         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34109         * lib/usleep.c (usleep): Likewise.
34110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34111         * modules/unistd (Makefile.am): Substitute witnesses.
34112         * lib/unistd.in.h (usleep): Add declaration.
34113         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34114         * MODULES.html.sh (Date and time): Likewise.
34115         * modules/usleep-tests (Depends-on): New test.
34116         * tests/test-usleep.c: New file.
34117
34118         chown: work around OpenBSD bug
34119         * lib/chown.c (rpl_chown): Work around the bug.
34120         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34121         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34122         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34123         * modules/chown (Depends-on): Add stdbool.
34124         * modules/lchown (Depends-on): Likewise.
34125         * doc/posix-functions/chown.texi (chown): Document the bug.
34126         * doc/posix-functions/lchown.texi (lchown): Likewise.
34127         * tests/test-lchown.h (test_chown): Relax test.
34128
34129         mkstemp: avoid conflict with C++ keyword template
34130         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34131         * lib/mkostemp.c (mkostemp): Likewise.
34132         * lib/mkostemps.c (mkostemps): Likewise.
34133         * lib/mkstemp.c (mkstemp): Likewise.
34134         * lib/mkstemps.c (mkstemps): Likewise.
34135
34136         xalloc-die-tests: optimize
34137         * tests/test-xalloc-die.sh: Reduce number of processes.
34138
34139 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34140
34141         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34142         patch from ludo@gnu.org (Ludovic Courtès).
34143
34144 2009-11-17  Jim Meyering  <meyering@redhat.com>
34145
34146         version-etc: use proper license string
34147         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34148         * modules/version-etc-fsf: Likewise.
34149
34150 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34151
34152         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34153         printed to stdout.  Deal with EOL differences.
34154
34155 2009-11-17  Eric Blake  <ebb9@byu.net>
34156
34157         unsetenv: work around Solaris bug
34158         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34159         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34160         Reported by Jim Meyering.
34161
34162         vasnprintf: avoid compiler warnings
34163         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34164         variables.
34165         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34166
34167 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34168
34169         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34170         settings since xalloc-die is no longer the self test,
34171         xalloc-die.sh is.
34172
34173 2009-11-17  Jim Meyering  <meyering@redhat.com>
34174
34175         test-xalloc-die.sh: make the code agree with the commit log
34176         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34177         at the end, just in case you happen to have a test-xalloc-die
34178         program in some other PATH directory.
34179
34180         test-xalloc-die.sh: fix a portability bug
34181         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34182         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34183         Otherwise, argv[0] (as often seen in diagnostics) would be too
34184         system-dependent, sometimes with, and sometimes without the leading "./".
34185
34186         version-etc-fsf: relax license to LGPLv3+
34187         * modules/version-etc-fsf (License): Relax license.
34188
34189 2009-11-16  Eric Blake  <ebb9@byu.net>
34190
34191         xalloc-die-tests: avoid printing null pointer
34192         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34193         shell script.
34194         * tests/test-xalloc-die.c (program_name): Declare.
34195         * tests/test-xalloc-die.sh (tmpfiles): New file.
34196
34197         setenv, unsetenv: work around various bugs
34198         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34199         (setenv) [HAVE_SETENV]: Work around bugs.
34200         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34202         for bugs.
34203         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34204         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34206         * modules/stdlib (Makefile.am): Update substitutions.
34207         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34208         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34209         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34210         * modules/setenv-tests: New test.
34211         * modules/unsetenv-tests: Likewise.
34212         * tests/test-setenv.c: New file.
34213         * tests/test-unsetenv.c: Likewise.
34214
34215 2009-11-16  Jim Meyering  <meyering@redhat.com>
34216
34217         version-etc: relax license to LGPLv3+
34218         * modules/version-etc (License): Relax license.
34219
34220         better AC_REQUIRE expanded-before-required-warning avoidance
34221         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34222         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34223         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34224         which is no longer needed.
34225
34226 2009-11-16  Eric Blake  <ebb9@byu.net>
34227
34228         test-freading: clean up temporary file
34229         * tests/test-freading.c (main): Remove file on success, and use
34230         ASSERT more liberally.
34231         Reported by Jim Meyering.
34232
34233 2009-11-16  Jim Meyering  <meyering@redhat.com>
34234
34235         avoid new AC_REQUIRE expanded-before-required warnings
34236         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34237         merely using it.
34238         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34239         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34240
34241 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34242
34243         * tests/test-xalloc-die.c: New file.
34244         * modules/xalloc-die-tests: New file.
34245         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34246         XFAIL_TESTS so it can be appended by modules.
34247
34248 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34249
34250         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34251         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34252
34253 2009-11-14  Eric Blake  <ebb9@byu.net>
34254
34255         fnmatch: avoid compiler warning
34256         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34257         to silence compiler warning about mismatch signedness in ?:.
34258         Reported by Robert Millan.
34259
34260         intprops: add double-inclusion guard
34261         * lib/intprops.h: Allow idempotent includes.
34262         Suggested by Bruce Korb.
34263
34264         openat: detect Solaris fchownat bug
34265         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34266         penalizing glibc chownat when only lchownat is broken.
34267         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34268         trailing slash bugs.
34269         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34270         * modules/openat-tests (Files): Include more files.
34271         (Depends-on): Add mgetgroups, sleep, stat-time.
34272         (configure.ac): Add additional checks.
34273         (Makefile.am): Build new test.
34274         * tests/test-fchownat.c: New file.
34275
34276         lchown: detect Solaris and FreeBSD bug
34277         * lib/lchown.c (rpl_lchown): Work around bug.
34278         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34280         * modules/unistd (Makefile.am): Populate it.
34281         * lib/unistd.in.h (lchown): Update declaration.
34282         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34283         * modules/lchown-tests: New file.
34284         * tests/test-lchown.h (test_lchown): Likewise.
34285         * tests/test-lchown.c (main): Likewise.
34286
34287         chown: detect Solaris and FreeBSD bug
34288         * lib/chown.c (rpl_chown): Work around bug.
34289         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34290         (gl_PREREQ_CHOWN): Delete.
34291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34292         * modules/unistd (Makefile.am): Populate it.
34293         * lib/unistd.in.h (chown): Update declaration.
34294         * lib/lchown.c (chown): Update client.
34295         * modules/lchown (Depends-on): Add lstat.
34296         * doc/posix-functions/chown.texi (chown): Document the bug.
34297         * doc/posix-functions/getgroups.texi (getgroups): Document
34298         getgroups pitfall.
34299         * modules/chown-tests: New file.
34300         * tests/test-chown.h (test_chown): Likewise.
34301         * tests/test-chown.c (main): Likewise.
34302
34303 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34304
34305         gnulib-tool: correctly detect absence of m4 directories
34306         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34307
34308 2009-11-14  Jim Meyering  <meyering@redhat.com>
34309
34310         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34311         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34312
34313 2009-11-14  John W. Eaton  <jwe@gnu.org>
34314
34315         strftime.h: wrap funtion declaration in extern "C" block
34316         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34317
34318 2009-11-13  Eric Blake  <ebb9@byu.net>
34319
34320         getgroups: avoid compiler warning
34321         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34322
34323         getgroups: work around FreeBSD bug
34324         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34325         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34326         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34327         * tests/test-getgroups.c (main): Fix buffer overrun.
34328
34329         getgroups: avoid compilation failure
34330         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34331         * modules/getgroups (Depends-on): Add stdint.
34332
34333 2009-11-13  Jim Meyering  <meyering@redhat.com>
34334
34335         test-getgroups: avoid compilation failure
34336         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34337
34338 2009-11-13  Eric Blake  <ebb9@byu.net>
34339
34340         mgetgroups: new module, taken from coreutils
34341         * modules/mgetgroups: New file.
34342         * lib/mgetgroups.h: Likewise.
34343         * lib/mgetgroups.c (mgetgroups): Likewise.
34344         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34345         * MODULES.html.sh (Users and groups): Mention it.
34346
34347         getgroups: don't expose GETGROUPS_T to user
34348         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34349         an element at a time if GETGROUPS_T is wrong size.
34350         * lib/getugroups.h (getugroups): Change signature.
34351         * lib/unistd.in.h (getgroups): Likewise.
34352         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34353         signature needs fixing.
34354         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34355         AC_TYPE_GETGROUPS.
34356         * modules/group-member (Depends-on): Add getgroups.
34357         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34358         (group_member): Rely on getgroups replacement.
34359         * lib/getugroups.c (getugroups): Use gid_t.
34360         * tests/test-getgroups.c (main): Likewise.
34361         * NEWS: Mention the signature change.
34362         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34363         problem with signature.
34364         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34365         GETGROUPS_T is still useful for setgroups.
34366
34367         getgroups, getugroups: provide stubs for mingw
34368         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34369         * lib/getugroups.c (getugroups): Likewise.
34370         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34371         function.  Modernize replacement scheme.
34372         (gl_PREREQ_GETGROUPS): Delete.
34373         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34374         * modules/getgroups (configure.ac): Declare witness.
34375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34376         * modules/unistd (Depends-on): Substitute witness.
34377         * lib/unistd.in.h (getgroups): Declare replacement.
34378
34379         getgroups: avoid calling exit
34380         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34381         drop xalloc.
34382         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34383         dependencies.
34384         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34385         exiting, in the rare case of malloc failure.
34386
34387         getgroups: fix logic error
34388         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34389         has more than 20 groups.
34390         * modules/getgroups-tests: New test.
34391         * tests/test-getgroups.c: New file.
34392
34393 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34394
34395         * tests/test-base64.c: Improve.
34396
34397 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34398
34399         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34400         Blake <ebb9@byu.net>.
34401
34402 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34403
34404         * tests/test-xvasprintf.c: Add %s%s related checks.
34405
34406 2009-11-12  Eric Blake  <ebb9@byu.net>
34407
34408         version-etc: match standards.texi style
34409         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34410         and use <> only for URLs.
34411
34412 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34413
34414         fts: do not fail on a submount during traversal
34415         * lib/fts.c (fts_build): Read the stat info again after opening
34416         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34417         Original report at http://bugzilla.redhat.com/501848.
34418
34419 2009-11-12  Jim Meyering  <meyering@redhat.com>
34420
34421         bootstrap: sync from coreutils
34422         * build-aux/bootstrap (bootstrap_epilogue): New function.
34423         Use git_modules_config in one more place.  This make bootstrap's
34424         --gnulib-srcdir option more useful for testing.
34425
34426         bootstrap: generalize autoheader check
34427         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34428         AC_CONFIG_HEADERS.
34429
34430 2009-11-11  Eric Blake  <ebb9@byu.net>
34431
34432         mkfifoat: use new modules for Solaris and BSD bugs
34433         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34434         * lib/mkfifoat.c (mknodat): Split...
34435         * lib/mknodat.c (mknodat): ...into new file.
34436         * modules/mkfifoat (Files): Ship new file.
34437         (Depends-on): Add mkfifo, mknod.
34438         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34439         (Depends-on): Add symlink.
34440         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34441         redundant with test_mkfifo.h.
34442         (do_mkfifoat, do_mknodat): New helpers.
34443
34444         mknod: new module
34445         * modules/mknod: New file.
34446         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34447         * lib/mknod.c (mknod): Likewise.
34448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34449         defaults.
34450         * modules/sys_stat (Makefile.am): Substitute them.
34451         * lib/sys_stat.in.h (mknod): Declare replacement.
34452         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34453         Document it.
34454         * doc/posix-functions/mknod.texi (mknod): Likewise.
34455         * modules/mknod-tests: New test.
34456         * tests/test-mknod.c: Likewise.
34457
34458         mkfifo: new module
34459         * modules/mkfifo: New file.
34460         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34461         * lib/mkfifo.c (mkfifo): Likewise.
34462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34463         defaults.
34464         * modules/sys_stat (Makefile.am): Substitute them.
34465         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34466         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34467         Document it.
34468         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34469         * modules/mkfifo-tests: New test.
34470         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34471         from test-mkfifoat.c.
34472         * tests/test-mkfifo.c: New file.
34473
34474         readlink: detect FreeBSD bug
34475         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34476         slash on symlink.
34477         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34478         * tests/test-readlink.h (test_readlink): Enhance test.
34479
34480         symlink: detect FreeBSD bug
34481         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34482         slash on symlink.
34483         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34484         * tests/test-symlink.h (test_symlink): Enhance test.
34485
34486 2009-11-10  Eric Blake  <ebb9@byu.net>
34487
34488         link: detect FreeBSD bug
34489         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34490         symlink.
34491         * doc/posix-functions/link.texi (link): Document the bug.
34492         * tests/test-link.h (test_link): Enhance test.
34493         * tests/test-linkat.c (main): Update caller.
34494
34495         unlink, remove: detect FreeBSD bug
34496         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34497         slash on symlink.
34498         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34499         * doc/posix-functions/remove.texi (remove): Likewise.
34500         * tests/test-unlink.h (test_unlink): Enhance test.
34501         * tests/test-remove.c (main): Likewise.
34502
34503 2009-11-09  Eric Blake  <ebb9@byu.net>
34504
34505         rename: detect FreeBSD bug
34506         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34507         slash on symlink.
34508         * modules/renameat-tests (Depends-on): Add filenamecat.
34509         * tests/test-rename.h (test_rename): Allow one more errno.
34510         * tests/test-renameat.c (main): Likewise.
34511         * doc/posix-functions/rename.texi (rename): Document the bug.
34512
34513         open: detect FreeBSD bug
34514         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34515         symlink.
34516         * doc/posix-functions/open.texi (open): Document the bug.
34517         * doc/posix-functions/utimes.texi (utimes): Likewise.
34518         * tests/test-open.h (test_open): Add parameters, and test symlink
34519         handling.
34520         * tests/test-open.c (main): Adjust caller.
34521         * tests/test-fcntl-safer.c (main): Likewise.
34522         * modules/open-tests (Depends-on): Add stdbool, symlink.
34523         * modules/fcntl-safer-tests (Depends-on): Likewise.
34524         * tests/test-openat.c (main): Add test-open tests.
34525
34526         stat: detect FreeBSD bug
34527         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34528         symlink.
34529         * doc/posix-functions/stat.texi (stat): Document the bug.
34530         * tests/test-stat.h (test_stat_func): Add argument.
34531         * tests/test-stat.c (main): Adjust caller.
34532         * tests/test-fstatat.c (main): Likewise.
34533         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34534         Reported by Jim Meyering.
34535
34536 2009-11-09  James Youngman  <jay@gnu.org>
34537
34538         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34539         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34540
34541 2009-11-08  Jim Meyering  <meyering@redhat.com>
34542
34543         utimens: remove invalid futimesat call
34544         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34545         It used the file descriptor of the target file as the DIR_FD
34546         parameter and NULL as the file name.  That caused failure with
34547         errno == EFAULT on FreeBSD-8.0-rc2
34548
34549 2009-11-07  Eric Blake  <ebb9@byu.net>
34550
34551         fflush, freadseek: use fseeko, not fseek
34552         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34553         (clear_ungetc_buffer): Avoid potential problems on large files.
34554         * lib/freadseek.c (freadseek): Likewise.
34555         * modules/freadseek (Depends-on): Add fseeko.
34556         * modules/fseek (configure.ac): Set a witness.
34557         * tests/test-fflush.c (main): Use fseeko.
34558         * tests/test-fpurge.c (fseek): Disable link warning.
34559         * tests/test-freadable.c (fseek): Likewise.
34560         * tests/test-freading.c (fseek): Likewise.
34561         * tests/test-fseeko.c (fseek): Likewise.
34562         * tests/test-ftell.c (fseek): Likewise.
34563         * tests/test-ftello.c (fseek): Likewise.
34564         * tests/test-fwritable.c (fseek): Likewise.
34565         * tests/test-fwriting.c (fseek): Likewise.
34566
34567 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34568
34569         * modules/memchr (Depends-on): Drop getpagesize dependency.
34570
34571 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34572
34573         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34574         Reported by Ludovic Courtès.
34575         * build-aux/pmccabe2html: Improve example usage.
34576         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34577
34578 2009-11-06  Jim Meyering  <meyering@redhat.com>
34579
34580         do-release-commit-and-tag: New module.
34581         Automate the release-commit and tag process.
34582         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34583         * modules/do-release-commit-and-tag: New file.
34584         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34585
34586 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34587
34588         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34589         because test-select.c uses inet_pton.
34590
34591 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34592
34593         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34594         GETADDRINFO_LIB.  Bump serial number.
34595         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34596         Suggested by Eric Blake <ebb9@byu.net>.
34597
34598 2009-11-05  Eric Blake  <ebb9@byu.net>
34599
34600         strtod: detect darwin bug
34601         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34602         Reported by Leo Davis.
34603
34604         freopen-safer: new module
34605         * modules/freopen-safer: New module.
34606         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34607         * lib/freopen-safer.c (freopen_safer): New file.
34608         * lib/stdio-safer.h (freopen_safer): New declaration.
34609         * lib/stdio--.h (freopen): New override.
34610         * MODULES.html.sh (File stream based Input/Output): Mention it.
34611         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34612         freopen-safer module.
34613         * doc/posix-functions/stderr.texi (stderr): Likewise.
34614         * doc/posix-functions/stdin.texi (stdin): Likewise.
34615         * doc/posix-functions/stdout.texi (stdout): Likewise.
34616         * modules/freopen-safer-tests: New test.
34617         * tests/test-reopen-safer.c: New file.
34618
34619 2009-11-05  Jim Meyering  <meyering@redhat.com>
34620
34621         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34622         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34623
34624 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34625
34626         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34627
34628 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34629
34630         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34631
34632 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34633
34634         Fix link error.
34635         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34636         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34637
34638 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34639
34640         * tests/test-func.c: Also test value of __func__.
34641
34642 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34643
34644         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34645         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34646
34647 2009-11-05  Bruno Haible  <bruno@clisp.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         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34653
34654 2009-11-05  Bruno Haible  <bruno@clisp.org>
34655
34656         Tests for module 'inet_pton'.
34657         * modules/inet_pton-tests: New file.
34658         * tests/test-inet_pton.c: New file.
34659
34660 2009-11-05  Bruno Haible  <bruno@clisp.org>
34661
34662         Tests for module 'inet_ntop'.
34663         * modules/inet_ntop-tests: New file.
34664         * tests/test-inet_ntop.c: New file.
34665
34666 2009-11-04  Eric Blake  <ebb9@byu.net>
34667
34668         stdlib-safer: wrap all mkstemp variants
34669         * modules/mkostemp (configure.ac): Set witness.
34670         * modules/mkostemps (configure.ac): Likewise.
34671         * modules/mkstemps (configure.ac): Likewise.
34672         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34673         (mkstemps_safer): Wrap more functions.
34674         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34675         wrapping.
34676         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34677         (mkstemps_safer): Implement the wrappers.
34678
34679         mkstemps, mkostemps: new modules
34680         * modules/mkostemps: New module.
34681         * modules/mkstemps: Likewise.
34682         * lib/mkostemps.c (mkostemps): New file.
34683         * lib/mkstemps.c (mkstemps): Likewise.
34684         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34685         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34687         * modules/stdlib (Makefile.am): Substitute them.
34688         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34689         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34690         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34691         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34692         * MODULES.html.sh (File system functions): Mention them.
34693
34694         tempname: resync from glibc
34695         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34696         same values for __GT_FILE as glibc.  Abort even when assertions
34697         are disabled.
34698         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34699         match its value otherwise.  Allow idempotent inclusion.
34700         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34701         * lib/mkostemp.c (mkostemp): Likewise.
34702         * lib/mkstemp.c (mkstemp): Likewise.
34703         * lib/tmpfile.c (tmpfile): Likewise.
34704         * NEWS: Document this.
34705
34706         utimens: fix use of futimens on older Linux
34707         * lib/utimens.c (fdutimens): Use updated, rather than original,
34708         timespec to avoid bug in older Linux kernel.
34709         Reported by Simon Josefsson.
34710
34711 2009-11-04  Bruno Haible  <bruno@clisp.org>
34712
34713         Make num_processors more flexible and consistent.
34714         * lib/nproc.h (enum nproc_query): New type.
34715         (num_processors): Add a 'query' argument.
34716         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34717         (num_processors): Add a 'query' argument. Test the value of the
34718         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34719         mingw, count the number of CPUs available for the current process.
34720         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34721         Check for sched_getaffinity and sched_getaffinity_np.
34722         * modules/nproc (Depends-on): Add c-ctype, extensions.
34723         * NEWS: Mention the change.
34724
34725 2009-11-03  Bruno Haible  <bruno@clisp.org>
34726
34727         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34728
34729 2009-11-03  Jim Meyering  <meyering@redhat.com>
34730
34731         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34732         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34733         if it is defined.
34734
34735 2009-11-02  Eric Blake  <ebb9@byu.net>
34736
34737         mktime, timegm: share common declaration
34738         * lib/mktime-internal.h: New file.
34739         * lib/mktime.c: Use it rather than open-coding a declaration.
34740         * lib/timegm.c: Likewise.
34741         * modules/mktime (Files): Ship it.
34742         * modules/timegm (Files): Likewise.
34743         Suggested by Bruno Haible.
34744
34745         test-update-copyright: update test to match script changes
34746         * tests/test-update-copyright.sh: Avoid hard-coding perl
34747         location.  Don't update *.bak created by earlier runs.
34748
34749 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34750             Simon Josefsson  <simon@josefsson.org>
34751             Bruno Haible  <bruno@clisp.org>
34752
34753         Fix link error on Solaris 8.
34754         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34755         also in libnsl. Define also INET_PTON_LIB.
34756         * modules/inet_pton (Link): New section.
34757
34758 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34759             Bruno Haible  <bruno@clisp.org>
34760
34761         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34762         * modules/inet_ntop (Link): New section.
34763         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34764
34765 2009-11-02  Eric Blake  <ebb9@byu.net>
34766
34767         maint: avoid compiler warnings in m4 macros
34768         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34769         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34770
34771 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34772
34773         * m4/pmccabe2html.m4: Remove file.
34774         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34775         function.  Change maintainer.
34776         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34777         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34778         Courtès).
34779
34780 2009-10-31  Eric Blake  <ebb9@byu.net>
34781
34782         fseeko: fix m4 regression
34783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34784         regression from 2009-10-27.
34785         Reported by Ralf Wildenhues.
34786
34787 2009-10-31  Jim Meyering  <meyering@redhat.com>
34788
34789         inttostr: aesthetics and improved (compile-time) safety
34790         Define inttype_is_signed rather than inttype_is_unsigned,
34791         since the sole use is via "#if inttype_is_signed".
34792         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34793         inttype_is_unsigned.
34794         * lib/offtostr.c (inttype_is_signed): Likewise.
34795         * lib/uinttostr.c (inttype_is_signed): Likewise.
34796         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34797         * lib/inttostr.c (inttostr): Use verify to cross-check the
34798         inttype_is_signed value and the signedness of the actual type.
34799         * modules/inttostr (Depends-on): Add verify.
34800
34801 2009-10-30  Eric Blake  <ebb9@byu.net>
34802
34803         build: avoid compiler warnings
34804         * lib/fchmodat.c (lchmod): Mark unused variables.
34805         * lib/getopt.c (_getopt_initialize): Likewise.
34806         * lib/mktime.c (__mktime_internal): Provide prototype.
34807         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34808         older gcc that do not understand #pragma GCC diagnostic.
34809         * lib/uinttostr.c (inttype_is_unsigned): Define.
34810         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34811
34812 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34813
34814         stat: fix compilation on AIX
34815         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34816         only see struct stat64.
34817
34818 2009-10-30  Eric Blake  <ebb9@byu.net>
34819
34820         exclude: make more robust
34821         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34822         rather than masking a coding bug.
34823         Suggested by Bruno Haible.
34824
34825 2009-10-30  Jim Meyering  <meyering@redhat.com>
34826
34827         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34828         Rather than putting #!/usr/bin/perl on the first line,
34829         start with a variant of what's recommended by "man perlrun" that
34830         invokes the first "perl" program from your shell's search path.
34831         * build-aux/gitlog-to-changelog: Replace #!... as above.
34832         Add a "Local Variables" perl mode setting.
34833         Prompted by a patch from Ludovic Courtès.
34834         Improved by Eric Blake.
34835         * build-aux/useless-if-before-free: Likewise.
34836         * build-aux/announce-gen: Likewise.
34837         * build-aux/update-copyright: Likewise.
34838
34839 2009-10-29  Eric Blake  <ebb9@byu.net>
34840
34841         filenamecat-lgpl: adjust clients
34842         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34843         filenamecat.
34844         * modules/renameat (Depends-on): Likewise.
34845
34846         filenamecat: split into filenamecat-lgpl
34847         * modules/filenamecat-lgpl: New module.
34848         * modules/filenamecat (Files): Move library-safe files into
34849         filenamecat-lgpl.
34850         (Depends-on): Add filenamecat-lgpl.
34851         (configure.ac): Declare witness.
34852         * lib/filenamecat.h (file_name_concat): Only declare when using
34853         GPL module.
34854         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34855         Move...
34856         * lib/filenamecat-lgpl.c: ...into new file.
34857         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34858         (gl_FILE_NAME_CONCAT): Use it.
34859         * MODULES.html.sh (File system functions): Mention new module.
34860
34861         argp: avoid memory leak
34862         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34863         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34864         base_name, since the latter malloc()s and can call exit().
34865         Leak introduced 2006-07-03.
34866
34867         dirname-lgpl: adjust clients that don't need full dirname
34868         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34869         * modules/filenamecat (Depends-on): Likewise.
34870         * modules/linkat (Depends-on): Likewise.
34871         * modules/mkancesdirs (Depends-on): Likewise.
34872         * modules/mkdir (Depends-on): Likewise.
34873         * modules/openat (Depends-on): Likewise.
34874         * modules/savewd (Depends-on): Likewise.
34875         * modules/rename (Depends-on): Likewise.
34876         (License): Relax license.
34877         * modules/mkdir-tests (Depends-on): Drop progname.
34878         (Makefile.am): Delete unneeded LDADD.
34879         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34880
34881         dirname: split into dirname-lgpl
34882         * modules/dirname-lgpl: New module.
34883         * modules/dirname (Files): Move library-safe files into
34884         dirname-lgpl.
34885         (Depends-on): Add dirname-lgpl.
34886         (configure.ac): Declare witness.
34887         * modules/double-slash-root (License): Relax license.
34888         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34889         module.
34890         * lib/dirname.c (dir_len, mdir_name): Move...
34891         * lib/dirname-lgpl.c: ...into new file.
34892         * lib/basename.c (last_component, base_len): Move...
34893         * lib/basename-lgpl.c: ...into new file.
34894         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34895         (gl_DIRNAME): Use it.
34896         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34897         Mention new module.
34898         * modules/dirname-tests (Depends-on): Add progname.
34899         * tests/test-dirname.c (program_name): Delete.
34900
34901         mkdir: make safe for libraries
34902         * modules/mkdir (Depends-on): Drop xalloc.
34903         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34904         exit.
34905
34906         tests: avoid some compiler warnings
34907         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34908         literals.
34909         * tests/test-memchr.c (main): Avoid type mismatch.
34910         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34911         * tests/test-base64.c (main): Likewise.
34912         * tests/test-getdelim.c (main): Likewise.
34913         * tests/test-gethostname.c (main): Likewise.
34914         * tests/test-getline.c (main): Likewise.
34915         * tests/test-netinet_in.c (main): Likewise.
34916         * tests/test-select.c (open_server_socket, main): Likewise.
34917         * tests/test-select-stdin.c (main): Likewise.
34918         * tests/test-sockets.c (main): Likewise.
34919         * tests/test-strsignal.c (main): Likewise.
34920         * tests/test-sys_select.c (main): Likewise.
34921         * tests/test-sys_socket.c (main): Likewise.
34922         * tests/test-u64.c (main): Likewise.
34923         * tests/test-xfprintf-posix.c (main): Likewise.
34924         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34925
34926         sockets: avoid compiler warning
34927         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34928
34929         maint: detect usage(1) and other suspicious exits
34930         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34931
34932 2009-10-29  Jim Meyering  <meyering@redhat.com>
34933
34934         timespec: long-to-int truncation could make timespec_cmp malfunction
34935         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34936         a multiple of 2^32 nanoseconds as no difference.
34937
34938 2009-10-28  Jim Meyering  <meyering@redhat.com>
34939
34940         fprintftime: wrap macro code argument in "do {...} while(0)"
34941         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34942         cpy macro must be a statement that can be followed by a semicolon.
34943         Now that the else clause contains a comment and is hence longer
34944         than one line, I require curly braces.  That in turn requires
34945         that we wrap this code block in the standard do...while(0).
34946
34947         fprintftime: remove stray semicolon from previous change
34948         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34949
34950         fprintftime: avoid a warning about ignored fwrite return value
34951         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34952         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34953         that is unsafe.
34954         * modules/fprintftime (Depends-on): Add ignore-value.
34955
34956         exclude: avoid an unwarranted warning
34957         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34958
34959 2009-10-27  Eric Blake  <ebb9@byu.net>
34960
34961         fseek: avoid compilation failure when fflush is replaced
34962         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34963         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34964         module is in use.
34965         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34966         module is not in use; since REPLACE_FSEEK worked otherwise.
34967         (GNULIB_FTELLO): Likewise for ftell.
34968         Reported by Ian Beckwith and others.
34969
34970 2009-10-27  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34973         Reported by Jim Meyering.
34974
34975 2009-10-27  Jim Meyering  <jim@meyering.net>
34976             Bruno Haible  <bruno@clisp.org>
34977
34978         Avoid warning despite dropping the return value of fwrite.
34979         * lib/unicodeio.c: Include ignore-value.h.
34980         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34981         * modules/unicodeio (Depends-on): Add ignore-value.
34982
34983 2009-10-26  Eric Blake  <ebb9@byu.net>
34984
34985         areadlinkat: fix fallback path
34986         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34987         pointer and zero.
34988
34989 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34990
34991         Use a better IO block size for modern systems
34992         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34993         * lib/md2.c: Likewise.
34994         * lib/md4.c: Likewise.
34995         * lib/md5.c: Likewise.
34996         * lib/sha1.c: Likewise.
34997         * lib/sha256.c: Likewise.
34998         * lib/sha512.c: Likewise.
34999
35000 2009-10-22  Eric Blake  <ebb9@byu.net>
35001
35002         tests: avoid several compiler warnings
35003         * tests/test-getcwd.c (main): Avoid buffer underflow.
35004         * tests/test-getdate.c (main): String literals are not safe with
35005         putenv, so use setenv.  Declare unused argument.
35006         * modules/getdate-tests (Depends-on): Add setenv.
35007         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35008         problems with string literals in char *.
35009         * tests/test-hash.c (main): Avoid shadowing declaration.
35010         (insert_new): Treat string literals as char const *.
35011         * tests/test-getopt.h (test_getopt): Likewise.
35012         (getopt_loop): Alter types to minimize casting elsewhere.
35013         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35014         (test_getopt_long_posix): Likewise.
35015         (do_getopt_long): Add wrapper to minimize casting.
35016         * tests/test-atexit.c (clear_temp_file): Use void.
35017         * tests/test-areadlink-with-size.c (main): Declare unused
35018         arguments.
35019         * tests/test-areadlink.c (main): Likewise.
35020         * tests/test-areadlinkat-with-size.c (main): Likewise.
35021         * tests/test-areadlinkat.c (main): Likewise.
35022         * tests/test-canonicalize-lgpl.c (main): Likewise.
35023         * tests/test-canonicalize.c (main): Likewise.
35024         * tests/test-dirent-safer.c (main): Likewise.
35025         * tests/test-dirname.c (main): Likewise.
35026         * tests/test-dup2.c (main): Likewise.
35027         * tests/test-fchdir.c (main): Likewise.
35028         * tests/test-fcntl-h.c (main): Likewise.
35029         * tests/test-fcntl-safer.c (main): Likewise.
35030         * tests/test-fdopendir.c (main): Likewise.
35031         * tests/test-fdutimensat.c (main): Likewise.
35032         * tests/test-fflush.c (main): Likewise.
35033         * tests/test-filenamecat.c (main): Likewise.
35034         * tests/test-filevercmp.c (main): Likewise.
35035         * tests/test-fopen-safer.c (main): Likewise.
35036         * tests/test-fopen.c (main): Likewise.
35037         * tests/test-fpending.c (main): Likewise.
35038         * tests/test-fpurge.c (main): Likewise.
35039         * tests/test-freading.c (main): Likewise.
35040         * tests/test-fstatat.c (main): Likewise.
35041         * tests/test-fsync.c (main): Likewise.
35042         * tests/test-futimens.c (main): Likewise.
35043         * tests/test-getndelim2.c (main): Likewise.
35044         * tests/test-gettimeofday.c (main): Likewise.
35045         * tests/test-getopt.c (main): Likewise.
35046         * tests/test-i-ring.c (main): Likewise.
35047         * tests/test-inttypes.c (main): Likewise.
35048         * tests/test-link.c (main): Likewise.
35049         * tests/test-lstat.c (main): Likewise.
35050         * tests/test-math.c (main): Likewise.
35051         * tests/test-md5.c (main): Likewise.
35052         * tests/test-memchr2.c (main): Likewise.
35053         * tests/test-memrchr.c (main): Likewise.
35054         * tests/test-mkdir.c (main): Likewise.
35055         * tests/test-mkdirat.c (main): Likewise.
35056         * tests/test-mkfifoat.c (main): Likewise.
35057         * tests/test-open.c (main): Likewise.
35058         * tests/test-openat-safer.c (main): Likewise.
35059         * tests/test-openat.c (main): Likewise.
35060         * tests/test-quotearg.c (main): Likewise.
35061         * tests/test-rawmemchr.c (main): Likewise.
35062         * tests/test-readlink.c (main): Likewise.
35063         * tests/test-remove.c (main): Likewise.
35064         * tests/test-rename.c (main): Likewise.
35065         * tests/test-renameat.c (main): Likewise.
35066         * tests/test-rmdir.c (main): Likewise.
35067         * tests/test-sha1.c (main): Likewise.
35068         * tests/test-signal.c (main): Likewise.
35069         * tests/test-sigaction.c (main): Likewise.
35070         * tests/test-stat.c (main): Likewise.
35071         * tests/test-stat-time.c (main): Likewise.
35072         * tests/test-stddef.c (main): Likewise.
35073         * tests/test-stdint.c (main): Likewise.
35074         * tests/test-stdio.c (main): Likewise.
35075         * tests/test-stdlib.c (main): Likewise.
35076         * tests/test-strchrnul.c (main): Likewise.
35077         * tests/test-strerror.c (main): Likewise.
35078         * tests/test-string.c (main): Likewise.
35079         * tests/test-strtod.c (main): Likewise.
35080         * tests/test-strverscmp.c (main): Likewise.
35081         * tests/test-symlink.c (main): Likewise.
35082         * tests/test-symlinkat.c (main): Likewise.
35083         * tests/test-sys_stat.c (main): Likewise.
35084         * tests/test-sys_time.c (main): Likewise.
35085         * tests/test-time.c (main): Likewise.
35086         * tests/test-unistd.c (main): Likewise.
35087         * tests/test-unlink.c (main): Likewise.
35088         * tests/test-unlinkat.c (main): Likewise.
35089         * tests/test-utimens.c (main): Likewise.
35090         * tests/test-utimensat.c (main): Likewise.
35091         * tests/test-version-etc.c (main): Likewise.
35092         * tests/test-wchar.c (main): Likewise.
35093         * tests/test-wctype.c (main): Likewise.
35094         * tests/test-xprintf-posix.c (main): Likewise.
35095         * tests/test-posixtm.c (main): Likewise.
35096         (STREQ): Delete unused macro.
35097         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35098         shadowed variables.
35099         * tests/test-memchr.c (main): Likewise.
35100
35101 2009-10-21  Eric Blake  <ebb9@byu.net>
35102
35103         areadlinkat: avoid failure on older glibc
35104         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35105         rather than mis-comparing 0 against FUNC_RESULT of char*.
35106
35107 2009-10-21  Bruno Haible  <bruno@clisp.org>
35108
35109         * modules/stpncpy (License): Relicense under LGPLv2+.
35110         Reported by David Lutterkort <lutter@redhat.com>.
35111
35112 2009-10-20  Eric Blake  <ebb9@byu.net>
35113
35114         utimensat: work around Solaris 9 bug
35115         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35116         has trailing slash bugs.
35117         * tests/test-lutimens.h (test_lutimens): Enhance test.
35118         * tests/test-utimens.h (test_utimens): Likewise.
35119         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35120         * doc/posix-functions/utimes.texi (utimes): Likewise.
35121         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35122         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35123         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35124         * doc/posix-functions/futimens.texi (futimens): Likewise.
35125
35126         fdutimensat: new module
35127         * modules/fdutimensat: New file.
35128         * lib/fdutimensat.c (fdutimensat): Likewise.
35129         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35130         * MODULES.html.sh (File system functions): Mention module.
35131         * modules/fdutimensat-tests: New test.
35132         * tests/test-fdutimensat.c: Likewise.
35133
35134         doc: regenerate INSTALL
35135         * doc/INSTALL: Reflect recent autoconf update.
35136         * doc/INSTALL.ISO: Likewise.
35137         * doc/INSTALL.UTF-8: Likewise.
35138
35139 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35140
35141         acl: warn if ACL support is not detected
35142         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35143
35144 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35145
35146         * lib/nproc.h: Add extern "C" block for C++.
35147
35148 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35149             Bruno Haible  <bruno@clisp.org>
35150
35151         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35152         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35153         * doc/posix-functions/isalpha.texi: Likewise.
35154         * doc/posix-functions/isblank.texi: Likewise.
35155         * doc/posix-functions/iscntrl.texi: Likewise.
35156         * doc/posix-functions/isdigit.texi: Likewise.
35157         * doc/posix-functions/isgraph.texi: Likewise.
35158         * doc/posix-functions/islower.texi: Likewise.
35159         * doc/posix-functions/isprint.texi: Likewise.
35160         * doc/posix-functions/ispunct.texi: Likewise.
35161         * doc/posix-functions/isspace.texi: Likewise.
35162         * doc/posix-functions/isupper.texi: Likewise.
35163         * doc/posix-functions/isxdigit.texi: Likewise.
35164
35165 2009-10-18  Bruno Haible  <bruno@clisp.org>
35166
35167         Tests for module 'isblank'.
35168         * modules/isblank-tests: New file.
35169         * tests/test-isblank.c: New file.
35170
35171         New module 'isblank'.
35172         * lib/isblank.c: New file.
35173         * m4/isblank.m4: New file.
35174         * modules/isblank: New file.
35175         * doc/posix-functions/isblank.texi: Mention the new module.
35176
35177 2009-10-18  Bruno Haible  <bruno@clisp.org>
35178
35179         New module 'ctype'.
35180         * lib/ctype.in.h: New file.
35181         * m4/ctype.m4: New file.
35182         * modules/ctype: New file.
35183         * doc/posix-headers/ctype.texi: Mention the new module.
35184
35185 2009-10-18  Jim Meyering  <meyering@redhat.com>
35186
35187         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35188         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35189         right after its initialization, rather than farther down.
35190         Keeping these in close proximity makes it easier to ensure
35191         that each such variable is initialized.  E.g.,
35192
35193             LIB_CLOCK_GETTIME=
35194             AC_SUBST([LIB_CLOCK_GETTIME])
35195
35196         This change also increments these serial numbers.
35197         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35198         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35200
35201 2009-10-18  Bruno Haible  <bruno@clisp.org>
35202
35203         Don't let environment variables perturb build.
35204         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35205         (gl_PREREQ_GETHRXTIME): ... not here.
35206
35207 2009-10-18  Bruno Haible  <bruno@clisp.org>
35208
35209         Avoid symlink attack in localcharset module.
35210         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35211         (O_NOFOLLOW): Define fallback.
35212         (get_charset_aliases): Don't open the file if it is a symbolic link.
35213         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35214         gl_FCNTL_H.
35215         (gl_FCNTL_H): Require it.
35216         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35217         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35218         Reported by Fergal Glynn <fglynn@veracode.com>.
35219
35220 2009-10-18  Bruno Haible  <bruno@clisp.org>
35221
35222         Implement nproc for mingw.
35223         * lib/nproc.c: Include <windows.h>
35224         (num_processors): On native Windows platforms, try GetSystemInfo.
35225
35226 2009-10-18  Bruno Haible  <bruno@clisp.org>
35227
35228         Implement nproc for IRIX.
35229         * lib/nproc.c: Include <sys/sysmp.h>.
35230         (num_processors): On IRIX systems, try sysmp.
35231         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35232
35233 2009-10-18  Bruno Haible  <bruno@clisp.org>
35234
35235         Implement nproc for HP-UX.
35236         * lib/nproc.c: Include <sys/pstat.h>
35237         (num_processors): On HP-UX systems, try pstat_getdynamic.
35238         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35239         pstat_getdynamic.
35240
35241 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35242             Bruno Haible  <bruno@clisp.org>
35243
35244         Implement nproc for NetBSD, OpenBSD.
35245         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35246         (ARRAY_SIZE): New macro.
35247         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35248         * m4/nproc.m4: New file.
35249         * modules/nproc (Files): Add m4/nproc.m4.
35250         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35251         (Makefile.am): Instead, augment lib_SOURCES.
35252
35253 2009-10-18  Bruno Haible  <bruno@clisp.org>
35254
35255         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35256         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35257         sys/param.h.
35258
35259 2009-10-16  Eric Blake  <ebb9@byu.net>
35260
35261         utimensat: new module
35262         * modules/utimensat: New file.
35263         * lib/utimensat.c (utimensat): Likewise.
35264         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35265         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35266         so we can work around Linux bugs.
35267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35268         * modules/sys_stat (Makefile.am): Substitute them.
35269         * lib/sys_stat.in.h (utimensat): Declare it.
35270         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35271         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35272         * modules/utimensat-tests: New test.
35273         * tests/test-utimensat.c: Likewise.
35274
35275         utimens: let lutimens work on non-symlinks
35276         * lib/utimens.c (lutimens): Fall back to utimens rather than
35277         failing with ENOSYS, when file is not a symlink.
35278         (utimens): Reduce redirection.
35279         * tests/test-lutimens.h (test_lutimens): Update test to cover
35280         non-symlinks.
35281         * tests/test-utimens.h (test_utimens): Update test to cover
35282         symlinks.
35283         * tests/test-utimens.c (main): Update caller.
35284
35285         utimens: cache whether utimensat syscall works
35286         * lib/utimens.c (utimensat_works_really): New cache variable.
35287         (fdutimens, lutimens): Use it to avoid failing syscall.
35288
35289         test-stat-time, test-utimens: improve portability
35290         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35291         ext4 on alpha, and for cygwin.
35292         * tests/test-utimens-common.h: New file.
35293         (nap): Factor delays into single function.
35294         * tests/test-lutimens.h (test_lutimens): Use new header.
35295         * tests/test-futimens.h (test_futimens): Likewise.
35296         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35297         timestamps to occur from same machine, as was done previously for
35298         test_utimens.
35299         * modules/utimens-tests (Files): Ship new file.
35300         * modules/futimens-tests (Files): Likewise.
35301         Reported in part by Jim Meyering.
35302
35303         sys_stat: sort replacement declarations
35304         * lib/sys_stat.in.h: Sort declarations.
35305         * lib/futimens.c (futimens): Fix typo.
35306
35307 2009-10-15  Jim Meyering  <meyering@redhat.com>
35308
35309         don't let environment settings perturb build
35310         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35311         could cause a configure-time and/or build-time malfunction.
35312         Typically, a configure-time function-in-library test is performed
35313         via code like this:
35314
35315           LIB_VAR=
35316           AC_SUBST([LIB_VAR])
35317           prefix_saved_LIBS=$LIBS
35318             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35319                        [test "$ac_cv_search_FUNC" = "none required" ||
35320                         LIB_VAR=$ac_cv_search_FUNC])
35321           LIBS=$prefix_saved_LIBS
35322
35323         However, in each of the files affected by this change, the LIB_VAR=
35324         initialization was omitted.  Thus, when set in the environment, its
35325         value would propagate into generated Makefiles when FUNC is not found
35326         in LIB_NAME.
35327         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35328         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35330
35331 2009-10-14  Eric Blake  <ebb9@byu.net>
35332
35333         fchdir: avoid infinite recursion in mingw
35334         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35335         recursing.
35336
35337         test-stat-time: port to mingw
35338         * tests/test-stat-time.c (force_unlink): Return a value.
35339         (test_ctime) [W32]: Fix compilation error.
35340         (nap): Don't call usleep with too large an argument.  Use
35341         force_unlink.
35342         * doc/pastposix-functions/usleep.texi (usleep): Document the
35343         portability issue.
35344
35345 2009-10-13  Jim Meyering  <meyering@redhat.com>
35346
35347         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35348         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35349         * modules/pipe-filter-ii: Likewise.
35350         * modules/sys_socket-tests: Likewise.
35351         * modules/tsearch-tests: Likewise.
35352         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35353         (check): Depend on it.
35354
35355 2009-10-12  Eric Blake  <ebb9@byu.net>
35356
35357         utimens-tests: port to NFS file systems
35358         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35359         comparisons to avoid spurious failures from timestamp drift
35360         between NFS machines.
35361
35362 2009-10-12  Eric Blake  <ebb9@byu.net>
35363
35364         stat-time-tests: minor cleanups
35365         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35366         * tests/test-stat-time.c (nap): Separate assignment from call.
35367         Suggested by Paolo Bonzini and Bruno Haible.
35368
35369         sys_stat: guarantee struct timespec
35370         * lib/sys_stat.in.h (includes): Always include <time.h>
35371         * modules/sys_stat (Depends-on): Add time.
35372         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35373         mode_t permission values.
35374         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35375         get at subsecond timestamps.
35376
35377 2009-10-10  Eric Blake  <ebb9@byu.net>
35378
35379         futimens: new module
35380         * modules/futimens: New file.
35381         * lib/futimens.c (futimens): Likewise.
35382         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35383         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35384         we can work around Linux bugs.
35385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35386         * modules/sys_stat (Makefile.am): Substitute them.
35387         * lib/sys_stat.in.h (futimens): Declare it.
35388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35389         * doc/posix-functions/futimens.texi (futimens): Likewise.
35390         * modules/futimens-tests: New test.
35391         * tests/test-futimens.c: Likewise.
35392
35393         utimens: introduce fdutimens
35394         * lib/utimens.h (fdutimens): New prototype.
35395         * lib/utimens.c (gl_futimens): Move guts...
35396         (fdutimens): ...to new interface.
35397         * tests/test-utimens.c (do_fdutimens): Use it.
35398
35399         utimens: add UTIME_NOW and UTIME_OMIT support
35400         * lib/utimens.c (validate_timespec, update_timespec): New helper
35401         functions.
35402         (gl_futimens, lutimens): Use them.
35403         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35404         stdbool, sys_stat.
35405         (Link): Mention resulting library dependency.
35406         * modules/utimecmp (Link): Likewise.
35407         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35408         (Makefile.am): Pick up library dependency.
35409         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35410         definition.
35411         * tests/test-sys_stat.c: Test the definitions.
35412         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35413         * NEWS: Document library dependency.
35414
35415         utimecmp: support symlink timestamps
35416         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35417         hashing when possible.  Use pathconf when available.
35418         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35419         * modules/utimecmp (Depends-on): Add lstat.
35420
35421         utimens: add lutimens interface
35422         * lib/utimens.c (lutimens): New function.
35423         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35424         * lib/utimens.h (lutimens): Declare new interface.
35425         * tests/test-utimens.c (main): Enhance test.
35426         * tests/test-lutimens.h (test_lutimens): New file.
35427         * modules/utimens-tests (Files): Distribute it.
35428         (Depends-on): Add symlink.
35429         (configure.ac): Check for usleep.
35430
35431         utimens: validate futimens usage
35432         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35433         fewer syscalls on failure later on.  Avoid compiler warning on
35434         mingw.
35435         * modules/utimens (Depends-on): Add dup2.
35436
35437         utimens: add test
35438         * modules/utimens-tests: New test.
35439         * tests/test-utimens.h: New file.
35440         * tests/test-futimens.h: Likewise.
35441         * tests/test-utimens.c: Likewise.
35442
35443         doc: mention timestamp portability issues
35444         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35445         instead.
35446         * doc/posix-functions/utime.texi (utime): Likewise.
35447         * doc/posix-functions/utimes.texi (utimes): Likewise.
35448         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35449         instead.
35450         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35451         module.
35452         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35453         Mention weakness with symlink timestamps.
35454         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35455         to utimensat/futimens instead.
35456         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35457
35458         test-dup2: enhance test
35459         * tests/test-dup2.c (main): Also check AT_FDCWD.
35460
35461         test-stat-time: avoid more spurious failures
35462         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35463         xfs; and avoid race if the two timestamps cross quantization edge.
35464
35465         relocatable: prefer 'file system' over 'filesystem'
35466         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35467         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35468         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35469         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35470         * lib/relocatable.c (compute_curr_prefix): Likewise.
35471
35472 2009-10-10  Jim Meyering  <meyering@redhat.com>
35473
35474         stat-time-tests: check for the usleep function
35475         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35476
35477 2009-10-10  Bruno Haible  <bruno@clisp.org>
35478
35479         * modules/xnanosleep: Put the Link section after the Include section.
35480
35481 2009-10-09  Eric Blake  <ebb9@byu.net>
35482
35483         dup2: work around FreeBSD 6.1 bug
35484         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35485         * doc/posix-functions/dup2.texi (dup2): Document it.
35486         Reported by Nelson H. F. Beebe and Jim Meyering.
35487
35488         test-stat-time: port to buggy NFS clients
35489         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35490         (test_ctime): Also skip test if mtime and ctime are skewed.
35491
35492         maint: prefer 'file system' over 'filesystem'
35493         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35494         * doc/posix-functions/lstat.texi (lstat): Likewise.
35495         * lib/file-has-acl.c (file_has_acl): Likewise.
35496         * lib/fwriteerror.c [TEST]: Likewise.
35497         * tests/test-areadlink.h (test_areadlink): Likewise.
35498         * tests/test-areadlinkat-with-size.c (main): Likewise.
35499         * tests/test-areadlinkat.c (main): Likewise.
35500         * tests/test-canonicalize-lgpl.c (main): Likewise.
35501         * tests/test-canonicalize.c (main): Likewise.
35502         * tests/test-fstatat.c (main): Likewise.
35503         * tests/test-linkat.c (main): Likewise.
35504         * tests/test-lstat.h (test_lstat_func): Likewise.
35505         * tests/test-mkdir.h (test_mkdir): Likewise.
35506         * tests/test-readlink.h (test_readlink): Likewise.
35507         * tests/test-remove.c (main): Likewise.
35508         * tests/test-rename.h (test_rename): Likewise.
35509         * tests/test-renameat.c (main): Likewise.
35510         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35511         * tests/test-symlink.h (test_symlink): Likewise.
35512         * tests/test-symlinkat.c (main): Likewise.
35513         * tests/test-unlink.h (test_unlink_func): Likewise.
35514         * tests/test-unlinkat.c (main): Likewise.
35515
35516         maint: make realtime library usage explicit
35517         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35518         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35519         * modules/settime (Link): Likewise.
35520         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35521
35522         test-stat-time: speed up execution
35523         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35524         warning on mingw.
35525         (nap): New helper function.
35526         (prepare_test): Use it to reduce sleep time.
35527         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35528         execution.
35529         * modules/stat-time-tests (configure.ac): Check for usleep.
35530
35531 2009-10-09  Jim Meyering  <meyering@redhat.com>
35532
35533         selinux-h: always use getfilecon wrappers
35534         * lib/getfilecon.c: New file.
35535         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35536         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35537         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35538         (fgetfilecon): Provide a stub.
35539         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35540         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35541         file unconditionally.
35542         When <selinux/selinux.h> is found, arrange to use wrappers.
35543         * modules/selinux-h (Files): Add getfilecon.c.
35544         (Makefile.am): Substitute include-next-related bits
35545         into the now-always-generated selinux/selinux.h file.
35546         * doc/glibc-functions/lgetfilecon.texi: New file.
35547         * doc/glibc-functions/fgetfilecon.texi: New file.
35548         * doc/glibc-functions/getfilecon.texi: New file.
35549         * doc/glibc-functions/getfilecon-desc.texi: New file.
35550         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35551         which to pull in the new files.
35552         * MODULES.html.sh (Misc): Add selinux-h.
35553
35554 2009-10-08  Jim Meyering  <meyering@redhat.com>
35555
35556         unistd: fix comment typo
35557         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35558
35559 2009-10-08  Eric Blake  <ebb9@byu.net>
35560
35561         areadlink: use SIZE_MAX consistently
35562         * modules/areadlink (Depends-on): Add stdint.
35563         * modules/areadlink-with-size (Depends-on): Likewise.
35564         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35565         gives NULL; drop sys/types, since unistd gives size_t; and add
35566         stdint for SIZE_MAX.
35567         (SIZE_MAX): Rely on headers.
35568         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35569         and add stdint.
35570         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35571         (SIZE_MAX): Likewise.
35572         (INITIAL_BUF_SIZE): Turn into enum.
35573         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35574
35575 2009-10-08  Jim Meyering  <meyering@redhat.com>
35576
35577         areadlinkat: avoid compilation failure
35578         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35579         Fix typo in comment.
35580
35581 2009-10-07  Eric Blake  <ebb9@byu.net>
35582
35583         areadlinkat-with-size: new module
35584         * modules/areadlinkat-with-size: New module.
35585         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35586         * lib/areadlink.h (areadlinkat): Declare it.
35587         * MODULES.html.sh (File system functions): Mention it.
35588         * modules/areadlinkat-with-size-tests: New test.
35589         * tests/test-areadlinkat-with-size.c: New file.
35590
35591         xreadlinkat: new module
35592         * modules/xreadlinkat: New module.
35593         * lib/xreadlinkat.c (xreadlinkat): New file.
35594         * lib/xreadlink.h (xreadlinkat): Declare it.
35595         * MODULES.html.sh (File system functions): Mention it.
35596
35597         areadlinkat: new module
35598         * lib/at-func.c (FUNC_FAIL): New define.
35599         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35600         * modules/areadlinkat: New module.
35601         * lib/linkat.c (areadlinkat): Move...
35602         * lib/areadlinkat.c (areadlinkat): ...to new file.
35603         * lib/areadlink.h (areadlinkat): Declare it.
35604         * modules/linkat (Depends-on): Add areadlinkat.
35605         * MODULES.html.sh (File system functions): Mention it.
35606         * modules/areadlinkat-tests: New test.
35607         * tests/test-areadlinkat.c: New file.
35608
35609         areadlink, areadlink-with-size: add tests
35610         * modules/areadlink-tests: New test.
35611         * modules/areadlink-with-size-tests: Likewise.
35612         * tests/test-areadlink.h: New file.
35613         * tests/test-areadlink.c: Likewise.
35614         * tests/test-areadlink-with-size.c: Likewise.
35615
35616         maint: minor cleanups
35617         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35618         _UNUSED_PARAMETER_ instead.
35619         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35620         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35621         * modules/linkat-tests (Files): Distribute test-link.h.
35622
35623         openat, utimens: whitespace cleanup
35624         * lib/openat.c: Prefer space throughout, rather than mix of 8
35625         spaces vs. tabs.
35626         * lib/at-func.c: Likewise.
35627         * lib/utimens.c: Likewise.
35628
35629         openat: avoid using wrong fd
35630         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35631         working directory chooses same fd.
35632         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35633
35634         mkdir, mkdirat: fix cygwin 1.5.x bug
35635         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35636         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35637         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35638         bug.
35639         (gl_PREREQ_MKDIR): Delete unused macro.
35640         * modules/mkdir (Files): Track file rename.
35641         (configure.ac): Update macro name.
35642         * modules/openat (Depends-on): Add mkdir.
35643         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35644
35645         mkdir, mkdirat: add tests
35646         * modules/mkdir-tests: New test.
35647         * tests/test-mkdir.h: New file.
35648         * tests/test-mkdir.c: Likewise.
35649         * tests/test-mkdirat.c: Likewise.
35650         * modules/openat-tests (Files): Add new files.
35651         (Makefile.am): Run new test.
35652
35653 2009-10-06  Eric Blake  <ebb9@byu.net>
35654
35655         doc: tweak *at function documentation
35656         * doc/posix-functions/faccessat.texi (faccessat): Mention
35657         known issue with replacement.
35658         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35659         * doc/posix-functions/linkat.texi (linkat): Likewise.
35660         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35661         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35662         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35663         * doc/posix-functions/renameat.texi (renameat): Likewise.
35664         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35665
35666         openat: fix GNU/Hurd bug in unlinkat
35667         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35668         broken.
35669         * doc/posix-functions/unlink.texi (unlink): Document this.
35670         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35671
35672         fdopendir: fix GNU/Hurd bug
35673         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35674         allowing non-directory fds.
35675         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35676         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35677         * modules/dirent (Makefile.am): Substitute it.
35678         * lib/dirent.in.h (fdopendir): Declare replacement.
35679         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35680         * tests/test-fdopendir.c (main): Test something other than
35681         /dev/null, since on Hurd that behaves like a directory.
35682
35683         test-symlink: port to GNU/Hurd
35684         * tests/test-symlink.h (test_symlink): Relax expected errno.
35685
35686         doc: tweak more cygwin information
35687         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35688         now compatible with glibc.
35689         * doc/posix-functions/getopt.texi (getopt): Likewise.
35690
35691         getopt-gnu: add another test
35692         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35693         guarantee behavior relied on by m4.
35694         * tests/test-getopt.c (main): Use it.
35695         * modules/getopt-posix-tests (Depends-on): Add setenv.
35696         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35697
35698         getopt: fix compilation on darwin
35699         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35700         include.
35701         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35702         Reported by Ludovic Courtès.
35703
35704 2009-10-06  Bruno Haible  <bruno@clisp.org>
35705
35706         * modules/size_max (Description): Discourage its use.
35707         Reported by Simon Josefsson.
35708
35709 2009-10-06  Jim Meyering  <meyering@redhat.com>
35710
35711         linkat: avoid compilation failure
35712         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35713
35714 2009-10-05  Eric Blake  <ebb9@byu.net>
35715
35716         linkat: support Linux 2.6.17
35717         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35718         linkat on Linux, but allow cache variable override.
35719         * lib/linkat.c (rpl_linkat): Define override.
35720         * modules/linkat (Depends-on): Add symlinkat.
35721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35722         * modules/unistd (Makefile.am): Substitute it.
35723         * lib/unistd.in.h (linkat): Declare replacement.
35724         Reported by Pádraig Brady.
35725
35726         quotearg: port test to systems with C.UTF-8 locale
35727         * tests/test-quotearg.c (struct result_strings): Add another
35728         member, differentiating between C.ASCII and C.UTF-8 handling.
35729         (compare_strings): Add parameter.
35730         (main): Adjust all callers.
35731
35732         getopt: avoid clash with FreeBSD _getopt_internal
35733         * lib/getopt.in.h (_getopt_internal): Override the name.
35734         * lib/getopt_int.h (includes): Pick up any overrides.
35735         Reported by Reuben Thomas.
35736
35737         hash: allow C89 compilation
35738         * lib/hash.c (check_tuning): Move declaration before statement.
35739         Reported by Reuben Thomas.
35740
35741 2009-10-05  Karl Berry  <karl@gnu.org>
35742
35743         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35744
35745 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35746             Bruno Haible  <bruno@clisp.org>
35747
35748         * lib/uname.c (uname): Use a table-driven algorithm to compute
35749         Windows NT versions.
35750
35751 2009-10-04  Bruno Haible  <bruno@clisp.org>
35752
35753         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35754         program_invocation_short_name.
35755         * modules/progname (configure.ac): Test for presence of
35756         program_invocation_short_name.
35757         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35758
35759 2009-10-04  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/progname.c (set_program_name): Fix comment.
35762         Reported by Jim Meyering.
35763
35764 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35765             Bruno Haible  <bruno@clisp.org>
35766
35767         * lib/uname.c: Include <string.h>.
35768         (uname): Do only one call to GetVersionEx in the common case.
35769
35770 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35771             Bruno Haible  <bruno@clisp.org>
35772
35773         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35774         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35775         (uname): Add support for Windows CE and various non-x86 CPU types.
35776
35777 2009-10-03  Bruno Haible  <bruno@clisp.org>
35778
35779         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35780         invocation to tests/configure.ac.
35781         Reported by Ian Beckwith <ianb@erislabs.net>.
35782
35783 2009-10-02  Eric Blake  <ebb9@byu.net>
35784
35785         fchdir: avoid compiler warning
35786         * lib/fchdir.c (canonicalize_file_name)
35787         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35788
35789         test-open: support mingw errno values
35790         * tests/test-open.h (test_open): Relax test.
35791         * tests/test-fopen.h (test_fopen): Likewise.
35792         * tests/test-openat-safer.c (main): Likewise.
35793
35794         open: fix opening directory on mingw
35795         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35796
35797         test-open: on GNU/Hurd, /dev/null is a directory
35798         * tests/test-fopen.h (main): Rename...
35799         (test_fopen): ...to this.  Use a guaranteed non-directory when
35800         confirming open behavior on trailing slash.
35801         * tests/test-openat-safer.c (main): Likewise.
35802         * tests/test-open.h (main): Likewise....
35803         (test_open): ...to this.
35804         * tests/test-fopen.c (main): Adjust caller.
35805         * tests/test-fopen-safer.c (main): Likewise.
35806         * tests/test-open.c (main): Likewise.
35807         * tests/test-fcntl-safer.c (main): Likewise.
35808         Reported by Samuel Thibault.
35809
35810         rename, fchdir: don't ignore chdir failure
35811         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35812         * lib/rename.c (rpl_rename) [W32]: Likewise.
35813         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35814         an empty destination directory if source cannot be renamed,
35815         although there is still possibility for failure.
35816         * doc/posix-functions/rename.texi (rename): Document the race.
35817         Reported by Jim Meyering.
35818
35819         maint: cleanup whitespace in recent commits
35820         * lib/rename.c (rpl_rename): Remove tabs.
35821         * tests/test-link.h (test_link): Likewise.
35822         * lib/fchdir.c (get_name): Likewise.
35823         Reported by Jim Meyering.
35824
35825 2009-10-02  Ben Pfaff  <blp@gnu.org>
35826
35827         relocatable-prog-wrapper: Add missing dependency on
35828         double-slash-root.
35829         * modules/relocatable-prog-wrapper: Add dependency.
35830         Reported by Ian Beckwith <ianb@erislabs.net>.
35831
35832 2009-10-02  Eric Blake  <ebb9@byu.net>
35833
35834         renameat: fix Solaris bugs
35835         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35836         needed fixing.
35837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35838         * modules/stdio (Makefile.am): Substitute it.
35839         * lib/stdio.in.h (renameat): Declare replacement.
35840         * lib/renameat.c (rpl_renameat): Implement fix.
35841
35842         renameat: new module
35843         * modules/renameat: New file.
35844         * lib/renameat.c (renameat): Likewise.
35845         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35847         * modules/stdio (Makefile.am): Substitute them.
35848         * lib/stdio.in.h (renameat): Declare it.
35849         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35850         * doc/posix-functions/renameat.texi (renameat): Likewise.
35851         * modules/renameat-tests: New test.
35852         * tests/test-renameat.c: Likewise.
35853
35854         rename: fix mingw bugs
35855         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35856         directory overwrite bugs.
35857
35858         rename: fix another cygwin 1.5 bug
35859         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35860         checks.
35861         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35862         unnecessary cygwin workarounds.  Also work around bug with moving
35863         full directory onto an empty one.
35864         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35865
35866         rename-dest-slash: merge into rename module
35867         * modules/rename-dest-slash (Status): Mark obsolete.
35868         (Depends-on): Add rename.
35869         (Files): Let rename do it all.
35870         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35871         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35872         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35873         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35874         * lib/rename.c (rpl_rename): Update comments.
35875
35876         rename: fix cygwin 1.5.x bugs
35877         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35878         * lib/rename.c (rpl_rename): Work around them.
35879         * modules/rename (Depends-on): Add same-inode.
35880
35881         rename: fix Solaris 10 bug
35882         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35883         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35884         was the only bug.
35885
35886         rename: fix Solaris 9 bug
35887         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35888         on non-directory.  Avoid calling exit.
35889         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35890         strdup.
35891         * modules/rename-tests (Depends-on): Drop lstat.
35892         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35893         (gl_PREREQ_RENAME): Delete unused macro.
35894
35895         rename-dest-slash: fix NetBSD bug
35896         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35897         links.
35898         * modules/rename-dest-slash (Depends-on): Add same-inode.
35899
35900         rename-tests: new test, exposes several platform bugs
35901         * modules/rename-tests: New file.
35902         * tests/test-rename.h: Likewise.
35903         * tests/test-rename.c: Likewise.
35904         * doc/posix-functions/rename.texi (rename): Improve documentation,
35905         including bugs that will eventually be fixed in gnulib.
35906
35907 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35908
35909         * lib/uname.c: Include <stdlib.h>
35910         (uname): Assume version info is available.
35911
35912 2009-10-02  Jim Meyering  <meyering@redhat.com>
35913
35914         gnu-web-doc-update: correct --help output
35915         * build-aux/gnu-web-doc-update: Make --help output relevant.
35916
35917         gnu-web-doc-update: add standard options
35918         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35919
35920         gnu-web-doc-update: New module.
35921         Use this script to automatically update the on-line web documentation
35922         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35923         * modules/gnu-web-doc-update: New file, from coreutils.
35924         * build-aux/gnu-web-doc-update: New script.
35925
35926 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35927
35928         link: LoadLibrary is not needed.
35929         * lib/link.c: Use GetModuleHandle.
35930
35931 2009-10-01  Eric Blake  <ebb9@byu.net>
35932
35933         getopt: bump serial number
35934         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35935         change.
35936
35937         tests: tighten link, rmdir, and remove tests
35938         * tests/test-link.h (includes): No need to use <config.h> here.
35939         Clean up if directory hard link was created, otherwise test for
35940         trailing '.'.
35941         * tests/test-linkat.c (main): Simplify.
35942         * tests/test-remove.c (main): Enhance test for trailing '.'.
35943         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35944
35945 2009-10-01  Jim Meyering  <meyering@redhat.com>
35946
35947         maint.mk: requiring "make major" was annoying, for a "minor" release.
35948         What is intended is "stable", to contrast with alpha and beta,
35949         so require "make stable", not "make major".
35950         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35951         (get_tool_versions): Likewise.
35952         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35953
35954 2009-09-30  Ben Pfaff  <blp@gnu.org>
35955
35956         Fix broken build of replacement for Windows tmpfile().
35957         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35958         flags argument added along with the 'mkostemp' module.
35959
35960 2009-09-28  Bruno Haible  <bruno@clisp.org>
35961
35962         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35963         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35964         to 'remove_elt'.
35965         (gl_list_remove): Update.
35966         * lib/gl_list.c (gl_list_remove): Update.
35967         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35968         to 'remove_elt'.
35969         (gl_oset_remove): Update.
35970         * lib/gl_list.c (gl_oset_remove): Update.
35971         Reported by Eric Blake.
35972
35973 2009-09-28  Eric Blake  <ebb9@byu.net>
35974
35975         doc: mention yet more cygwin 1.7 status
35976         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35977         cygwin.
35978         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35979         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35980
35981         argp: fix test failure
35982         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35983         that are not upper-case.  Pass correct range to tolower.
35984
35985 2009-09-27  Jim Meyering  <meyering@redhat.com>
35986
35987         test-yesno: work around sparc-dash here-document infelicity
35988         Without this change, the literal \177 byte in a here document
35989         would make dash 0.5.5.1-3 access uninitialized memory.
35990         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35991         Instead, use a marker, "@", and filter through tr to create the desired
35992         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35993
35994 2009-09-27  Bruno Haible  <bruno@clisp.org>
35995
35996         Disable untested support for new flavours of ACLs on AIX.
35997         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35998         progress.
35999         * lib/set-mode-acl.c (qset_acl): Likewise.
36000
36001 2008-12-07  Bruno Haible  <bruno@clisp.org>
36002
36003         Add support for new flavours of ACLs on AIX. (Untested.)
36004         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36005         (file_has_acl): Add support for newer AIX.
36006         * lib/set-mode-acl.c (qset_acl): Likewise.
36007         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36008         Rainer Tammer <tammer@tammer.net>.
36009
36010 2009-09-26  Eric Blake  <ebb9@byu.net>
36011
36012         argp: fix compilation of getopt
36013         * lib/getopt.in.h (includes): Use different guard than glibc.
36014         Reported by Sergey Poznyakoff.
36015
36016         doc: mention more cygwin 1.7 status
36017         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36018         bug.
36019         * doc/posix-functions/execl.texi (execl): Likewise.
36020         * doc/posix-functions/execle.texi (execle): Likewise.
36021         * doc/posix-functions/execlp.texi (execlp): Likewise.
36022         * doc/posix-functions/execv.texi (execv): Likewise.
36023         * doc/posix-functions/execve.texi (execve): Likewise.
36024         * doc/posix-functions/execvp.texi (execvp): Likewise.
36025         * doc/glibc-functions/canonicalize_file_name.texi
36026         (canonicalize_file_name): Cygwin 1.7 now provides this.
36027         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36028         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36029         on AT_SYMLINK_NOFOLLOW.
36030
36031 2009-09-24  Eric Blake  <ebb9@byu.net>
36032
36033         test-linkat: make test more robust
36034         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36035
36036         getopt: fix inclusion guards for cygwin
36037         * modules/getopt-posix (Depends-on): Add include-next.
36038         (Makefile.am): Substitute more items in replacement header.
36039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36040         <getopt.h>.
36041         * lib/getopt.in.h (includes): Use split inclusion guard, and
36042         prefer <getopt.h> over include <unistd.h> when one is present.
36043         (option): Also override name of 'struct option'.
36044
36045         same-inode: revert prior change; it is not yet ready
36046         * NEWS: Undo mention of this change.
36047         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36048         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36049         * lib/cycle-check.c (cycle_check): Likewise.
36050         * lib/same.c (same_name): Likewise.
36051         * lib/at-func2.c (at_func2): Likewise.
36052
36053 2009-09-23  Eric Blake  <ebb9@byu.net>
36054
36055         linkat: new module
36056         * modules/linkat: New file.
36057         * lib/at-func2.c (at_func2): Likewise.
36058         * lib/linkat.c (linkat): Likewise.
36059         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36060         * lib/openat-priv.h (at_func2): Add declaration.
36061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36062         * modules/unistd (Makefile.am): Substitute them.
36063         * lib/unistd.in.h (linkat): Declare it.
36064         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36065         * doc/posix-functions/linkat.texi (linkat): Likewise.
36066         * doc/posix-functions/link.texi (link): Tweak wording.
36067         * tests/test-link.c (main): Move guts...
36068         * tests/test-link.h (test_link): ...into new file.
36069         * modules/linkat-tests: New test.
36070         * tests/test-linkat.c: Likewise.
36071         * modules/link-tests (Files): Ship new file.
36072         (Depends-on): Add stdbool.
36073
36074         dirname: add library-safe mdir_name
36075         * lib/dirname.h (mdir_name): New prototype.
36076         * lib/dirname.c (dir_name): Move guts...
36077         (mdir_name): ...to new function that avoids xalloc_die.
36078
36079         fchdir: another mingw fix
36080         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36081         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36082         on mingw (where it has not yet been ported), and make it optional
36083         elsewhere.
36084         (_gl_register_fd): Use it.
36085
36086         same-inode: make SAME_INODE tri-state, to port to mingw
36087         * NEWS: Mention this change.
36088         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36089         st_ino always being 0.
36090         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36091         * lib/cycle-check.c (cycle_check): Likewise.
36092         * lib/same.c (same_name): Likewise.
36093
36094         lstat: avoid mingw compilation error
36095         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36096         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36097         lstat ourselves.
36098         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36099         was adequate.
36100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36101         the checks for lstat.
36102         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36103
36104         link: fix test failure on Solaris 9
36105         * lib/link.c (rpl_link): Don't assume link will catch bogus
36106         trailing slash on source.
36107
36108         test-symlinkat: enhance test
36109         * tests/test-readlink.c (main): Move guts...
36110         * tests/test-readlink.h (test_readlink): ...into new file.
36111         * tests/test-symlink.c (main): Move guts...
36112         * tests/test-symlink.h (test_symlink): ...into new file.
36113         * tests/test-symlinkat.c (main): Use new files for further
36114         coverage.
36115         (do_symlink, do_readlink): New helper functions.
36116         * modules/symlink-tests (Files): Ship new file.
36117         (Depends-on): Add stdbool.
36118         * modules/readlink-tests (Files): Ship new file.
36119         (Depends-on): Add stdbool.
36120         * modules/symlinkat-tests (Files): Use new files.
36121
36122 2009-09-23  Eric Blake  <ebb9@byu.net>
36123
36124         readlink: document portability issue with symlink length
36125         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36126         systems have bogus st_size on symlinks, and mention the
36127         areadlink-with-size module.
36128         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36129         * doc/posix-functions/readlink.texi (readlink): Mention the
36130         areadlink module, and ERANGE failure.
36131         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36132         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36133
36134         readlink: fix Solaris 9 bug with trailing slash
36135         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36136         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36137         * doc/posix-functions/readlink.texi (readlink): Document this.
36138         * modules/readlink-tests: New test.
36139         * tests/test-readlink.c: Likewise.
36140
36141         readlink: fix cygwin 1.5.x bug with return type
36142         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36143         * lib/unistd.in.h (readlink): Use ssize_t.
36144         * lib/readlink.c (readlink): Likewise.
36145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36146         * modules/unistd (Makefile.am): Substitute it.
36147         * lib/unistd.in.h (readlink): Declare replacement.
36148         * doc/posix-functions/readlink.texi (readlink): Document this.
36149
36150         symlink: use throughout gnulib
36151         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36152         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36153         symlink is not used.
36154         * modules/symlinkat (Depends-on): Add symlink.
36155         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36156         * modules/canonicalize-tests (Depends-on): Likewise.
36157         * modules/lstat-tests (Depends-on): Likewise.
36158         * modules/openat-tests (Depends-on): Likewise.
36159         * modules/remove-tests (Depends-on): Likewise.
36160         * modules/rmdir-tests (Depends-on): Likewise.
36161         * modules/unlink-tests (Depends-on): Likewise.
36162         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36163         * tests/test-canonicalize.c (symlink): Likewise.
36164         * tests/test-fstatat.c (symlink): Likewise.
36165         * tests/test-lstat.c (symlink): Likewise.
36166         * tests/test-remove.c (symlink): Likewise.
36167         * tests/test-rmdir.c (symlink): Likewise.
36168         * tests/test-unlink.c (symlink): Likewise.
36169         * tests/test-unlinkat.c (symlink): Likewise.
36170
36171         symlink: new module, for Solaris 9 bug
36172         * modules/symlink: New file.
36173         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36174         * lib/symlink.c: Likewise.
36175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36176         * modules/unistd (Makefile.am): Substitute them.
36177         * lib/unistd.in.h (symlink): Declare replacement.
36178         * MODULES.html.sh (File system functions): Mention it.
36179         * doc/posix-functions/symlink.texi (symlink): Likewise.
36180         * modules/symlink-tests: New test.
36181         * tests/test-symlink.c: Likewise.
36182
36183 2009-09-23  Bruno Haible  <bruno@clisp.org>
36184
36185         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36186         when needed.
36187         Test case: gnulib-tool --import --with-tests atexit inttypes.
36188         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36189
36190 2009-09-23  Bruno Haible  <bruno@clisp.org>
36191
36192         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36193         subcommand, not in a subshell.
36194
36195 2009-09-22  Eric Blake  <ebb9@byu.net>
36196
36197         unistd: sort replacement declarations
36198         * lib/unistd.in.h: Sort declarations.
36199
36200         open, openat: minor optimization
36201         * lib/open.c (open): If open succeeded, len is non-zero.
36202         * lib/openat.c (rpl_openat): Likewise.
36203
36204         link-follow: ensure correct result
36205         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36206         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36207         distinguish between possible failures.
36208
36209 2009-09-21  Eric Blake  <ebb9@byu.net>
36210
36211         fts: avoid compiler warning
36212         * lib/fts.c (dirent_inode_sort_may_be_useful)
36213         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36214
36215 2009-09-19  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/progreloc.c (canonicalize_file_name): New declaration.
36218
36219 2009-09-19  Eric Blake  <ebb9@byu.net>
36220
36221         link: fix quoting
36222         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36223
36224         openat: fix openat bugs on Solaris 9
36225         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36226         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36227         * modules/openat (Depends-on): Add open.
36228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36229         * modules/fcntl-h (Makefile.am): Substitute it.
36230         * lib/fcntl.in.h (openat): Declare replacement.
36231         * doc/posix-functions/openat.texi (openat): Document this.
36232
36233         openat: move fstatat and unlinkat into correct files
36234         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36235         compiled.
36236         * lib/openat.c (fstatat, unlinkat): Move...
36237         * lib/fstatat.c (fstatat): ...into correct files.
36238         * lib/unlinkat.c (unlinkat): Likewise.
36239
36240         openat: fix unlinkat bugs on Solaris 9
36241         * lib/unlinkat.c (unlinkat): New file.
36242         * modules/openat (Depends-on): Add unlink.
36243         (Files): Distribute it.
36244         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36245         trailing slash behavior is broken.
36246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36247         * modules/unistd (Makefile.am): Substitute it.
36248         * lib/unistd.in.h (unlinkat): Declare replacement.
36249         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36250
36251         openat: fix fstatat bugs on Solaris 9
36252         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36253         stat.
36254         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36255
36256         test-unlinkat: enhance test, to expose Solaris 9 bug
36257         * tests/test-unlink.c (main): Factor guts...
36258         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36259         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36260         * tests/test-rmdir.c (main): Adjust caller.
36261         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36262         (unlinker): New helper function.
36263         (rmdirat): Enhance check.
36264         * modules/rmdir-tests (Depends-on): Add stdbool.
36265         * modules/unlink-tests (Depends-on): Likewise.
36266         (Files): Add test-unlink.h.
36267         * modules/openat-tests (Files): Likewise.
36268         (Depends-on): Add unlinkdir.
36269
36270         test-fstatat: new test, to expose Solaris 9 bugs
36271         * tests/test-stat.c (main): Factor guts...
36272         * tests/test-stat.h (test_stat_func): ...into new file.
36273         * tests/test-lstat.c (main): Factor guts...
36274         * tests/test-lstat.h (test_lstat_func): ...into new file.
36275         * tests/test-fstatat.c: New file.
36276         * modules/stat-tests (Files): Add test-stat.h.
36277         * modules/lstat-tests (Files): Add test-lstat.h.
36278         (Depends-on): Add stdbool.
36279         * modules/openat-tests (Depends-on): Add pathmax.
36280         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36281         (Makefile.am): Run new test.
36282
36283         remove: new module, for mingw and Solaris 9 bugs
36284         * modules/remove: New file.
36285         * lib/remove.c: Likewise.
36286         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36288         * modules/stdio (Makefile.am): Use them.
36289         * lib/stdio.in.h (remove): Declare replacement.
36290         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36291         * doc/posix-functions/remove.texi (remove): Likewise.
36292         * modules/remove-tests: New test.
36293         * tests/test-remove.c: Likewise.
36294
36295         unlink: new module, for Solaris 9 bug
36296         * modules/unlink: New file.
36297         * lib/unlink.c: Likewise.
36298         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36300         * modules/unistd (Makefile.am): Use them.
36301         * lib/unistd.in.h (stat): Declare replacement.
36302         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36303         * doc/posix-functions/unlink.texi (unlink): Likewise.
36304         * modules/unlink-tests: New test.
36305         * tests/test-unlink.c: Likewise.
36306
36307         lstat: fix Solaris 9 bug
36308         * lib/lstat.c (lstat): Also check for trailing slash on
36309         non-symlink, non-directories.  Use stat module to simplify logic.
36310         * doc/posix-functions/lstat.texi (lstat): Document it.
36311         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36312         (configure.ac): Check for symlink.
36313         * tests/test-lstat.c (main): Add more tests.
36314
36315         stat: add as dependency to other modules
36316         * modules/chown (Depends-on): Add stat.
36317         * modules/euidaccess (Depends-on): Likewise.
36318         * modules/fchdir (Depends-on): Likewise.
36319         * modules/isdir (Depends-on): Likewise.
36320         * modules/link (Depends-on): Likewise.
36321         * modules/lstat (Depends-on): Likewise.
36322         * modules/mkdir-p (Depends-on): Likewise.
36323         * modules/modechange (Depends-on): Likewise.
36324         * modules/open (Depends-on): Likewise.
36325         * modules/readlink (Depends-on): Likewise.
36326         * modules/same (Depends-on): Likewise.
36327
36328         stat: fix Solaris 9 bug
36329         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36330         slash.
36331         * lib/stat.c (rpl_stat): Work around it.
36332         * doc/posix-functions/stat.texi (stat): Update documentation.
36333
36334         stat: new module, for mingw bug
36335         * modules/stat: New file.
36336         * lib/stat.c: Likewise.
36337         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36339         * modules/sys_stat (Makefile.am): Use them.
36340         * lib/sys_stat.in.h (stat): Declare replacement.
36341         * lib/openat.c (fstatat): Deal with lstat and stat being function
36342         macros.
36343         * modules/openat (Depends-on): Add inline.
36344         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36345         * doc/posix-functions/stat.texi (stat): Likewise.
36346         * modules/stat-tests: New test.
36347         * tests/test-stat.c: Likewise.
36348
36349 2009-09-19  Jim Meyering  <meyering@redhat.com>
36350
36351         syntax-check: detect unnecessary inclusion of canonicalize.h
36352         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36353
36354 2009-09-19  Eric Blake  <ebb9@byu.net>
36355
36356         canonicalize-lgpl: adjust clients to use correct header
36357         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36358         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36359         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36360         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36361         * lib/progreloc.c (includes): Likewise.
36362
36363 2009-09-19  Jim Meyering  <meyering@redhat.com>
36364
36365         test-posixtm.c: correct a comment
36366         * tests/test-posixtm.c: Correct first-line comment.
36367         Spotted by Eric Blake.
36368
36369 2009-09-16  Jim Meyering  <meyering@redhat.com>
36370
36371         posixtm-tests: make T const-correct; add a test case
36372         * tests/test-posixtm.c (T): Declare const.
36373         Add a test for -(2^31+1).
36374         Remove useless can-succeed-only-in-2002 test.
36375
36376         posixtm-tests: adjust the sole failing test
36377         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36378         expected output matches what mktime now produces.  Cross-checked via
36379         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36380
36381         posixtm: move #ifdef'd tests into a new module
36382         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36383         * tests/test-posixtm.c: ... this new file.
36384         * modules/posixtm-tests: New module.
36385
36386 2009-09-19  Eric Blake  <ebb9@byu.net>
36387
36388         openat: simplify use of at-func.c
36389         * lib/at-func.c (includes): Include prerequisites here, to
36390         simplify requirements on client files.
36391         * lib/openat-priv.h: Add double-inclusion guard.
36392         * lib/faccessat.c (includes): Simplify.
36393         * lib/fchmodat.c (includes): Likewise.
36394         * lib/fchownat.c (includes): Likewise.
36395         * lib/mkdirat.c (includes): Likewise.
36396         * lib/mkfifoat.c (includes): Likewise.
36397         * lib/symlinkat.c (includes): Likewise.
36398
36399         openat: allow return of fd 0
36400         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36401         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36402         unistd-safer.
36403         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36404         <fcntl.h>; this module does not leak fds.
36405         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36406         must be allowed to return 0, leaving openat_safer to add the
36407         safety.
36408         (openat_permissive): Avoid writing to just-opened fd 2 if
36409         restoring the current directory fails.
36410         * lib/openat-die.c (openat_restore_fail): Add comment.
36411         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36412         (save_cwd): Guarantee safe fd, but without use of open_safer.
36413         * tests/test-openat.c: New test.
36414         * modules/openat-tests (Files, Makefile.am): Distribute and build
36415         new file.
36416
36417         relocatable-prog-wrapper: fix build
36418         * modules/relocatable-prog-wrapper (Files): Update name of
36419         canonicalize m4 file, broken on 2009-09-17.
36420         Reported by emad hajjar <aleppos@hotmail.com>.
36421
36422 2009-09-19  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36425         * lib/safe-alloc.c: Likewise.
36426         Reported by Ian Beckwith <ianb@erislabs.net>.
36427
36428 2009-09-18  Bruno Haible  <bruno@clisp.org>
36429
36430         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36431         Reported by <erobles@sensacd.com.mx>.
36432
36433 2009-09-17  Eric Blake  <ebb9@byu.net>
36434
36435         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36436         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36437         slashes when checking if last component is missing.
36438         * tests/test-canonicalize.c (main): Test this.
36439
36440         canonicalize, canonicalize-lgpl: honor // if distinct from /
36441         * modules/canonicalize (Files): Add double-slash-root.m4.
36442         * modules/canonicalize-lgpl (Files): Likewise.
36443         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36444         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36445         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36446         fallback definition.
36447         (canonicalize_filename_mode): Use it to protect //.
36448         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36449         (__realpath): Likewise.
36450         * tests/test-canonicalize.c (main): Test this.
36451         * tests/test-canonicalize-lgpl.c (main): Likewise.
36452         * modules/canonicalize-tests (Depends-on): Add same-inode.
36453         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36454
36455         canonicalize-lgpl: fix glibc bug with trailing slash
36456         * m4/canonicalize-lgpl.m4: Move contents...
36457         * m4/canonicalize.m4: ...here.
36458         (gl_CANONICALIZE_LGPL): Factor realpath check...
36459         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36460         glibc 2.3.5 bug, fixed 2005-04-27.
36461         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36462         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36463         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36464         * modules/canonicalize-lgpl (Files): Manage file rename.
36465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36466         * modules/stdlib (Makefile.am): Substitute witness.
36467         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36468         is needed.
36469         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36470         replacement is required.
36471         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36472         * doc/glibc-functions/canonicalize_file_name.texi
36473         (canonicalize_file_name): Document this.
36474         * doc/posix-functions/realpath.texi (realpath): Likewise.
36475
36476         canonicalize-lgpl: reject non-directory with trailing slash
36477         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36478         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36479         catches failures in glibc 2.3.5.
36480         * tests/test-canonicalize.c (main): Likewise.
36481
36482         canonicalize-lgpl: use native realpath if it works
36483         * lib/canonicalize-lgpl.c (realpath): Guard with
36484         FUNC_REALPATH_WORKS.
36485         * lib/stdlib.in.h (realpath): Make declaration optional based on
36486         HAVE_REALPATH.
36487         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36488         native realpath works.
36489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36490         * modules/stdlib (Makefile.am): Substitute witness.
36491
36492         canonicalize, canonicalize-lgpl: use <stdlib.h>
36493         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36494         (Include): Mention <stdlib.h>.
36495         (configure.ac): Mention functions we provide.
36496         * modules/canonicalize (configure.ac): Likewise.
36497         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36498         realpath if canonicalize_file_name is missing.
36499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36500         * modules/stdlib (Makefile.am): Substitute witnesses.
36501         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36502         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36503         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36504         * NEWS: Document this.
36505         * doc/glibc-functions/canonicalize_file_name.texi
36506         (canonicalize_file_name): Likewise.
36507         * doc/posix-functions/realpath.texi (realpath): Likewise.
36508         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36509
36510         test-canonicalize: consolidate into single C program
36511         * tests/test-canonicalize.sh: Delete; move setup into...
36512         * tests/test-canonicalize.c (main): ...the program, making it
36513         easier to run in debugger.  Add some tests.
36514         * modules/canonicalize-tests (Files): Remove unused file.
36515         (Depends-on): Add progname.
36516         (configure.ac, Makefile.am): Simplify.
36517
36518         test-canonicalize-lgpl: consolidate into single C program
36519         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36520         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36521         easier to run in debugger.  Add some tests.
36522         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36523         (configure.ac, Makefile.am): Simplify.
36524
36525         canonicalize: avoid resolvepath
36526         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36527         unnecessary checks.
36528         * lib/canonicalize.c (includes): Simplify.
36529         (canonicalize_file_name): Drop resolvepath implementation.
36530         * modules/canonicalize (Depends-on): Drop filenamecat.
36531
36532         canonicalize: don't lose errno
36533         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36534         over calls to free.
36535
36536         canonicalize: simplify errno handling
36537         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36538         assignment.
36539
36540         canonicalize, canonicalize-lgpl: update module dependencies
36541         * modules/canonicalize (Depends-on): Add extensions, lstat,
36542         pathmax, stdlib.
36543         (Files): Drop pathmax.h.
36544         (configure.ac): Adjust macro name.
36545         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36546         lstat, stdlib, sys_stat.
36547         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36548         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36549         extensions.
36550         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36551         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36552         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36553         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36554         declaration, if available.
36555         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36556         we can rely on the readlink module.
36557         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36558         (includes): Use <unistd.h> unconditionally.
36559
36560 2009-09-17  Eric Blake  <ebb9@byu.net>
36561
36562         maint: make Include sections of modules consistent
36563         * modules/alloca: Use only header name; no need to list #include.
36564         * modules/alloca-opt: Likewise.
36565         * modules/arpa_inet: Likewise.
36566         * modules/canon-host: Likewise.
36567         * modules/configmake: Likewise.
36568         * modules/dirent: Likewise.
36569         * modules/eealloc: Likewise.
36570         * modules/environ: Likewise.
36571         * modules/fchdir: Likewise.
36572         * modules/fcntl: Likewise.
36573         * modules/fcntl-h: Likewise.
36574         * modules/gethrxtime: Likewise.
36575         * modules/gettime: Likewise.
36576         * modules/ignore-value: Likewise.
36577         * modules/inet_ntop: Likewise.
36578         * modules/inet_pton: Likewise.
36579         * modules/inttypes: Likewise.
36580         * modules/isnand-nolibm: Likewise.
36581         * modules/isnanf-nolibm: Likewise.
36582         * modules/mbchar: Likewise.
36583         * modules/mbfile: Likewise.
36584         * modules/mbiter: Likewise.
36585         * modules/mbuiter: Likewise.
36586         * modules/netdb: Likewise.
36587         * modules/netinet_in: Likewise.
36588         * modules/nproc: Likewise.
36589         * modules/pagealign_alloc: Likewise.
36590         * modules/poll: Likewise.
36591         * modules/printf-frexp: Likewise.
36592         * modules/pthread: Likewise.
36593         * modules/putenv: Likewise.
36594         * modules/random_r: Likewise.
36595         * modules/relocatable-prog: Likewise.
36596         * modules/search: Likewise.
36597         * modules/select: Likewise.
36598         * modules/selinux-h: Likewise.
36599         * modules/settime: Likewise.
36600         * modules/signal: Likewise.
36601         * modules/size_max: Likewise.
36602         * modules/socklen: Likewise.
36603         * modules/ssize_t: Likewise.
36604         * modules/stdarg: Likewise.
36605         * modules/stdbool: Likewise.
36606         * modules/stddef: Likewise.
36607         * modules/stdint: Likewise.
36608         * modules/stdio: Likewise.
36609         * modules/stdlib: Likewise.
36610         * modules/string: Likewise.
36611         * modules/strings: Likewise.
36612         * modules/sys_file: Likewise.
36613         * modules/sys_ioctl: Likewise.
36614         * modules/sys_select: Likewise.
36615         * modules/sys_socket: Likewise.
36616         * modules/sys_stat: Likewise.
36617         * modules/sys_time: Likewise.
36618         * modules/sys_times: Likewise.
36619         * modules/sys_utsname: Likewise.
36620         * modules/sys_wait: Likewise.
36621         * modules/sysexits: Likewise.
36622         * modules/time: Likewise.
36623         * modules/times: Likewise.
36624         * modules/tmpfile: Likewise.
36625         * modules/trim: Likewise.
36626         * modules/unistd: Likewise.
36627         * modules/wchar: Likewise.
36628         * modules/wctype: Likewise.
36629
36630 2009-09-17  Bruno Haible  <bruno@clisp.org>
36631
36632         Make getdate.y compile on QNX and NetBSD 5 / i386.
36633         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36634         TIME_T_FITS_IN_LONG_INT.
36635         * lib/getdate.y (long_time_t): New type.
36636         (relative_time): Change type of 'seconds' field to long_time_t.
36637         (get_date): Update types of local variables. Check against overflow
36638         during conversion from long_time_t to time_t.
36639         Reported by Matt Kraai <kraai@ftbfs.org>
36640         and Hasso Tepper <hasso@netbsd.org>.
36641
36642 2009-09-17  Bruno Haible  <bruno@clisp.org>
36643
36644         * modules/COPYING: Update copyright years.
36645         * modules/README: Likeiwse.
36646         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36647         Reported by Ian Beckwith <ianb@erislabs.net>.
36648
36649 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36650
36651         * users.txt: Update references for gnuit package.
36652
36653 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36654
36655         * m4/getdelim.m4: Fix typo in copyright line.
36656
36657 2009-09-17  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/atoll.c: Use the standard header with GPL copyright.
36660         * lib/argz.in.h: Likewise.
36661         * lib/glob.c: Likewise.
36662         * lib/glob-libc.h: Likewise.
36663         * lib/random_r.c: Likewise.
36664         * lib/siglist.h: Likewise.
36665         * lib/strsignal.c: Likewise.
36666         Reported by Ian Beckwith <ianb@erislabs.net>.
36667
36668 2009-09-17  Eric Blake  <ebb9@byu.net>
36669
36670         rmdir: ensure correct dependency order
36671         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36672
36673 2009-09-17  Bruno Haible  <bruno@clisp.org>
36674
36675         Disable assertion that fails on NetBSD 5 / i386.
36676         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36677         Reported by Sam Steingold <sds@gnu.org>
36678         and Hasso Tepper <hasso@netbsd.org>.
36679
36680 2009-09-16  Eric Blake  <ebb9@byu.net>
36681
36682         unlinkdir: port to mingw
36683         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36684         on which no one can unlink a directory.
36685
36686         stdlib: sort witness names
36687         * modules/stdlib (Makefile.am): Sort replacements.
36688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36689         * lib/stdlib.in.h: Likewise.
36690
36691         parse-duration-tests: avoid link failure
36692         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36693         LIBINTL.
36694         Reported by Tom G. Christensen.
36695
36696         openat-tests: ensure unlinkat behaves like rmdir
36697         * tests/test-rmdir.c (main): Factor guts...
36698         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36699         * modules/rmdir-tests (Files): Ship new file.
36700         * modules/openat-tests: New test.
36701         * tests/test-unlinkat.c: Likewise.
36702
36703         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36704         * modules/rmdir-errno (Status, Notice): Now obsolete.
36705
36706         rmdir: work around cygwin 1.5.x and mingw bugs
36707         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36708         * lib/rmdir.c (rmdir): Work around it.
36709         * modules/rmdir (Status, Notice): No longer obsolete.
36710         (Files): Add dos.m4.
36711         (Depends-on): Add unistd.
36712         (configure.ac): Set witnesses.
36713         (License): Relax to LGPLv2+.
36714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36715         * modules/unistd (Makefile.am): Substitute witnesses.
36716         * lib/unistd.in.h (rmdir): Declare replacement.
36717         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36718         * modules/rmdir-tests: New tests.
36719         * tests/test-rmdir.c: Likewise.
36720
36721 2009-09-15  Eric Blake  <ebb9@byu.net>
36722
36723         fchdir: improve use of replacement functions
36724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36725         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36726         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36727         REPLACE_CLOSEDIR.
36728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36729         * modules/sys_stat (Makefile.am): Substitute correct witness.
36730         * modules/dirent (Makefile.am): Likewise.
36731         * modules/unistd (Makefile.am): Likewise.
36732         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36733         * lib/unistd.in.h (dup): Likewise.
36734         * lib/sys_stat.in.h (fstat): Likewise.
36735
36736         maint: ignore gnulib-tool temp files
36737         * .gitignore: Ignore files created during gnulib-tool --test.
36738
36739 2009-09-13  Jim Meyering  <meyering@redhat.com>
36740
36741         posixtm: don't reject a time that specify "60" as the number of seconds
36742         * lib/posixtm.c (posixtime): The code to reject invalid dates
36743         would also reject a time specified with the .60 suffix.
36744         But POSIX allows that, in order to accommodate leap seconds.
36745         So don't reject it.
36746         (main): Adjust tests accordingly.
36747         * modules/posixtm (Depends-on): Add stpcpy.
36748
36749 2009-09-11  Jim Meyering  <meyering@redhat.com>
36750
36751         announce-gen: include [$release_type] in emitted Subject:
36752         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36753         e.g., [stable] in the emitted Subject: line.
36754
36755 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36756
36757         Remove obsolete macros from several modules.
36758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36759         obsolete Autoconf macros with their modern counterparts.
36760         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36761         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36763         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36764         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36765         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36767         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36768         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36769         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36770         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36771         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36772         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36773         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36774         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36775         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36776         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36777         * m4/time_r.m4 (gl_TIME_R): Likewise.
36778         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36779         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36780         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36781
36782         Fix copyright header in build-aux scripts.
36783         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36784         recommendation.
36785         * build-aux/ncftpput-ftp: Likewise.
36786         * build-aux/update-copyright: Likewise.
36787
36788 2009-09-09  Eric Blake  <ebb9@byu.net>
36789
36790         test-link: allow Linux choice of errno
36791         * tests/test-link.c (main): Relax test for alternate error.
36792
36793         strndup: fix improper m4 caching
36794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36795         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36796         (gl_PREREQ_STRNDUP): Delete.
36797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36798         * modules/string (Makefile.am): Substitute it.
36799         * lib/string.in.h (strndup): Modernize prototype.
36800
36801         getcwd: port to mingw
36802         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36803         different from the POSIX assumptions made throughout the getcwd
36804         module; fortunately, the mingw getcwd does not need replacement.
36805         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36806         * modules/getcwd-tests: New test.
36807         * tests/test-getcwd.c: Likewise.
36808
36809         link: fix platform bugs
36810         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36811         * lib/link.c (link): Work around them.  Fix related mingw bug.
36812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36813         * modules/unistd (Makefile.am): Substitute it.
36814         * lib/unistd.in.h (link): Declare replacement.
36815         * doc/posix-functions/link.texi (link): Document this.
36816         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36817
36818         test-link: consolidate into single C program, test more cases
36819         * tests/test-link.sh: Delete.
36820         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36821         at least Cygwin and Solaris.
36822         * modules/link-tests (Files): Remove unused file.
36823         (Depends-on): Add errno, sys_stat.
36824         (Makefile.am): Simplify.
36825
36826 2009-09-08  Bruno Haible  <bruno@clisp.org>
36827
36828         Work around towlower, towupper bug on mingw.
36829         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36830         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36831         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36832         * doc/posix-functions/towupper.texi: Likewise.
36833         Reported by Eric Blake.
36834
36835 2009-09-08  Jim Meyering  <meyering@redhat.com>
36836
36837         build: don't try to run autoheader if we don't use it
36838         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36839         is not used in configure.ac.
36840
36841 2009-09-08  Eric Blake  <ebb9@byu.net>
36842
36843         euidaccess: fix compilation error
36844         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36845
36846         rawmemchr: relax license
36847         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36848         okay.
36849         Reported by Jim Meyering.
36850
36851         mkfifoat: new module
36852         * modules/mkfifoat: New file.
36853         * lib/mkfifoat.c: Likewise.
36854         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36856         * modules/sys_stat (Makefile.am): Use them.
36857         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36858         * MODULES.html.sh (File system functions): Mention module.
36859         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36860         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36861         * modules/mkfifoat-tests: New test.
36862         * tests/test-mkfifoat.c: Likewise.
36863
36864         strchrnul: relax license
36865         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36866         okay.
36867         Reported by Jim Meyering.
36868
36869 2009-09-08  Eric Blake  <ebb9@byu.net>
36870
36871         fstatat: fix compilation on Solaris
36872         * lib/fstatat.c (includes): Add fcntl.h.
36873         Reported by Pádraig Brady.
36874
36875 2009-09-07  Eric Blake  <ebb9@byu.net>
36876
36877         rename: modernize replacement
36878         * modules/rename (Depends-on): Add stdio.
36879         (configure.ac): Declare witness.
36880         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36881         stdio take care of replacement.
36882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36883         * modules/stdio (Makefile.am): Substitute them.
36884         * lib/stdio.in.h (rename): Declare replacement.
36885         * lib/rename.c (includes): Allow cross-compilation to non-windows
36886         machines.
36887         * doc/posix-functions/rename.texi (rename): Improve
36888         documentation.
36889
36890         stdio: sort witness names
36891         * modules/stdio (Makefile.am): Sort replacements.
36892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36893         * lib/stdio.in.h: Likewise.
36894
36895         getcwd: minor cleanups
36896         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36897         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36898
36899         openat: provide more convenience names
36900         * modules/faccessat (configure.ac): Add C witness.
36901         * lib/unistd.in.h (readlinkat): Fix typo.
36902         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36903         convenience wrappers.
36904         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36905         wrappers in syntax checks.
36906
36907 2009-09-06  Eric Blake  <ebb9@byu.net>
36908
36909         doc: fix comments in recent patches
36910         * lib/faccessat.c: Mention correct function.
36911         * lib/fchmodat.c: Likewise.
36912         * lib/fchownat.c: Likewise.
36913         * lib/symlinkat.c: Likewise.
36914         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36915         constants.
36916
36917         faccessat, symlinkat: continue cleanup of previous patch
36918         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36919         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36920         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36922         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36923         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36924         set.
36925
36926 2009-09-06  Bruno Haible  <bruno@clisp.org>
36927
36928         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36929         (fstatat): Declare if GNULIB_FSTATAT is set.
36930         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36931         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36932         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36933         * modules/fcntl-h (Files): Remove m4/openat.m4.
36934         * modules/sys_stat (Files): Remove m4/openat.m4.
36935         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36936         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36937         * modules/unistd (Files): Remove m4/openat.m4.
36938         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36939         GNULIB_OPENAT.
36940         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36941         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36942         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36943         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36944         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36945         gl_OPENAT_DEFAULTS.
36946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36947         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36948         Don't require gl_OPENAT_DEFAULTS.
36949         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36950         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36951         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36952         (gl_OPENAT_DEFAULTS): Remove macro.
36953
36954 2009-09-06  Bruno Haible  <bruno@clisp.org>
36955
36956         * modules/openat (configure.ac): Remove unneeded witness.
36957
36958 2009-09-06  Bruno Haible  <bruno@clisp.org>
36959
36960         Set errno to ENOSYS when a function is entirely unsupported.
36961         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36962         EOPNOTSUPP.
36963         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36964         * modules/chown (Depends-on): Remove errno.
36965
36966 2009-09-06  Bruno Haible  <bruno@clisp.org>
36967
36968         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36969
36970 2009-09-06  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36973
36974 2009-09-06  Ben Pfaff  <blp@gnu.org>
36975             Bruno Haible  <bruno@clisp.org>
36976
36977         Work around a glibc bug in strtok_r.
36978         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36979         Undefine if UNDEFINE_STRTOK_R is set.
36980         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36982         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36983         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36984         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36985         UNDEFINE_STRTOK_R.
36986         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36987
36988 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36989
36990         exclude: minor fix
36991         * lib/exclude.c: Include wctype.h
36992
36993 2009-09-06  Akim Demaille  <demaille@gostai.com>
36994
36995         bootstrap: improve error message
36996         * build-aux/bootstrap (find_tool): Upon failure, report the list
36997         of candidates.
36998         Honor the initial value of the envvar.
36999
37000 2009-09-05  Eric Blake  <ebb9@byu.net>
37001
37002         symlinkat: new module
37003         * modules/symlinkat: New file.
37004         * lib/symlinkat.c: Likewise.
37005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37007         * modules/unistd (Makefile.am): Use them.
37008         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37009         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37010         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37011         * MODULES.html.sh (File system functions): Mention module.
37012         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37013         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37014         * modules/symlinkat-tests: New test.
37015         * tests/test-symlinkat.c: Likewise.
37016
37017         test-openat-safer: add more checks
37018         * tests/test-openat-safer.c (main): Check more code paths.
37019
37020 2009-09-05  Jim Meyering  <meyering@redhat.com>
37021
37022         syntax-check: detect unnecessary inclusion of openat.h
37023         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37024
37025 2009-09-05  Bruno Haible  <bruno@clisp.org>
37026
37027         Support towlower, towupper.
37028         * doc/posix-functions/towlower.texi: Mention module wctype.
37029         * doc/posix-functions/towupper.texi: Likewise.
37030         * lib/wctype.in.h (towlower, towupper): New functions.
37031         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37032         (ASSERT): New macro.
37033         (e): New variable.
37034         (main): Test also towlower, towupper. Test WEOF argument.
37035         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37036
37037 2009-09-05  Bruno Haible  <bruno@clisp.org>
37038
37039         Fix conversion behaviour when the input is invalid.
37040         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37041         mark occurring in first pass of indirect conversion.
37042         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37043         input.
37044         Found by clang's static analyzer.
37045
37046 2009-09-05  Bruno Haible  <bruno@clisp.org>
37047
37048         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37049         where direct conversion is possible.
37050
37051 2009-09-04  Eric Blake  <ebb9@byu.net>
37052
37053         openat: fail with ENOENT on empty name
37054         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37055         buffer.
37056
37057         link-follow: fix logic bug in prior patch
37058         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37059         reversed sense of yes and no in prior patch.  Avoid confusing
37060         compilation failure with desired semantics.
37061
37062         link-follow: accomodate mingw and cross-compilation
37063         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37064         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37065         cross-compilation results to -1, to make linkat easier to
37066         implement when cross-compiling.  Trivially support mingw.
37067         * modules/link-follow (configure.ac): Call new name.
37068         * NEWS: Mention this.
37069
37070 2009-09-03  Eric Blake  <ebb9@byu.net>
37071
37072         faccessat: compile replacement
37073         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37074         needed.
37075
37076         fts: fix compilation error
37077         * lib/fts.c (includes): Re-add "openat.h", for
37078         openat_needs_fchdir.
37079
37080         faccessat: new module
37081         * modules/faccessat: New file.
37082         * lib/faccessat.c: Likewise.
37083         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37085         * modules/unistd (Makefile.am): Use it.
37086         * lib/unistd.in.h (faccessat): Declare it.
37087         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37088         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37089         * MODULES.html.sh (File system functions): Mention it.
37090         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37091         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37092
37093         euidaccess: prefer POSIX over non-standard implementation
37094         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37095         * lib/euidaccess.c (euidaccess): Use it if available.
37096
37097         openat: make template easier to use
37098         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37099         AT_FUNC_F2 to be undefined.
37100         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37101         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37102         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37103         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37104         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37105         Likewise.
37106         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37107         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37108         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37109         Likewise.
37110
37111         openat: declare in POSIX headers
37112         * NEWS: Mention this.
37113         * modules/openat (configure.ac): Declare witnesses.
37114         (Depends-on): Add fcntl-h, sys_stat, unistd.
37115         (Include): Mention correct headers.
37116         * modules/fcntl-h (Depends-on): Add link-warning.
37117         (Files): Add openat.m4.
37118         (Makefile.am): Substitute witnesses.
37119         * modules/sys_stat (Files, Makefile.am): Likewise.
37120         * modules/unistd (Files, Makefile.am): Likewise.
37121         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37122         (gl_OPENAT_DEFAULTS): New macro.
37123         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37126         (SYS_STAT_H): Remove unused variable.
37127         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37128         * lib/fcntl--.h (includes): Remove unneeded header.
37129         * lib/openat-safer.c (includes): Likewise.
37130         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37131         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37132         appropriate headers.
37133         (__OPENAT_PREFIX): Delete.
37134         * lib/fcntl.in.h (openat): Provide declaration.
37135         (AT_FDCWD): Fix Solaris bug.
37136         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37137         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37138         * lib/fchmodat.c (includes):  Adjust to find declaration.
37139         * lib/fchownat.c (includes): Likewise.
37140         * lib/mkdirat.c (includes): Likewise.
37141         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37142         still visible.
37143
37144 2009-09-02  Eric Blake  <ebb9@byu.net>
37145
37146         errno: use consistently
37147         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37148         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37149         * lib/canonicalize.c (ELOOP): Likewise.
37150         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37151         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37152         * lib/lchown.c (EOPNOTSUPP): Likewise.
37153         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37154         * lib/savewd.c (ESTALE): Likewise.
37155         * lib/settime.c (ENOSYS): Likewise.
37156         * lib/utimens.c (ENOSYS): Likewise.
37157         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37158         * lib/chdir-safer.c (ELOOP): Likewise.
37159         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37160         * modules/c-stack (Depends-on): Add errno.
37161         * modules/canonicalize (Depends-on): Likewise.
37162         * modules/chdir-safer (Depends-on): Likewise.
37163         * modules/fdopendir (Depends-on): Likewise.
37164         * modules/inet_ntop (Depends-on): Likewise.
37165         * modules/inet_pton (Depends-on): Likewise.
37166         * modules/lchown (Depends-on): Likewise.
37167         * modules/openat (Depends-on): Likewise.
37168         * modules/savewd (Depends-on): Likewise.
37169         * modules/settime (Depends-on): Likewise.
37170         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37171
37172         fts: avoid leaking fds
37173         * modules/fts (Depends-on): Add cloexec.
37174         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37175         flag.
37176
37177         fts: make directory fds more robust
37178         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37179         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37180
37181         backupfile, chdir-long, fts, savedir: make safer
37182         * lib/backupfile.c (includes): Use "dirent--.h", since
37183         numbered_backup can write to stderr during readdir.
37184         * lib/savedir.c (includes): Likewise.
37185         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37186         emulation can write to stderr on failure.
37187         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37188         * lib/getcwd.c: Document why opendir_safer is unused.
37189         * lib/glob.c: Likewise.
37190         * lib/scandir.c: Likewise.
37191         * lib/openat-proc.c: Likewise, for open_safer.
37192         * modules/backupfile (Depends-on): Add dirent-safer.
37193         * modules/savedir (Depends-on): Likewise.
37194         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37195         * modules/chdir-long (Depends-on): Add openat-safer.
37196
37197         openat-safer: new module
37198         * modules/openat-safer: New file.
37199         * lib/openat-safer.c: Likewise.
37200         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37201         * lib/fcntl-safer.h (openat_safer): Declare.
37202         * lib/fcntl--.h (openat): Override.
37203         * MODULES.html.sh (File descriptor based I/O): Mention it.
37204         * lib/openat.h: Add double-inclusion guards.
37205         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37206         "fcntl--.h", so we can implement openat.
37207         * modules/openat-safer-tests: New test.
37208         * tests/test-openat-safer.c: New file.
37209
37210         dirent-safer: new module
37211         * modules/dirent-safer: New file.
37212         * lib/dirent--.h: Likewise.
37213         * lib/dirent-safer.h: Likewise.
37214         * lib/opendir-safer.c: Likewise.
37215         * m4/dirent-safer.m4: Likewise.
37216         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37217         * modules/dirent-safer-tests: New test.
37218         * tests/test-dirent-safer.c: New file.
37219         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37220
37221         fdopendir: optimize on mingw
37222         * lib/unistd.in.h (_gl_directory_name): New prototype.
37223         * lib/fchdir.c (_gl_directory_name): Implement it.
37224         (fchdir): Use it to simplify implementation.
37225         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37226         fchdir, when available, to avoid calling [f]chdir().
37227
37228         fdopendir: split into its own module
37229         * lib/openat.c (fdopendir): Move...
37230         * lib/fdopendir.c: ...into new file.
37231         * modules/fdopendir: New module.
37232         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37233         * modules/openat (Depends-on): Add fdopendir.
37234         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37235         fdopendir here.
37236         * modules/savedir (Depends-on): Only need fdopendir, not full
37237         openat.
37238         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37239         * lib/openat.h (fdopendir): Drop prototype.
37240         * lib/dirent.in.h (fdopendir): Provide prototype.
37241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37242         * modules/dirent (Makefile.am): Substitute them.
37243         * MODULES.html.sh (File system functions): Mention it.
37244         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37245         * modules/fdopendir-tests: New file.
37246         * tests/test-fdopendir.c: Likewise.
37247
37248         fchdir: use more consistent macro convention
37249         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37250         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37251         REPLACE_FCHDIR, rather than relying on config.h macros.
37252         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37253         inside a single make-time REPLACE_FCHDIR block, rather than using
37254         the config.h FCHDIR_REPLACEMENT.
37255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37256         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37257         Manage fstat replacement.
37258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37259         REPLACE_FCHDIR.
37260         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37261         (Makefile.am): Substitute REPLACE_FCHDIR.
37262         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37263         FCHDIR_REPLACEMENT.
37264         * lib/dup-safer.c (dup_safer): Likewise.
37265         * lib/dup2.c (rpl_dup2): Likewise.
37266         * lib/dup3.c (rpl_dup3): Likewise.
37267         * lib/open.c (rpl_open): Likewise.
37268
37269         fchdir: simplify error handling, and support dup3
37270         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37271         stdbool, malloc-posix, realloc-posix.
37272         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37273         (ensure_dirs_slot): Return false on allocation failure.
37274         (rpl_dup2): Delete.
37275         (_gl_register_dup): New function.
37276         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37277         (_gl_register_fd): Close fd on allocation failure.
37278         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37279         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37280         prototype.
37281         (rpl_dup2_fchdir): Delete prototype.
37282         * lib/open.c (open): Update caller.
37283         * lib/dup2.c (dup2): Track fchdir metadata.
37284         * lib/dup3.c (dup3): Likewise.
37285         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37287
37288 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37289
37290         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37291         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37292         don't pass arguments to AC_OUTPUT.
37293
37294 2009-09-02  Bruno Haible  <bruno@clisp.org>
37295
37296         * modules/mkdtemp (License): Relicense under LGPLv2+.
37297         Reported by Paolo Bonzini.
37298
37299 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37300
37301         Replace uses of obsolete autoconf macros in Jim's modules.
37302         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37303         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37304         can evoke a warning from autoconf when run with -Wobsolete
37305         enabled.  They were declared obsolete for good reasons (see
37306         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37307         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37308         should not continue using the deprecated macros.
37309         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37310         obsolete Autoconf macros with modern counterparts.
37311         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37312         * m4/dos.m4 (gl_AC_DOS): Likewise.
37313         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37315         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37316         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37317         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37319         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37320         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37321         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37322         Likewise.
37323         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37324         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37325         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37326         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37327         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37328         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37329
37330 2009-09-01  Eric Blake  <ebb9@byu.net>
37331
37332         fchdir: fix off-by-one bug in previous patch
37333         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37334         (_gl_unregister_fd): Delete useless if.
37335
37336 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37337
37338         maint.mk: sort the list of syntax-check rules
37339         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37340         easier to get a sense of progress when the rules are run sequentially
37341         and take a long time.
37342
37343 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37344
37345         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37346         * modules/netinet_in: Likewise.
37347         * modules/sys_file: Likewise.
37348         * modules/sys_ioctl: Likewise.
37349         * modules/sys_select: Likewise.
37350         * modules/sys_socket: Likewise.
37351         * modules/sys_stat: Likewise.
37352         * modules/sys_time: Likewise.
37353         * modules/sys_times: Likewise.
37354         * modules/sys_utsname: Likewise.
37355         * modules/sys_wait: Likewise.
37356
37357 2009-09-01  Jim Meyering  <meyering@redhat.com>
37358
37359         fts: help ensure that return values are not ignored
37360         * lib/fts_.h (__GNUC_PREREQ): Define.
37361         (__attribute_warn_unused_result__): Define.
37362         (fts_children, fts_close, fts_open, fts_read): Declare with
37363         __attribute_warn_unused_result__.
37364
37365         fts: fts_close now fails also when closing a dir file descriptor fails
37366         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37367         and propagate to caller, along with errno.
37368
37369         announce-gen: correct formatting in --help output
37370         * build-aux/announce-gen (usage): Move the one-line description in
37371         --help output "up", to where it belongs, just after Usage:.
37372
37373 2009-08-31  Eric Blake  <ebb9@byu.net>
37374
37375         fchdir: port to mingw
37376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37377         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37378         opened, then use a substitute.
37379         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37380         replacement.
37381         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37382         (_gl_register_fd): No need to check stat if open already filters
37383         all directories.
37384         (fchdir): Fix error condition to match POSIX.
37385         * modules/fchdir (Depends-on): Add sys_stat.
37386         * doc/posix-functions/open.texi (open): Document the limitation.
37387         * modules/fchdir-tests: New file.
37388         * tests/test-fchdir.c: Likewise.
37389
37390         canonicalize: allow cross-testing from cygwin to mingw
37391         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37392         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37393         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37394         Likewise.
37395         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37396         target does not support symlinks.
37397         * tests/test-canonicalize-lgpl.sh: Likewise.
37398
37399         chown: avoid compilation warning on mingw
37400         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37401         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37402         mingw.
37403         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37404         * modules/chown (Depends-on): Add errno.
37405
37406 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37407
37408         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37409         command.
37410
37411 2009-08-31  Jim Meyering  <meyering@redhat.com>
37412
37413         canonicalize: remove useless initialization
37414         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37415         initialization of local, "end".
37416
37417 2009-08-30  Bruno Haible  <bruno@clisp.org>
37418
37419         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37420         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37421         ENOSYS.
37422
37423 2009-08-30  Bruno Haible  <bruno@clisp.org>
37424
37425         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37426         /usr/xpg4/bin/tr when it exists.
37427         * tests/test-pipe-filter-gi1.sh: Likewise.
37428
37429 2009-08-30  Bruno Haible  <bruno@clisp.org>
37430
37431         Work around deficient /usr/bin/id program on Solaris.
37432         * tests/test-file-has-acl.sh (ID): New variable.
37433         * tests/test-set-mode-acl.sh (ID): Likewise.
37434         * tests/test-copy-acl.sh (ID): Likewise.
37435         * tests/test-copy-file.sh (ID): Likewise.
37436
37437 2009-08-30  Bruno Haible  <bruno@clisp.org>
37438
37439         New module 'xstriconveh'.
37440         * lib/xstriconveh.h: New file.
37441         * lib/xstriconveh.c: New file.
37442         * modules/xstriconveh: New file.
37443
37444 2009-08-30  Bruno Haible  <bruno@clisp.org>
37445
37446         Make it easier to use mem_cd_iconveh.
37447         * lib/striconveh.h (iconveh_t): New type.
37448         (iconveh_open, iconveh_close): New declarations.
37449         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37450         with a single 'const iconveh_t *' argument.
37451         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37452         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37453         with a single 'const iconveh_t *' argument.
37454         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37455         * tests/test-striconveh.c (main): Update.
37456         * NEWS: Mention the change.
37457
37458 2009-08-30  Bruno Haible  <bruno@clisp.org>
37459
37460         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37461         problem.
37462
37463 2009-08-30  Bruno Haible  <bruno@clisp.org>
37464
37465         Work around iconv_open problem on Solaris.
37466         * lib/iconv_open-solaris.gperf: New file.
37467         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37468         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37469         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37470         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37471         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37472         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37473
37474 2009-08-29  Jim Meyering  <meyering@redhat.com>
37475
37476         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37477         * top/maint.mk (cvs-check): Remove target; it was just an alias
37478         to the better-named vc-diff-check.
37479         (maintainer-distcheck): Remove rule.  It was used only from
37480         the (alpha/beta/major) target, and all of its commands but one
37481         were coreutils-specific.
37482         (vc-dist): Remove rule.
37483         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37484         Run vc-diff-check, not vc-dist.
37485         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37486
37487 2009-08-27  Bruno Haible  <bruno@clisp.org>
37488
37489         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37490         of 0.
37491
37492 2009-08-27  Bruno Haible  <bruno@clisp.org>
37493
37494         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37495         compilers.
37496         * doc/func.texi: Document the SunPRO C bug.
37497
37498 2009-08-27  Bruno Haible  <bruno@clisp.org>
37499
37500         Fix link error on Solaris.
37501         * tests/test-parse-duration.c (xstrdup): Remove function.
37502
37503 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37504
37505         ignore-value: handle pointer types, too
37506         * lib/ignore-value.h (__attribute__): Remove definition.
37507         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37508         of a more concise and more-often effective "(void) i" statement.
37509         (ignore_ptr): New function to suppress warnings from functions that
37510         return pointers, and to make it explicit that one function doesn't
37511         handle all cases.
37512
37513 2009-08-25  Bruno Haible  <bruno@clisp.org>
37514
37515         dup2: work around a Linux bug.
37516         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37517         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37518         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37519         Reported by Simon Josefsson.
37520
37521 2009-08-25  Jim Meyering  <meyering@redhat.com>
37522
37523         libguestfs uses gnulib
37524         * users.txt: Add libguestfs.
37525
37526 2009-08-24  Eric Blake  <ebb9@byu.net>
37527
37528         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37529         * lib/pipe2.c (includes): Add binary-io.h.
37530         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37531
37532 2009-08-24  Bruno Haible  <bruno@clisp.org>
37533
37534         Tolerate declared but missing accept4 syscall.
37535         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37536         available.
37537         * lib/sys_socket.in.h (accept4): If the function is already present,
37538         override it.
37539         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37540         * modules/accept4 (Makefile.am): Compile accept4.c always.
37541         Reported by Paolo Bonzini and Eric Blake.
37542
37543 2009-08-23  Bruno Haible  <bruno@clisp.org>
37544
37545         New module 'accept4'.
37546         * lib/sys_socket.in.h (accept4): New declaration.
37547         * lib/accept4.c: New file.
37548         * m4/accept4.m4: New file.
37549         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37550         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37551         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37552         HAVE_ACCEPT4.
37553         * modules/accept4: New file.
37554         * doc/glibc-functions/accept4.texi: Mention the new module.
37555
37556 2009-08-24  Jim Meyering  <meyering@redhat.com>
37557
37558         progname: also set global program_invocation_name, when possible
37559         Before this change, a libtool-enabled program that calls glibc's
37560         error function would report the program name as
37561         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37562         * modules/progname (configure.ac): Check for a declaration of
37563         program_invocation_name.
37564         * lib/progname.c:  Include <errno.h>.
37565         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37566         Set program_invocation_name.
37567
37568 2009-08-23  Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/dup3.c: Include <string.h>.
37571
37572 2009-08-23  Bruno Haible  <bruno@clisp.org>
37573
37574         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37575         * lib/pipe2.c (pipe2): Likewise.
37576         Suggested by Eric Blake.
37577
37578 2009-08-23  Bruno Haible  <bruno@clisp.org>
37579
37580         Tolerate declared but missing dup3 syscall.
37581         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37582         * lib/unistd.in.h (dup3): If the function is already present,
37583         override it.
37584         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37585         * modules/dup3 (Makefile.am): Compile dup3.c always.
37586         Reported by Paolo Bonzini.
37587
37588 2009-08-23  Bruno Haible  <bruno@clisp.org>
37589
37590         Tolerate declared but missing pipe2 syscall.
37591         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37592         available.
37593         * lib/unistd.in.h (pipe2): If the function is already present,
37594         override it.
37595         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37596         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37597         Reported by Paolo Bonzini.
37598
37599 2009-08-23  Bruno Haible  <bruno@clisp.org>
37600
37601         * lib/pipe2.c (pipe2): Move #ifs inside function.
37602
37603 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37604
37605         quotearg: document limitations of quote_these_too
37606         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37607         those limitations are created.
37608         * lib/quotearg.h (set_char_quoting): Document that digits and
37609         letters that are special after backslash are not permitted.
37610         (quotearg_char): Cross-reference set_char_quoting documentation.
37611
37612 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37613
37614         quotearg: implement custom_quoting_style
37615         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37616         right_quote fields.
37617         (set_custom_quoting): New public function.
37618         (quotearg_buffer_restyled): Add left_quote and right_quote
37619         arguments, handle them very much like locale quoting, and update
37620         all uses.
37621         (quotearg_n_custom): New public function.
37622         (quotearg_n_custom_mem): New public function.
37623         (quotearg_custom): New public function.
37624         (quotearg_custom_mem): New public function.
37625         * lib/quotearg.h: Prototype and document new public functions.
37626         (enum quoting_style): For escape_quoting_style and
37627         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37628         ignored even though they're otherwise like c_quoting_style.
37629         Add custom_quoting_style member and document with comparison to
37630         clocale_quoting_style.
37631         * tests/test-quotearg.c (custom_quotes): New array.
37632         (custom_results): New array.
37633         (main): Extend to test custom quoting.
37634
37635 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37636
37637         quotearg: fix right quote escaping when it's in quote_these_too
37638         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37639         quote, be sure to prepend only one backslash.
37640         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37641         (main): Test it.
37642
37643 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37644
37645         quotearg-tests: test escaping of embedded locale quotes
37646         * tests/test-quotearg.c (struct result_strings): Add member for
37647         new input.
37648         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37649         (inputs): Add new input.
37650         (results_g): Add expected results.
37651         (flag_results): Likewise.
37652         (locale_results): Likewise.
37653         (compare_strings): Check those.
37654
37655 2009-08-23  Bruno Haible  <bruno@clisp.org>
37656
37657         Tests for module 'dup3'.
37658         * modules/dup3-tests: New file.
37659         * tests/test-dup3.c: New file.
37660
37661         New module 'dup3'.
37662         * lib/unistd.in.h (dup3): New declaration.
37663         * lib/dup3.c: New file.
37664         * m4/dup3.m4: New file.
37665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37666         HAVE_DUP3.
37667         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37668         * modules/dup3: New file.
37669         * doc/glibc-functions/dup3.texi: Mention the new module.
37670
37671 2009-08-23  Bruno Haible  <bruno@clisp.org>
37672
37673         Tweak the dup2 test.
37674         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37675         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37676         the test file is still empty. Fix argument order of lseek.
37677
37678 2009-08-23  Bruno Haible  <bruno@clisp.org>
37679
37680         Avoid test link errors when the modules getopt-gnu, gettext are used.
37681         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37683
37684 2009-08-23  Bruno Haible  <bruno@clisp.org>
37685
37686         Fix getdtablesize() on mingw.
37687         * lib/getdtablesize.c (getdtablesize): Implement differently.
37688         * lib/unistd.in.h (getdtablesize): Improve comment.
37689
37690 2009-08-23  Bruno Haible  <bruno@clisp.org>
37691
37692         New module 'mkostemp'.
37693         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37694         * lib/stdlib.in.h (mksotemp): New declaration.
37695         * lib/mkostemp.c: New file, from glibc with modifications.
37696         * lib/tempname.h (GT_FILE): Remove outdated comment.
37697         (gen_tempname): Add flags argument.
37698         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37699         (__GT_FILE): Map to 1.
37700         (small_open, large_open): Remove macros.
37701         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37702         * lib/mkstemp.c (mkstemp): Update.
37703         * lib/mkdtemp.c (mkdtemp): Likewise.
37704         * m4/mkostemp.m4: New file.
37705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37706         HAVE_MKOSTEMP.
37707         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37708         HAVE_MKOSTEMP.
37709         * modules/mkostemp: New file, based on modules/mkstemp.
37710         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37711         * NEWS: Mention the change.
37712
37713 2009-08-23  Bruno Haible  <bruno@clisp.org>
37714
37715         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37716         Reported by Eric Blake.
37717
37718 2009-08-23  Bruno Haible  <bruno@clisp.org>
37719
37720         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37721         Reported by Eric Blake.
37722
37723 2009-08-23  Bruno Haible  <bruno@clisp.org>
37724
37725         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37726         * modules/pipe2 (Depends-on): Likewise.
37727
37728 2009-08-23  Eric Blake  <ebb9@byu.net>
37729
37730         fcntl-h: add O_TTY_INIT support
37731         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37732         * tests/test-fcntl-h.c (o): Test it.
37733         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37734
37735         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37736         * modules/fcntl: Move <fcntl.h> header replacement...
37737         * modules/fcntl-h: ...to new name, so as not to collide with
37738         like-named function.
37739         * tests/test-fcntl.c: Rename...
37740         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37741         * modules/fcntl-tests: Rename...
37742         * modules/fcntl-h-tests: ...to this.  Update test file name.
37743         * modules/chdir-long (Depends-on): Update clients.
37744         * modules/chdir-safer (Depends-on): Likewise.
37745         * modules/fcntl-safer (Depends-on): Likewise.
37746         * modules/fts (Depends-on): Likewise.
37747         * modules/mkancesdirs (Depends-on): Likewise.
37748         * modules/mkdir-p (Depends-on): Likewise.
37749         * modules/open (Depends-on): Likewise.
37750         * modules/savewd (Depends-on): Likewise.
37751         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37752         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37753
37754 2009-08-22  Bruno Haible  <bruno@clisp.org>
37755
37756         * modules/binary-io (License): Relicense under LGPL.
37757         * modules/pipe2 (License): Likewise.
37758
37759 2009-08-22  Bruno Haible  <bruno@clisp.org>
37760
37761         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37762         return value.
37763         * lib/pipe-filter-gi.c (filter_init): Likewise.
37764         Reported by Eric Blake.
37765
37766 2009-08-22  Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37769         * modules/pipe (Depends-on): Add pipe2.
37770
37771 2009-08-22  Bruno Haible  <bruno@clisp.org>
37772
37773         Tests for module 'pipe2'.
37774         * modules/pipe2-tests: New file.
37775         * tests/test-pipe2.c: New file.
37776
37777         New module 'pipe2'.
37778         * lib/unistd.in.h (pipe2): New declaration.
37779         * lib/pipe2.c: New file.
37780         * m4/pipe2.m4: New file.
37781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37782         HAVE_PIPE2.
37783         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37784         * modules/pipe2: New file.
37785         * doc/glibc-functions/pipe2.texi: Mention the new module.
37786
37787 2009-08-22  Bruno Haible  <bruno@clisp.org>
37788
37789         Reference some new glibc functions.
37790         * doc/glibc-functions/accept4.texi: New file.
37791         * doc/glibc-functions/dup3.texi: New file.
37792         * doc/glibc-functions/mkostemp.texi: New file.
37793         * doc/glibc-functions/pipe2.texi: New file.
37794         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37795         (Glibc sys/socket.h): Refer to accept4.
37796         (Glibc unistd.h): Refer to dup3, pipe2.
37797         Reported by Eric Blake.
37798
37799 2009-08-22  Jim Meyering  <meyering@redhat.com>
37800             Bruno Haible  <bruno@clisp.org>
37801
37802         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37803         This makes it so packages using automake-1.11's silent-rules option
37804         can print e.g., a single "GEN    configmake.h" line, rather than
37805         the 30+ statements that perform the job.  If you want to see the
37806         actual commands, you can still run "make V=1".
37807         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37808         so that make output is abbreviated when those variables are defined
37809         appropriately.
37810         * modules/argz: Likewise.
37811         * modules/arpa_inet: Likewise.
37812         * modules/byteswap: Likewise.
37813         * modules/configmake: Likewise.
37814         * modules/dirent: Likewise.
37815         * modules/errno: Likewise.
37816         * modules/fcntl: Likewise.
37817         * modules/float: Likewise.
37818         * modules/fnmatch: Likewise.
37819         * modules/getopt-posix: Likewise.
37820         * modules/glob: Likewise.
37821         * modules/iconv_open: Likewise.
37822         * modules/inttypes: Likewise.
37823         * modules/localcharset: Likewise.
37824         * modules/locale: Likewise.
37825         * modules/math: Likewise.
37826         * modules/netdb: Likewise.
37827         * modules/netinet_in: Likewise.
37828         * modules/poll: Likewise.
37829         * modules/posix_spawnp-tests: Likewise.
37830         * modules/sched: Likewise.
37831         * modules/search: Likewise.
37832         * modules/selinux-h: Likewise.
37833         * modules/signal: Likewise.
37834         * modules/spawn: Likewise.
37835         * modules/stdarg: Likewise.
37836         * modules/stdbool: Likewise.
37837         * modules/stddef: Likewise.
37838         * modules/stdint: Likewise.
37839         * modules/stdio: Likewise.
37840         * modules/stdlib: Likewise.
37841         * modules/string: Likewise.
37842         * modules/strings: Likewise.
37843         * modules/sys_file: Likewise.
37844         * modules/sys_ioctl: Likewise.
37845         * modules/sys_select: Likewise.
37846         * modules/sys_socket: Likewise.
37847         * modules/sys_stat: Likewise.
37848         * modules/sys_time: Likewise.
37849         * modules/sys_times: Likewise.
37850         * modules/sys_utsname: Likewise.
37851         * modules/sys_wait: Likewise.
37852         * modules/sysexits: Likewise.
37853         * modules/time: Likewise.
37854         * modules/unistd: Likewise.
37855         * modules/wchar: Likewise.
37856         * modules/wctype: Likewise.
37857
37858 2009-08-22  Jim Meyering  <meyering@redhat.com>
37859
37860         announce-gen: detect write failure
37861         * build-aux/announce-gen: Add Coda at end.
37862         Remove equivalent-but-more-verbose block at top.
37863
37864 2009-08-19  Akim Demaille  <demaille@gostai.com>
37865
37866         bootstrap: --help to stdout.
37867         * bootstrap (usage): Don't send --help to stderr.
37868         Use a here doc instead of a long string.
37869
37870 2009-08-21  Eric Blake  <ebb9@byu.net>
37871
37872         test-popen-safer: split from test-popen
37873         * tests/test-popen.c (main): Move...
37874         * tests/test-popen.h: ...into new file.
37875         * tests/test-popen-safer2.c: New file.
37876         * modules/popen-tests (Files): Add test-popen.h.
37877         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37878         Suggested by Bruno Haible.
37879
37880         test-fcntl-safer: split from test-open
37881         * tests/test-open.c (main): Move...
37882         * tests/test-open.h: ...into new file.
37883         * tests/test-fcntl-safer.c: New file.
37884         * modules/open-tests (Files): Add test-open.h.
37885         * modules/fcntl-safer-tests: New file.
37886         Suggested by Bruno Haible.
37887
37888         test-fopen-safer: split from test-fopen
37889         * tests/test-fopen.c (main): Move...
37890         * tests/test-fopen.h: ...into new file.
37891         * tests/test-fopen-safer.c: New file.
37892         * modules/fopen-tests (Files): Add test-fopen.h.
37893         * modules/fopen-safer-tests: New file.
37894         Suggested by Bruno Haible.
37895
37896 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37897
37898         popen-safer: test O_CLOEXEC at run-time.
37899         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37900
37901 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37902
37903         fcntl: move more flags to the header
37904         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37905         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37906         * lib/fcntl.in.h: Do both things here.
37907
37908 2009-08-21  Jim Meyering  <meyering@redhat.com>
37909
37910         consistently remove $@-t before redirecting to it
37911         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37912         * modules/alloca-opt: Likewise.
37913         * modules/byteswap: Likewise.
37914         * modules/fnmatch: Likewise.
37915         * modules/getopt-posix: Likewise.
37916         * modules/glob: Likewise.
37917         * modules/poll: Likewise.
37918         * modules/posix_spawnp-tests: Likewise.
37919         * modules/sys_socket: Likewise.
37920         * modules/sysexits: Likewise.
37921
37922 2009-08-21  Eric Blake  <ebb9@byu.net>
37923
37924         popen: simplify access to original popen
37925         * lib/popen.c (rpl_popen): No need to worry about popen being a
37926         macro.
37927         Reported by Bruno Haible.
37928
37929 2009-08-20  Eric Blake  <ebb9@byu.net>
37930
37931         build: avoid some compiler warnings
37932         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37933         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37934         type.
37935         (new_exclude_segment, excluded_file_pattern_p)
37936         (excluded_file_name_p): Reduce scope.
37937         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37938         old-style declaration.
37939
37940 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37941
37942         * tests/test-exclude1.sh: Handle Windows EOL.
37943         * tests/test-exclude2.sh: Likewise.
37944         * tests/test-exclude3.sh: Likewise.
37945         * tests/test-exclude4.sh: Likewise.
37946         * tests/test-exclude5.sh: Likewise.
37947         * tests/test-exclude6.sh: Likewise.
37948         * tests/test-exclude7.sh: Likewise.
37949
37950 2009-08-19  Akim Demaille  <demaille@gostai.com>
37951
37952         bootstrap: find sha1sum when named gsha1sum.
37953         * bootstrap (find_tool): New.
37954         ($SHA1SUM): New.
37955         Use it.
37956
37957 2009-08-20  Jim Meyering  <meyering@redhat.com>
37958
37959         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37960         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37961         expression that converts "." in a file name to "\." in the resulting
37962         regexp.  Start with a dummy statement, so that prior shell variable
37963         definitions are expanded portably.  Reported by Simon Josefsson.
37964
37965 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37966
37967         Fix polling for writeability of a screen buffer.
37968         * lib/poll.c: Distinguish input and screen buffers for the
37969         Win32 implementation.
37970         * lib/select.c: Likewise.
37971
37972 2009-08-19  Eric Blake  <ebb9@byu.net>
37973
37974         popen-safer: prevent popen from clobbering std descriptors
37975         * modules/popen-safer: New file.
37976         * lib/popen-safer.c: Likewise.
37977         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37978         * lib/stdio--.h (popen): Provide override.
37979         * lib/stdio-safer.h (popen_safer): Provide declaration.
37980         * tests/test-popen.c (includes): Partially test this.
37981         * modules/popen-safer-tests: New file, for more tests.
37982         * tests/test-popen-safer.c: Likewise.
37983         * MODULES.html.sh (file stream based Input/Output): Mention it.
37984
37985         tests: test some of the *-safer modules
37986         * modules/fopen-safer (Depends-on): Add fopen.
37987         * modules/fcntl-safer (Depends-on): Add fcntl.
37988         * modules/stdlib-safer (Depends-on): Add stdlib.
37989         (configure.ac): Set indicator.
37990         * modules/unistd-safer (configure.ac): Likewise.
37991         * modules/tmpfile-safer (configure.ac): Likewise.
37992         (Depends-on): Add tmpfile.
37993         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37994         active.
37995         * tests/test-fopen.c (includes): Test safer versions when they are
37996         in use.
37997         * tests/test-open.c (includes): Likewise.
37998
37999         popen: fix cygwin 1.5 bug when stdin closed
38000         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38001         * modules/popen: New file.
38002         * modules/popen-tests: Likewise.
38003         * tests/test-popen.c: Likewise.
38004         * m4/popen.m4: Likewise.
38005         * lib/popen.c: Likewise.
38006         * lib/stdio.in.h (popen): New declaration.
38007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38008         * modules/stdio (Makefile.am): Likewise.
38009         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38010
38011 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38012
38013         maint.mk: give full control over update-copyright exclusions
38014         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38015         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38016         (update-copyright): Don't force inclusion of top-level
38017         ChangeLog.  Don't force exclusion of all COPYING files, but make
38018         them the default exclusion instead.
38019
38020 2009-08-16  Bruno Haible  <bruno@clisp.org>
38021
38022         Fix test failures on Solaris 10.
38023         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38024         tests when Solaris iconv() is used.
38025         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38026         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38027         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38028         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38029         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38030
38031 2009-08-16  Bruno Haible  <bruno@clisp.org>
38032
38033         Fix test failures on Solaris 10.
38034         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38035         'tr' program and pass it as first argument.
38036         * tests/test-pipe-filter-gi1.sh: Likewise.
38037         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38038         program as first argument.
38039         * tests/test-pipe-filter-gi1.c (main): Likewise.
38040
38041 2009-08-16  Eric Blake  <ebb9@byu.net>
38042
38043         fpurge: fix previous commits
38044         * modules/fpurge (Makefile.am): Make replacement conditional,
38045         partially reverting 2007-04-29 change; missed in previous
38046         attempt.
38047         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38048         is missing.
38049
38050 2009-08-16  Bruno Haible  <bruno@clisp.org>
38051
38052         Clarify fpurge's effect on the file position.
38053         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38054         * tests/test-fpurge.c (main): Make a second pass for checking the file
38055         position.
38056
38057 2009-08-16  Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38060         declaration of fpurge is missing.
38061         * tests/test-fpurge.c (main): Check that the file has not more contents
38062         than expected. Close the file before removing it.
38063
38064 2009-08-15  Eric Blake  <ebb9@byu.net>
38065
38066         fpurge: don't wrap working cygwin implementation
38067         * lib/fpurge.c (fpurge): Fix comment typo.
38068         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38069         1.7 to avoid replacement.
38070         * tests/test-fpurge.c (main): Enhance test.
38071
38072 2009-08-15  Eric Blake  <ebb9@byu.net>
38073         and Jim Meyering  <meyering@redhat.com>
38074
38075         test-update-copyright: skip if perl is insufficient
38076         * tests/test-update-copyright.sh: Failure to run maintainer tool
38077         should not cause testsuite failure on cygwin 1.5.
38078
38079 2009-08-14  Eric Blake  <ebb9@byu.net>
38080
38081         doc: mention more functions added in cygwin 1.7.0
38082         * doc/posix-headers/limits.texi (limits.h): Update for recent
38083         cygwin additions.
38084         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38085         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38086         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38087         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38088         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38089
38090 2009-08-14  Eric Blake  <ebb9@byu.net>
38091
38092         maint.mk: simplify update-copyright rule
38093         * top/maint.mk (update-copyright-local): Delete, and document how
38094         to do it in cfg.mk instead.
38095         (update-copyright-exclude-regexp): Delete, and document how to do
38096         it in .x-update-copyright instead.
38097         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38098         exclude ChangeLog.
38099
38100 2009-08-14  Bruno Haible  <bruno@clisp.org>
38101
38102         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38103
38104 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38105
38106         maint.mk: support update-copyright-env
38107         * top/maint.mk (update-copyright-env): Define place-holder.
38108         (update-copyright): Expand $(update-copyright-env) before
38109         invoking update-copyright.
38110
38111 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38112
38113         update-copyright: implement forced reformatting
38114         * build-aux/update-copyright: Implement and document
38115         UPDATE_COPYRIGHT_FORCE.
38116         * tests/test-update-copyright.sh: Test it.
38117
38118 2009-08-14  Eric Blake  <ebb9@byu.net>
38119         and Bruno Haible  <bruno@clisp.org>
38120
38121         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38122         * tests/test-locale.c: Revert previous patch related to NULL.
38123         * tests/test-stdio.c: Likewise.
38124         * tests/test-stdlib.c: Likewise.
38125         * tests/test-string.c: Likewise.
38126         * tests/test-unistd.c: Likewise.
38127         * modules/time-tests (Depends-on): Add verify.
38128         * modules/wchar-tests (Depends-on): Likewise.
38129         * tests/test-time.c: Test for NULL compliance.
38130         * tests/test-wchar.c: Likewise.
38131         * modules/locale (Depends-on): Add stddef.
38132         * modules/stdio (Depends-on): Likewise.
38133         * modules/stdlib (Depends-on): Likewise.
38134         * modules/string (Depends-on): Likewise.
38135         * modules/time (Depends-on): Likewise.
38136         * modules/unistd (Depends-on): Likewise.
38137         * modules/wchar (Depends-on): Likewise.
38138         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38139         * lib/stdlib.in.h (includes): Likewise.
38140         * lib/string.in.h (includes): Likewise.
38141         * lib/time.in.h (includes): Likewise.
38142         * lib/unistd.in.h (includes): Likewise.
38143         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38144         replaced.
38145         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38146         * m4/stddef_h.m4: New file.
38147         * modules/stddef: Likewise.
38148         * lib/stddef.in.h: Likewise.
38149         * modules/stddef-tests: Likewise.
38150         * tests/test-stddef.c: Likewise.
38151         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38152         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38153         * doc/posix-headers/locale.texi (locale.h): Likewise.
38154         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38155         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38156         * doc/posix-headers/string.texi (string.h): Likewise.
38157         * doc/posix-headers/time.texi (time.h): Likewise.
38158         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38159         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38160
38161 2009-08-14  Eric Blake  <ebb9@byu.net>
38162
38163         doc: improve git diff of texinfo files
38164         * .gitattributes: Add rule for *.texi files, with hint on how to
38165         use it.
38166         Copied from m4, and based on a report by Bruno Haible.
38167
38168 2009-08-14  Bruno Haible  <bruno@clisp.org>
38169
38170         Disable multithread support by default on Cygwin 1.5.x for real.
38171         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38172
38173 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38174
38175         update-copyright: much ado about intervals
38176         * build-aux/update-copyright: Implement and document
38177         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38178         of copyright year intervals.
38179         Also, document UPDATE_COPYRIGHT_YEAR.
38180         * tests/test-update-copyright.sh: Test it.
38181
38182         update-copyright: convert 2-digit to 4-digit years
38183         * build-aux/update-copyright: Implement and document.
38184         * tests/test-update-copyright.sh: Update.
38185
38186 2009-08-14  Jim Meyering  <meyering@redhat.com>
38187
38188         test-exclude: avoid coreutils "make check" failure
38189         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38190         just as in test-argmatch.c.
38191
38192 2009-08-13  Eric Blake  <ebb9@byu.net>
38193
38194         test-dup2: fix bad assumption
38195         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38196         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38197
38198         test-version-etc: fix CRLF portability issue
38199         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38200         recognize \r.
38201         * tests/test-argp-version-etc-1.sh: Likewise.
38202
38203         getopt: update client modules
38204         * modules/argp (Depends-on): Use getopt-gnu.
38205         * modules/git-merge-changelog (Depends-on): Likewise.
38206         * modules/long-options (Depends-on): Likewise.
38207         * modules/xstrtol (Depends-on): Likewise.
38208
38209 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38210
38211         * tests/test-version-etc.sh: Don't fail on different
38212         project/version.  Don't fail on CRLF differences.  Rewrite to use
38213         multiple -e instead of multiple sed forks, suggested by Eric Blake
38214         <ebb9@byu.net>.
38215         * tests/test-argp-version-etc-1.sh: Likewise.
38216
38217 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38218
38219         * tests/test-version-etc.sh: Don't fail on different
38220         project/version.
38221
38222 2009-08-12  Bruno Haible  <bruno@clisp.org>
38223
38224         Tests for modules 'getopt-posix', 'getopt-gnu'.
38225         * modules/getopt-posix-tests: New file.
38226         * tests/test-getopt.c: New file.
38227         * tests/test-getopt.h: New file.
38228         * tests/test-getopt_long.h: New file.
38229
38230         New modules 'getopt-posix', 'getopt-gnu'.
38231         * modules/getopt-gnu: New file, renamed from modules/getopt.
38232         * modules/getopt-posix: New file.
38233         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38234         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38235         (gl_GETOPT): Remove macro.
38236         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38237         Disable the test against BSD systems that declare optreset. Test
38238         against mingw bug. Test against lack of support of optional arguments
38239         on many platforms.
38240         * doc/glibc-headers/getopt.texi: Update module name and list of
38241         relevant platforms.
38242         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38243         'getopt-gnu' and more portability problems.
38244         * NEWS: Mention the changes.
38245
38246 2009-08-12  Bruno Haible  <bruno@clisp.org>
38247
38248         Ensure that optarg etc. get declared by <unistd.h>.
38249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38250         AC_USE_SYSTEM_EXTENSIONS.
38251         * modules/getopt (Depends-on): Add 'extensions'.
38252
38253 2009-08-12  Bruno Haible  <bruno@clisp.org>
38254
38255         Avoid test link errors.
38256         * modules/pipe-filter-ii-tests (Makefile.am): Define
38257         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38258         * modules/pipe-filter-gi-tests (Makefile.am): Define
38259         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38261
38262 2009-08-12  Bruno Haible  <bruno@clisp.org>
38263
38264         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38265         gl_GETOPT_SUBSTITUTE before.
38266         (gl_GETOPT): Use it.
38267         * m4/argp.m4 (gl_ARGP): Update.
38268         Reported by Sergey Poznyakoff.
38269
38270         * m4/getopt.m4: Reorder macros.
38271         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38272         (gl_GETOPT_SUBSTITUTE): Remove macro.
38273
38274 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38275
38276         Minor improvement in gitlog-to-changelog
38277
38278         * build-aux/gitlog-to-changelog: New option `--format' makes
38279         output format string configurable.
38280
38281 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38282
38283         Optimize exclude: use hash tables for non-wildcard patterns.
38284
38285         * lib/exclude.c: Include hash.h and mbuiter.h
38286         (struct exclude_pattern, exclude_segment): New data types.
38287         (struct exclude): Rewrite.
38288         (fnmatch_pattern_has_wildcards): New function.
38289         (new_exclude_segment, free_exclude_segment): New functions.
38290         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38291         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38292         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38293         * modules/exclude: Depend on hash and mbuiter.
38294
38295         * modules/exclude-tests: New file.
38296         * tests/test-exclude.c: New file.
38297         * tests/test-exclude1.sh: New file.
38298         * tests/test-exclude2.sh: New file.
38299         * tests/test-exclude3.sh: New file.
38300         * tests/test-exclude4.sh: New file.
38301         * tests/test-exclude5.sh: New file.
38302         * tests/test-exclude6.sh: New file.
38303         * tests/test-exclude7.sh: New file.
38304
38305 2009-08-12  Bruno Haible  <bruno@clisp.org>
38306
38307         Ensure that getopt() gets declared by <unistd.h>.
38308         * lib/unistd.in.h: Conditionally include getopt.h.
38309         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38310         Set GNULIB_UNISTD_H_GETOPT.
38311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38312         GNULIB_UNISTD_H_GETOPT.
38313         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38314
38315 2009-08-12  Bruno Haible  <bruno@clisp.org>
38316
38317         Clarify logic.
38318         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38319         gl_replace_getopt instead of GETOPT_H.
38320
38321 2009-08-12  Bruno Haible  <bruno@clisp.org>
38322
38323         * m4/getopt.m4: Add comments.
38324
38325 2009-08-12  Bruno Haible  <bruno@clisp.org>
38326
38327         Disable multithread support by default on Cygwin 1.5.x.
38328         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38329         set gl_use_threads=no if not specified otherwise.
38330
38331 2009-08-11  Bruno Haible  <bruno@clisp.org>
38332
38333         Avoid compilation error on NetBSD 5.0.
38334         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38335         * tests/test-stdio.c: Likewise.
38336         * tests/test-stdlib.c: Likewise.
38337         * tests/test-string.c: Likewise.
38338         * tests/test-unistd.c: Likewise.
38339         Reported by Greg Troxel <gdt@ir.bbn.com>
38340         at <https://savannah.gnu.org/support/?106973>.
38341
38342 2009-08-11  Bruno Haible  <bruno@clisp.org>
38343
38344         * modules/dup2-tests (Depends-on): Remove close.
38345
38346         Undo 2009-07-19 commit.
38347         * modules/acl-tests (Depends-on): Remove close.
38348         * modules/binary-io-tests (Depends-on): Likewise.
38349         * modules/closein-tests (Depends-on): Likewise.
38350         * modules/flock-tests (Depends-on): Likewise.
38351         * modules/fsync-tests (Depends-on): Likewise.
38352         * modules/lseek-tests (Depends-on): Likewise.
38353         * modules/pipe-tests (Depends-on): Likewise.
38354         * modules/posix_spawn-tests (Depends-on): Likewise.
38355         * modules/posix_spawnp-tests (Depends-on): Likewise.
38356         * modules/stat-time-tests (Depends-on): Likewise.
38357         * modules/yesno-tests (Depends-on): Likewise.
38358
38359 2009-08-10  Bruno Haible  <bruno@clisp.org>
38360
38361         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38362
38363 2009-08-10  Bruno Haible  <bruno@clisp.org>
38364
38365         Fix a gcc warning.
38366         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38367
38368 2009-08-10  Bruno Haible  <bruno@clisp.org>
38369
38370         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38371         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38372         not only the first time.
38373         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38374         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38375         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38376         is 1, not only the the first time.
38377
38378 2009-08-10  Bruno Haible  <bruno@clisp.org>
38379
38380         Make it possible to use module 'gethostname' without module 'close'.
38381         * lib/unistd.in.h (close): Evoke a link error only if
38382         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38384         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38385         * modules/unistd (Makefile.am): Substitute
38386         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38387         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38388         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38389         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38390         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38391         * modules/sys_ioctl (Makefile.am): Substitute
38392         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38393         * modules/socket (configure.ac): On native Windows, set
38394         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38395         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38396         Reported by Sam Steingold <sds@gnu.org>.
38397
38398 2009-08-10  Bruno Haible  <bruno@clisp.org>
38399
38400         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38401         * modules/ioctl (configure.ac): Likewise.
38402
38403 2009-08-10  Bruno Haible  <bruno@clisp.org>
38404
38405         Avoid collision between gnulib wrapper and libintl wrapper.
38406         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38407         already defined in intl/printf.c.
38408         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38409         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38410
38411 2009-08-09  Bruno Haible  <bruno@clisp.org>
38412
38413         Make <sys/select.h> really self-contained, also on Solaris 10.
38414         * lib/sys_select.in.h: Include <string.h>.
38415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38416         Solaris 10 problem.
38417         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38418         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38419         Reported by Jim Meyering.
38420
38421 2009-08-09  Bruno Haible  <bruno@clisp.org>
38422
38423         Avoid warnings from 'aclocal' that are due to a use of macro name
38424         AM_XGETTEXT_OPTION that is not defined in automake.
38425         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38426         automake.
38427         * modules/error (configure.ac): Likewise.
38428         * modules/propername (configure.ac): Likewise.
38429         * modules/vasprintf (configure.ac): Likewise.
38430         * modules/verror (configure.ac): Likewise.
38431         * modules/xprintf (configure.ac): Likewise.
38432         * modules/xvasprintf (configure.ac): Likewise.
38433
38434 2009-08-08  Bruno Haible  <bruno@clisp.org>
38435
38436         Avoid compilation error in C++ mode.
38437         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38438         Reported by Sam Steingold <sds@gnu.org>.
38439
38440 2009-08-08  Bruno Haible  <bruno@clisp.org>
38441
38442         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38443         for the various Unix platforms.
38444         * doc/posix-headers/limits.texi: Update platforms list regarding
38445         HOST_NAME_MAX.
38446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38447
38448 2009-08-07  Jim Meyering  <meyering@redhat.com>
38449
38450         selinux-at: fix typo in a comment
38451         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38452         Spotted by Paolo Bonzini.
38453
38454         selinux-at: remove redundant m4 code, add documentation
38455         * modules/selinux-at (configure.ac): Remove redundant code.
38456         LIB_SELINUX is already set via the dependent module, selinux-h.
38457         (Include): Add quotes around selinux-at.h.
38458         * lib/selinux-at.h: Add documentation.
38459         Reported by Bruno Haible in
38460         http://marc.info/?l=gnulib-bug&m=124958988300749
38461
38462 2009-08-07  Bruno Haible  <bruno@clisp.org>
38463
38464         Avoid link error on MacOS X 10.3 and 10.4.
38465         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38466         on non-ELF systems.
38467         * lib/argp-pv.c (argp_program_version): Likewise.
38468         Reported by Simon Josefsson.
38469
38470 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38471
38472         * tests/test-version-etc.sh: Use $EXEEXT.
38473
38474 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38475
38476         update-copyright: update documentation to point to maint.mk
38477         * build-aux/update-copyright: Here.
38478
38479 2009-08-06  Jim Meyering  <meyering@redhat.com>
38480
38481         maint.mk: support update-copyright-local
38482         * top/maint.mk (update-copyright-local): Define place-holder.
38483         (update-copyright): Depend on $(update-copyright-local).
38484
38485 2009-08-06  Jim Meyering  <meyering@redhat.com>
38486
38487         selinux-at: new module
38488         Initially written for coreutils, this module will soon be
38489         used by findutils, too.
38490         * MODULES.html.sh [Misc]: Add selinux-at.
38491         * lib/selinux-at.h: New file, from coreutils.
38492         * lib/selinux-at.c: Likewise.
38493         * modules/selinux-at: Likewise.
38494         (License): Change from LGPL to GPL, since it depends
38495         on the GPL'd openat module.
38496
38497         doc: update README
38498         * README: Remove references to cogito.
38499         Remove cvs-repo-updating instructions from 2007.
38500         Don't imply that CVS is better if you have limited disk space.
38501
38502 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38503
38504         update-copyright: support C-style comments
38505         * build-aux/update-copyright: Implement and document.
38506         * tests/test-update-copyright.sh: Test.
38507
38508 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38509
38510         update-copyright: support omitted "(C)"
38511         * build-aux/update-copyright: Implement and document.  Also,
38512         allow variable whitespace before "(C)".
38513         * tests/test-update-copyright.sh: Test.
38514
38515 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38516
38517         update-copyright: don't trip on non-FSF copyright statements
38518         * build-aux/update-copyright: Fix so that the first correctly
38519         formatted FSF copyright statement is recognized no matter what
38520         appears before it.  Update documentation.
38521         * tests/test-update-copyright.sh: Test that.
38522
38523 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38524
38525         update-copyright: clean up code a little
38526         * build-aux/update-copyright: Append "_re" to the name of any
38527         variable holding a regular expression.
38528         Replace "old" and "new" with "stmt" in variable names.
38529         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38530         handled correctly.
38531         Format code more consistently.
38532
38533 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38534
38535         update-copyright-tests: improve portability
38536         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38537         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38538
38539 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38540
38541         update-copyright: support @copyright{} and &copy;
38542         * build-aux/update-copyright: Implement and document.
38543         * tests/test-update-copyright.sh: Test.
38544
38545 2009-08-04  Jim Meyering  <meyering@redhat.com>
38546
38547         update-copyright-tests: correctly test EOL=\r\n handling
38548         * tests/test-update-copyright.sh: Put \r at the end of some lines
38549         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38550
38551         maint.mk: make update-copyright exclusion list more configurable
38552         * top/maint.mk (update-copyright): Default to excluding COPYING,
38553         but allow an override, in case someone does want to update that file.
38554
38555         maint.mk: don't update copyright date in COPYING
38556         * top/maint.mk (update-copyright): Exclude COPYING.
38557
38558         maint.mk: add a copyright-updating rule
38559         * top/maint.mk (update-copyright): New rule.
38560         Derived from coreutils/Makefile.am.
38561
38562         update-copyright: rename some variables
38563         * build-aux/update-copyright: Rename a few variables for clarity.
38564         Tweak syntax.  List Joel E. Denny as coauthor.
38565
38566 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38567
38568         update-copyright: fix bug for 2-digit last year and add tests
38569         * build-aux/update-copyright: Fix bug.
38570         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38571         specified.
38572         * modules/update-copyright-tests: New
38573         * tests/test-update-copyright.sh: New.
38574
38575 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38576
38577         update-copyright: handle leading tabs in line prefix
38578         * build-aux/update-copyright: Count leading tabs as 8 spaces
38579         when computing margin.  This helps with the formatting of
38580         ChangeLogs, for example.
38581         Fix documentation a little.
38582
38583 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38584
38585         update-copyright: support EOL=\r\n
38586         * build-aux/update-copyright: Implement that.
38587
38588 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38589
38590         update-copyright: automatically format copyright statements
38591         * build-aux/update-copyright: Implement that.
38592         Also, be a little more predictable and safer by always failing
38593         when the full copyright format is not perfectly recognized as an
38594         unbroken whole.  Discussed at
38595         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38596         Rewrite documentation.
38597
38598 2009-08-03  Bruno Haible  <bruno@clisp.org>
38599
38600         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38601
38602 2009-08-02  Bruno Haible  <bruno@clisp.org>
38603
38604         Tests for module 'uname'.
38605         * modules/uname-tests: New file.
38606         * tests/test-uname.c: New file.
38607
38608         New module 'uname'.
38609         * lib/uname.c: New file.
38610         * m4/uname.m4: New file.
38611         * modules/uname: New file.
38612         * doc/posix-functions/uname.texi: Mention the new module.
38613
38614 2009-08-02  Bruno Haible  <bruno@clisp.org>
38615
38616         Tests for module 'sys_utsname'.
38617         * modules/sys_utsname-tests: New file.
38618         * tests/test-sys_utsname.c: New file.
38619
38620         New module 'sys_utsname'.
38621         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38622         * m4/sys_utsname_h.m4: New file.
38623         * modules/sys_utsname: New file.
38624         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38625
38626 2009-08-02  Bruno Haible  <bruno@clisp.org>
38627
38628         Implicitly initialize the sockets library.
38629         * lib/gethostname.c: Include sockets.h.
38630         (rpl_gethostname): Invoke gl_sockets_startup.
38631         * lib/socket.c: Include sockets.h.
38632         (rpl_socket): Invoke gl_sockets_startup.
38633         * modules/gethostname (Depends-on): Add sockets.
38634         * modules/socket (Depends-on): Likewise.
38635         * tests/test-poll.c: Don't include sockets.h.
38636         (main): Don't invoke gl_sockets_startup.
38637         * tests/test-select.c: Don't include sockets.h.
38638         (main): Don't invoke gl_sockets_startup.
38639
38640 2009-08-02  Bruno Haible  <bruno@clisp.org>
38641
38642         Allow multiple calls to gl_sockets_startup.
38643         * lib/sockets.c (initialized_sockets_version): New variable.
38644         (gl_sockets_startup): Do nothing if already called for this or a higher
38645         version.
38646         (gl_sockets_cleanup): Reset initialized_sockets_version.
38647
38648 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38649
38650         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38651         different project/version.
38652
38653 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38654             Bruno Haible  <bruno@clisp.org>
38655
38656         Tests for module 'pipe-filter-gi'.
38657         * modules/pipe-filter-gi-tests: New file.
38658         * tests/test-pipe-filter-gi1.sh: New file.
38659         * tests/test-pipe-filter-gi1.c: New file.
38660         * tests/test-pipe-filter-gi2.sh: New file.
38661         * tests/test-pipe-filter-gi2-main.c: New file.
38662         * tests/test-pipe-filter-gi2-child.c: New file.
38663
38664         New module 'pipe-filter-gi'.
38665         * lib/pipe-filter-gi.c: New file.
38666         * modules/pipe-filter-gi: New file.
38667
38668 2009-08-02  Bruno Haible  <bruno@clisp.org>
38669             Paolo Bonzini  <bonzini@gnu.org>
38670
38671         Tests for module 'pipe-filter-ii'.
38672         * modules/pipe-filter-ii-tests: New file.
38673         * tests/test-pipe-filter-ii1.sh: New file.
38674         * tests/test-pipe-filter-ii1.c: New file.
38675         * tests/test-pipe-filter-ii2.sh: New file.
38676         * tests/test-pipe-filter-ii2-main.c: New file.
38677         * tests/test-pipe-filter-ii2-child.c: New file.
38678
38679         New module 'pipe-filter-ii'.
38680         * lib/pipe-filter.h: New file.
38681         * lib/pipe-filter-ii.c: New file.
38682         * lib/pipe-filter-aux.h: New file.
38683         * modules/pipe-filter-ii: New file.
38684
38685 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38686
38687         * lib/gc-libgcrypt.c: Change copyright to FSF.
38688         * lib/gc-gnulib.c: Likewise.
38689
38690 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38691
38692         * lib/gethostname.c: Include limits.h.
38693
38694 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38695             Bruno Haible  <bruno@clisp.org>
38696
38697         Ensure HOST_NAME_MAX as part of the gethostname module.
38698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38699         define also HOST_NAME_MAX.
38700         * tests/test-gethostname.c: Include <limits.h>.
38701         (main): Check also HOST_NAME_MAX.
38702         * doc/posix-headers/limits.texi: Document the mingw problem.
38703
38704 2009-08-02  Bruno Haible  <bruno@clisp.org>
38705
38706         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38707         Add comments.
38708
38709 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38710
38711         * lib/gethostname.c: Add Windows wrapper.
38712         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38713         * modules/gethostname: Depend on sys_socket & errno, for also
38714         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38715         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38716
38717 2009-07-31  Jim Meyering  <meyering@redhat.com>
38718
38719         getloadavg: fix symbol name in comment
38720         * lib/getloadavg.c: Correct a typo I introduced when adding
38721         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38722         Matt Kraai spotted the problem.
38723
38724 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38725
38726         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38727         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38728         code also if ! defined N_NAME_POINTER.
38729         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38730         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38731         but the n_name member is a 12-byte array.
38732
38733 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38734
38735         update-copyright: generalize comment handling
38736         * build-aux/update-copyright: Handle copyright statements
38737         within more comment styles.
38738         Document usage.
38739         Report any file with an external copyright holder or parse failure.
38740
38741 2009-07-29  Jim Meyering  <meyering@redhat.com>
38742
38743         mktime: correct setting of REPLACE_MKTIME
38744         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38745
38746         update-copyright: new module
38747         * modules/update-copyright: New file.
38748         * build-aux/update-copyright: New file.
38749         * MODULES.html.sh (maint+release support): Add update-copyright.
38750
38751 2009-07-27  Bruno Haible  <bruno@clisp.org>
38752
38753         Fix compilation error when <ctime> is used and mktime is replaced.
38754         * lib/time.in.h (mktime): New declaration.
38755         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38756         REPLACE_MKTIME instead of defining mktime in config.h.
38757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38758         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38759         Reported by Ross McFarland <rwmcfa1@neces.com>.
38760
38761 2009-07-27  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38764         Reported by Matt Kraai <mkraai@beckman.com>.
38765
38766 2009-07-25  Jim Meyering  <meyering@redhat.com>
38767
38768         maint.mk: avoid warnings about missing files
38769         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38770         diagnostic when .prev-version does not exist.
38771         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38772         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38773         nonexistent cfg.mk.
38774         Suggestions from Simon Josefsson.
38775
38776 2009-07-25  Bruno Haible  <bruno@clisp.org>
38777
38778         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38779         defined as macros. Needed on QNX 6.4.1.
38780         Reported by Matt Kraai <mkraai@beckman.com>.
38781
38782 2009-07-23  Jim Meyering  <meyering@redhat.com>
38783
38784         maint.mk: invoke "make dist" with a working value of XZ_OPT
38785         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38786
38787 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38788
38789         Make fseeko.c compile on QNX.
38790         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38791
38792 2009-07-22  Peter Simons  <simons@cryp.to>
38793
38794         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38795         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38796         * lib/md4.h: Likewise.
38797         * lib/md5.h: Likewise.
38798         * lib/sha1.h: Likewise.
38799         * lib/sha256.h: Likewise.
38800         * lib/sha512.h: Likewise.
38801
38802         tests-sha1: don't assign literal string to 'char *' variable
38803         * tests/test-sha1.c (main): Declare locals with "const" to match
38804         attributes of the right hand side.
38805
38806 2009-07-21  Eric Blake  <ebb9@byu.net>
38807
38808         dup2: fix more mingw problems
38809         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38810         fd to itself.
38811         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38812         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38813         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38814         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38815         care of mingw bugs.
38816
38817 2009-07-21  Jim Meyering  <meyering@redhat.com>
38818
38819         vc-list-files: avoid failure when /bin/sh is dash
38820         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38821         On some Debian based systems, /bin/sh is a symlink to dash, and running
38822         this command would omit the "/" following each 'tests' prefix:
38823           dash -x build-aux/vc-list-files -C . tests
38824         That is because bash and dash work differently:
38825           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38826           bash ok
38827           dash odd
38828
38829 2009-07-21  Eric Blake  <ebb9@byu.net>
38830
38831         dup2-tests: test previous patch
38832         * modules/dup2-tests: New file.
38833         * tests/test-dup2.c: Likewise.
38834         * tests/test-open.c (main): Avoid unspecified behavior.
38835         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38836         test.
38837
38838         dup2: work around mingw and cygwin 1.5 bug
38839         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38841         * modules/unistd (Makefile.am): Substitute it.
38842         * lib/unistd.in.h (dup2): Declare the replacement.
38843         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38844         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38845         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38846         * modules/execute (Depends-on): Add dup2.
38847         * modules/fseterr (Depends-on): Likewise.
38848         * modules/pipe (Depends-on): Likewise.
38849         * modules/posix_spawn-internal (Depends-on): Likewise.
38850
38851 2009-07-21  Bruno Haible  <bruno@clisp.org>
38852
38853         * modules/.gitattributes: New file.
38854
38855 2009-07-20  Bruno Haible  <bruno@clisp.org>
38856
38857         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38858         (main): Use it.
38859
38860 2009-07-20  Eric Blake  <ebb9@byu.net>
38861
38862         test-pipe: make a bit more robust.
38863         * tests/test-pipe.c (myerr): Allow error messages regardless of
38864         what we do to stderr.
38865         (test_pipe): Rearrange to avoid deadlock.
38866         (child_main): Try a larger read, to ensure we avoided deadlock.
38867         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38868         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38869         if misused.
38870
38871 2009-07-19  Jim Meyering  <meyering@redhat.com>
38872
38873         fts: avoid false-positive cycle-detection
38874         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38875         for each new command line argument.
38876
38877 2009-07-19  Bruno Haible  <bruno@clisp.org>
38878
38879         Fix build error on mingw with the modules sys_select and unistd.
38880         * modules/acl-tests (Depends-on): Add close.
38881         * modules/binary-io-tests (Depends-on): Likewise.
38882         * modules/closein-tests (Depends-on): Likewise.
38883         * modules/flock-tests (Depends-on): Likewise.
38884         * modules/fsync-tests (Depends-on): Likewise.
38885         * modules/lseek-tests (Depends-on): Likewise.
38886         * modules/pipe-tests (Depends-on): Likewise.
38887         * modules/posix_spawn-tests (Depends-on): Likewise.
38888         * modules/posix_spawnp-tests (Depends-on): Likewise.
38889         * modules/stat-time-tests (Depends-on): Likewise.
38890         * modules/yesno-tests (Depends-on): Likewise.
38891
38892 2009-07-19  Bruno Haible  <bruno@clisp.org>
38893
38894         Unify conditionals.
38895         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38896         macros, not at the compiler macros.
38897         * lib/pipe.c: Likewise.
38898         * lib/execute.c: Likewise.
38899         * lib/spawni.c: Likewise.
38900
38901 2009-07-19  Bruno Haible  <bruno@clisp.org>
38902
38903         Fix handling of closed stdin/stdout/stderr on mingw.
38904         * lib/w32spawn.h: Include unistd.h.
38905         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38906         file descriptor with O_NOINHERIT flag.
38907         (fd_safer_noinherit): New function, based on fd-safer.c.
38908         (dup_safer_noinherit): New function, based on dup-safer.c.
38909         (undup_safer_noinherit): New function.
38910         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38911         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38912         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38913         instead of fd_safer.
38914         * tests/test-pipe.c: Include <windows.h>.
38915         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38916         result.
38917
38918         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38919         from main.
38920         (test_pipe): Pass an extra argument for disambiguation.
38921         (main): Invoke parent_main or child_main.
38922
38923         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38924         consistently.
38925
38926 2009-07-18  Eric Blake  <ebb9@byu.net>
38927
38928         test-pipe: fix mingw build
38929         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38930
38931 2009-07-18  Bruno Haible  <bruno@clisp.org>
38932
38933         * modules/pipe-tests (Makefile.am): Fix typo.
38934
38935 2009-07-18  Eric Blake  <ebb9@byu.net>
38936
38937         error: fix mingw build
38938         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38939         Reported by Bruno Haible.
38940
38941         error: avoid undefined use of stdout
38942         * lib/error.c (error, error_at_line): Check that fd 1 is open
38943         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38944         is handling faults and the close_stdout module wants to report the
38945         detection of closed stdout as an error.
38946
38947 2009-07-17  Eric Blake  <ebb9@byu.net>
38948
38949         pipe: be robust in face of closed fds
38950         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38951         should cause child to misbehave.
38952         * modules/pipe-tests: New module.
38953         * tests/test-pipe.c: New file.
38954         * tests/test-pipe.sh: New file.
38955         Reported by Akim Demaille.
38956
38957 2009-07-14  Bruno Haible  <bruno@clisp.org>
38958
38959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38960         Reported by anonymous kc.
38961
38962 2009-07-07  Jim Meyering  <meyering@redhat.com>
38963
38964         maint.mk: don't look for translatable strings in *.m4 or *.mk
38965         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38966         when searching for translatable strings.
38967
38968 2009-07-05  Jim Meyering  <meyering@redhat.com>
38969
38970         remove superfluous parentheses in STREQ definition
38971         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38972         * lib/getugroups.c (STREQ): Likewise.
38973         * lib/fnmatch.c (STREQ): Likewise.
38974         Spotted by Bruno Haible.
38975
38976 2009-07-04  Jim Meyering  <meyering@redhat.com>
38977
38978         argv-iter: new module
38979         * MODULES.html.sh: Add argv-iter.
38980         * lib/argv-iter.c, lib/argv-iter.h: New files.
38981         * modules/argv-iter: New file.
38982         * modules/argv-iter-tests: New file.
38983         * tests/test-argv-iter.c: Test it.
38984
38985 2009-07-04  Bruno Haible  <bruno@clisp.org>
38986
38987         Fix assertion.
38988         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38989         contains more exact copies of a given entry than file2, leave the extra
38990         copies unpaired rather than aborting.
38991         Reported by Eric Blake.
38992
38993 2009-07-02  Bruno Haible  <bruno@clisp.org>
38994
38995         Speedup git-merge-changelog for git cherry-pick.
38996         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38997         (entries_mapping_get): New function, extracted from compute_mapping.
38998         (entries_mapping_reverse_get): New function.
38999         (compute_mapping): Add a 'full' argument. Return the result in a
39000         'struct entries_mapping'.
39001         (main): Update. Access the mappings through entries_mapping_get.
39002         Reported by Eric Blake.
39003
39004 2009-07-02  Bruno Haible  <bruno@clisp.org>
39005
39006         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39007         best_i.
39008
39009 2009-07-02  Bruno Haible  <bruno@clisp.org>
39010
39011         Speed up approximate search for matching ChangeLog entries.
39012         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39013         argument. Call fstrcmp_bounded instead of fstrcmp.
39014         (compute_mapping, try_split_merged_entry, main): Update callers.
39015
39016 2009-07-02  Bruno Haible  <bruno@clisp.org>
39017
39018         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39019
39020 2009-06-30  Bruno Haible  <bruno@clisp.org>
39021
39022         Reduce the number of uc_is_cased calls.
39023         * lib/unicase.h (casing_suffix_context_t): Add
39024         'first_char_except_ignorable' field.
39025         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39026         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39027         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39028         Update initializer.
39029         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39030         case-ignorable characters.
39031         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39032         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39033         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39034         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39035         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39036
39037 2009-06-30  Bruno Haible  <bruno@clisp.org>
39038
39039         Tests for module 'unicase/ignorable'.
39040         * modules/unicase/ignorable-tests: New file.
39041         * tests/unicase/test-ignorable.c: New file, generated by
39042         gen-uni-tables.
39043
39044         Tests for module 'unicase/cased'.
39045         * modules/unicase/cased-tests: New file.
39046         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39047         * tests/unicase/test-predicate-part1.h: New file, derived from
39048         tests/unictype/test-predicate-part1.h.
39049         * tests/unicase/test-predicate-part2.h: New file, same as
39050         tests/unictype/test-predicate-part2.h.
39051
39052         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39053         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39054         (output_casing_properties): New function.
39055         (main): Call it.
39056         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39057         * lib/unicase/cased.c: Include unictype/bitmap.h.
39058         (uc_is_cased): Define through a bitmap lookup.
39059         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39060         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39061         (uc_is_case_ignorable): Define through a bitmap lookup.
39062         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39063         lib/unictype/bitmap.h.
39064         (Depends-on): Add inline. Clean up.
39065         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39066         lib/unictype/bitmap.h.
39067         (Depends-on): Add inline. Clean up.
39068         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39069         recognition.
39070         * tests/unicase/test-u16-tolower.c (main): Likewise.
39071         * tests/unicase/test-u32-tolower.c (main): Likewise.
39072
39073 2009-06-30  Bruno Haible  <bruno@clisp.org>
39074
39075         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39076         * lib/unicase/u16-casemap.c: Likewise.
39077         * lib/unicase/u32-casemap.c: Likewise.
39078
39079 2009-06-29  Bruno Haible  <bruno@clisp.org>
39080
39081         Define u32_casefold as a wrapper around u32_ct_casefold.
39082         * lib/unicase/u32-casefold.c: Update.
39083         * modules/unicase/u32-casefold (Depends-on): Add
39084         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39085         unicase/empty-suffix-context. Clean up.
39086
39087         Define u16_casefold as a wrapper around u16_ct_casefold.
39088         * lib/unicase/u16-casefold.c: Update.
39089         * modules/unicase/u16-casefold (Depends-on): Add
39090         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39091         unicase/empty-suffix-context. Clean up.
39092
39093         Define u8_casefold as a wrapper around u8_ct_casefold.
39094         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39095         * lib/unicase/u8-casefold.c: Update.
39096         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39097         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39098
39099         Define u32_totitle as a wrapper around u32_ct_totitle.
39100         * lib/unicase/u32-totitle.c: Update.
39101         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39102         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39103
39104         Define u16_totitle as a wrapper around u16_ct_totitle.
39105         * lib/unicase/u16-totitle.c: Update.
39106         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39107         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39108
39109         Define u8_totitle as a wrapper around u8_ct_totitle.
39110         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39111         functions.
39112         (FUNC): Delegate to U_CT_TOTITLE.
39113         * lib/unicase/u8-totitle.c: Update.
39114         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39115         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39116
39117         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39118         invocation.
39119         * modules/unicase/u32-tolower (Depends-on): Add
39120         unicase/empty-prefix-context, unicase/empty-suffix-context.
39121
39122         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39123         invocation.
39124         * modules/unicase/u16-tolower (Depends-on): Add
39125         unicase/empty-prefix-context, unicase/empty-suffix-context.
39126
39127         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39128         * modules/unicase/u8-tolower (Depends-on): Add
39129         unicase/empty-prefix-context, unicase/empty-suffix-context.
39130
39131         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39132         invocation.
39133         * modules/unicase/u32-toupper (Depends-on): Add
39134         unicase/empty-prefix-context, unicase/empty-suffix-context.
39135
39136         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39137         invocation.
39138         * modules/unicase/u16-toupper (Depends-on): Add
39139         unicase/empty-prefix-context, unicase/empty-suffix-context.
39140
39141         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39142         * modules/unicase/u8-toupper (Depends-on): Add
39143         unicase/empty-prefix-context, unicase/empty-suffix-context.
39144
39145         New module 'unicase/u32-ct-casefold'.
39146         * lib/unicase/u32-ct-casefold.c: New file.
39147         * modules/unicase/u32-ct-casefold: New file.
39148
39149         New module 'unicase/u16-ct-casefold'.
39150         * lib/unicase/u16-ct-casefold.c: New file.
39151         * modules/unicase/u16-ct-casefold: New file.
39152
39153         New module 'unicase/u8-ct-casefold'.
39154         * lib/unicase/u8-ct-casefold.c: New file.
39155         * lib/unicase/u-ct-casefold.h: New file, derived from
39156         lib/unicase/u-casefold.h.
39157         * modules/unicase/u8-ct-casefold: New file.
39158
39159         New module 'unicase/u32-ct-totitle'.
39160         * lib/unicase/u32-ct-totitle.c: New file.
39161         * modules/unicase/u32-ct-totitle: New file.
39162
39163         New module 'unicase/u16-ct-totitle'.
39164         * lib/unicase/u16-ct-totitle.c: New file.
39165         * modules/unicase/u16-ct-totitle: New file.
39166
39167         New module 'unicase/u8-ct-totitle'.
39168         * lib/unicase/u8-ct-totitle.c: New file.
39169         * lib/unicase/u-ct-totitle.h: New file, derived from
39170         lib/unicase/u-totitle.h.
39171         * modules/unicase/u8-ct-totitle: New file.
39172
39173         New module 'unicase/u32-ct-tolower'.
39174         * lib/unicase/u32-ct-tolower.c: New file.
39175         * modules/unicase/u32-ct-tolower: New file.
39176
39177         New module 'unicase/u16-ct-tolower'.
39178         * lib/unicase/u16-ct-tolower.c: New file.
39179         * modules/unicase/u16-ct-tolower: New file.
39180
39181         New module 'unicase/u8-ct-tolower'.
39182         * lib/unicase/u8-ct-tolower.c: New file.
39183         * modules/unicase/u8-ct-tolower: New file.
39184
39185         New module 'unicase/u32-ct-toupper'.
39186         * lib/unicase/u32-ct-toupper.c: New file.
39187         * modules/unicase/u32-ct-toupper: New file.
39188
39189         New module 'unicase/u16-ct-toupper'.
39190         * lib/unicase/u16-ct-toupper.c: New file.
39191         * modules/unicase/u16-ct-toupper: New file.
39192
39193         New module 'unicase/u8-ct-toupper'.
39194         * lib/unicase/u8-ct-toupper.c: New file.
39195         * modules/unicase/u8-ct-toupper: New file.
39196
39197         Add context arguments to u*_casemap functions.
39198         * lib/unicase/unicasemap.h: Include unicase.h.
39199         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39200         suffix_context arguments.
39201         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39202         functions.
39203         (FUNC): Add prefix_context and suffix_context arguments. Use
39204         uc_is_cased and uc_is_case_ignorable.
39205         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39206         * lib/unicase/u16-casemap.c: Likewise.
39207         * lib/unicase/u32-casemap.c: Likewise.
39208         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39209         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39210         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39211         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39212         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39213         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39214
39215         New module 'unicase/u32-suffix-context'.
39216         * lib/unicase/u32-suffix-context.c: New file.
39217         * modules/unicase/u32-suffix-context: New file.
39218
39219         New module 'unicase/u16-suffix-context'.
39220         * lib/unicase/u16-suffix-context.c: New file.
39221         * modules/unicase/u16-suffix-context: New file.
39222
39223         New module 'unicase/u8-suffix-context'.
39224         * lib/unicase/u8-suffix-context.c: New file.
39225         * lib/unicase/u-suffix-context.h: New file.
39226         * modules/unicase/u8-suffix-context: New file.
39227
39228         New module 'unicase/empty-suffix-context'.
39229         * lib/unicase/empty-suffix-context.c: New file.
39230         * modules/unicase/empty-suffix-context: New file.
39231
39232         New module 'unicase/u32-prefix-context'.
39233         * lib/unicase/u32-prefix-context.c: New file.
39234         * modules/unicase/u32-prefix-context: New file.
39235
39236         New module 'unicase/u16-prefix-context'.
39237         * lib/unicase/u16-prefix-context.c: New file.
39238         * modules/unicase/u16-prefix-context: New file.
39239
39240         New module 'unicase/u8-prefix-context'.
39241         * lib/unicase/u8-prefix-context.c: New file.
39242         * lib/unicase/u-prefix-context.h: New file.
39243         * lib/unicase/context.h: New file.
39244         * modules/unicase/u8-prefix-context: New file.
39245
39246         New module 'unicase/empty-prefix-context'.
39247         * lib/unicase/empty-prefix-context.c: New file.
39248         * modules/unicase/empty-prefix-context: New file.
39249
39250         New module 'unicase/ignorable'.
39251         * lib/unicase/ignorable.c: New file.
39252         * modules/unicase/ignorable: New file.
39253
39254         New module 'unicase/cased'.
39255         * lib/unicase/caseprop.h: New file.
39256         * lib/unicase/cased.c: New file.
39257         * modules/unicase/cased: New file.
39258
39259         New functions for case mapping of substrings.
39260         * lib/unicase.h (casing_prefix_context_t): New type.
39261         (unicase_empty_prefix_context): New variable.
39262         (u8_casing_prefix_context, u16_casing_prefix_context,
39263         u32_casing_prefix_context, u8_casing_prefixes_context,
39264         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39265         declarations.
39266         (casing_suffix_context_t): New type.
39267         (unicase_empty_suffix_context): New variable.
39268         (u8_casing_suffix_context, u16_casing_suffix_context,
39269         u32_casing_suffix_context, u8_casing_suffixes_context,
39270         u16_casing_suffixes_context, u32_casing_suffixes_context,
39271         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39272         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39273         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39274         declarations.
39275
39276 2009-06-28  Jim Meyering  <meyering@redhat.com>
39277
39278         boostrap: indent only with spaces
39279         * build-aux/bootstrap: Indent only with spaces, never TABs.
39280
39281         bootstrap: split long lines
39282         * build-aux/bootstrap: Keep line length < 80.
39283
39284         bootstrap: sync from coreutils
39285         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39286         just as autoreconf does.  Verify a list of prerequisite
39287         package-name,version-number pairs if defined in bootstrap.conf.
39288         Refer to README-prereq, if prerequisites are not satisfied.
39289
39290 2009-06-27  Eric Blake  <ebb9@byu.net>
39291
39292         tests: add test for bogus NULL definition
39293         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39294         * tests/test-stdlib.c: Likewise.
39295         * tests/test-string.c: Likewise.
39296         * tests/test-locale.c: Likewise.
39297         * tests/test-unistd.c: Likewise.
39298         * modules/stdio-tests (Depends-on): Add verify.
39299         * modules/stdlib-tests (Depends-on): Likewise.
39300         * modules/string-tests (Depends-on): Likewise.
39301         * modules/locale-tests (Depends-on): Likewise.
39302         * modules/unistd-tests (Depends-on): Likewise.
39303
39304 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39305
39306         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39307         self-explaining comment.
39308         * m4/selinux-selinux-h: Update serial.
39309         (gl_LIBSELINUX): New macro, adding a warning for missing development
39310         packages to code extracted from...
39311         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39312         Add warning for missing development packages here, too.
39313
39314 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39315
39316         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39317
39318 2009-06-25  Eric Blake  <ebb9@byu.net>
39319
39320         version-etc: fix regression
39321         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39322         gcc.
39323         (version_etc): Use it, to catch bugs with trailing NULL.
39324         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39325         (version_etc_va): Fix logic bug.
39326         * modules/version-etc-tests: Add test.
39327         * tests/test-version-etc.c: New file.
39328         * tests/test-version-etc.sh: Likewise.
39329
39330 2009-06-25  Sam Steingold  <sds@gnu.org>
39331
39332         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39333         mbtowc declaration.
39334
39335 2009-06-25  Eric Blake  <ebb9@byu.net>
39336
39337         fpurge: migrate into <stdio.h>
39338         * lib/fpurge.h: Delete...
39339         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39340         * lib/fpurge.c (fpurge): Change declaring header.
39341         * modules/fpurge (Files): Drop deleted file.
39342         (Depends-on): Add stdio.
39343         (configure.ac): Set witness.
39344         * modules/stdio (Makefile.am): Support fpurge macros.
39345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39346         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39347         * lib/fflush.c: Update client.
39348         * tests/test-fpurge.c: Likewise.
39349         * NEWS: Mention the change.
39350
39351 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39352
39353         * lib/argp-version-etc.c (program_authors): Add const
39354         qualifier.
39355         * lib/version-etc.c: Fix typos in the comments.
39356         * modules/argp-version-etc: Depends on version-etc.
39357
39358 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39359
39360         argp-version-etc: new module.
39361
39362         * lib/argp-version-etc.c: New file.
39363         * lib/argp-version-etc.h: New file.
39364         * modules/argp-version-etc: New file.
39365         * modules/argp-version-etc-tests: New file.
39366         * tests/test-argp-version-etc.c: New test.
39367         * tests/test-argp-version-etc-1.sh: New test.
39368
39369 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39370
39371         Provide additional interfaces and documentation for version-etc
39372         module.
39373
39374         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39375         interfaces.
39376         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39377         prototypes.
39378
39379 2009-06-24  Bruno Haible  <bruno@clisp.org>
39380
39381         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39382         HAVE_LIB${NAME} macro.
39383         Reported by Sam Steingold <sds@gnu.org>.
39384
39385 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39386
39387         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39388         needed.
39389
39390 2009-06-21  Bruno Haible  <bruno@clisp.org>
39391
39392         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39393         work.
39394         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39395         together with LIB${NAME}, LTLIB${NAME}.
39396         Reported by Sam Steingold <sds@gnu.org>.
39397
39398 2009-06-20  Jim Meyering  <meyering@redhat.com>
39399
39400         tests: make sc_require_test_exit_idiom more generic
39401         * top/maint.mk (Exit_witness_file): New overridable variable.
39402         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39403         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39404
39405 2009-06-19  Jim Meyering  <meyering@redhat.com>
39406
39407         hash: reverse order of src/dst parameters in an internal interface
39408         * lib/hash.c (transfer_entries): Reverse order of parameters to
39409         put DST before SRC.  Adjust callers.
39410
39411         tests: test-hash: avoid wholesale duplication
39412         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39413         Instead, use a loop and add a single conditional.
39414
39415         tests: test-hash: allow seed selection via a command line argument
39416         * tests/test-hash.c (get_seed): New function.
39417         (main): Use it.
39418
39419 2009-06-19  Eric Blake  <ebb9@byu.net>
39420
39421         hash: avoid memory leak on allocation failure
39422         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39423         failure.  Factor repeated algorithm...
39424         (transfer_entries): ...into new helper routine.
39425         (hash_delete): React to hash_rehash return value.
39426
39427         hash: reduce memory pressure in hash_rehash no-op case
39428         * lib/hash.c (next_prime): Avoid overflow.
39429         (hash_initialize): Factor bucket size computation...
39430         (compute_bucket_size): ...into new helper function.
39431         (hash_rehash): Use new function and open coding to reduce memory
39432         pressure, and avoid a memory leak in USE_OBSTACK code.
39433         Reported by Jim Meyering.
39434
39435 2009-06-18  Eric Blake  <ebb9@byu.net>
39436
39437         hash: make rotation more obvious
39438         * modules/hash (Depends-on): Add bitrotate and stdint.
39439         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39440         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39441         (SIZE_MAX): Rely on headers for definition.
39442         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39443         (raw_hasher): Use rotr_sz.
39444         Suggested by Jim Meyering.
39445
39446         hash: fix memory leak in last patch
39447         * lib/hash.c (hash_rehash): Avoid memory leak.
39448
39449         hash: avoid no-op rehashing
39450         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39451
39452         hash: provide default callback functions
39453         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39454         (hash_initialize): Use them as defaults.
39455         * tests/test-hash.c (main): Test this.
39456
39457         hash: minor optimization
39458         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39459         when possible.
39460         (hash_initialize): Document this promise.
39461         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39462         * tests/test-hash.c (hash_compare_strings): Test this.
39463
39464 2009-06-18  Bruno Haible  <bruno@clisp.org>
39465
39466         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39467         going to be replaced anyway.
39468
39469 2009-06-18  Bruno Haible  <bruno@clisp.org>
39470
39471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39472         in one place.
39473         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39474         be replaced anyway.
39475
39476 2009-06-18  Eric Blake  <ebb9@byu.net>
39477
39478         hash: check for resize before insertion
39479         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39480         threshold before insertion, so that a pathological hash_rehash
39481         that fills every bucket can still trigger another rehash.
39482
39483 2009-06-18  Jim Meyering  <meyering@redhat.com>
39484
39485         hash-tests: add a loop around the small tests
39486         * tests/test-hash.c (main): Repeat small tests with selected
39487         small initial table sizes.
39488
39489 2009-06-17  Eric Blake  <ebb9@byu.net>
39490
39491         hash: minor cleanups
39492         * lib/hash.h (hash_entry): Make opaque, by moving...
39493         * lib/hash.c (hash_entry): ...here.
39494         (hash_insert): Clarify restrictions on what can be inserted.
39495         (hash_get_next): Clarify when it is safe to remove an element
39496         during traversal.
39497         (check_tuning): Skip verification when tuning is known safe.
39498         (hash_initialize): Clarify restrictions on tuning.
39499
39500 2009-06-17  Jim Meyering  <jim@meyering.net>
39501         and Eric Blake  <ebb9@byu.net>
39502
39503         hash-tests: new module
39504         * modules/hash-tests: New file.
39505         * tests/test-hash.c: New file.
39506
39507 2009-06-17  Eric Blake  <ebb9@byu.net>
39508
39509         strstr-simple: document new module
39510         * MODULES.html.sh: Document new module.
39511
39512         strstr, strcasestr: replace on platforms with broken memchr
39513         * modules/strstr: Split into...
39514         * modules/strstr-simple: ...new module that does not care about
39515         performance, but does care about glibc bug.
39516         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39517         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39518         if platform memchr is broken, per Debian bug 521737.
39519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39520         memchr.
39521         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39522         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39523         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39524         * modules/mountlist (Depends-on): Add strstr-simple.
39525         * modules/gen-uni-tables (Depends-on): Likewise.
39526         * modules/argz (Depends-on): Add strstr.
39527
39528 2009-06-17  Bruno Haible  <bruno@clisp.org>
39529
39530         * modules/posix_spawn-internal (Depends-on): Add errno.
39531
39532 2009-06-17  Bruno Haible  <bruno@clisp.org>
39533
39534         Define missing ESTALE on Interix 3.5.
39535         * lib/errno.in.h (ESTALE): Assign a value if missing.
39536         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39537         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39538         missing.
39539         * doc/posix-headers/errno.texi: Mention the Interix bug.
39540         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39541
39542 2009-06-15  Eric Blake  <ebb9@byu.net>
39543
39544         memchr, memchr2: add valgrind exception
39545         * lib/memchr.valgrind: New file.
39546         * lib/memchr2.valgrind: New file.
39547         * modules/memchr (Files): Distribute valgrind file.
39548         * modules/memchr2 (Files): Likewise.
39549
39550         docs: memchr is no longer obsolete
39551         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39552         * lib/string.in.h (memchr): Simplify logic.
39553
39554 2009-06-14  Jim Meyering  <meyering@redhat.com>
39555
39556         link-follow: fix the "checking..." message to not mention trailing slash
39557         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39558         never considered trailing slashes.
39559
39560 2009-06-14  Bruno Haible  <bruno@clisp.org>
39561
39562         * m4/memchr.m4: Mention also the bug on IA-64.
39563         * doc/posix-functions/memchr.texi: Likewise.
39564
39565 2009-06-12  Eric Blake  <ebb9@byu.net>
39566
39567         memchr: detect broken x86_64 and alpha implementations
39568         * modules/memchr-tests (Depends-on): Move mmap detection...
39569         * modules/memchr (Depends-on): ...here.
39570         (configure.ac): Set indicator.
39571         * lib/string.in.h (memchr): Declare replacement.
39572         * modules/string (Makefile.am): Trigger replacement.
39573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39574         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39575         bugs.
39576         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39577         * modules/getpagesize (License): Relax license.
39578
39579 2009-06-11  Bruno Haible  <bruno@clisp.org>
39580
39581         * lib/idpriv.h: Add more references.
39582
39583 2009-06-08  Bruno Haible  <bruno@clisp.org>
39584
39585         Tests for module 'idpriv-droptemp'.
39586         * modules/idpriv-droptemp-tests: New file.
39587         * tests/test-idpriv-droptemp.sh: New file.
39588         * tests/test-idpriv-droptemp.su.sh: New file.
39589         * tests/test-idpriv-droptemp.c: New file.
39590
39591         New module 'idpriv-droptemp'.
39592         * lib/idpriv-droptemp.c: New file.
39593         * modules/idpriv-droptemp: New file.
39594
39595 2009-06-08  Bruno Haible  <bruno@clisp.org>
39596
39597         Tests for module 'idpriv-drop'.
39598         * modules/idpriv-drop-tests: New file.
39599         * tests/test-idpriv-drop.sh: New file.
39600         * tests/test-idpriv-drop.su.sh: New file.
39601         * tests/test-idpriv-drop.c: New file.
39602
39603         New module 'idpriv-drop'.
39604         * lib/idpriv.h: New file.
39605         * lib-idpriv-drop.c: New file.
39606         * m4/idpriv.m4: New file.
39607         * modules/idpriv-drop: New file.
39608
39609 2009-06-08  Bruno Haible  <bruno@clisp.org>
39610
39611         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39612         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39613         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39614         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39615         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39616         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39617         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39618
39619 2009-06-08  Eric Blake  <ebb9@byu.net>
39620
39621         test-strstr: use memory fence, when possible
39622         * tests/test-strstr.c (main): Use memory fence, in order to be
39623         more likely to trigger Debian bug 521737.
39624         * modules/strstr-tests (Files): Pull in additional files.
39625
39626         memchr: no longer obsolete, for wider field testing
39627         * modules/memchr (Status, Notice): Delete, this module is no
39628         longer obsolete.
39629         * modules/vasnprintf (Depends-on): Add memchr.
39630
39631 2009-06-07  Jim Meyering  <meyering@redhat.com>
39632
39633         hash: declare some functions with the warn_unused_result attribute
39634         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39635
39636 2009-06-07  Bruno Haible  <bruno@clisp.org>
39637
39638         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39639         Reported by Eric Blake.
39640
39641 2009-06-06  Eric Blake  <ebb9@byu.net>
39642
39643         test-alignof: fix typo with long double
39644         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39645         compiler error.
39646
39647 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39648
39649         Escape non-texinfo { and }s.
39650         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39651         markup error.
39652
39653 2009-06-04  Jim Meyering  <meyering@redhat.com>
39654
39655         gitlog-to-changelog: don't infloop on an empty commit log
39656         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39657         Reported by Boris Petersen <transacid@centerim.org>.
39658
39659 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39660
39661         version-etc: extend for packagers
39662         Add three new configure options, intended for packagers:
39663           --with-packager="packager name"
39664           --with-packager-version="packager-specific version"
39665           --with-packager-bug-reports="packager bug reporting"
39666         An example with coreutils:
39667           $ ./configure \
39668             --with-packager=Gentoo \
39669             --with-packager-bug-report=http://bugs.gentoo.org/ \
39670             --with-packager-version="patchset 1.6"
39671           $ ./src/ls --version | head -n2
39672           ls (GNU coreutils) 7.1-dirty
39673           Packaged by Gentoo (patchset 1.6)
39674         Note that the bug reporting info via --help doesn't show up because
39675         coreutils uses its own custom emit_bug_reporting_address() implementation
39676         in src/system.h.  If it didn't, it'd look like:
39677           $ ./src/ls --help | tail -n4
39678           Report bugs to <bug-coreutils@gnu.org>.
39679           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39680           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39681           General help using GNU software: <http://www.gnu.org/gethelp/>.
39682         * lib/version-etc.c: Print new information, if provided.
39683         * m4/version-etc.m4: New file.
39684         * modules/version-etc (Files): Add m4/version-etc.m4.
39685         (configure.ac): Add gl_VERSION_ETC.
39686
39687 2009-05-31  Bruno Haible  <bruno@clisp.org>
39688
39689         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39690         and 'int64_t'.
39691         * modules/alignof-tests (Dependencies): Add stdint.
39692         Reported by Eric Blake.
39693
39694 2009-05-31  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39697         restriction due to compiler bugs.
39698         Reported by Eric Blake.
39699
39700 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39701             Bruno Haible  <bruno@clisp.org>
39702
39703         Fix test-alignof failure.
39704         * lib/alignof.h (alignof_slot): New macro.
39705         (alignof_type): New macro, with the same semantics as the previous
39706         'alignof'.
39707         (alignof): Alias to alignof_slot.
39708         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39709         check that the results are usable as constant expressions.
39710
39711 2009-05-31  Bruno Haible  <bruno@clisp.org>
39712
39713         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39714         * tests/test-memchr.c (main): Check that memchr does not read past the
39715         first occurrence of the byte.
39716         * tests/test-strstr.c (main): Update comment.
39717         Suggested by Eric Blake.
39718
39719 2009-05-30  Bruno Haible  <bruno@clisp.org>
39720
39721         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39722         detail how to use dumpbin.
39723         Reported by David Byron <dbyron@dbyron.com>.
39724
39725 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39726
39727         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39728
39729 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39730
39731         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39732
39733 2009-05-28  Bruno Haible  <bruno@clisp.org>
39734
39735         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39736         build-aux/ files.
39737
39738 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39739
39740         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39741
39742 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39743
39744         * gnulib-tool (sed_transform_main_lib_file)
39745         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39746         regexps.
39747
39748 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39749
39750         * tests/test-strstr.c: Add another self-test.
39751         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39752         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39753
39754 2009-05-23  Bruno Haible  <bruno@clisp.org>
39755
39756         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39757         change.
39758
39759 2009-05-21  Bruno Haible  <bruno@clisp.org>
39760
39761         Simplify use of mode_t varargs.
39762         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39763         uses 'mode_t' or 'int'.
39764         * lib/openat.c (openat): Likewise.
39765         * lib/open-safer.c (open_safer): Likewise.
39766         * m4/mode_t.m4: New file.
39767         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39768         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39769         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39770         * modules/open (Files): Add m4/mode_t.m4.
39771         * modules/openat (Files): Likewise.
39772         * modules/fcntl-safer (Files): Likewise.
39773         Suggested by Eric Blake.
39774
39775 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39776
39777         * doc/glibc-functions/fallocate.texi: New file.
39778         * doc/gnulib.texi: Include it.
39779
39780 2009-05-21  Eric Blake  <ebb9@byu.net>
39781             Bruno Haible  <bruno@clisp.org>
39782
39783         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39784         invocations.
39785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39786
39787 2009-05-21  Eric Blake  <ebb9@byu.net>
39788             Bruno Haible  <bruno@clisp.org>
39789
39790         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39791         include_next. Fix of 2008-11-20 commit.
39792         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39793         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39794         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39795         NEXT_MATH_H.
39796         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39797         instead of NEXT_MATH_H.
39798
39799 2009-05-21  Bruno Haible  <bruno@clisp.org>
39800
39801         Avoid redefinition warnings for SIZE_MAX.
39802         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39803         Reported by Simon Josefsson.
39804
39805 2009-05-21  Bruno Haible  <bruno@clisp.org>
39806
39807         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39808         AC_CACHE_VAL.
39809
39810 2009-05-20  Bruno Haible  <bruno@clisp.org>
39811
39812         Make zeroptr.h work on mingw.
39813         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39814         mprotect.
39815         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39816         * modules/memchr2-tests (configure.ac): Likewise.
39817         * modules/memcmp-tests (configure.ac): Likewise.
39818         * modules/memmem-tests (configure.ac): Likewise.
39819         * modules/memrchr-tests (configure.ac): Likewise.
39820         Reported by Simon Josefsson.
39821
39822 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39823
39824         * tests/test-glob.c: Include string.h for strcmp prototype.
39825
39826 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39827
39828         * modules/getdelim (Depends-on): Add explicit stdint, although it
39829         was implicitly already pulled in via realloc-posix.
39830         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39831
39832 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39833
39834         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39835         G. Christensen" <tgc@jupiterrise.com>.
39836         * m4/sys_socket_h.m4: Check for sa_family_t.
39837         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39838         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39839         * tests/test-sys_socket.c: Check that sa_family_t works.
39840
39841 2009-05-18  Eric Blake  <ebb9@byu.net>
39842
39843         maint.mk: allow gnulib_dir in VPATH build
39844         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39845
39846 2009-05-15  Jim Meyering  <meyering@redhat.com>
39847
39848         maint.mk: Give gnulib_dir a default definition.
39849         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39850         Thus, most packages no longer need to specify this variable in cfg.mk
39851
39852 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39853
39854         rename.m4: fix typos that would make non-mingw cross-configure fail
39855         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39856
39857 2009-05-13  Eric Blake  <ebb9@byu.net>
39858
39859         mmap-anon: avoid out-of-order autoconf expansion
39860         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39861         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39862         * modules/memchr-tests (Depends-on): Add extensions.
39863         * modules/memchr2-tests (Depends-on): Add extensions.
39864         * modules/memcmp-tests (Depends-on): Add extensions.
39865         * modules/memmem-tests (Depends-on): Add extensions.
39866         * modules/memrchr-tests (Depends-on): Add extensions.
39867
39868 2009-05-13  Bruno Haible  <bruno@clisp.org>
39869
39870         Make some tests ISO C 99 compliant.
39871         * tests/zerosize-ptr.h: New file.
39872         * tests/test-memchr.c: Include zerosize-ptr.h.
39873         (main): Use a zero-size object pointer instead of NULL.
39874         * tests/test-memchr2.c: Include zerosize-ptr.h.
39875         (main): Use a zero-size object pointer instead of NULL.
39876         * tests/test-memcmp.c: Include zerosize-ptr.h.
39877         (main): Use a zero-size object pointer instead of NULL.
39878         * tests/test-memmem.c: Include zerosize-ptr.h.
39879         (main): Use a zero-size object pointer instead of NULL.
39880         * tests/test-memrchr.c: Include zerosize-ptr.h.
39881         (main): Use a zero-size object pointer instead of NULL.
39882         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39883         m4/mmap-anon.m4.
39884         (Depends-on): Add getpagesize.
39885         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39886         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39887         m4/mmap-anon.m4.
39888         (Depends-on): Add getpagesize.
39889         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39890         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39891         m4/mmap-anon.m4.
39892         (Depends-on): Add getpagesize.
39893         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39894         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39895         m4/mmap-anon.m4.
39896         (Depends-on): Add getpagesize.
39897         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39898         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39899         m4/mmap-anon.m4.
39900         (Depends-on): Add getpagesize.
39901         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39902
39903 2009-05-12  Bruno Haible  <bruno@clisp.org>
39904
39905         Tests for module 'alignof'.
39906         * modules/alignof-tests: New file.
39907         * tests/test-alignof.c: New file.
39908
39909 2009-05-12  Bruno Haible  <bruno@clisp.org>
39910
39911         Fix alignof macro.
39912         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39913         vendor compilers that are always correct.
39914
39915 2009-05-12  Bruno Haible  <bruno@clisp.org>
39916
39917         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39918         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39919         not whether its fully works.
39920
39921 2009-05-12  Bruno Haible  <bruno@clisp.org>
39922
39923         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39924
39925 2009-05-12  Jim Meyering  <meyering@redhat.com>
39926
39927         * top/maint.mk: Adjust backslash alignment.
39928
39929 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39930
39931         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39932
39933 2009-05-11  Eric Blake  <ebb9@byu.net>
39934
39935         argp: avoid undefined behavior
39936         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39937         macros.
39938
39939 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39940
39941         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39942         user.name to prevent git commit from complaining.
39943
39944 2009-05-10  Bruno Haible  <bruno@clisp.org>
39945
39946         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39947         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39948         it rewrites every file name only once.
39949         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39950
39951 2009-05-08  Bruno Haible  <bruno@clisp.org>
39952
39953         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39954         instead of 'max'.
39955
39956 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39957
39958         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39959         sockaddr_storage test.
39960
39961 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39962
39963         * modules/sys_socket (Makefile.am): Substitute
39964         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39965         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39966         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39967         * tests/test-sys_socket.c: Check sockaddr_storage.
39968
39969 2009-05-08  Bruno Haible  <bruno@clisp.org>
39970
39971         New module 'alignof'.
39972         * lib/alignof.h: New file.
39973         * modules/alignof: New file.
39974
39975 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39976             Bruno Haible  <bruno@clisp.org>
39977
39978         Fix test-file-has-acl on FreeBSD.
39979         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39980         mask is implicitly added.
39981         * tests/test-file-has-acl.c: Include <signal.h>.
39982         (main): Terminate the test after 5 seconds.
39983         * modules/acl-tests (configure.ac): Check for alarm function.
39984
39985 2009-05-04  Bruno Haible  <bruno@clisp.org>
39986
39987         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39988         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39989         * modules/errno (configure.ac): Drop AC_REQUIRE.
39990         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39991         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39992
39993 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39994
39995         * modules/glob-tests: New module.
39996         * tests/test-glob.c: Add.
39997
39998 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39999
40000         * modules/fnmatch-tests: New module.
40001         * tests/test-fnmatch.c: Add.
40002
40003 2009-05-04  Eric Blake  <ebb9@byu.net>
40004
40005         maint: make the new no-submodule-changes rule VPATH-safe
40006         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40007
40008 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40009             Bruno Haible  <bruno@clisp.org>
40010
40011         acl: Fix infinite loop on FreeBSD.
40012         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40013         of return value from acl_get_entry.
40014         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40015         Likewise.
40016
40017 2009-05-03  Bruno Haible  <bruno@clisp.org>
40018
40019         * lib/acl-internal.h (acl_entries): Clarify return value.
40020         * lib/acl_entries.c (acl_entries): Likewise.
40021
40022 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40023
40024         Bug fix in acl module.
40025         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40026
40027 2009-05-03  Bruno Haible  <bruno@clisp.org>
40028
40029         Create gperf-generated file in the source dir, not in the build dir.
40030         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40031         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40032         * modules/unicase/locale-language (unicase/locale-languages.h):
40033         Likewise.
40034         * modules/unicase/special-casing (unicase/special-casing-table.h):
40035         Likewise.
40036         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40037         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40038         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40039         Reported by Ralf Wildenhues.
40040
40041 2009-05-03  Bruno Haible  <bruno@clisp.org>
40042
40043         * modules/fnmatch (Description, configure.ac): Taken from
40044         fnmatch-posix.
40045         * modules/fnmatch-posix: Turn into a symbolic reference to the
40046         'fnmatch' module, and deprecate.
40047         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40048
40049 2009-05-03  Bruno Haible  <bruno@clisp.org>
40050
40051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40052         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40053         Reported by Ralf Wildenhues.
40054
40055 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40056
40057         * m4/fnmatch.m4: Fix fnmatch re-define.
40058
40059 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40060
40061         priv-set: new module and tests; adapt write-any-file
40062         * lib/priv-set.c: New file.
40063         * lib/priv-set.h: New file.
40064         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40065         * lib/write-any-file.c: Simplify by using priv-set module.
40066         * m4/priv-set.m4: New file.
40067         * modules/priv-set: New file.
40068         * modules/unlinkdir: Add dependency on priv-set module.
40069         * modules/write-any-file: Likewise.
40070
40071         Tests for module 'priv-set'.
40072         * modules/priv-set-tests: New file.
40073         * tests/test-priv-set.c: New file.
40074
40075 2009-05-03  Jim Meyering  <meyering@redhat.com>
40076             Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40079         use the converted UTF-8 variant of the name instead.
40080
40081 2009-05-03  Jim Meyering  <meyering@redhat.com>
40082
40083         tests: tighten some getdate tests
40084         * tests/test-getdate.c (main): Tighten tests: require equality,
40085         not just greater than.  Set TZ envvar to UTC0.
40086
40087 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40088
40089         getdate: correctly interpret "next monday" when run on a Monday
40090         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40091         that e.g., "next tues" (when run on a tuesday) results in a date
40092         that is one week in the future, and not today's date.
40093         I.e., add a week when the wday is the same as the current one.
40094         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40095         and earlier by Martin Bernreuther and Jan Minář.
40096         * tests/test-getdate.c (main): Check that "next DAY" is always in
40097         the future and that "last DAY" is always in the past.
40098
40099 2009-05-02  Jim Meyering  <meyering@redhat.com>
40100
40101         build: ensure that a release build fails when a submodule is unclean
40102         * top/maint.mk (no-submodule-changes): New rule.
40103         (alpha beta major): Depend on it.
40104
40105 2009-05-02  Bruno Haible  <bruno@clisp.org>
40106
40107         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40108         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40109         shell variable gl_fnmatch_required to detect which variant is
40110         requested.
40111         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40112         gl_FUNC_FNMATCH_POSIX.
40113         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40114         exclude fnmatch-posix.
40115
40116 2009-05-02  Bruno Haible  <bruno@clisp.org>
40117
40118         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40119         * modules/mbsrtowcs (License): Change to LGPLv2+.
40120         * modules/strnlen1 (License): Likewise.
40121         Reported by Simon Josefsson.
40122
40123 2009-05-02  Bruno Haible  <bruno@clisp.org>
40124
40125         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40126         "cross".
40127         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40128         gnulib-tool was called with option --source-base=lib.
40129
40130 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40131
40132         Use automake *-local hooks without commands, for extensibility.
40133         * modules/localcharset (Makefile.am): Rename install-exec-local
40134         rule to install-exec-localcharset, and make it a prerequisite of
40135         install-exec-local.  Likewise, rename the uninstall-local rule to
40136         uninstall-localcharset, and make it a prerequisite of the former.
40137
40138 2009-05-01  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40141         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40142         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40144         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40145         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40146         m4/locale-zh.m4, m4/codeset.m4.
40147
40148         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40149         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40150         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40151         m4/locale-zh.m4.
40152
40153         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40154         REPLACE_WCRTOMB if mbstate_t must be replaced.
40155         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40156         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40157
40158 2009-05-01  Bruno Haible  <bruno@clisp.org>
40159
40160         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40161         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40162         dngettext, dcngettext, textdomain, bindtextdomain,
40163         bind_textdomain_codeset): Undefine before redefining.
40164
40165 2009-04-30  Bruno Haible  <bruno@clisp.org>
40166
40167         Fix bug introduced on 2009-04-25.
40168         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40169         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40170         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40171         is defined.
40172         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40173         is defined.
40174         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40175         is defined.
40176         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40177
40178 2009-04-28  Bruno Haible  <bruno@clisp.org>
40179
40180         Comment tweaks.
40181         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40182         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40183         * lib/unicase.h (u*_casexfrm): Likewise.
40184         Reported by Paolo Bonzini.
40185
40186 2009-04-28  Bruno Haible  <bruno@clisp.org>
40187
40188         Fix a compilation error.
40189         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40190         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40191         Reported by Jim Meyering.
40192
40193 2009-04-27  Bruno Haible  <bruno@clisp.org>
40194
40195         New module 'libunistring'.
40196         * modules/libunistring: New file.
40197         * m4/libunistring.m4: New file.
40198         * MODULES.html.sh (Unicode string functions): Add it.
40199
40200 2009-04-27  Eric Blake  <ebb9@byu.net>
40201
40202         maint.mk: allow package-specific header to provide <config.h>
40203         * top/maint.mk (sc_require_config_h): New variable.
40204         (sc_require_config_h, sc_require_config_h_first): Use it.
40205
40206 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40207
40208         * top/maint.mk (sc_avoid_if_before_free): Except
40209         useless-if-before-free script.
40210
40211 2009-04-27  Eric Blake  <ebb9@byu.net>
40212
40213         maintainer-makefile: depend on all required helper scripts
40214         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40215         useless-if-before-free.
40216         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40217         version, rather than assuming gnulib checkout is available.
40218         Reported by Simen Josefsson.
40219
40220 2009-04-26  Bruno Haible  <bruno@clisp.org>
40221
40222         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40224         "../" or "..".
40225
40226 2009-04-26  Bruno Haible  <bruno@clisp.org>
40227
40228         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40229         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40230         AC_LIB_HAVE_LINKFLAGS.
40231
40232 2009-04-26  Bruno Haible  <bruno@clisp.org>
40233
40234         Simplify calling convention of u*_conv_from_encoding.
40235         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40236         u32_conv_from_encoding): Expect a resultbuf argument and return the
40237         result directly as a pointer.
40238         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40239         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40240         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40241         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40242         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40243         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40244         Update.
40245         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40246         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40247         * lib/vasnprintf.c (VASNPRINTF): Update.
40248         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40249         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40250         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40251         * NEWS: Mention the change.
40252
40253 2009-04-26  Bruno Haible  <bruno@clisp.org>
40254
40255         Simplify calling convention of u*_conv_to_encoding.
40256         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40257         u32_conv_to_encoding): Expect a resultbuf argument and return the
40258         result directly as a pointer.
40259         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40260         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40261         freeing scaled_offsets if mem_iconveha failed.
40262         * lib/unicase/u-casexfrm.h (FUNC): Update.
40263         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40264         * lib/vasnprintf.c (VASNPRINTF): Update.
40265         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40266         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40267         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40268         * NEWS: Mention the change.
40269
40270 2009-04-26  Bruno Haible  <bruno@clisp.org>
40271
40272         Avoid test failures on AIX and OSF/1.
40273         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40274         malloc(0).
40275         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40276         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40277         Likewise.
40278         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40279         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40280         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40281         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40282         * doc/posix-functions/malloc.texi: Document the portability problem
40283         related to malloc(0).
40284
40285 2009-04-26  Bruno Haible  <bruno@clisp.org>
40286
40287         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40288         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40289         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40290
40291 2009-04-25  Bruno Haible  <bruno@clisp.org>
40292
40293         Avoid link error when creating a namespace clean library.
40294         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40295         as macro with arguments if already defined as an alias.
40296         * lib/signbitf.c (gl_signbitf): Don't undefine.
40297         * lib/signbitd.c (gl_signbitd): Don't undefine.
40298         * lib/signbitl.c (gl_signbitl): Don't undefine.
40299
40300 2009-04-25  Jim Meyering  <meyering@redhat.com>
40301
40302         vc-list-files: fix another quoting bug
40303         * build-aux/vc-list-files: Avoid sed backslash expansion
40304         of pathological directory names.
40305
40306 2009-04-25  Eric Blake  <ebb9@byu.net>
40307
40308         vc-list-files: fix shell quoting error
40309         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40310         timestamp.
40311
40312 2009-04-25  Jim Meyering  <meyering@redhat.com>
40313
40314         vc-list-files: restore lost functionality with subdir argument
40315         * build-aux/vc-list-files: When given a non-"." sub-directory
40316         argument, substitute the $dir/ prefix back onto each resulting name.
40317         Otherwise, coreutils' root_tests check would fail.
40318
40319 2009-04-24  Eric Blake  <ebb9@byu.net>
40320
40321         vc-list-files: ignore git symlinks
40322         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40323         than ls-files, to ignore git symlinks.
40324
40325         maint.mk: import improvements from m4
40326         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40327         (move_if_change): Delete unused macro.
40328         (news-date-check, vc-diff-check): Support VPATH builds.
40329         (announcement): Likewise.  Split --bootstrap-tools list...
40330         (boostrap-tools): ...into separate list, which can be overridden
40331         in cfg.mk.
40332         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40333         requiring dependency on useless-if-before-free module.
40334         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40335         Support VPATH builds.
40336
40337 2009-04-24  Jim Meyering  <meyering@redhat.com>
40338
40339         maint.mk: remove coreutils-specific rules and variables
40340         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40341         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40342         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40343
40344         maint.mk: remove obsolete rule
40345         * top/maint.mk (rel-check): Remove rule.
40346         (WGET, WGETFLAGS): Remove now-unused variables.
40347
40348 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40349
40350         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40351         consistency.
40352
40353         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40354         '$(PATH_SEPARATOR)' instead of ':'.
40355
40356 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40357
40358         * lib/getopt1.c (main): Use 'const' for static array.
40359
40360 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40361
40362         * top/maint.mk: Sync with coreutils.
40363         * NEWS: Explain incompatibilities.
40364
40365 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40366             Bruno Haible  <bruno@clisp.org>
40367
40368         Fix cross-compilation results.
40369         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40370         statement, as third argument of AC_TRY_RUN.
40371         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40372         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40373         Likewise.
40374         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40375         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40376         Likewise.
40377         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40378         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40379         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40380
40381 2009-04-20  Bruno Haible  <bruno@clisp.org>
40382
40383         Avoid test failure on mingw.
40384         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40385
40386 2009-04-20  Bruno Haible  <bruno@clisp.org>
40387
40388         Avoid compilation error on mingw.
40389         * modules/localename-tests (Depends-on): Add locale.
40390
40391 2009-04-19  Bruno Haible  <bruno@clisp.org>
40392
40393         Support for building a shared library on Windows platforms.
40394         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40395         (main): Test the presence of UNINORM_NFC here.
40396         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40397         (main): Test the presence of UNINORM_NFD here.
40398         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40399         (main): Test the presence of UNINORM_NFKC here.
40400         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40401         (main): Test the presence of UNINORM_NFKD here.
40402
40403 2009-04-19  Bruno Haible  <bruno@clisp.org>
40404
40405         Avoid a compiler warning.
40406         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40407         Change type of variable 'sequence'.
40408
40409 2009-04-19  Bruno Haible  <bruno@clisp.org>
40410
40411         * modules/configmake (Makefile.am): When the contents of configmake.h
40412         does not change, arrange to preserve its modification time.
40413
40414 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40415
40416         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40417         gettext domain.
40418
40419 2009-04-16  Jim Meyering  <meyering@redhat.com>
40420
40421         useless-if-before-free: improve conversion code
40422         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40423         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40424
40425 2009-04-14  Bruno Haible  <bruno@clisp.org>
40426
40427         * modules/fcntl (Depends-on): Add extensions.
40428         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40429
40430 2009-04-12  Ben Pfaff  <blp@gnu.org>
40431
40432         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40433         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40434
40435 2009-03-20  Ben Pfaff  <blp@gnu.org>
40436
40437         Make rename replace existing destinations on Windows.
40438         * m4/rename.m4: Add test for Mingw.
40439         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40440         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40441         * doc/posix-functions/rename.texi: Document.
40442
40443 2009-04-10  Bruno Haible  <bruno@clisp.org>
40444
40445         New include file "iconveh.h".
40446         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40447         * lib/striconveh.h: Include it.
40448         (enum iconv_ilseq_handler): Remove definition.
40449         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40450         striconveh.h.
40451         * lib/striconveha.c: Include striconveh.h.
40452         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40453         * modules/striconveh (Files): Add lib/iconveh.h.
40454         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40455         lib/striconveh.h.
40456
40457 2009-04-10  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/uniconv.h: Update comment.
40460
40461 2009-04-10  Bruno Haible  <bruno@clisp.org>
40462
40463         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40464         always.
40465         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40466         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40467         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40468         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40469         "unistring-notinline.h", so that the function gets defined always.
40470         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40471         * lib/unistr/u8-uctomb.c: Likewise.
40472         * lib/unistr/u16-mbtouc.c: Likewise.
40473         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40474         * lib/unistr/u16-uctomb.c: Likewise.
40475         * lib/unistr/u32-mbtouc.c: Likewise.
40476         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40477         * lib/unistr/u32-uctomb.c: Likewise.
40478
40479 2009-04-10  Bruno Haible  <bruno@clisp.org>
40480
40481         Mark 'utime' obsolete.
40482         * modules/utime (Status, Notice): New sections.
40483         Suggested by Jim Meyering.
40484
40485         Fix cross-compile guess for utime test.
40486         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40487         autoconf.
40488         * doc/posix-functions/utime.texi: Give more precisions.
40489         Reported by Jan <ipif@ymail.com>.
40490
40491 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40492
40493         filevercmp: correct today's change
40494         * lib/filevercmp.c: Also handle coreutils' test inputs.
40495         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40496
40497         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40498         for reporting it.
40499         * lib/filevercmp.c: Special handle for "", "." and "..".
40500         * tests/test-filevercmp.c: Enlarge the set suite.
40501
40502 2009-04-07  Jim Meyering  <meyering@redhat.com>
40503
40504         useless-if-before-free: show how to remove braced useless free, too
40505         * build-aux/useless-if-before-free: still only in a comment, though.
40506
40507 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40508
40509         maint.mk: import changes to syntax-check macros from coreutils
40510         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40511         Use them in the relevant macros.
40512
40513 2009-04-06  Bruno Haible  <bruno@clisp.org>
40514
40515         Fix unportable use of bit-fields.
40516         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40517         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40518         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40519
40520 2009-04-06  Bruno Haible  <bruno@clisp.org>
40521
40522         Avoid test failures on AIX and OSF/1.
40523         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40524         that malloc(0) = NULL.
40525         * tests/unicase/test-u8-tolower.c (check): Likewise.
40526         * tests/unicase/test-u8-totitle.c (check): Likewise.
40527         * tests/unicase/test-u8-toupper.c (check): Likewise.
40528         * tests/unicase/test-u16-casefold.c (check): Likewise.
40529         * tests/unicase/test-u16-tolower.c (check): Likewise.
40530         * tests/unicase/test-u16-totitle.c (check): Likewise.
40531         * tests/unicase/test-u16-toupper.c (check): Likewise.
40532         * tests/unicase/test-u32-casefold.c (check): Likewise.
40533         * tests/unicase/test-u32-tolower.c (check): Likewise.
40534         * tests/unicase/test-u32-totitle.c (check): Likewise.
40535         * tests/unicase/test-u32-toupper.c (check): Likewise.
40536         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40537         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40538         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40539         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40540         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40541         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40542         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40543         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40544         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40545         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40546         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40547         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40548
40549 2009-04-05  Bruno Haible  <bruno@clisp.org>
40550
40551         Work around an autoconf limitation.
40552         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40553         comment line if it would be longer than 3 KB.
40554
40555 2009-04-05  Bruno Haible  <bruno@clisp.org>
40556
40557         Avoid test failure with libiconv-1.13.
40558         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40559         of the expected test results.
40560
40561 2009-04-05  Bruno Haible  <bruno@clisp.org>
40562
40563         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40564         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40565         that it should be installed.
40566
40567 2009-04-05  Bruno Haible  <bruno@clisp.org>
40568
40569         * gnulib-tool: New option --copy-file.
40570         (func_usage): Document it.
40571         (func_dest_tmpfilename): Moved out of func_import.
40572         (func_add_file, func_update_file): New functions, extracted from
40573         func_import.
40574         (func_import): Update.
40575
40576 2009-04-05  Karl Berry  <karl@gnu.org>
40577
40578         * README: prominently mention gnulib-tool.
40579         Rearrange sections so getting the code is near the top.
40580
40581 2009-04-05  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/unicase.h: Mention u*_cmp2.
40584         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40585         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40586         * lib/unicase/ulc-casecmp.c: Likewise.
40587         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40588         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40589         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40590         unistr/u8-cmp.
40591         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40592         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40593         unistr/u16-cmp.
40594         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40595         unistr/u32-cmp.
40596
40597         * lib/uninorm.h: Mention u*_cmp2.
40598         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40599         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40600         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40601         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40602         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40603         unistr/u8-cmp.
40604         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40605         unistr/u16-cmp.
40606         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40607         unistr/u32-cmp.
40608
40609         New module 'unistr/u32-cmp2'.
40610         * lib/unistr/u32-cmp2.c: New file.
40611         * modules/unistr/u32-cmp2: New file.
40612
40613         New module 'unistr/u16-cmp2'.
40614         * lib/unistr/u16-cmp2.c: New file.
40615         * modules/unistr/u16-cmp2: New file.
40616
40617         New module 'unistr/u8-cmp2'.
40618         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40619         * lib/unistr/u8-cmp2.c: New file.
40620         * lib/unistr/u-cmp2.h: New file.
40621         * modules/unistr/u8-cmp2: New file.
40622
40623 2009-04-05  Bruno Haible  <bruno@clisp.org>
40624
40625         * lib/unictype.h (uc_property_is_valid): New macro.
40626         * tests/unictype/test-pr_byname.c (main): Use it.
40627
40628         * lib/unistr.h: Doc fixes.
40629         * lib/uniconv.h: Doc fixes.
40630         * lib/unictype.h: Doc fixes.
40631
40632 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40633
40634         Port coreutils 7.2 to Solaris 8.
40635
40636         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40637         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40638         for Solaris 8.  This is a bit of a hack, as it means it's the
40639         caller's responsibility to add -lnsl if needed, but most likely it
40640         won't be needed since only getaddrinfo uses this and getaddrinfo
40641         isn't needed on Solaris 8.
40642
40643         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40644         problem to Solaris 8 encountered with coreutils 7.2, which
40645         resulted in a message "fnmatch.c:292: warning: passing argument 4
40646         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40647         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40648
40649 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40650
40651         * m4/ld-version-script.m4: Add FIXME comment.
40652
40653 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40654
40655         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40656         SOVERSION variable.
40657
40658 2009-04-02  Bruno Haible  <bruno@clisp.org>
40659
40660         * Makefile (info, html, dvi, pdf): Combine the rules.
40661         Suggested by Jim Meyering.
40662
40663 2009-04-01  Bruno Haible  <bruno@clisp.org>
40664
40665         * Makefile (info, html, dvi, pdf): New targets.
40666         Reported by Reuben Thomas <rrt@sc3d.org>.
40667
40668 2009-04-01  Bruno Haible  <bruno@clisp.org>
40669
40670         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40671         can be put into PATH.
40672         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40673
40674 2009-04-01  Bruno Haible  <bruno@clisp.org>
40675
40676         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40677
40678 2009-04-01  Bruno Haible  <bruno@clisp.org>
40679
40680         Rename module 'visibility'.
40681         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40682         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40683         * doc/gnulib.texi: Update.
40684         * MODULES.html.sh (Misc): Update.
40685         * NEWS: Mention the change.
40686
40687 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40688
40689         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40690         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40691         Eric Blake <ebb9@byu.net> for review.
40692         * MODULES.html.sh: Add lib-msvc-compat.
40693         * doc/gnulib.texi: Link to new section.
40694         * m4/ld-output-def.m4: New file.
40695         * doc/ld-output-def.texi: New file.
40696
40697 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40698
40699         Rename ld-version-script to lib-symbol-versions.  Suggested by
40700         Bruno Haible <bruno@clisp.org>.
40701         * modules/ld-version-script: Renamed to lib-symbol-versions.
40702         * doc/ld-version-script.texi: Fix module name.
40703         * MODULES.html.sh: Add lib-symbol-versions.
40704
40705 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40706
40707         * modules/u64-tests: New file.
40708         * tests/test-u64.c: New file.
40709
40710 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40711
40712         * MODULES.html.sh: Mention u64.
40713         * modules/u64: New module.
40714         * modules/crypto/sha512: Depend on u64 module instead of providing
40715         u64.h.
40716
40717 2009-03-27  Eric Blake  <ebb9@byu.net>
40718
40719         test-strerror: make debugging EAI_SYSTEM easier
40720         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40721         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40722         failure was EAI_SYSTEM.
40723
40724 2009-03-25  Bruno Haible  <bruno@clisp.org>
40725
40726         Fix a problem with --enable-relocatable on Solaris 7.
40727         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40728         since 2008-02-24.
40729
40730 2009-03-25  Eric Blake  <ebb9@byu.net>
40731
40732         test-sockets: avoid gcc warning
40733         * tests/test-sockets.c (main): Silence compiler warning.
40734
40735 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40736
40737         New modules nproc, pthread, contributed by Glen Lenker.
40738
40739         * MODULES.html.sh: Add pthread, nproc.
40740         * lib/nproc.c: New file.
40741         * lib/nproc.h: New file.
40742         * lib/pthread.in.h: New file.
40743         * m4/pthread.m4: New file.
40744         * modules/nproc: New file.
40745         * modules/pthread: New file.
40746
40747 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40748
40749         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40750         New variable.
40751
40752 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40753
40754         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40755         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40756         * tests/test-filevercmp.c: Add tests for backup suffixes.
40757
40758 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40759
40760         * modules/stdlib (Depends-on): Add stdint, needed when defining
40761         struct random_data on, for example, HP-UX 10.20.  Reported by
40762         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40763
40764 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40765
40766         * lib/readline.c (readline): Call fflush on stdout after printing
40767         prompt.
40768
40769 2009-03-20  Bruno Haible  <bruno@clisp.org>
40770
40771         Remove dependency from 'close' module to -lws2_32 on native Windows.
40772         * lib/close-hook.h: New file.
40773         * lib/close-hook.c: New file.
40774         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40775         w32sock.h.
40776         (_gl_close_fd_maybe_socket): Remove function.
40777         (rpl_close): Invoke execute_all_close_hooks instead of
40778         _gl_close_fd_maybe_socket.
40779         * lib/sockets.c: Include close-hook.h, w32sock.h.
40780         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40781         (close_sockets_hook): New variable.
40782         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40783         (gl_sockets_cleanup): Unregister it.
40784         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40785         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40786         * modules/close-hook: New file.
40787         * modules/close (Files): Remove lib/w32sock.h.
40788         (Depends-on): Add close-hook.
40789         (Link): Remove section.
40790         * modules/sockets (Files): Add lib/w32sock.h.
40791         (Depends-on): Add close-hook.
40792         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40793         invocation.
40794         * NEWS: Mention that LIB_CLOSE is gone.
40795
40796 2009-03-23  Eric Blake  <ebb9@byu.net>
40797
40798         signal-tests: test previous patch
40799         * tests/test-signal.c: New file.
40800         * modules/signal-tests: Likewise.
40801
40802         signal.h: always support 'volatile sig_atomic_t'
40803         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40804         (gl_SIGNAL_H_DEFAULTS): Add a default.
40805         * modules/signal (Makefile.am): Substitute if needed.
40806         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40807         users can blindly add volatile.
40808         * doc/posix-headers/signal.texi (signal.h): Document it.
40809         Reported by Matthew Woehlke.
40810
40811 2009-03-23  Jim Meyering  <meyering@redhat.com>
40812
40813         pathmax: PATH_MAX: use pathconf only when available
40814         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40815         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40816         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40817         This avoids a link failure in a PSP cross-compilation environment
40818         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40819
40820         * lib/vasnprintf.c (divide): Fix typo in comment.
40821
40822 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40823
40824         * gnulib-tool (func_filter_filelist): Fix comment.
40825
40826 2009-03-20  Bruno Haible  <bruno@clisp.org>
40827
40828         Make sockets.h self-contained.
40829         * lib/sockets.c: Include sockets.h first.
40830         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40831
40832 2009-03-19  Eric Blake  <ebb9@byu.net>
40833
40834         doc: mention more functions added in cygwin 1.7.0
40835         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40836         addition.
40837         * doc/posix-functions/log2f.texi: Likewise.
40838
40839 2009-03-19  Jim Meyering  <meyering@redhat.com>
40840
40841         fsusage: avoid syntax error due to statement-before-declaration
40842         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40843         after all declarations.  Reported by Matthew Woehlke in
40844         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40845
40846 2009-03-18  Eric Blake  <ebb9@byu.net>
40847
40848         build-aux/compile: sync from automake
40849         * build-aux/compile: New file, from automake.
40850         * config/srclist.txt: Mention build-aux/compile.
40851
40852 2009-03-17  Bruno Haible  <bruno@clisp.org>
40853
40854         * lib/git-merge-changelog.c: Fix typo in comment.
40855         Reported by Reuben Thomas <rrt@sc3d.org>.
40856
40857 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40858
40859         * m4/regex.m4: update and improve help for
40860         --without-included-regex.
40861
40862 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40863
40864         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40865         failure on missing include files.
40866
40867 2009-03-17  Eric Blake  <ebb9@byu.net>
40868
40869         doc: mention more functions added in cygwin 1.7.0
40870         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40871         addition.
40872         * doc/posix-functions/fwscanf.texi: Likewise.
40873         * doc/posix-functions/swprintf.texi: Likewise.
40874         * doc/posix-functions/swscanf.texi: Likewise.
40875         * doc/posix-functions/vfwprintf.texi: Likewise.
40876         * doc/posix-functions/vfwscanf.texi: Likewise.
40877         * doc/posix-functions/vswprintf.texi: Likewise.
40878         * doc/posix-functions/vswscanf.texi: Likewise.
40879         * doc/posix-functions/vwprintf.texi: Likewise.
40880         * doc/posix-functions/vwscanf.texi: Likewise.
40881         * doc/posix-functions/wcscasecmp.texi: Likewise.
40882         * doc/posix-functions/wcsdup.texi: Likewise.
40883         * doc/posix-functions/wcsftime.texi: Likewise.
40884         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40885         * doc/posix-functions/wprintf.texi: Likewise.
40886         * doc/posix-functions/wscanf.texi: Likewise.
40887         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40888
40889 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40890
40891         maint.mk: really add $(AM_MAKEFLAGS)
40892         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40893         was inadvertently omitted in the last commit.
40894         Spotted by Bruno Haible.
40895
40896         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40897         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40898         $(AM_MAKEFLAGS)' rather than plain `make'.
40899
40900         gnulib-tool: execute $MAKE not make
40901         * gnulib-tool: Default $MAKE to 'make'.
40902         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40903         than make.  Initialize $MAKE in the do-autobuild script.
40904
40905         gnulib-tool: use $MAKE not make in generated files
40906         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40907         make, in generated files.  Initialize $MAKE in the do-autobuild
40908         script.
40909
40910         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40911
40912         GNUmakefile: disable parallelism only for multiple, recursive targets
40913         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40914         additions in the Makefile.
40915         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40916         by Automake.
40917         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40918         are listed on the command line and at least one of them is
40919         listed in $(ALL_RECURSIVE_TARGETS).
40920
40921 2009-03-14  Bruno Haible  <bruno@clisp.org>
40922
40923         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40924         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40925         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40926         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40927         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40928         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40929         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40930         unistr/u8-uctomb.
40931         * modules/unistr/u8-strchr (Depends-on): Likewise.
40932         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40933         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40934         unistr/u16-uctomb.
40935         * modules/unistr/u16-strchr (Depends-on): Likewise.
40936         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40937
40938 2009-03-12  Bruno Haible  <bruno@clisp.org>
40939
40940         Work around select() bug on Interix 3.5.
40941         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40942         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40943         * m4/select.m4: New file.
40944         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40945         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40946         * modules/select (Files): Add m4/select.m4.
40947         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40948         * modules/nanosleep (Depends-on): Add select.
40949         * modules/poll (Depends-on): Likewise.
40950         * doc/posix-functions/select.texi: Mention the Interix bug.
40951         Reported by Markus Duft <mduft@gentoo.org>.
40952
40953         * lib/select.c: Renamed from lib/winsock-select.c.
40954         * modules/select (Files): Add lib/select.c, remove
40955         lib/winsock-select.c.
40956         (configure.ac): Update.
40957
40958 2009-03-12  Jim Meyering  <meyering@redhat.com>
40959
40960         avoid gcc warnings about unused macro definitions
40961         * lib/readtokens.c (STREQ): Remove unused definition.
40962         * lib/xmalloc.c (SIZE_MAX): Likewise.
40963         * lib/openat-die.c (N_): Likewise.
40964         * lib/mountlist.c (SIZE_MAX): Remove definition.
40965         Instead, include <stdint.h>.
40966         * lib/readutmp.c: Likewise.
40967         * modules/readutmp (Depends-on): Add stdint.
40968         * modules/mountlist (Depends-on): Add stdint.
40969         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40970
40971 2009-03-10  Bruno Haible  <bruno@clisp.org>
40972
40973         Tests for module 'mbmemcasecoll'.
40974         * modules/mbmemcasecoll-tests: New file.
40975         * tests/test-mbmemcasecoll1.sh: New file.
40976         * tests/test-mbmemcasecoll2.sh: New file.
40977         * tests/test-mbmemcasecoll3.sh: New file.
40978         * tests/test-mbmemcasecoll.c: New file.
40979
40980         New module 'mbmemcasecoll'.
40981         * lib/mbmemcasecoll.h: New file.
40982         * lib/mbmemcasecoll.c: New file.
40983         * modules/mbmemcasecoll: New file.
40984
40985         * tests/test-mbmemcasecmp.h: New file, extracted from
40986         tests/test-mbmemcasecmp.c.
40987         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40988         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40989         (main): Update.
40990         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40991
40992 2009-03-09  Bruno Haible  <bruno@clisp.org>
40993
40994         Tests for module 'mbmemcasecmp'.
40995         * modules/mbmemcasecmp-tests: New file.
40996         * tests/test-mbmemcasecmp1.sh: New file.
40997         * tests/test-mbmemcasecmp2.sh: New file.
40998         * tests/test-mbmemcasecmp3.sh: New file.
40999         * tests/test-mbmemcasecmp.c: New file.
41000
41001         New module 'mbmemcasecmp'.
41002         * lib/mbmemcasecmp.h: New file.
41003         * lib/mbmemcasecmp.c: New file.
41004         * modules/mbmemcasecmp: New file.
41005
41006 2009-03-09  Bruno Haible  <bruno@clisp.org>
41007
41008         Tests for module 'unicase/ulc-casecoll'.
41009         * modules/unicase/ulc-casecoll-tests: New file.
41010         * tests/unicase/test-ulc-casecoll1.sh: New file.
41011         * tests/unicase/test-ulc-casecoll2.sh: New file.
41012         * tests/unicase/test-ulc-casecoll.c: New file.
41013
41014         New module 'unicase/ulc-casecoll'.
41015         * lib/unicase.h (ulc_casecoll): New declaration.
41016         * lib/unicase/ulc-casecoll.c: New file.
41017         * modules/unicase/ulc-casecoll: New file.
41018
41019         New module 'unicase/ulc-casexfrm'.
41020         * lib/unicase.h (ulc_casexfrm): New declaration.
41021         * lib/unicase/ulc-casexfrm.c: New file.
41022         * modules/unicase/ulc-casexfrm: New file.
41023
41024 2009-03-09  Bruno Haible  <bruno@clisp.org>
41025
41026         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41027         invocations.
41028
41029         * m4/mbscasecmp.m4: Remove file.
41030         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41031         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41032
41033         * m4/mbscasestr.m4: Remove file.
41034         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41035         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41036
41037         * m4/mbschr.m4: Remove file.
41038         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41039         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41040
41041         * m4/mbscspn.m4: Remove file.
41042         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41043         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41044
41045         * m4/mbslen.m4: Remove file.
41046         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41047         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41048
41049         * m4/mbsncasecmp.m4: Remove file.
41050         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41051         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41052
41053         * m4/mbsnlen.m4: Remove file.
41054         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41055         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41056
41057         * m4/mbspbrk.m4: Remove file.
41058         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41059         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41060
41061         * m4/mbspcasecmp.m4: Remove file.
41062         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41063         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41064
41065         * m4/mbsrchr.m4: Remove file.
41066         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41067         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41068
41069         * m4/mbssep.m4: Remove file.
41070         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41071         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41072
41073         * m4/mbsspn.m4: Remove file.
41074         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41075         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41076
41077         * m4/mbsstr.m4: Remove file.
41078         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41079         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41080
41081         * m4/mbstok_r.m4: Remove file.
41082         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41083         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41084
41085         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41086
41087         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41088         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41089
41090         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41091
41092 2009-03-08  Bruno Haible  <bruno@clisp.org>
41093
41094         Tests for module 'unicase/ulc-casecmp'.
41095         * modules/unicase/ulc-casecmp-tests: New file.
41096         * tests/unicase/test-ulc-casecmp1.sh: New file.
41097         * tests/unicase/test-ulc-casecmp2.sh: New file.
41098         * tests/unicase/test-ulc-casecmp.c: New file.
41099
41100         New module 'unicase/ulc-casecmp'.
41101         * lib/unicase.h (ulc_casecmp): New declaration.
41102         * lib/unicase/ulc-casecmp.c: New file.
41103         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41104         'const SRC_UNIT *'.
41105         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41106         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41107         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41108         * modules/unicase/ulc-casecmp: New file.
41109
41110         Tests for module 'unicase/u32-is-cased'.
41111         * modules/unicase/u32-is-cased-tests: New file.
41112         * tests/unicase/test-u32-is-cased.c: New file.
41113
41114         Tests for module 'unicase/u16-is-cased'.
41115         * modules/unicase/u16-is-cased-tests: New file.
41116         * tests/unicase/test-u16-is-cased.c: New file.
41117
41118         Tests for module 'unicase/u8-is-cased'.
41119         * modules/unicase/u8-is-cased-tests: New file.
41120         * tests/unicase/test-u8-is-cased.c: New file.
41121         * tests/unicase/test-is-cased.h: New file.
41122
41123         New module 'unicase/u32-is-cased'.
41124         * lib/unicase/u32-is-cased.c: New file.
41125         * modules/unicase/u32-is-cased: New file.
41126
41127         New module 'unicase/u16-is-cased'.
41128         * lib/unicase/u16-is-cased.c: New file.
41129         * modules/unicase/u16-is-cased: New file.
41130
41131         New module 'unicase/u8-is-cased'.
41132         * lib/unicase/u8-is-cased.c: New file.
41133         * lib/unicase/u-is-cased.h: New file.
41134         * modules/unicase/u8-is-cased: New file.
41135
41136         Tests for module 'unicase/u32-is-casefolded'.
41137         * modules/unicase/u32-is-casefolded-tests: New file.
41138         * tests/unicase/test-u32-is-casefolded.c: New file.
41139
41140         Tests for module 'unicase/u16-is-casefolded'.
41141         * modules/unicase/u16-is-casefolded-tests: New file.
41142         * tests/unicase/test-u16-is-casefolded.c: New file.
41143
41144         Tests for module 'unicase/u8-is-casefolded'.
41145         * modules/unicase/u8-is-casefolded-tests: New file.
41146         * tests/unicase/test-u8-is-casefolded.c: New file.
41147         * tests/unicase/test-is-casefolded.h: New file.
41148
41149         New module 'unicase/u32-is-casefolded'.
41150         * lib/unicase/u32-is-casefolded.c: New file.
41151         * modules/unicase/u32-is-casefolded: New file.
41152
41153         New module 'unicase/u16-is-casefolded'.
41154         * lib/unicase/u16-is-casefolded.c: New file.
41155         * modules/unicase/u16-is-casefolded: New file.
41156
41157         New module 'unicase/u8-is-casefolded'.
41158         * lib/unicase/u8-is-casefolded.c: New file.
41159         * modules/unicase/u8-is-casefolded: New file.
41160
41161         Tests for module 'unicase/u32-is-titlecase'.
41162         * modules/unicase/u32-is-titlecase-tests: New file.
41163         * tests/unicase/test-u32-is-titlecase.c: New file.
41164
41165         Tests for module 'unicase/u16-is-titlecase'.
41166         * modules/unicase/u16-is-titlecase-tests: New file.
41167         * tests/unicase/test-u16-is-titlecase.c: New file.
41168
41169         Tests for module 'unicase/u8-is-titlecase'.
41170         * modules/unicase/u8-is-titlecase-tests: New file.
41171         * tests/unicase/test-u8-is-titlecase.c: New file.
41172         * tests/unicase/test-is-titlecase.h: New file.
41173
41174         New module 'unicase/u32-is-titlecase'.
41175         * lib/unicase/u32-is-titlecase.c: New file.
41176         * modules/unicase/u32-is-titlecase: New file.
41177
41178         New module 'unicase/u16-is-titlecase'.
41179         * lib/unicase/u16-is-titlecase.c: New file.
41180         * modules/unicase/u16-is-titlecase: New file.
41181
41182         New module 'unicase/u8-is-titlecase'.
41183         * lib/unicase/u8-is-titlecase.c: New file.
41184         * modules/unicase/u8-is-titlecase: New file.
41185
41186         Tests for module 'unicase/u32-is-lowercase'.
41187         * modules/unicase/u32-is-lowercase-tests: New file.
41188         * tests/unicase/test-u32-is-lowercase.c: New file.
41189
41190         Tests for module 'unicase/u16-is-lowercase'.
41191         * modules/unicase/u16-is-lowercase-tests: New file.
41192         * tests/unicase/test-u16-is-lowercase.c: New file.
41193
41194         Tests for module 'unicase/u8-is-lowercase'.
41195         * modules/unicase/u8-is-lowercase-tests: New file.
41196         * tests/unicase/test-u8-is-lowercase.c: New file.
41197         * tests/unicase/test-is-lowercase.h: New file.
41198
41199         New module 'unicase/u32-is-lowercase'.
41200         * lib/unicase/u32-is-lowercase.c: New file.
41201         * modules/unicase/u32-is-lowercase: New file.
41202
41203         New module 'unicase/u16-is-lowercase'.
41204         * lib/unicase/u16-is-lowercase.c: New file.
41205         * modules/unicase/u16-is-lowercase: New file.
41206
41207         New module 'unicase/u8-is-lowercase'.
41208         * lib/unicase/u8-is-lowercase.c: New file.
41209         * modules/unicase/u8-is-lowercase: New file.
41210
41211         Tests for module 'unicase/u32-is-uppercase'.
41212         * modules/unicase/u32-is-uppercase-tests: New file.
41213         * tests/unicase/test-u32-is-uppercase.c: New file.
41214
41215         Tests for module 'unicase/u16-is-uppercase'.
41216         * modules/unicase/u16-is-uppercase-tests: New file.
41217         * tests/unicase/test-u16-is-uppercase.c: New file.
41218
41219         Tests for module 'unicase/u8-is-uppercase'.
41220         * modules/unicase/u8-is-uppercase-tests: New file.
41221         * tests/unicase/test-u8-is-uppercase.c: New file.
41222         * tests/unicase/test-is-uppercase.h: New file.
41223
41224         New module 'unicase/u32-is-uppercase'.
41225         * lib/unicase/u32-is-uppercase.c: New file.
41226         * modules/unicase/u32-is-uppercase: New file.
41227
41228         New module 'unicase/u16-is-uppercase'.
41229         * lib/unicase/u16-is-uppercase.c: New file.
41230         * modules/unicase/u16-is-uppercase: New file.
41231
41232         New module 'unicase/u8-is-uppercase'.
41233         * lib/unicase/u8-is-uppercase.c: New file.
41234         * modules/unicase/u8-is-uppercase: New file.
41235
41236         New module 'unicase/u32-is-invariant'.
41237         * lib/unicase/u32-is-invariant.c: New file.
41238         * modules/unicase/u32-is-invariant: New file.
41239
41240         New module 'unicase/u16-is-invariant'.
41241         * lib/unicase/u16-is-invariant.c: New file.
41242         * modules/unicase/u16-is-invariant: New file.
41243
41244         New module 'unicase/u8-is-invariant'.
41245         * lib/unicase/u8-is-invariant.c: New file.
41246         * lib/unicase/invariant.h: New file.
41247         * lib/unicase/u-is-invariant.h: New file.
41248         * modules/unicase/u8-is-invariant: New file.
41249
41250         Tests for module 'unicase/u32-casecoll'.
41251         * modules/unicase/u32-casecoll-tests: New file.
41252         * tests/unicase/test-u32-casecoll.c: New file.
41253
41254         Tests for module 'unicase/u16-casecoll'.
41255         * modules/unicase/u16-casecoll-tests: New file.
41256         * tests/unicase/test-u16-casecoll.c: New file.
41257
41258         Tests for module 'unicase/u8-casecoll'.
41259         * modules/unicase/u8-casecoll-tests: New file.
41260         * tests/unicase/test-u8-casecoll.c: New file.
41261
41262         New module 'unicase/u32-casecoll'.
41263         * lib/unicase/u32-casecoll.c: New file.
41264         * modules/unicase/u32-casecoll: New file.
41265
41266         New module 'unicase/u16-casecoll'.
41267         * lib/unicase/u16-casecoll.c: New file.
41268         * modules/unicase/u16-casecoll: New file.
41269
41270         New module 'unicase/u8-casecoll'.
41271         * lib/unicase/u8-casecoll.c: New file.
41272         * lib/unicase/u-casecoll.h: New file.
41273         * modules/unicase/u8-casecoll: New file.
41274
41275         New module 'unicase/u32-casexfrm'.
41276         * lib/unicase/u32-casexfrm.c: New file.
41277         * modules/unicase/u32-casexfrm: New file.
41278
41279         New module 'unicase/u16-casexfrm'.
41280         * lib/unicase/u16-casexfrm.c: New file.
41281         * modules/unicase/u16-casexfrm: New file.
41282
41283         New module 'unicase/u8-casexfrm'.
41284         * lib/unicase/u8-casexfrm.c: New file.
41285         * lib/unicase/u-casexfrm.h: New file.
41286         * modules/unicase/u8-casexfrm: New file.
41287
41288         Tests for module 'unicase/u32-casecmp'.
41289         * modules/unicase/u32-casecmp-tests: New file.
41290         * tests/unicase/test-u32-casecmp.c: New file.
41291
41292         Tests for module 'unicase/u16-casecmp'.
41293         * modules/unicase/u16-casecmp-tests: New file.
41294         * tests/unicase/test-u16-casecmp.c: New file.
41295
41296         Tests for module 'unicase/u8-casecmp'.
41297         * modules/unicase/u8-casecmp-tests: New file.
41298         * tests/unicase/test-u8-casecmp.c: New file.
41299         * tests/unicase/test-casecmp.h: New file.
41300
41301         New module 'unicase/u32-casecmp'.
41302         * lib/unicase/u32-casecmp.c: New file.
41303         * modules/unicase/u32-casecmp: New file.
41304
41305         New module 'unicase/u16-casecmp'.
41306         * lib/unicase/u16-casecmp.c: New file.
41307         * modules/unicase/u16-casecmp: New file.
41308
41309         New module 'unicase/u8-casecmp'.
41310         * lib/unicase/u8-casecmp.c: New file.
41311         * lib/unicase/u-casecmp.h: New file.
41312         * modules/unicase/u8-casecmp: New file.
41313
41314         Tests for module 'unicase/u32-casefold'.
41315         * modules/unicase/u32-casefold-tests: New file.
41316         * tests/unicase/test-u32-casefold.c: New file.
41317
41318         Tests for module 'unicase/u16-casefold'.
41319         * modules/unicase/u16-casefold-tests: New file.
41320         * tests/unicase/test-u16-casefold.c: New file.
41321
41322         Tests for module 'unicase/u8-casefold'.
41323         * modules/unicase/u8-casefold-tests: New file.
41324         * tests/unicase/test-u8-casefold.c: New file.
41325
41326         New module 'unicase/u32-casefold'.
41327         * lib/unicase/u32-casefold.c: New file.
41328         * modules/unicase/u32-casefold: New file.
41329
41330         New module 'unicase/u16-casefold'.
41331         * lib/unicase/u16-casefold.c: New file.
41332         * modules/unicase/u16-casefold: New file.
41333
41334         New module 'unicase/u8-casefold'.
41335         * lib/unicase/u8-casefold.c: New file.
41336         * lib/unicase/u-casefold.h: New file.
41337         * modules/unicase/u8-casefold: New file.
41338
41339         New module 'unicase/tocasefold'.
41340         * lib/unicase/casefold.h: New file.
41341         * lib/unicase/tocasefold.c: New file.
41342         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41343         * modules/unicase/tocasefold: New file.
41344
41345         Tests for module 'unicase/u32-totitle'.
41346         * modules/unicase/u32-totitle-tests: New file.
41347         * tests/unicase/test-u32-totitle.c: New file.
41348
41349         Tests for module 'unicase/u16-totitle'.
41350         * modules/unicase/u16-totitle-tests: New file.
41351         * tests/unicase/test-u16-totitle.c: New file.
41352
41353         Tests for module 'unicase/u8-totitle'.
41354         * modules/unicase/u8-totitle-tests: New file.
41355         * tests/unicase/test-u8-totitle.c: New file.
41356
41357         New module 'unicase/u32-totitle'.
41358         * lib/unicase/u32-totitle.c: New file.
41359         * modules/unicase/u32-totitle: New file.
41360
41361         New module 'unicase/u16-totitle'.
41362         * lib/unicase/u16-totitle.c: New file.
41363         * modules/unicase/u16-totitle: New file.
41364
41365         New module 'unicase/u8-totitle'.
41366         * lib/unicase/u8-totitle.c: New file.
41367         * lib/unicase/u-totitle.h: New file.
41368         * modules/unicase/u8-totitle: New file.
41369
41370         Tests for module 'unicase/u32-tolower'.
41371         * modules/unicase/u32-tolower-tests: New file.
41372         * tests/unicase/test-u32-tolower.c: New file.
41373
41374         Tests for module 'unicase/u16-tolower'.
41375         * modules/unicase/u16-tolower-tests: New file.
41376         * tests/unicase/test-u16-tolower.c: New file.
41377
41378         Tests for module 'unicase/u8-tolower'.
41379         * modules/unicase/u8-tolower-tests: New file.
41380         * tests/unicase/test-u8-tolower.c: New file.
41381
41382         New module 'unicase/u32-tolower'.
41383         * lib/unicase/u32-tolower.c: New file.
41384         * modules/unicase/u32-tolower: New file.
41385
41386         New module 'unicase/u16-tolower'.
41387         * lib/unicase/u16-tolower.c: New file.
41388         * modules/unicase/u16-tolower: New file.
41389
41390         New module 'unicase/u8-tolower'.
41391         * lib/unicase/u8-tolower.c: New file.
41392         * modules/unicase/u8-tolower: New file.
41393
41394         Tests for module 'unicase/u32-toupper'.
41395         * modules/unicase/u32-toupper-tests: New file.
41396         * tests/unicase/test-u32-toupper.c: New file.
41397
41398         Tests for module 'unicase/u16-toupper'.
41399         * modules/unicase/u16-toupper-tests: New file.
41400         * tests/unicase/test-u16-toupper.c: New file.
41401
41402         Tests for module 'unicase/u8-toupper'.
41403         * modules/unicase/u8-toupper-tests: New file.
41404         * tests/unicase/test-u8-toupper.c: New file.
41405
41406         New module 'unicase/u32-toupper'.
41407         * lib/unicase/u32-toupper.c: New file.
41408         * modules/unicase/u32-toupper: New file.
41409
41410         New module 'unicase/u16-toupper'.
41411         * lib/unicase/u16-toupper.c: New file.
41412         * modules/unicase/u16-toupper: New file.
41413
41414         New module 'unicase/u8-toupper'.
41415         * lib/unicase/u8-toupper.c: New file.
41416         * modules/unicase/u8-toupper: New file.
41417
41418         New module 'unicase/u32-casemap'.
41419         * lib/unicase/u32-casemap.c: New file.
41420         * modules/unicase/u32-casemap: New file.
41421
41422         New module 'unicase/u16-casemap'.
41423         * lib/unicase/u16-casemap.c: New file.
41424         * modules/unicase/u16-casemap: New file.
41425
41426         New module 'unicase/u8-casemap'.
41427         * lib/unicase/unicasemap.h: New file.
41428         * lib/unicase/u8-casemap.c: New file.
41429         * lib/unicase/u-casemap.h: New file.
41430         * modules/unicase/u8-casemap: New file.
41431
41432         New module 'unicase/special-casing'.
41433         * lib/unicase/special-casing.h: New file.
41434         * lib/unicase/special-casing.c: New file.
41435         * lib/unicase/special-casing-table.gperf: New file, generated by
41436         gen-uni-tables.c.
41437         * modules/unicase/special-casing: New file.
41438
41439         Tests for module 'unicase/locale-language'.
41440         * modules/unicase/locale-language-tests: New file.
41441         * tests/unicase/test-locale-language.sh: New file.
41442         * tests/unicase/test-locale-language.c: New file.
41443
41444         New module 'unicase/locale-language'.
41445         * lib/unicase/locale-language.c: New file.
41446         * lib/unicase/locale-languages.gperf: New file.
41447         * modules/unicase/locale-language: New file.
41448
41449         Generate more tables for case conversion and case folding.
41450         * lib/gen-uni-tables.c (SCC_*): New enum items.
41451         (struct special_casing_rule): New type.
41452         (casing_rules, num_casing_rules, allocated_casing_rules): New
41453         variables.
41454         (add_casing_rule, fill_casing_rules): New functions.
41455         (struct casefold_rule): New type.
41456         (casefolding_rules, num_casefolding_rules,
41457         allocated_casefolding_rules): New variables.
41458         (fill_casefolding_rules): New function.
41459         (unicode_casefold): New variable.
41460         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41461         sort_casing_rules, output_casing_rules): New functions.
41462         (main): Accept to more arguments: SpecialCasing.txt and
41463         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41464         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41465         Output mapping for casefolding.
41466
41467         * lib/unicase.h: Include stdbool.h, uninorm.h.
41468         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41469         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41470         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41471         arguments.
41472         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41473         resultp arguments.
41474         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41475         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41476         resultp arguments.
41477         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41478         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41479         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41480         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41481         declarations.
41482         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41483
41484 2009-03-08  Bruno Haible  <bruno@clisp.org>
41485
41486         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41487         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41488         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41489         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41490
41491 2009-03-07  Bruno Haible  <bruno@clisp.org>
41492
41493         Adjust u*_normcmp, u*_normcoll API.
41494         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41495         u16_normcoll, u32_normcoll): Change failure conventions.
41496         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41497         errno and return -1.
41498         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41499
41500 2009-03-07  Bruno Haible  <bruno@clisp.org>
41501
41502         Tests for module 'uninorm/u32-normcoll'.
41503         * modules/uninorm/u32-normcoll-tests: New file.
41504         * tests/uninorm/test-u32-normcoll.c: New file.
41505
41506         Tests for module 'uninorm/u16-normcoll'.
41507         * modules/uninorm/u16-normcoll-tests: New file.
41508         * tests/uninorm/test-u16-normcoll.c: New file.
41509
41510         Tests for module 'uninorm/u8-normcoll'.
41511         * modules/uninorm/u8-normcoll-tests: New file.
41512         * tests/uninorm/test-u8-normcoll.c: New file.
41513
41514 2009-03-07  Bruno Haible  <bruno@clisp.org>
41515
41516         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41517         tests/uninorm/test-u32-normcmp.c.
41518         * tests/uninorm/test-u32-normcmp.c: Include it.
41519         (test_nonascii): New function, extracted from main. Add some more
41520         tests.
41521         (main): Invoke test_ascii and test_nonascii.
41522         * modules/uninorm/u32-normcmp-tests (Files): Add
41523         tests/uninorm/test-u32-normcmp.h.
41524         (Depends-on): Remove uninorm/u32-normcmp.
41525
41526         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41527         tests/uninorm/test-u16-normcmp.c.
41528         * tests/uninorm/test-u16-normcmp.c: Include it.
41529         (test_nonascii): New function, extracted from main. Add some more
41530         tests.
41531         (main): Invoke test_ascii and test_nonascii.
41532         * modules/uninorm/u16-normcmp-tests (Files): Add
41533         tests/uninorm/test-u16-normcmp.h.
41534         (Depends-on): Remove uninorm/u16-normcmp.
41535
41536         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41537         tests/uninorm/test-u8-normcmp.c.
41538         * tests/uninorm/test-u8-normcmp.c: Include it.
41539         (test_nonascii): New function, extracted from main. Add some more
41540         tests.
41541         (main): Invoke test_ascii and test_nonascii.
41542         * modules/uninorm/u8-normcmp-tests (Files): Add
41543         tests/uninorm/test-u8-normcmp.h.
41544         (Depends-on): Remove uninorm/u8-normcmp.
41545
41546 2009-03-07  Bruno Haible  <bruno@clisp.org>
41547
41548         New module 'uninorm/u32-normcoll'.
41549         * lib/uninorm/u32-normcoll.c: New file.
41550         * modules/uninorm/u32-normcoll: New file.
41551
41552         New module 'uninorm/u16-normcoll'.
41553         * lib/uninorm/u16-normcoll.c: New file.
41554         * modules/uninorm/u16-normcoll: New file.
41555
41556         New module 'uninorm/u8-normcoll'.
41557         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41558         declarations.
41559         * lib/uninorm/u8-normcoll.c: New file.
41560         * lib/uninorm/u-normcoll.h: New file.
41561         * modules/uninorm/u8-normcoll: New file.
41562
41563         New module 'uninorm/u32-normxfrm'.
41564         * lib/uninorm/u32-normxfrm.c: New file.
41565         * modules/uninorm/u32-normxfrm: New file.
41566
41567         New module 'uninorm/u16-normxfrm'.
41568         * lib/uninorm/u16-normxfrm.c: New file.
41569         * modules/uninorm/u16-normxfrm: New file.
41570
41571         New module 'uninorm/u8-normxfrm'.
41572         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41573         declarations.
41574         * lib/uninorm/u8-normxfrm.c: New file.
41575         * lib/uninorm/u-normxfrm.h: New file.
41576         * modules/uninorm/u8-normxfrm: New file.
41577
41578 2009-03-07  Bruno Haible  <bruno@clisp.org>
41579
41580         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41581         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41582         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41583
41584 2009-03-07  Bruno Haible  <bruno@clisp.org>
41585
41586         New module 'memxfrm'.
41587         * lib/memxfrm.h: New file.
41588         * lib/memxfrm.c: New file.
41589         * modules/memxfrm: New file.
41590
41591 2009-03-07  Bruno Haible  <bruno@clisp.org>
41592
41593         New module 'memcmp2'.
41594         * lib/memcmp2.h: New file.
41595         * lib/memcmp2.c: New file.
41596         * modules/memcmp2: New file.
41597
41598 2009-03-07  Bruno Haible  <bruno@clisp.org>
41599
41600         Tests for module 'uninorm/decomposing-form'.
41601         * modules/uninorm/decomposing-form-tests: New file.
41602         * tests/uninorm/test-decomposing-form.c: New file.
41603
41604         New module 'uninorm/decomposing-form'.
41605         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41606         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41607         Add 'decomposing_variant' field.
41608         * lib/uninorm/decomposing-form.c: New file.
41609         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41610         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41611         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41612         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41613         * modules/uninorm/decomposing-form: New file.
41614         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41615         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41616
41617 2009-03-07  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41620         strings.
41621
41622 2009-03-06  Bruno Haible  <bruno@clisp.org>
41623
41624         Tests for module 'uninorm/u32-normcmp'.
41625         * tests/uninorm/test-u32-normcmp.c: New file.
41626         * modules/uninorm/u32-normcmp-tests: New file.
41627
41628         Tests for module 'uninorm/u16-normcmp'.
41629         * tests/uninorm/test-u16-normcmp.c: New file.
41630         * modules/uninorm/u16-normcmp-tests: New file.
41631
41632         Tests for module 'uninorm/u8-normcmp'.
41633         * tests/uninorm/test-u8-normcmp.c: New file.
41634         * modules/uninorm/u8-normcmp-tests: New file.
41635
41636         New module 'uninorm/u32-normcmp'.
41637         * lib/uninorm/u32-normcmp.c: New file.
41638         * modules/uninorm/u32-normcmp: New file.
41639
41640         New module 'uninorm/u16-normcmp'.
41641         * lib/uninorm/u16-normcmp.c: New file.
41642         * modules/uninorm/u16-normcmp: New file.
41643
41644         New module 'uninorm/u8-normcmp'.
41645         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41646         declarations.
41647         * lib/uninorm/u8-normcmp.c: New file.
41648         * lib/uninorm/u-normcmp.h: New file.
41649         * modules/uninorm/u8-normcmp: New file.
41650
41651 2009-03-06  Bruno Haible  <bruno@clisp.org>
41652
41653         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41654         Reported by Eric Blake.
41655
41656 2009-03-06  Eric Blake  <ebb9@byu.net>
41657             Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41660         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41661         condition.
41662         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41663         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41664         condition.
41665         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41666
41667 2009-03-06  Eric Blake  <ebb9@byu.net>
41668
41669         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41670         to avoid compiler warnings.
41671         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41672
41673 2009-03-05  Bruno Haible  <bruno@clisp.org>
41674
41675         * tests/test-ftell.c (main): Disable test beyond end of file on
41676         FreeMiNT.
41677         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41678
41679 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41680
41681         * lib/filevercmp.c: Move hidden files up in ordering.
41682         * tests/test-filevercmp.c: Add tests for hidden files.
41683
41684 2009-03-04  Bruno Haible  <bruno@clisp.org>
41685
41686         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41687         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41688         AM_CFLAGS.
41689         Reported by Simon Josefsson.
41690
41691 2009-03-03  Bruno Haible  <bruno@clisp.org>
41692
41693         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41694         Reported by Simon Josefsson.
41695
41696         * doc/ld-version-script.texi: Update node reference.
41697
41698 2009-03-03  Bruno Haible  <bruno@clisp.org>
41699
41700         * modules/visibility (License): Change to 'unlimited'.
41701         Suggested by Simon Josefsson.
41702
41703 2009-03-03  Jim Meyering  <meyering@redhat.com>
41704
41705         unlinkdir: cannot_unlink_dir may modify process state
41706         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41707         it's neither thread-safe nor appropriate for use in a library.
41708
41709 2009-03-03  Eric Blake  <ebb9@byu.net>
41710
41711         test-closein: silence test under Darwin
41712         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41713         care if it dies from EPIPE or EBADF.
41714
41715 2009-03-03  Bruno Haible  <bruno@clisp.org>
41716
41717         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41718         earlier.
41719         * doc/visibility.texi: Fix @node and @section.
41720
41721 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41722
41723         * doc/gnulib.texi: Link to sections for ld version script and
41724         visibility.
41725         * doc/visibility.texi: Add @node and @section.
41726         * modules/ld-version-script: New module.
41727         * m4/ld-version-script.m4: New file.
41728         * doc/ld-version-script.texi: New file.
41729
41730 2009-03-02  David Lutterkort  <lutter@redhat.com>
41731
41732         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41734
41735 2009-03-02  Bruno Haible  <bruno@clisp.org>
41736
41737         * doc/visibility.texi: Mention libtool's -export-symbols option.
41738
41739 2009-03-02  Jim Meyering  <meyering@redhat.com>
41740
41741         announce-gen: new option: --no-print-checksums
41742         * build-aux/announce-gen (usage): Describe it.
41743         (print_checksums): Print a newline here, not in the [*] footnote.
41744         (main): Honor it.
41745
41746 2009-03-01  Bruno Haible  <bruno@clisp.org>
41747
41748         Use socklen_t in the native Windows replacements prototypes.
41749         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41750         instead of 'int'.
41751         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41752         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41753         * modules/getsockopt (Depends-on): Add socklen.
41754         * modules/setsockopt (Depends-on): Add socklen.
41755
41756 2009-03-01  Bruno Haible  <bruno@clisp.org>
41757
41758         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41759         least 4.2.
41760
41761 2009-03-01  Eric Blake  <ebb9@byu.net>
41762             Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41765         error messages.
41766         * lib/wait-process.c (wait_subprocess): Omit error message about
41767         deadly signal sent to the child of termsigp != NULL.
41768
41769 2009-03-01  Eric Blake  <ebb9@byu.net>
41770
41771         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41772
41773 2009-03-01  Bruno Haible  <bruno@clisp.org>
41774
41775         Avoid a gcc warning.
41776         * tests/test-sched.c (b): Make global.
41777         Reported by Eric Blake.
41778
41779 2009-01-19  Martin Lambers  <marlam@marlam.de>
41780
41781         Provide POSIX semantics for socket timeout options on W32.
41782         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41783         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41784         * modules/setsockopt: Depend on sys_time module for struct timeval.
41785         * modules/getsockopt: Depend on sys_time module for struct timeval.
41786
41787 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41788
41789         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41790         __USE_GNU, for consistency with netdb.in.h.
41791         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41792
41793 2009-03-01  Bruno Haible  <bruno@clisp.org>
41794
41795         More support for FreeMiNT.
41796         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41797         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41798
41799 2009-03-01  Bruno Haible  <bruno@clisp.org>
41800
41801         More support for FreeMiNT.
41802         * lib/fpurge.c (fpurge): Correct last commit.
41803         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41804
41805 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41806
41807         Fix unportable awk script in vc-list-files.
41808         * build-aux/vc-list-files: In the replacement awk script, use
41809         substr with a second argument of 1, not zero.
41810         Report by Simon Josefsson.
41811
41812 2009-02-28  Bruno Haible  <bruno@clisp.org>
41813
41814         More support for FreeMiNT.
41815         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41816         to FreeMiNT today.
41817         * lib/fwriting.c (fwriting): Likewise.
41818         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41819
41820 2009-02-28  Bruno Haible  <bruno@clisp.org>
41821
41822         * tests/test-freadseek.c (main): Disable test beyond end of file on
41823         FreeMiNT.
41824         * tests/test-ftello.c (main): Likewise.
41825         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41826
41827 2009-02-28  Bruno Haible  <bruno@clisp.org>
41828
41829         Add tentative support for FreeMiNT.
41830         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41831         * lib/fpurge.c (fpurge): Likewise.
41832         * lib/freadable.c (freadable): Likewise.
41833         * lib/freading.c (freading): Likewise.
41834         * lib/freadptr.c (freadptr): Likewise.
41835         * lib/freadseek.c (freadptrinc): Likewise.
41836         * lib/fseeko.c (rpl_fseeko): Likewise.
41837         * lib/fseterr.c (fseterr): Likewise.
41838         * lib/fwritable.c (fwritable): Likewise.
41839         * lib/fwriting.c (fwriting): Likewise.
41840         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41841         Hourihane.
41842         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41843
41844 2009-02-28  Bruno Haible  <bruno@clisp.org>
41845
41846         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41847         SIGCHLD.
41848         Reported by Jim Meyering.
41849
41850 2009-02-28  Bruno Haible  <bruno@clisp.org>
41851
41852         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41853         Mention the results of these tests on various platforms.
41854         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41855         order.
41856         * doc/posix-functions/printf.texi: Likewise.
41857         * doc/posix-functions/snprintf.texi: Likewise.
41858         * doc/posix-functions/sprintf.texi: Likewise.
41859         * doc/posix-functions/vfprintf.texi: Likewise.
41860         * doc/posix-functions/vprintf.texi: Likewise.
41861         * doc/posix-functions/vsnprintf.texi: Likewise.
41862         * doc/posix-functions/vsprintf.texi: Likewise.
41863         * doc/glibc-functions/obstack_printf.texi: Likewise.
41864         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41865
41866 2009-02-28  Bruno Haible  <bruno@clisp.org>
41867
41868         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41869         Reported by Loïc Minier <lool@dooz.org>.
41870
41871 2009-02-27  Bruno Haible  <bruno@clisp.org>
41872
41873         * gnulib-tool (func_import): Make the sed expression used to create the
41874         sed script for updating the .gitignore file POSIX compliant.
41875         Reported by Eric Blake.
41876
41877 2009-02-27  Bruno Haible  <bruno@clisp.org>
41878
41879         * gnulib-tool (sed): Don't alias as "sed --posix".
41880         Reported by Eric Blake.
41881
41882 2009-02-27  Bruno Haible  <bruno@clisp.org>
41883
41884         Avoid test link errors.
41885         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41886         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41887         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41888         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41890
41891 2009-02-27  Bruno Haible  <bruno@clisp.org>
41892
41893         Avoid spurious "(cached)" in configure output.
41894         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41895         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41896         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41897         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41898         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41899         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41900         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41901         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41902         Reported by Eric Blake.
41903
41904 2009-02-27  Eric Blake  <ebb9@byu.net>
41905
41906         printf: fix regression in previous patch
41907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41908
41909 2009-02-27  Bruno Haible  <bruno@clisp.org>
41910
41911         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41912         value.
41913         * lib/stdint.in.h: Likewise.
41914         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41915
41916 2009-02-27  Eric Blake  <ebb9@byu.net>
41917
41918         doc: mention more functions added in cygwin 1.7.0
41919         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41920         addition.
41921         * doc/posix-functions/open_wmemstream.texi: Likewise.
41922         * doc/posix-functions/wcsnlen.texi: Likewise.
41923         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41924         * doc/posix-functions/wcstod.texi: Likewise.
41925         * doc/posix-functions/wcstof.texi: Likewise.
41926         * doc/posix-functions/wcstoimax.texi: Likewise.
41927         * doc/posix-functions/wcstok.texi: Likewise.
41928         * doc/posix-functions/wcstoumax.texi: Likewise.
41929
41930         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41932         * doc/posix-functions/fprintf.texi: Update.
41933         * doc/posix-functions/printf.texi: Update.
41934         * doc/posix-functions/snprintf.texi: Update.
41935         * doc/posix-functions/sprintf.texi: Update.
41936         * doc/posix-functions/vfprintf.texi: Update.
41937         * doc/posix-functions/vprintf.texi: Update.
41938         * doc/posix-functions/vsnprintf.texi: Update.
41939         * doc/posix-functions/vsprintf.texi: Update.
41940         * doc/glibc-functions/obstack_printf.texi: Update.
41941         * doc/glibc-functions/obstack_vprintf.texi: Update.
41942
41943 2009-02-26  Eric Blake  <ebb9@byu.net>
41944
41945         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41946         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41947         compilation bug by using runtime conversion.
41948         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41949         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41950         * modules/ceill-tests (Files): Use nan.h.
41951         * modules/floorl-tests (Files): Likewise.
41952         * modules/frexpl-tests (Files): Likewise.
41953         * modules/isnanl-tests (Files): Likewise.
41954         * modules/ldexpl-tests (Files): Likewise.
41955         * modules/roundl-tests (Files): Likewise.
41956         * modules/truncl-tests (Files): Likewise.
41957         * tests/test-ceill.c (main): Use a working NaN.
41958         * tests/test-floorl.c (main): Likewise.
41959         * tests/test-frexpl.c (main): Likewise.
41960         * tests/test-isnan.c (test_long_double): Likewise.
41961         * tests/test-isnanl.h (main): Likewise.
41962         * tests/test-ldexpl.h (main): Likewise.
41963         * tests/test-roundl.h (main): Likewise.
41964         * tests/test-truncl.h (main): Likewise.
41965         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41966
41967 2009-02-26  Eric Blake  <ebb9@byu.net>
41968             Bruno Haible  <bruno@clisp.org>
41969
41970         Work around a *printf bug with %ls on Solaris.
41971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41972         precision is specified, sprintf stops converting the wide string
41973         argument when the number of bytes that have been produced by this
41974         conversion equals or exceeds the precision.
41975         * doc/posix-functions/fprintf.texi: Update.
41976         * doc/posix-functions/printf.texi: Update.
41977         * doc/posix-functions/snprintf.texi: Update.
41978         * doc/posix-functions/sprintf.texi: Update.
41979         * doc/posix-functions/vfprintf.texi: Update.
41980         * doc/posix-functions/vprintf.texi: Update.
41981         * doc/posix-functions/vsnprintf.texi: Update.
41982         * doc/posix-functions/vsprintf.texi: Update.
41983         * doc/glibc-functions/obstack_printf.texi: Update.
41984         * doc/glibc-functions/obstack_vprintf.texi: Update.
41985
41986 2009-02-26  Eric Blake  <ebb9@byu.net>
41987
41988         stdlib: favor compiler check of random.h
41989         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41990         to avoid an ObjC random.h installed by Swarm.
41991
41992 2009-02-26  Bruno Haible  <bruno@clisp.org>
41993
41994         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41995         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41996         Reported by Gary V. Vaughan <gary@gnu.org>.
41997
41998 2009-02-26  Bruno Haible  <bruno@clisp.org>
41999
42000         Fix *printf behaviour regarding the %ls directive.
42001         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42002         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42003         NEED_PRINTF_DIRECTIVE_LS.
42004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42005         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42006         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42007         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42008         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42009         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42010         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42012         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42015         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42019         * doc/posix-functions/fprintf.texi: Update.
42020         * doc/posix-functions/printf.texi: Update.
42021         * doc/posix-functions/snprintf.texi: Update.
42022         * doc/posix-functions/sprintf.texi: Update.
42023         * doc/posix-functions/vfprintf.texi: Update.
42024         * doc/posix-functions/vprintf.texi: Update.
42025         * doc/posix-functions/vsnprintf.texi: Update.
42026         * doc/posix-functions/vsprintf.texi: Update.
42027         * doc/glibc-functions/obstack_printf.texi: Update.
42028         * doc/glibc-functions/obstack_vprintf.texi: Update.
42029         Reported by Eric Blake.
42030
42031 2009-02-25  Bruno Haible  <bruno@clisp.org>
42032
42033         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42034         with known value.
42035         Reported by Gary V. Vaughan <gary@gnu.org>.
42036
42037 2009-02-25  Bruno Haible  <bruno@clisp.org>
42038
42039         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42040         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42041         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42042         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42043         Reported by Gary V. Vaughan <gary@gnu.org>.
42044
42045 2009-02-25  Bruno Haible  <bruno@clisp.org>
42046
42047         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42048         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42049         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42050         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42051         Reported by Gary V. Vaughan <gary@gnu.org>.
42052
42053 2009-02-25  Eric Blake  <ebb9@byu.net>
42054
42055         tests: skip fseek/ftell tests if ungetc is broken
42056         * m4/ungetc.m4: New file.
42057         * modules/fseek-tests: Split test, so ungetc dependency is
42058         separate from rest of test.
42059         * modules/fseeko-tests: Likewise.
42060         * modules/ftell-tests: Likewise.
42061         * modules/ftello-tests: Likewise.
42062         * tests/test-fseek.c (main): Isolate ungetc dependency.
42063         * tests/test-fseeko.c (main): Likewise.
42064         * tests/test-ftell.c (main): Likewise.
42065         * tests/test-ftello.c (main): Likewise.
42066         * tests/test-fseek2.sh: New file.
42067         * tests/test-fseeko2.sh: Likewise.
42068         * tests/test-ftell2.sh: Likewise.
42069         * tests/test-ftello2.sh: Likewise.
42070
42071 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42072
42073         test-getaddrinfo: fix usage of skip return code 77
42074         * tests/test-gettaddrinfo.c: Return skip code 77 only
42075         for first occurance of skip (4x77 is not 77)
42076
42077 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42078
42079         strtod: avoid C99 decl-after-statement
42080         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42081
42082 2009-02-24  Eric Blake  <ebb9@byu.net>
42083
42084         strtod: detect HP-UX 11.31 bug
42085         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42086         Reported by Gary V. Vaughan.
42087
42088 2009-02-23  Bruno Haible  <bruno@clisp.org>
42089
42090         Fix invalid read past end of memory block.
42091         * lib/vasnprintf.c (DCHAR_SET): Define.
42092         (local_wcslen): Define only when needed.
42093         (local_strnlen, local_wcsnlen): New functions.
42094         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42095         directives that involve a conversion ourselves.
42096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42097         wcsnlen, mbrtowc, wcrtomb.
42098         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42099         * tests/test-vasprintf-posix.c (test_function): Likewise.
42100         * tests/test-snprintf-posix.h (test_function): Likewise.
42101         * tests/test-sprintf-posix.h (test_function): Likewise.
42102         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42103
42104 2009-02-22  Bruno Haible  <bruno@clisp.org>
42105
42106         Implement new clarified decomposition of Hangul syllables.
42107         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42108         of type LTV, return only a pairwise decomposition.
42109         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42110         Likewise.
42111         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42112         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42113         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42114
42115 2009-02-22  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42118         zero-length results and shrink excess allocated memory.
42119         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42120         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42121         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42122         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42123         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42124         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42125         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42126         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42127         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42128         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42129         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42130         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42131
42132 2009-02-21  Bruno Haible  <bruno@clisp.org>
42133
42134         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42135         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42136         spaces after a period. Put a space between a macro name and its
42137         argument list. Trivial rewordings.
42138         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42139         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42140         (main): Return 0 explicitly.
42141
42142 2009-02-21  Bruno Haible  <bruno@clisp.org>
42143
42144         Tests for module 'uninorm/filter'.
42145         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42146         * modules/uninorm/filter-tests: New file.
42147
42148         New module 'uninorm/filter'.
42149         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42150         uninorm_filter_flush, uninorm_filter_free): New declarations.
42151         * lib/uninorm/uninorm-filter.c: New file.
42152         * modules/uninorm/filter: New file.
42153
42154 2009-02-21  Bruno Haible  <bruno@clisp.org>
42155
42156         Tests for module 'uninorm/nfkc'.
42157         * tests/uninorm/test-nfkc.c: New file.
42158         * tests/uninorm/test-u8-nfkc.c: New file.
42159         * tests/uninorm/test-u16-nfkc.c: New file.
42160         * tests/uninorm/test-u32-nfkc.c: New file.
42161         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42162         * tests/uninorm/test-u32-nfkc-big.c: New file.
42163         * modules/uninorm/nfkc-tests: New file.
42164
42165         New module 'uninorm/nfkc'.
42166         * lib/uninorm/nfkc.c: New file.
42167         * modules/uninorm/nfkc: New file.
42168
42169         Tests for module 'uninorm/nfkd'.
42170         * tests/uninorm/test-nfkd.c: New file.
42171         * tests/uninorm/test-u8-nfkd.c: New file.
42172         * tests/uninorm/test-u16-nfkd.c: New file.
42173         * tests/uninorm/test-u32-nfkd.c: New file.
42174         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42175         * tests/uninorm/test-u32-nfkd-big.c: New file.
42176         * modules/uninorm/nfkd-tests: New file.
42177
42178         New module 'uninorm/nfkd'.
42179         * lib/uninorm/nfkd.c: New file.
42180         * modules/uninorm/nfkd: New file.
42181
42182         Tests for module 'uninorm/nfc'.
42183         * tests/uninorm/test-nfc.c: New file.
42184         * tests/uninorm/test-u8-nfc.c: New file.
42185         * tests/uninorm/test-u16-nfc.c: New file.
42186         * tests/uninorm/test-u32-nfc.c: New file.
42187         * tests/uninorm/test-u32-nfc-big.sh: New file.
42188         * tests/uninorm/test-u32-nfc-big.c: New file.
42189         * modules/uninorm/nfc-tests: New file.
42190
42191         New module 'uninorm/nfc'.
42192         * lib/uninorm/nfc.c: New file.
42193         * modules/uninorm/nfc: New file.
42194
42195         Tests for module 'uninorm/nfd'.
42196         * tests/uninorm/test-nfd.c: New file.
42197         * tests/uninorm/test-u8-nfd.c: New file.
42198         * tests/uninorm/test-u16-nfd.c: New file.
42199         * tests/uninorm/test-u32-nfd.c: New file.
42200         * tests/uninorm/test-u32-nfd-big.sh: New file.
42201         * tests/uninorm/test-u32-nfd-big.c: New file.
42202         * tests/uninorm/test-u32-normalize-big.h: New file.
42203         * tests/uninorm/test-u32-normalize-big.c: New file.
42204         * tests/uninorm/NormalizationTest.txt: New file, created from
42205         Unicode 5.1.0 NormalizationTest.txt.
42206         * modules/uninorm/nfd-tests: New file.
42207
42208         New module 'uninorm/nfd'.
42209         * lib/uninorm/nfd.c: New file.
42210         * modules/uninorm/nfd: New file.
42211
42212         New module 'uninorm/u32-normalize'.
42213         * lib/uninorm/u32-normalize.c: New file.
42214         * modules/uninorm/u32-normalize: New file.
42215
42216         New module 'uninorm/u16-normalize'.
42217         * lib/uninorm/u16-normalize.c: New file.
42218         * modules/uninorm/u16-normalize: New file.
42219
42220         New module 'uninorm/u8-normalize'.
42221         * lib/uninorm/u8-normalize.c: New file.
42222         * lib/uninorm/normalize-internal.h: New file.
42223         * lib/uninorm/u-normalize-internal.h: New file.
42224         * modules/uninorm/u8-normalize: New file.
42225
42226         New module 'uninorm/decompose-internal'.
42227         * lib/uninorm/decompose-internal.c: New file.
42228         * modules/uninorm/decompose-internal: New file.
42229
42230         Tests for module 'uninorm/composition'.
42231         * tests/uninorm/test-composition.c: New file.
42232         * modules/uninorm/composition-tests: New file.
42233
42234         New module 'uninorm/composition'.
42235         * lib/uninorm/composition.c: New file.
42236         * lib/uninorm/composition-table.gperf: New file, generated by
42237         gen-uni-tables.
42238         * modules/uninorm/composition: New file.
42239
42240         Tests for module 'uninorm/compat-decomposition'.
42241         * tests/uninorm/test-compat-decomposition.c: New file.
42242         * modules/uninorm/compat-decomposition-tests: New file.
42243
42244         New module 'uninorm/compat-decomposition'.
42245         * lib/uninorm/decompose-internal.h: New file.
42246         * lib/uninorm/compat-decomposition.c: New file.
42247         * modules/uninorm/compat-decomposition: New file.
42248
42249         Tests for module 'uninorm/canonical-decomposition'.
42250         * tests/uninorm/test-canonical-decomposition.c: New file.
42251         * modules/uninorm/canonical-decomposition-tests: New file.
42252
42253         New module 'uninorm/canonical-decomposition'.
42254         * lib/uninorm/canonical-decomposition.c: New file.
42255         * modules/uninorm/canonical-decomposition: New file.
42256
42257         Tests for module 'uninorm/decomposition'.
42258         * tests/uninorm/test-decomposition.c: New file.
42259         * modules/uninorm/decomposition-tests: New file.
42260
42261         New module 'uninorm/decomposition'.
42262         * lib/uninorm/decomposition.c: New file.
42263         * modules/uninorm/decomposition: New file.
42264
42265         New module 'uninorm/decomposition-table'.
42266         * lib/uninorm/decomposition-table.h: New file.
42267         * lib/uninorm/decomposition-table.c: New file.
42268         * lib/uninorm/decomposition-table1.h: New file, generated by
42269         gen-uni-tables.
42270         * lib/uninorm/decomposition-table2.h: New file, generated by
42271         gen-uni-tables.
42272         * modules/uninorm/decomposition-table: New file.
42273
42274         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42275         (UC_DECOMP_*): New enumeration items.
42276         (get_decomposition): New function.
42277         (struct decomp_table): New type.
42278         (output_decomposition, output_decomposition_tables): New functions.
42279         (unicode_composition_exclusions): New variable.
42280         (fill_composition_exclusions, debug_output_composition_tables): New
42281         functions.
42282         (main): Accept one more argument. Invoke fill_composition_exclusions.
42283         Output decomposition and composition tables.
42284
42285         New module 'uninorm/base'.
42286         * lib/uninorm.h: New file.
42287         * lib/unictype.h: Update comment.
42288         * modules/uninorm/base: New file.
42289
42290 2009-02-21  David Lutterkort  <lutter@redhat.com>
42291
42292         Tests for module 'safe-alloc'.
42293         * tests/test-safe-alloc.c: New file.
42294         * modules/safe-alloc-tests: New file.
42295
42296         New module 'safe-alloc'.
42297         * lib/safe-alloc.h: New file.
42298         * lib/safe-alloc.c: New file.
42299         * m4/safe-alloc.m4: New file.
42300         * modules/safe-alloc: New file.
42301         * doc/safe-alloc.texi: New file.
42302         * doc/gnulib.texi: Include it.
42303         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42304         safe-alloc.
42305
42306 2009-02-18  Bruno Haible  <bruno@clisp.org>
42307
42308         Fix link error on non-glibc systems.
42309         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42310         variable.
42311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42312
42313 2009-02-18  Jim Meyering  <meyering@redhat.com>
42314
42315         fts: avoid used-uninitialized error due to recent change
42316         * lib/fts.c (fts_read): Guard uses of the new member,
42317         parent->fts_n_dirs_remaining, since it's not relevant for
42318         the parent of a directory specified on the command-line.
42319
42320 2009-02-17  James Youngman  <jay@gnu.org>
42321             Bruno Haible  <bruno@clisp.org>
42322
42323         * m4/include_next.m4: Reformulate comment.
42324
42325 2009-02-16  Jim Meyering  <meyering@redhat.com>
42326
42327         fts: add #if guards so that the fts_lgpl module still builds
42328         * lib/fts.c: Guard just-added hash-table-using parts with
42329         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42330         Reported by Simon Josefsson.
42331
42332 2009-02-15  Bruno Haible  <bruno@clisp.org>
42333
42334         * modules/array-mergesort-tests: New file.
42335         * tests/test-array-mergesort.c: New file.
42336
42337         New module 'array-mergesort'.
42338         * modules/array-mergesort: New file.
42339         * lib/array-mergesort.h: New file.
42340
42341 2009-02-15  Bruno Haible  <bruno@clisp.org>
42342
42343         Fix 2009-02-07 commit.
42344         * lib/gen-uni-tables.c (output_predicate, output_category,
42345         output_combclass, output_bidi_category, output_decimal_digit,
42346         output_digit, output_numeric, output_mirror, output_scripts,
42347         output_ident_category, output_simple_mapping): Fix format directives.
42348         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42349
42350 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42351
42352         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42353         fixes are available from IBM.
42354
42355 2009-02-13  Jim Meyering  <meyering@redhat.com>
42356
42357         fts: arrange not to stat non-directories in more cases
42358         This makes GNU find (when it doesn't need to stat each file)
42359         *much* more efficient at traversing reiserfs file systems.
42360         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42361         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42362         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42363         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42364         (leaf_optimization_applies): New function.
42365         (LCO_hash, LCO_compare): New helper functions.
42366         (link_count_optimize_ok): New function.
42367         (fts_stat): Initialize new member (if dir).
42368         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42369         we've just stat'ed a directory.  Skip the stat call when possible.
42370         ---
42371         Note this AFS-related exchange:
42372         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42373         and note find's pioctl call in find/fstype.c.
42374         But that is necessary only if you want to enable the
42375         optimization for AFS, and for now, I don't.
42376
42377         fts: move a function definition "up" (no semantic change)
42378         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42379         "up" to precede upcoming use of a related function.
42380
42381 2009-02-11  Jim Meyering  <meyering@redhat.com>
42382
42383         fts: correct internal computation of nlinks (optimization-related)
42384         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42385         whether the current entry is a directory, so don't test it.
42386
42387 2009-02-10  Bruno Haible  <bruno@clisp.org>
42388
42389         Tests for module 'uniwbrk/ulc-wordbreaks'.
42390         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42391         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42392         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42393
42394         Tests for module 'uniwbrk/u32-wordbreaks'.
42395         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42396         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42397
42398         Tests for module 'uniwbrk/u16-wordbreaks'.
42399         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42400         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42401
42402         Tests for module 'uniwbrk/u8-wordbreaks'.
42403         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42404         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42405
42406 2009-02-10  Bruno Haible  <bruno@clisp.org>
42407
42408         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42409         property.
42410         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42411         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42412         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42413
42414 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42415
42416         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42417         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42418
42419 2009-02-10  Bruno Haible  <bruno@clisp.org>
42420
42421         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42422         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42423         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42424         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42425         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42426         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42427
42428 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42429
42430         * lib/sockets.h (gl_fd_to_handle): New function.
42431
42432         * tests/test-sockets.c: Call gl_fd_to_handle.
42433
42434 2009-02-09  Bruno Haible  <bruno@clisp.org>
42435
42436         * doc/havelib.texi: Document the conventions on bi-arch systems.
42437
42438 2009-02-08  Bruno Haible  <bruno@clisp.org>
42439
42440         Document the AC_LIB_LINKFLAGS macro.
42441         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42442         * doc/gnulib.texi: Include it.
42443
42444 2009-02-08  Bruno Haible  <bruno@clisp.org>
42445
42446         Fix wrong order of sections, compared to TOC.
42447         * doc/gnulib.texi: Include relocatable-maint.texi after the
42448         "Regular expressions" node, not before.
42449
42450 2009-02-08  Bruno Haible  <bruno@clisp.org>
42451
42452         Tests for module 'unicase/totitle'.
42453         * modules/unicase/totitle-tests: New file.
42454
42455         Tests for module 'unicase/tolower'.
42456         * modules/unicase/tolower-tests: New file.
42457
42458         Tests for module 'unicase/toupper'.
42459         * modules/unicase/toupper-tests: New file.
42460         * tests/unicase/test-mapping-part1.h: New file.
42461         * tests/unicase/test-mapping-part2.h: New file.
42462
42463         New module 'unicase/totitle'.
42464         * modules/unicase/totitle: New file.
42465         * lib/unicase/totitle.c: New file.
42466
42467         New module 'unicase/tolower'.
42468         * modules/unicase/tolower: New file.
42469         * lib/unicase/tolower.c: New file.
42470
42471         New module 'unicase/toupper'.
42472         * modules/unicase/toupper: New file.
42473         * lib/unicase/toupper.c: New file.
42474         * lib/unicase/simple-mapping.h: New file.
42475
42476         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42477         (mapping_table): New structure.
42478         (output_simple_mapping): New function.
42479         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42480         * modules/gen-uni-tables (Description): Update.
42481         * lib/unicase/toupper.h: New file, automatically generated by
42482         gen-uni-tables.
42483         * lib/unicase/tolower.h: New file, automatically generated by
42484         gen-uni-tables.
42485         * lib/unicase/totitle.h: New file, automatically generated by
42486         gen-uni-tables.
42487         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42488         gen-uni-tables.
42489         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42490         gen-uni-tables.
42491         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42492         gen-uni-tables.
42493
42494         New module 'unicase/base'.
42495         * modules/unicase/base: New file.
42496         * lib/unicase.h: New file.
42497
42498 2009-02-08  Bruno Haible  <bruno@clisp.org>
42499
42500         New module 'uniwbrk/ulc-wordbreaks'.
42501         * modules/uniwbrk/ulc-wordbreaks: New file.
42502         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42503
42504         New module 'uniwbrk/u32-wordbreaks'.
42505         * modules/uniwbrk/u32-wordbreaks: New file.
42506         * lib/uniwbrk/u32-wordbreaks.c: New file.
42507
42508         New module 'uniwbrk/u16-wordbreaks'.
42509         * modules/uniwbrk/u16-wordbreaks: New file.
42510         * lib/uniwbrk/u16-wordbreaks.c: New file.
42511
42512         New module 'uniwbrk/u8-wordbreaks'.
42513         * modules/uniwbrk/u8-wordbreaks: New file.
42514         * lib/uniwbrk/u8-wordbreaks.c: New file.
42515         * lib/uniwbrk/u-wordbreaks.h: New file.
42516
42517         New module 'uniwbrk/table'.
42518         * modules/uniwbrk/table: New file.
42519         * lib/uniwbrk/wbrktable.h: New file.
42520         * lib/uniwbrk/wbrktable.c: New file.
42521
42522         New module 'uniwbrk/wordbreak-property'.
42523         * modules/uniwbrk/wordbreak-property: New file.
42524         * lib/uniwbrk/wordbreak-property.c: New file.
42525
42526         * lib/gen-uni-tables.c (WBP_*): New enum items.
42527         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42528         (unicode_org_wbp): New variable.
42529         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42530         New functions.
42531         (wbp_table): New structure.
42532         (output_wbp, output_wbrk_tables): New functions.
42533         (main): Accept additional argument. Invoke fill_org_wbp,
42534         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42535         output_wbrk_tables.
42536         * modules/gen-uni-tables (Description): Update.
42537         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42538         gen-uni-tables.
42539
42540         New module 'uniwbrk/base'.
42541         * modules/uniwbrk/base: New file.
42542         * lib/uniwbrk.h: New file.
42543
42544 2009-02-08  Bruno Haible  <bruno@clisp.org>
42545
42546         Update to Unicode 5.1.0.
42547         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42548         U+2185..U+2188.
42549         (is_property_default_ignorable_code_point): Don't include characters
42550         of category Cc or Cs and not-a-characters.
42551         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42552         U+0D79, U+109E, U+109F, U+A60C.
42553         * lib/unictype/bidi_of.h: Regenerated.
42554         * lib/unictype/blocks.h: Regenerated.
42555         * lib/unictype/categ_C.h: Regenerated.
42556         * lib/unictype/categ_Cf.h: Regenerated.
42557         * lib/unictype/categ_Cn.h: Regenerated.
42558         * lib/unictype/categ_L.h: Regenerated.
42559         * lib/unictype/categ_Ll.h: Regenerated.
42560         * lib/unictype/categ_Lm.h: Regenerated.
42561         * lib/unictype/categ_Lo.h: Regenerated.
42562         * lib/unictype/categ_Lu.h: Regenerated.
42563         * lib/unictype/categ_M.h: Regenerated.
42564         * lib/unictype/categ_Mc.h: Regenerated.
42565         * lib/unictype/categ_Me.h: Regenerated.
42566         * lib/unictype/categ_Mn.h: Regenerated.
42567         * lib/unictype/categ_N.h: Regenerated.
42568         * lib/unictype/categ_Nd.h: Regenerated.
42569         * lib/unictype/categ_Nl.h: Regenerated.
42570         * lib/unictype/categ_No.h: Regenerated.
42571         * lib/unictype/categ_P.h: Regenerated.
42572         * lib/unictype/categ_Pd.h: Regenerated.
42573         * lib/unictype/categ_Pe.h: Regenerated.
42574         * lib/unictype/categ_Pf.h: Regenerated.
42575         * lib/unictype/categ_Pi.h: Regenerated.
42576         * lib/unictype/categ_Po.h: Regenerated.
42577         * lib/unictype/categ_Ps.h: Regenerated.
42578         * lib/unictype/categ_S.h: Regenerated.
42579         * lib/unictype/categ_Sk.h: Regenerated.
42580         * lib/unictype/categ_Sm.h: Regenerated.
42581         * lib/unictype/categ_So.h: Regenerated.
42582         * lib/unictype/categ_of.h: Regenerated.
42583         * lib/unictype/combining.h: Regenerated.
42584         * lib/unictype/ctype_alnum.h: Regenerated.
42585         * lib/unictype/ctype_alpha.h: Regenerated.
42586         * lib/unictype/ctype_graph.h: Regenerated.
42587         * lib/unictype/ctype_lower.h: Regenerated.
42588         * lib/unictype/ctype_print.h: Regenerated.
42589         * lib/unictype/ctype_punct.h: Regenerated.
42590         * lib/unictype/ctype_upper.h: Regenerated.
42591         * lib/unictype/decdigit.h: Regenerated.
42592         * lib/unictype/digit.h: Regenerated.
42593         * lib/unictype/mirror.h: Regenerated.
42594         * lib/unictype/numeric.h: Regenerated.
42595         * lib/unictype/pr_alphabetic.h: Regenerated.
42596         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42597         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42598         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42599         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42600         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42601         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42602         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42603         * lib/unictype/pr_combining.h: Regenerated.
42604         * lib/unictype/pr_dash.h: Regenerated.
42605         * lib/unictype/pr_decimal_digit.h: Regenerated.
42606         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42607         * lib/unictype/pr_deprecated.h: Regenerated.
42608         * lib/unictype/pr_diacritic.h: Regenerated.
42609         * lib/unictype/pr_extender.h: Regenerated.
42610         * lib/unictype/pr_format_control.h: Regenerated.
42611         * lib/unictype/pr_grapheme_base.h: Regenerated.
42612         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42613         * lib/unictype/pr_grapheme_link.h: Regenerated.
42614         * lib/unictype/pr_id_continue.h: Regenerated.
42615         * lib/unictype/pr_id_start.h: Regenerated.
42616         * lib/unictype/pr_ideographic.h: Regenerated.
42617         * lib/unictype/pr_ignorable_control.h: Regenerated.
42618         * lib/unictype/pr_lowercase.h: Regenerated.
42619         * lib/unictype/pr_math.h: Regenerated.
42620         * lib/unictype/pr_numeric.h: Regenerated.
42621         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42622         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42623         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42624         * lib/unictype/pr_other_id_continue.h: Regenerated.
42625         * lib/unictype/pr_other_lowercase.h: Regenerated.
42626         * lib/unictype/pr_other_math.h: Regenerated.
42627         * lib/unictype/pr_punctuation.h: Regenerated.
42628         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42629         * lib/unictype/pr_soft_dotted.h: Regenerated.
42630         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42631         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42632         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42633         * lib/unictype/pr_uppercase.h: Regenerated.
42634         * lib/unictype/pr_xid_continue.h: Regenerated.
42635         * lib/unictype/pr_xid_start.h: Regenerated.
42636         * lib/unictype/pr_zero_width.h: Regenerated.
42637         * lib/unictype/scripts.h: Regenerated.
42638         * lib/unictype/scripts_byname.gperf: Regenerated.
42639         * lib/unictype/sy_java_ident.h: Regenerated.
42640         * lib/unilbrk/lbrkprop1.h: Regenerated.
42641         * lib/unilbrk/lbrkprop2.h: Regenerated.
42642         * tests/unictype/test-categ_C.c: Regenerated.
42643         * tests/unictype/test-categ_Cf.c: Regenerated.
42644         * tests/unictype/test-categ_Cn.c: Regenerated.
42645         * tests/unictype/test-categ_L.c: Regenerated.
42646         * tests/unictype/test-categ_Ll.c: Regenerated.
42647         * tests/unictype/test-categ_Lm.c: Regenerated.
42648         * tests/unictype/test-categ_Lo.c: Regenerated.
42649         * tests/unictype/test-categ_Lu.c: Regenerated.
42650         * tests/unictype/test-categ_M.c: Regenerated.
42651         * tests/unictype/test-categ_Mc.c: Regenerated.
42652         * tests/unictype/test-categ_Me.c: Regenerated.
42653         * tests/unictype/test-categ_Mn.c: Regenerated.
42654         * tests/unictype/test-categ_N.c: Regenerated.
42655         * tests/unictype/test-categ_Nd.c: Regenerated.
42656         * tests/unictype/test-categ_Nl.c: Regenerated.
42657         * tests/unictype/test-categ_No.c: Regenerated.
42658         * tests/unictype/test-categ_P.c: Regenerated.
42659         * tests/unictype/test-categ_Pd.c: Regenerated.
42660         * tests/unictype/test-categ_Pe.c: Regenerated.
42661         * tests/unictype/test-categ_Pf.c: Regenerated.
42662         * tests/unictype/test-categ_Pi.c: Regenerated.
42663         * tests/unictype/test-categ_Po.c: Regenerated.
42664         * tests/unictype/test-categ_Ps.c: Regenerated.
42665         * tests/unictype/test-categ_S.c: Regenerated.
42666         * tests/unictype/test-categ_Sk.c: Regenerated.
42667         * tests/unictype/test-categ_Sm.c: Regenerated.
42668         * tests/unictype/test-categ_So.c: Regenerated.
42669         * tests/unictype/test-ctype_alnum.c: Regenerated.
42670         * tests/unictype/test-ctype_alpha.c: Regenerated.
42671         * tests/unictype/test-ctype_graph.c: Regenerated.
42672         * tests/unictype/test-ctype_lower.c: Regenerated.
42673         * tests/unictype/test-ctype_print.c: Regenerated.
42674         * tests/unictype/test-ctype_punct.c: Regenerated.
42675         * tests/unictype/test-ctype_upper.c: Regenerated.
42676         * tests/unictype/test-decdigit.h: Regenerated.
42677         * tests/unictype/test-digit.h: Regenerated.
42678         * tests/unictype/test-numeric.h: Regenerated.
42679         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42680         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42681         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42682         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42683         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42684         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42685         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42686         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42687         * tests/unictype/test-pr_combining.c: Regenerated.
42688         * tests/unictype/test-pr_dash.c: Regenerated.
42689         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42690         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42691         * tests/unictype/test-pr_deprecated.c: Regenerated.
42692         * tests/unictype/test-pr_diacritic.c: Regenerated.
42693         * tests/unictype/test-pr_extender.c: Regenerated.
42694         * tests/unictype/test-pr_format_control.c: Regenerated.
42695         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42696         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42697         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42698         * tests/unictype/test-pr_id_continue.c: Regenerated.
42699         * tests/unictype/test-pr_id_start.c: Regenerated.
42700         * tests/unictype/test-pr_ideographic.c: Regenerated.
42701         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42702         * tests/unictype/test-pr_lowercase.c: Regenerated.
42703         * tests/unictype/test-pr_math.c: Regenerated.
42704         * tests/unictype/test-pr_numeric.c: Regenerated.
42705         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42706         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42707         Regenerated.
42708         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42709         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42710         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42711         * tests/unictype/test-pr_other_math.c: Regenerated.
42712         * tests/unictype/test-pr_punctuation.c: Regenerated.
42713         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42714         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42715         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42716         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42717         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42718         * tests/unictype/test-pr_uppercase.c: Regenerated.
42719         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42720         * tests/unictype/test-pr_xid_start.c: Regenerated.
42721         * tests/unictype/test-pr_zero_width.c: Regenerated.
42722
42723         Update to Unicode 5.1.0.
42724         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42725         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42726         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42727         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42728         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42729         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42730         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42731         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42732         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42733         (nonspacing_table_ind): Update.
42734         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42735
42736         Update to Unicode 5.1.0.
42737         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42738         code transform.
42739         * lib/uniname/uniname.c (unicode_character_name,
42740         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42741         * lib/uniname/uninames.h: Regenerated.
42742         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42743
42744 2009-02-07  Bruno Haible  <bruno@clisp.org>
42745
42746         Merge gen-ctype and gen-lbrk into a single program.
42747         * lib/gen-uni-tables.c: New file, incorporating
42748         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42749         Add directory prefixes to the names of the generated files.
42750         * lib/unictype/gen-ctype.c: Remove file.
42751         * lib/unilbrk/gen-lbrk.c: Remove file.
42752         * modules/gen-uni-tables: New file.
42753         * modules/unictype/gen-ctype: Remove file.
42754         * modules/unilbrk/gen-lbrk: Remove file.
42755
42756 2009-02-07  Bruno Haible  <bruno@clisp.org>
42757
42758         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42759
42760         New module 'unistr/u32-strcoll'.
42761         * modules/unistr/u32-strcoll: New file.
42762         * lib/unistr/u32-strcoll.c: New file.
42763
42764         New module 'unistr/u16-strcoll'.
42765         * modules/unistr/u16-strcoll: New file.
42766         * lib/unistr/u16-strcoll.c: New file.
42767
42768         New module 'unistr/u8-strcoll'.
42769         * modules/unistr/u8-strcoll: New file.
42770         * lib/unistr/u8-strcoll.c: New file.
42771         * lib/unistr/u-strcoll.h: New file.
42772
42773 2009-02-07  Bruno Haible  <bruno@clisp.org>
42774
42775         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42776         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42777         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42778         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42779         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42780         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42781
42782 2009-02-07  Bruno Haible  <bruno@clisp.org>
42783
42784         Make 64-bit clean.
42785         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42786         output_combclass, output_bidi_category, output_decimal_digit,
42787         output_digit, output_numeric, output_mirror, output_scripts,
42788         output_ident_category): Use proper width specifier in format strings.
42789
42790 2009-02-07  Bruno Haible  <bruno@clisp.org>
42791
42792         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42793         failure behaviour.
42794
42795 2009-02-07  Jim Meyering  <meyering@redhat.com>
42796
42797         regex: avoid compilation failure with upcoming gcc-4.4
42798         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42799         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42800         "... error: integer overflow in preprocessor expression".
42801
42802 2009-02-05  Ben Pfaff  <blp@gnu.org>
42803
42804         Fix link errors on Windows when close module is used.
42805         * modules/close: Add $(LIB_CLOSE) to Link section.
42806         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42807         $(LIB_CLOSE) on Windows.
42808
42809 2009-02-05  Jim Meyering  <meyering@redhat.com>
42810
42811         still avoid unused-parameter warnings, but do it cleanly
42812         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42813         (get_fs_usage): Cast to void instead.
42814         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42815         (dev_from_mount_options, read_file_system_list): Cast to void.
42816         Prompted by Bruno Haible.
42817
42818 2009-02-04  Jim Meyering  <meyering@redhat.com>
42819
42820         fsusage.c: correct copyright year
42821         * lib/fsusage.c: Reflect year in which the change is pushed into
42822
42823         avoid misc. warnings
42824         * lib/fsusage.c (UNUSED_PARAM): Define.
42825         (get_fs_usage): Mark parameter "disk" as unused.
42826         * lib/getugroups.c (getgrent): Use "void" in prototype.
42827         * lib/mountlist.c: Mark unused parameters.
42828         (read_file_system_list): Declare a local with "const".
42829         * lib/nanosleep.c (getnow): Declare static.
42830         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42831
42832         dirfd: set errno upon failure
42833         * lib/dirfd.c: Include <errno.h>.
42834         Set errno to ENOTSUP when returning -1.
42835         * modules/dirfd (Depends-on): Add errno.
42836         Suggested by John Kodis <kodis@comcast.net>.
42837
42838 2009-02-01  Bruno Haible  <bruno@clisp.org>
42839
42840         Don't assume sizeof (long) >= sizeof (void *).
42841         * lib/memcmp.c: Include stdint.h.
42842         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42843         srcp2 to 'const byte *'.
42844         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42845         types to uintptr_t.
42846         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42847         * modules/memcmp (Depends-on): Add stdint.
42848         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42849
42850 2009-01-30  Eric Blake  <ebb9@byu.net>
42851
42852         fix more require-before-expand issues
42853         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42854         expand, AC_PROG_AWK.
42855         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42856
42857 2009-01-28  Eric Blake  <ebb9@byu.net>
42858
42859         version-etc: use consistent URL formatting
42860         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42861         Improve formatting.  Use fputs for string without %.
42862
42863 2009-01-28  Jim Meyering  <meyering@redhat.com>
42864
42865         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42866         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42867         "underquoted definition of NAME" from autoconf-2.59.
42868
42869 2009-01-28  Bruno Haible  <bruno@clisp.org>
42870
42871         * doc/gnulib.texi: Add "Obsolete modules" to index.
42872
42873 2009-01-28  Jim Meyering  <meyering@redhat.com>
42874
42875         useless-if-before-free: recognize more variants
42876         * build-aux/useless-if-before-free: Also recognize e.g.,
42877         if (NULL != p) free (p);
42878
42879 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42880
42881         test-getaddrinfo: skip (don't fail) this test when there's no network
42882         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42883         on the presumption that it means you lack network access.
42884
42885 2009-01-26  Jim Meyering  <meyering@redhat.com>
42886
42887         fflush: avoid warnings on modern systems
42888         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42889         pos and result, into scopes where they're used.
42890
42891 2009-01-26  Eric Blake  <ebb9@byu.net>
42892
42893         Silence warning reintroduced by recent extensions patch.
42894         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42895         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42896         autoconf.
42897
42898         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42899         * m4/00gnulib.m4: New file.
42900         * gnulib-tool (func_get_filelist): Always use it.
42901         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42902         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42903
42904 2009-01-25  Bruno Haible  <bruno@clisp.org>
42905
42906         Make test-quotearg work on MacOS X and AIX.
42907         * tests/test-quotearg.sh: New file.
42908         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42909         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42910         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42911         include <libintl.h>.
42912         (fake_locale): Remove variable.
42913         (gettext, dgettext, dcgettext): Remove functions.
42914         (main): Instead of setting a fake locale, set a real locale. Call
42915         textdomain and bindtextdomain.
42916         * modules/quotearg-tests (Files): Add the new files.
42917         (Depends-on): Add gettext, setenv, unsetenv.
42918         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42919         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42920         Augment TESTS_ENVIRONMENT.
42921
42922 2009-01-25  Bruno Haible  <bruno@clisp.org>
42923
42924         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42925         fr_FR.ISO8859-1 locale on MacOS X.
42926         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42927         ja_JP.eucJP locale on MacOS X.
42928         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42929         zh_CN.GB18030 locale on MacOS X.
42930
42931 2009-01-25  Bruno Haible  <bruno@clisp.org>
42932
42933         Avoid link errors on MacOS X 10.3.
42934         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42935         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42936
42937 2009-01-25  Bruno Haible  <bruno@clisp.org>
42938
42939         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42940         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42941         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42942         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42943         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42944         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42945         posix_spawnattr_init, posix_spawnattr_setsigmask,
42946         posix_spawnattr_setflags, posix_spawnattr_destroy.
42947
42948         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42949         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42950         * modules/execute (Files): Remove m4/posix_spawn.m4.
42951         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42952         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42953         posix_spawnattr_init, posix_spawnattr_setsigmask,
42954         posix_spawnattr_setflags, posix_spawnattr_destroy.
42955
42956 2009-01-25  Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/glthread/threadlib.c: Include <stdlib.h>.
42959
42960 2009-01-25  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/glthread/threadlib.c (dummy): New declaration.
42963
42964 2009-01-25  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42967         multibyte characters also for the GB18030 encoding. Don't crash when
42968         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42969
42970 2009-01-25  Bruno Haible  <bruno@clisp.org>
42971
42972         Avoid redefining 'struct random_data' on OSF/1 5.1.
42973         * lib/stdlib.in.h: Include <random.h> if it exists.
42974         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42975         HAVE_RANDOM_H. Include <random.h> when testing whether
42976         'struct random_data' exists.
42977         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42978
42979 2009-01-25  Bruno Haible  <bruno@clisp.org>
42980
42981         Don't install charset.alias on MacOS X >= 10.3.
42982         * lib/localcharset.c (DARWIN7): New macro.
42983         (get_charset_aliases): Hardcode the result for Darwin7.
42984         * modules/localcharset (install-exec-local): Don't install
42985         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42986
42987 2009-01-25  Bruno Haible  <bruno@clisp.org>
42988
42989         Don't install charset.alias on mingw and Cygwin.
42990         * modules/localcharset (install-exec-local): Don't install
42991         charset.alias on mingw and Cygwin, if the file does not yet exist.
42992         The result for these platforms is hardcoded in localcharset.c.
42993
42994 2009-01-25  Bruno Haible  <bruno@clisp.org>
42995
42996         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42997         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42998         before requiring AC_USE_SYSTEM_EXTENSIONS.
42999
43000 2009-01-25  Jim Meyering  <meyering@redhat.com>
43001
43002         c-strtod: avoid warnings
43003         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43004         "assignment discards qualifiers from pointer target type" warnings.
43005
43006 2009-01-24  Bruno Haible  <bruno@clisp.org>
43007
43008         Add support for non-UTF-8 locales on MacOS X.
43009         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43010         canonical encodings. For Darwin 7 and newer, don't map traditional
43011         encodings to UTF-8.
43012         Reported by Vincent Lefevre <vincent@vinc17.org>
43013         at <http://savannah.gnu.org/bugs/?25235>.
43014
43015 2009-01-24  Bruno Haible  <bruno@clisp.org>
43016
43017         * doc/gnulib.texi (Obsolete modules): New section.
43018         Reported by Mike Frysinger <vapier@gentoo.org>.
43019
43020 2009-01-24  Bruno Haible  <bruno@clisp.org>
43021
43022         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43023         (%.dvi): New rule.
43024
43025 2009-01-24  Bruno Haible  <bruno@clisp.org>
43026
43027         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43028         Reported by Eric Blake.
43029
43030 2009-01-24  Bruno Haible  <bruno@clisp.org>
43031
43032         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43033         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43034         Reported by Gary V. Vaughan <gary@gnu.org>.
43035
43036 2009-01-24  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43039
43040 2009-01-23  Bruno Haible  <bruno@clisp.org>
43041
43042         Make c-strtod, c-strtold usable in libraries.
43043         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43044         (C_STRTOD): Call strdup instead of xstrdup.
43045         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43046         * modules/c-strtold (Depends-on): Likewise.
43047         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43048         * NEWS: Mention the change.
43049         Reported by Michael Gold <mgold@ncf.ca>.
43050
43051 2009-01-23  Jim Meyering  <meyering@redhat.com>
43052
43053         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43054         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43055         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43056
43057 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43058
43059         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43060         GNU CoreUtils.
43061         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43062         * modules/version-etc (Description): Update.
43063
43064 2009-01-22  Bruno Haible  <bruno@clisp.org>
43065
43066         Cache the C locale object.
43067         * lib/c-strtod.c (c_locale_cache): New variable.
43068         (c_locale): New function.
43069         (C_STRTOD): Use it, and don't call freelocale.
43070         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43071         Suggested by Paolo Bonzini.
43072
43073 2009-01-21  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43076         conditions other than overflow.
43077
43078 2009-01-21  Bruno Haible  <bruno@clisp.org>
43079
43080         * lib/c-strtod.c: Include errno.h.
43081         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43082         value from STRTOD_L and STRTOD.
43083
43084 2009-01-21  Bruno Haible  <bruno@clisp.org>
43085         and Jim Meyering  <meyering@redhat.com>
43086
43087         nanosleep: skip configure test (fail it) for apple universal builds
43088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43089         universal builds, assume that nanosleep does not work.
43090         * modules/nanosleep (Depends-on): Add multiarch.
43091
43092         mktime: skip configure test (fail it) for apple universal builds
43093         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43094         universal builds, assume that mktime does not work.
43095         * modules/mktime (Depends-on): Add multiarch.
43096
43097 2009-01-21  Eric Blake  <ebb9@byu.net>
43098
43099         multiarch: avoid expand-before-require warning
43100         * modules/multiarch (configure.ac): Require, rather than expand,
43101         gl_MULTIARCH.
43102         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43103         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43104         enforce that all clients require it.  Partial reversion of
43105         2008-12-29 patch.
43106
43107         error: avoid expand-before-require warning
43108         * modules/errno (configure.ac): Require, rather than expand,
43109         gl_HEADER_ERRNO_H.
43110         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43111         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43112         enforce that all clients require it.
43113
43114         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43115         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43116         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43117         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43118
43119 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43120
43121         Revert:
43122         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43123
43124         regex: do not depend on obsolete modules.
43125         * modules/regex: Remove memcmp and memmove.
43126
43127 2009-01-20  Bruno Haible  <bruno@clisp.org>
43128
43129         Make the 'link' module link on Windows NT 4.
43130         * lib/link.c (_WIN32_WINNT): Don't define.
43131         (CreateHardLinkFuncType): New type.
43132         (CreateHardLinkFunc, initialized): New variables.
43133         (initialize): New function.
43134         (link): Invoke CreateHardLink indirectly through the function pointer.
43135
43136 2009-01-20  Bruno Haible  <bruno@clisp.org>
43137
43138         Fix compilation failure on mingw.
43139         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43140
43141 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43142
43143         * doc/c-strtod.texi: Mention a couple of restrictions.
43144
43145 2009-01-20  Jim Meyering  <meyering@redhat.com>
43146
43147         gettimeofday: move more declarations out of functions
43148         * lib/gettimeofday.c: Move extern declarations of tzset and
43149         gmtime out of containing functions.  Prompted by Bruno Haible.
43150
43151 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43152
43153         regex: do not depend on obsolete modules.
43154         * modules/regex: Remove memcmp and memmove.
43155
43156 2009-01-19  Bruno Haible  <bruno@clisp.org>
43157
43158         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43159         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43160         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43161         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43162         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43163
43164 2009-01-19  Bruno Haible  <bruno@clisp.org>
43165
43166         * tests/test-link.c: Include <errno.h>.
43167         (main): Exit with code 77 when a hard link cannot be created due to
43168         the file system.
43169         * tests/test-link.sh: Skip test when a hard link cannot be created due
43170         to the file system.
43171         Suggested by Eric Blake.
43172
43173 2009-01-19  Martin Lambers  <marlam@marlam.de>
43174
43175         * modules/link-tests: New file.
43176         * tests/test-link.sh: New file.
43177         * tests/test-link.c: New file.
43178
43179 2009-01-19  Eric Blake  <ebb9@byu.net>
43180
43181         doc: mention another function added in cygwin 1.7.0
43182         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43183         Another new function in cygwin 1.7.
43184
43185 2009-01-19  Bruno Haible  <bruno@clisp.org>
43186
43187         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43188         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43189         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43190         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43191         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43192         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43193         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43194         * m4/md4.m4 (gl_MD4): Likewise.
43195         * m4/md5.m4 (gl_MD5): Likewise.
43196         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43197         * m4/sha1.m4 (gl_SHA1): Likewise.
43198         * m4/sha256.m4 (gl_SHA256): Likewise.
43199         * m4/sha512.m4 (gl_SHA512): Likewise.
43200
43201 2009-01-19  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/uniname/uniname-tests (Depends-on): Add progname.
43204         * tests/uniname/test-uninames.c: Include progname.h.
43205         (main): Call set_program_name.
43206
43207         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43208         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43209         (main): Call set_program_name.
43210
43211         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43212         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43213         (main): Call set_program_name.
43214
43215         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43216         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43217         (main): Call set_program_name.
43218
43219         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43220         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43221         (main): Call set_program_name.
43222
43223         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43224         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43225         (main): Call set_program_name.
43226
43227         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43228         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43229         (main): Call set_program_name.
43230
43231         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43232         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43233         (main): Call set_program_name.
43234
43235         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43236         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43237         (main): Call set_program_name.
43238
43239 2009-01-19  Eric Blake  <ebb9@byu.net>
43240
43241         test-unistd: test previous patch
43242         * tests/test-unistd.c: Test *_FILENO macros.
43243
43244         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43245         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43246         Guarantee a definition.
43247         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43248         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43249         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43250         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43251         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43252         Likewise.
43253         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43254         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43255         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43256         Likewise.
43257         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43258         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43259         (STDERR_FILENO): Likewise.
43260         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43261         (STDERR_FILENO): Likewise.
43262         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43263         (STDERR_FILENO): Likewise.
43264         Reported by Elbert Pol.
43265
43266 2009-01-19  Eric Blake  <ebb9@byu.net>
43267
43268         doc: mention more functions added in cygwin 1.7.0
43269         * doc/posix-functions/abort.texi (abort): Update wording related
43270         to cygwin.
43271         * doc/posix-functions/daylight.texi (daylight): Likewise.
43272         * doc/posix-functions/optarg.texi (optarg): Likewise.
43273         * doc/posix-functions/optarg.texi (opterr): Likewise.
43274         * doc/posix-functions/optarg.texi (optind): Likewise.
43275         * doc/posix-functions/optarg.texi (optopt): Likewise.
43276         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43277         worked in 1.5.x, and was withdrawn in 1.7.
43278         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43279         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43280         cygwin versions.
43281         * doc/posix-functions/perror.texi (perror): Likewise.
43282         * doc/posix-functions/printf.texi (printf): Likewise.
43283         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43284         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43285         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43286         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43287         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43288         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43289         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43290         Likewise.
43291         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43292         Likewise.
43293         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43294         this function.
43295         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43296         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43297         Likewise.
43298         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43299         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43300         * doc/posix-functions/confstr.texi (confstr): Likewise.
43301         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43302         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43303         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43304         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43305         * doc/posix-functions/fputws.texi (fputws): Likewise.
43306         * doc/posix-functions/fwide.texi (fwide): Likewise.
43307         * doc/posix-functions/getwc.texi (getwc): Likewise.
43308         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43309         * doc/posix-functions/putwc.texi (putwc): Likewise.
43310         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43311         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43312         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43313         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43314         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43315         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43316         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43317         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43318         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43319         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43320         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43321
43322 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43323
43324         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43325         * lib/ioctl.c: Include <sys/ioctl.h>.
43326
43327 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43328
43329         * modules/getdate-tests (Depends-on): Add progname.
43330         * tests/test-getdate.c: Use progname module, to avoid link errors
43331         on non-glibc systems.
43332
43333 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43334
43335         * modules/filenamecat-tests (Depends-on): Add progname.
43336         * modules/fstrcmp-tests (Depends-on): Likewise.
43337
43338         * tests/test-filenamecat.c: Use progname module, to avoid link
43339         errors on non-glibc systems.
43340         * tests/test-fstrcmp.c: Likewise.
43341
43342 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43343
43344         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43345         * lib/gettimeofday.c: Move extern declaration out of function.
43346
43347 2009-01-18  Bruno Haible  <bruno@clisp.org>
43348
43349         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43350         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43351         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43352
43353 2009-01-18  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/strftime.c (MEMPCPY): Remove unused macro.
43356         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43357
43358 2009-01-18  Martin Lambers  <marlam@marlam.de>
43359
43360         New module 'link'.
43361         * lib/unistd.in.h (link): New declaration.
43362         * lib/link.c: New file.
43363         * m4/link.m4: New file.
43364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43365         HAVE_LINK.
43366         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43367         * modules/link: New file.
43368         * doc/posix-functions/link.texi: Mention the new module.
43369
43370 2009-01-18  Bruno Haible  <bruno@clisp.org>
43371
43372         * tests/test-avltree_list.c (main): Call set_program_name.
43373         * tests/test-avltree_oset.c (main): Likewise.
43374         * tests/test-obstack-printf.c: Include progname.h.
43375         (main): Call set_program_name.
43376         * tests/test-quotearg.c: Include progname.h.
43377         (main): Call set_program_name.
43378         * tests/test-xmemdup0.c: Include progname.h.
43379         (main): Call set_program_name.
43380
43381 2009-01-18  Bruno Haible  <bruno@clisp.org>
43382
43383         New module 'alphasort'.
43384         * lib/dirent.in.h (alphasort): New declaration.
43385         * lib/alphasort.c: New file, from glibc with modifications.
43386         * m4/alphasort.m4: New file.
43387         * modules/alphasort: New file.
43388         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43389         HAVE_ALPHASORT.
43390         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43391         HAVE_ALPHASORT.
43392         * doc/posix-functions/alphasort.texi: Mention the new module and the
43393         portability problems.
43394
43395 2009-01-18  Bruno Haible  <bruno@clisp.org>
43396
43397         New module 'scandir'.
43398         * lib/dirent.in.h (scandir): New declaration.
43399         * lib/scandir.c: New file, from glibc with modifications.
43400         * m4/scandir.m4: New file.
43401         * modules/scandir: New file.
43402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43403         HAVE_SCANDIR.
43404         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43405         HAVE_SCANDIR.
43406         * doc/posix-functions/scandir.texi: Mention the new module and the
43407         portability problems.
43408
43409 2009-01-17  Bruno Haible  <bruno@clisp.org>
43410
43411         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43412         Update documentation.
43413         (func_remove_suffix): Escape all dots in the suffix. Update
43414         documentation.
43415         (func_filter_filelist): Update documentation.
43416         Reported by Ralf Wildenhues.
43417
43418 2009-01-17  Bruno Haible  <bruno@clisp.org>
43419
43420         * modules/dprintf-posix-tests: New file.
43421         * tests/test-dprintf-posix.sh: New file.
43422         * tests/test-dprintf-posix.c: New file.
43423
43424         New modules 'dprintf', 'dprintf-posix'.
43425         * lib/stdio.in.h (dprintf): New declaration.
43426         * lib/dprintf.c: New file.
43427         * m4/dprintf.m4: New file.
43428         * m4/dprintf-posix.m4: New file.
43429         * modules/dprintf: New file.
43430         * modules/dprintf-posix: New file.
43431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43432         HAVE_DPRINTF, REPLACE_DPRINTF.
43433         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43434         HAVE_DPRINTF, REPLACE_DPRINTF.
43435         * doc/posix-functions/dprintf.texi: Mention the new modules.
43436
43437 2009-01-17  Bruno Haible  <bruno@clisp.org>
43438
43439         * modules/vdprintf-posix-tests: New file.
43440         * tests/test-vdprintf-posix.sh: New file.
43441         * tests/test-vdprintf-posix.c: New file.
43442
43443         New modules 'vdprintf', 'vdprintf-posix'.
43444         * lib/stdio.in.h (vdprintf): New declaration.
43445         * lib/vdprintf.c: New file.
43446         * m4/vdprintf.m4: New file.
43447         * m4/vdprintf-posix.m4: New file.
43448         * modules/vdprintf: New file.
43449         * modules/vdprintf-posix: New file.
43450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43451         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43452         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43453         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43454         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43455
43456 2009-01-17  Bruno Haible  <bruno@clisp.org>
43457
43458         Fix replacement of fopen on mingw.
43459         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43460         mingw.
43461
43462 2009-01-17  Bruno Haible  <bruno@clisp.org>
43463
43464         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43465         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43466
43467 2009-01-17  Bruno Haible  <bruno@clisp.org>
43468
43469         Avoid test-fflush2.sh failure on mingw.
43470         * tests/test-fflush2.c: Include binary-io.h.
43471         (main): Put standard input into binary mode.
43472         * modules/fflush-tests (Depends-on): Add binary-io.
43473
43474 2009-01-17  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/wchar.in.h: In another particular situation, include only the
43477         system's <wchar.h> file.
43478         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43479         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43480         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43481
43482 2009-01-17  Bruno Haible  <bruno@clisp.org>
43483
43484         Support for stripping executables in --enable-relocatable.
43485         * build-aux/install-reloc: Expect one more argument, or an environment
43486         variable RELOC_STRIP_PROG. If set, strip the destination program and
43487         its wrapper.
43488         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43489         RELOC_STRIP_PROG.
43490         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43491         to set RELOCATABLE_STRIP.
43492         * NEWS: Mention the new Makefile requirement.
43493
43494 2009-01-17  Bruno Haible  <bruno@clisp.org>
43495
43496         * build-aux/install-reloc: Remove debugging information left over by
43497         C compiler on MacOS X.
43498
43499 2009-01-17  Bruno Haible  <bruno@clisp.org>
43500
43501         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43502         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43503         _NSGetExecutablePath.
43504
43505 2009-01-16  Jim Meyering  <meyering@redhat.com>
43506
43507         strerror: avoid warnings about discarding "const"
43508         * lib/strerror.c (rpl_strerror): Instead of returning a const
43509         string from each and every "case", use a variable, and add a single
43510         cast after the switch.
43511
43512 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43513
43514         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43515
43516 2009-01-16  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43519         array initializer syntax that also works in C++ mode.
43520         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43521
43522 2009-01-16  Jim Meyering  <meyering@redhat.com>
43523
43524         poll: suppress a warning
43525         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43526         to ignore "...unsigned expression < 0 is always false" warnings.
43527
43528 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43529
43530         poll: remove declarations of unused variables
43531         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43532         sockbuf and optlen.
43533
43534 2009-01-15  Bruno Haible  <bruno@clisp.org>
43535
43536         Make fflush-after-ungetc POSIX compliant on BSD systems.
43537         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43538         (clear_ungetc_buffer): Implement also for other systems.
43539         (rpl_fflush): On glibc systems, invoke
43540         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43541         clear_ungetc_buffer after fetching the stream's position, not before.
43542
43543 2009-01-15  Bruno Haible  <bruno@clisp.org>
43544
43545         Make fflush-after-ungetc POSIX compliant on glibc systems.
43546         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43547         after ungetc.
43548         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43549         (rpl_fflush): On glibc systems, simply call the system's fflush
43550         function after clearing the ungetc buffer.
43551         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43552         Instead, lseek only to the end of file, then use the system's fseeko
43553         for the rest. On glibc systems, reset the EOF indicator bit.
43554
43555 2009-01-15  Jim Meyering  <meyering@redhat.com>
43556
43557         openmp.m4: revert quote-adding change, for portability to older autoconf
43558         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43559         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43560         Simon Josefsson noticed the problem when using autoconf-2.61.
43561
43562 2009-01-15  Bruno Haible  <bruno@clisp.org>
43563
43564         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43565         * tests/test-fflush2.c (ASSERT): Always fail.
43566         (main): Add two tests for fflush() after ungetc(), taking into account
43567         the Austin Group's clarification.
43568         Suggested by Eric Blake.
43569
43570 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43571
43572         mktime.m4: remove K&R-style function prototypes
43573         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43574         for the Sun C++ compiler.
43575
43576 2009-01-14  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43579         while including <wchar.h>.
43580         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43581         the system's <wchar.h> file.
43582         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43583
43584 2009-01-14  Bruno Haible  <bruno@clisp.org>
43585
43586         * m4/csharp.m4: Don't mention gettext on the serial number line.
43587         * m4/csharpexec.m4: Likewise.
43588         * m4/eaccess.m4: Likewise.
43589         * m4/javaexec.m4: Likewise.
43590         * m4/sig_atomic_t.m4: Likewise.
43591         * m4/tmpdir.m4: Likewise.
43592         * m4/intldir.m4: Bump gettext version.
43593         * m4/lib-ld.m4: Likewise.
43594
43595 2009-01-14  Bruno Haible  <bruno@clisp.org>
43596
43597         * lib/progname.c (set_program_name): Add more comments.
43598         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43599
43600 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43601
43602         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43603         were sys/stat.h does not define it.
43604
43605 2009-01-14  Jim Meyering  <meyering@redhat.com>
43606
43607         many *.m4 files: improve m4 quoting
43608         99% of this change was performed by running the following commands:
43609         git ls-files | grep '\.m4$' | xargs perl -pi \
43610           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43611           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43612           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43613           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43614         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43615         The remainder were to add Copyright dates, increment serial numbers,
43616         undo some changes in comments, exclude m4/intl.m4, and add quotes
43617         around the "1" in ",1" where the unusual spacing prohibited the
43618         above regexps from doing the job.  For more details, see
43619         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43620         * m4/acl.m4: Modified.
43621         * m4/afs.m4: Likewise.
43622         * m4/alloca.m4: Likewise.
43623         * m4/argp.m4: Likewise.
43624         * m4/argz.m4: Likewise.
43625         * m4/atexit.m4: Likewise.
43626         * m4/bison-i18n.m4: Likewise.
43627         * m4/bison.m4: Likewise.
43628         * m4/byteswap.m4: Likewise.
43629         * m4/c-stack.m4: Likewise.
43630         * m4/c-strtod.m4: Likewise.
43631         * m4/calloc.m4: Likewise.
43632         * m4/canonicalize-lgpl.m4: Likewise.
43633         * m4/chown.m4: Likewise.
43634         * m4/clock_time.m4: Likewise.
43635         * m4/codeset.m4: Likewise.
43636         * m4/copy-file.m4: Likewise.
43637         * m4/csharp.m4: Likewise.
43638         * m4/csharpcomp.m4: Likewise.
43639         * m4/csharpexec.m4: Likewise.
43640         * m4/d-ino.m4: Likewise.
43641         * m4/d-type.m4: Likewise.
43642         * m4/dirfd.m4: Likewise.
43643         * m4/double-slash-root.m4: Likewise.
43644         * m4/eaccess.m4: Likewise.
43645         * m4/eealloc.m4: Likewise.
43646         * m4/environ.m4: Likewise.
43647         * m4/errno_h.m4: Likewise.
43648         * m4/euidaccess.m4: Likewise.
43649         * m4/execute.m4: Likewise.
43650         * m4/fatal-signal.m4: Likewise.
43651         * m4/fchdir.m4: Likewise.
43652         * m4/fcntl_h.m4: Likewise.
43653         * m4/fileblocks.m4: Likewise.
43654         * m4/filenamecat.m4: Likewise.
43655         * m4/findprog.m4: Likewise.
43656         * m4/flexmember.m4: Likewise.
43657         * m4/fnmatch.m4: Likewise.
43658         * m4/fopen.m4: Likewise.
43659         * m4/fpending.m4: Likewise.
43660         * m4/fprintf-posix.m4: Likewise.
43661         * m4/free.m4: Likewise.
43662         * m4/frexp.m4: Likewise.
43663         * m4/frexpl.m4: Likewise.
43664         * m4/fsusage.m4: Likewise.
43665         * m4/ftruncate.m4: Likewise.
43666         * m4/gc-camellia.m4: Likewise.
43667         * m4/gc-random.m4: Likewise.
43668         * m4/gc.m4: Likewise.
43669         * m4/getaddrinfo.m4: Likewise.
43670         * m4/getcwd-abort-bug.m4: Likewise.
43671         * m4/getcwd-path-max.m4: Likewise.
43672         * m4/getdate.m4: Likewise.
43673         * m4/getdomainname.m4: Likewise.
43674         * m4/getgroups.m4: Likewise.
43675         * m4/gethostname.m4: Likewise.
43676         * m4/gethrxtime.m4: Likewise.
43677         * m4/getline.m4: Likewise.
43678         * m4/getloadavg.m4: Likewise.
43679         * m4/getndelim2.m4: Likewise.
43680         * m4/getpass.m4: Likewise.
43681         * m4/gettext.m4: Likewise.
43682         * m4/gettime.m4: Likewise.
43683         * m4/gettimeofday.m4: Likewise.
43684         * m4/gnulib-common.m4: Likewise.
43685         * m4/group-member.m4: Likewise.
43686         * m4/host-os.m4: Likewise.
43687         * m4/iconv.m4: Likewise.
43688         * m4/iconv_open.m4: Likewise.
43689         * m4/inet_ntop.m4: Likewise.
43690         * m4/inet_pton.m4: Likewise.
43691         * m4/inline.m4: Likewise.
43692         * m4/intldir.m4: Likewise.
43693         * m4/intlmacosx.m4: Likewise.
43694         * m4/intmax.m4: Likewise.
43695         * m4/intmax_t.m4: Likewise.
43696         * m4/inttypes.m4: Likewise.
43697         * m4/inttypes_h.m4: Likewise.
43698         * m4/inttypes-pri.m4: Likewise.
43699         * m4/isapipe.m4: Likewise.
43700         * m4/isnand.m4: Likewise.
43701         * m4/isnanf.m4: Likewise.
43702         * m4/isnanl.m4: Likewise.
43703         * m4/javacomp.m4: Likewise.
43704         * m4/javaexec.m4: Likewise.
43705         * m4/jm-winsz1.m4: Likewise.
43706         * m4/jm-winsz2.m4: Likewise.
43707         * m4/lchown.m4: Likewise.
43708         * m4/lcmessage.m4: Likewise.
43709         * m4/ldexpl.m4: Likewise.
43710         * m4/lib-ld.m4: Likewise.
43711         * m4/lib-link.m4: Likewise.
43712         * m4/libsigsegv.m4: Likewise.
43713         * m4/link-follow.m4: Likewise.
43714         * m4/localcharset.m4: Likewise.
43715         * m4/locale-fr.m4: Likewise.
43716         * m4/locale-ja.m4: Likewise.
43717         * m4/locale-tr.m4: Likewise.
43718         * m4/locale-zh.m4: Likewise.
43719         * m4/lock.m4: Likewise.
43720         * m4/longlong.m4: Likewise.
43721         * m4/ls-mntd-fs.m4: Likewise.
43722         * m4/lstat.m4: Likewise.
43723         * m4/malloc.m4: Likewise.
43724         * m4/mathl.m4: Likewise.
43725         * m4/mbrtowc.m4: Likewise.
43726         * m4/mbstate_t.m4: Likewise.
43727         * m4/mbswidth.m4: Likewise.
43728         * m4/memchr.m4: Likewise.
43729         * m4/memcmp.m4: Likewise.
43730         * m4/memcpy.m4: Likewise.
43731         * m4/memmem.m4: Likewise.
43732         * m4/memmove.m4: Likewise.
43733         * m4/mempcpy.m4: Likewise.
43734         * m4/memrchr.m4: Likewise.
43735         * m4/memset.m4: Likewise.
43736         * m4/minmax.m4: Likewise.
43737         * m4/mkdir-slash.m4: Likewise.
43738         * m4/mkdtemp.m4: Likewise.
43739         * m4/mktime.m4: Likewise.
43740         * m4/mmap-anon.m4: Likewise.
43741         * m4/mountlist.m4: Likewise.
43742         * m4/nanosleep.m4: Likewise.
43743         * m4/nls.m4: Likewise.
43744         * m4/nocrash.m4: Likewise.
43745         * m4/open.m4: Likewise.
43746         * m4/openat.m4: Likewise.
43747         * m4/openmp.m4: Likewise.
43748         * m4/pathmax.m4: Likewise.
43749         * m4/perl.m4: Likewise.
43750         * m4/physmem.m4: Likewise.
43751         * m4/pipe.m4: Likewise.
43752         * m4/po.m4: Likewise.
43753         * m4/poll.m4: Likewise.
43754         * m4/posixtm.m4: Likewise.
43755         * m4/posixver.m4: Likewise.
43756         * m4/printf-frexp.m4: Likewise.
43757         * m4/printf-frexpl.m4: Likewise.
43758         * m4/printf-posix.m4: Likewise.
43759         * m4/printf-posix-rpl.m4: Likewise.
43760         * m4/printf.m4: Likewise.
43761         * m4/progtest.m4: Likewise.
43762         * m4/putenv.m4: Likewise.
43763         * m4/readline.m4: Likewise.
43764         * m4/readlink.m4: Likewise.
43765         * m4/readutmp.m4: Likewise.
43766         * m4/realloc.m4: Likewise.
43767         * m4/regex.m4: Likewise.
43768         * m4/relocatable.m4: Likewise.
43769         * m4/relocatable-lib.m4: Likewise.
43770         * m4/rename-dest-slash.m4: Likewise.
43771         * m4/rename.m4: Likewise.
43772         * m4/rmdir-errno.m4: Likewise.
43773         * m4/rmdir.m4: Likewise.
43774         * m4/roundf.m4: Likewise.
43775         * m4/roundl.m4: Likewise.
43776         * m4/rpmatch.m4: Likewise.
43777         * m4/save-cwd.m4: Likewise.
43778         * m4/selinux-selinux-h.m4: Likewise.
43779         * m4/setenv.m4: Likewise.
43780         * m4/settime.m4: Likewise.
43781         * m4/sig2str.m4: Likewise.
43782         * m4/sig_atomic_t.m4: Likewise.
43783         * m4/signalblocking.m4: Likewise.
43784         * m4/signbit.m4: Likewise.
43785         * m4/sigpipe.m4: Likewise.
43786         * m4/sockets.m4: Likewise.
43787         * m4/sockpfaf.m4: Likewise.
43788         * m4/st_dm_mode.m4: Likewise.
43789         * m4/stat-time.m4: Likewise.
43790         * m4/stdbool.m4: Likewise.
43791         * m4/stdint.m4: Likewise.
43792         * m4/stdint_h.m4: Likewise.
43793         * m4/stpcpy.m4: Likewise.
43794         * m4/stpncpy.m4: Likewise.
43795         * m4/strcase.m4: Likewise.
43796         * m4/strchrnul.m4: Likewise.
43797         * m4/strcspn.m4: Likewise.
43798         * m4/strdup.m4: Likewise.
43799         * m4/strftime.m4: Likewise.
43800         * m4/strndup.m4: Likewise.
43801         * m4/strnlen.m4: Likewise.
43802         * m4/strpbrk.m4: Likewise.
43803         * m4/strptime.m4: Likewise.
43804         * m4/strsep.m4: Likewise.
43805         * m4/strtod.m4: Likewise.
43806         * m4/strtoimax.m4: Likewise.
43807         * m4/strtok_r.m4: Likewise.
43808         * m4/strtol.m4: Likewise.
43809         * m4/strtoll.m4: Likewise.
43810         * m4/strtoul.m4: Likewise.
43811         * m4/strtoull.m4: Likewise.
43812         * m4/strtoumax.m4: Likewise.
43813         * m4/strverscmp.m4: Likewise.
43814         * m4/threadlib.m4: Likewise.
43815         * m4/timegm.m4: Likewise.
43816         * m4/tm_gmtoff.m4: Likewise.
43817         * m4/tmpdir.m4: Likewise.
43818         * m4/tmpfile.m4: Likewise.
43819         * m4/tzset.m4: Likewise.
43820         * m4/uintmax_t.m4: Likewise.
43821         * m4/unlinkdir.m4: Likewise.
43822         * m4/unlocked-io.m4: Likewise.
43823         * m4/uptime.m4: Likewise.
43824         * m4/userspec.m4: Likewise.
43825         * m4/utimbuf.m4: Likewise.
43826         * m4/utime.m4: Likewise.
43827         * m4/utimes-null.m4: Likewise.
43828         * m4/utimes.m4: Likewise.
43829         * m4/vararrays.m4: Likewise.
43830         * m4/vasnprintf.m4: Likewise.
43831         * m4/vfprintf-posix.m4: Likewise.
43832         * m4/vprintf-posix.m4: Likewise.
43833         * m4/wait-process.m4: Likewise.
43834         * m4/wchar_t.m4: Likewise.
43835         * m4/wint_t.m4: Likewise.
43836         * m4/write-any-file.m4: Likewise.
43837         * m4/yield.m4: Likewise.
43838
43839 2009-01-13  Bruno Haible  <bruno@clisp.org>
43840
43841         Avoid test-copy-file.sh failures when ACL support insufficient.
43842         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43843         TESTS_ENVIRONMENT.
43844         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43845         Reported by Jim Meyering.
43846
43847 2009-01-13  Bruno Haible  <bruno@clisp.org>
43848
43849         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43850         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43851         * modules/unistdio/u8-printf-parse (Files): Likewise.
43852         * modules/unistdio/u32-printf-parse (Files): Likewise.
43853         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43854
43855 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43856
43857         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43858         and m4/inttypes_h.m4 too.
43859
43860 2009-01-12  Eric Blake  <ebb9@byu.net>
43861
43862         tests: IRIX 6.2 cc can't compile -0.0 into .data
43863         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43864         rather than at compile-time.
43865         * tests/test-floorl.c (minus_zero): Likewise.
43866         * tests/test-frexpl.c (minus_zero): Likewise.
43867         * tests/test-isnan.c (minus_zerol): Likewise.
43868         * tests/test-isnanl.h (minus_zero): Likewise.
43869         * tests/test-ldexpl.c (minus_zero): Likewise.
43870         * tests/test-roundl.c (minus_zero): Likewise.
43871         * tests/test-signbit.c (minus_zerol): Likewise.
43872         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43873         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43874         * tests/test-truncl.c (minus_zero): Likewise.
43875         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43876         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43877         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43878
43879 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43880
43881         regex: fix glibc bug 9697
43882         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43883         handling.
43884
43885 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43886
43887         regex: fix glibc bug 697
43888         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43889         being NULL also if there are no backreferences.
43890
43891 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43892
43893         regex: merge glibc changes
43894         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43895         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43896         re_string_skip_chars, re_string_reconstruct): Likewise.
43897         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43898
43899 2009-01-07  Jim Meyering  <meyering@redhat.com>
43900
43901         poll: filter through cppi
43902         * lib/poll.c: Indent cpp directives to reflect nesting.
43903
43904 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43905
43906         poll: don't return uninitialized
43907         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43908
43909 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43910
43911         avoid compile failure on AIX 6.1
43912         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43913         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43914
43915 2009-01-04  Jim Meyering  <meyering@redhat.com>
43916
43917         remove duplicate inclusion of <stdio.h>
43918         * tests/test-fprintf-posix.c: Likewise.
43919         * tests/test-printf-posix.c: Likewise.
43920         * tests/test-snprintf-posix.c: Likewise.
43921         * tests/test-sprintf-posix.c: Likewise.
43922         * tests/test-vasprintf-posix.c: Likewise.
43923         * tests/test-vfprintf-posix.c: Likewise.
43924         * tests/test-vprintf-posix.c: Likewise.
43925         * tests/test-vsnprintf-posix.c: Likewise.
43926         * tests/test-vsprintf-posix.c: Likewise.
43927
43928 2009-01-03  Jim Meyering  <meyering@redhat.com>
43929
43930         gnulib-tool: fix sed-based filtering
43931         * gnulib-tool (func_filter_filelist): Remove extra backslash
43932         in sed_fff_filter definition.
43933
43934 2009-01-02  Jim Meyering  <meyering@redhat.com>
43935
43936         strftime: avoid compilation failure on Solaris 2.6
43937         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43938         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43939         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43940         be available.  Reported by Tom G. Christensen.  Details in
43941         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43942
43943 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43944             Bruno Haible  <bruno@clisp.org>
43945
43946         Speed up gnulib-tool by doing more string processing through shell
43947         built-ins.
43948         * gnulib-tool (fast_func_append): New variable.
43949         (func_remove_prefix, func_remove_suffix): New functions.
43950         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43951         (func_filter_filelist): New function.
43952         (func_get_dependencies): Use func_remove_suffix instead of sed.
43953         (func_get_automake_snippet): Use func_filter_filelist instead of a
43954         subshell and sed invocation.
43955
43956 2009-01-01  Bruno Haible  <bruno@clisp.org>
43957
43958         Fix a security bug.
43959         * gnulib-tool (func_import, import, update): Don't allow the characters
43960         '"', '$', '`', '\' in macro arguments that become part of commands that
43961         are evaluated.
43962
43963 2009-01-01  Bruno Haible  <bruno@clisp.org>
43964
43965         * gnulib-tool (func_reset_sigpipe): Add more comments.
43966
43967 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43968
43969         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43970         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43971         already know the answer.
43972
43973 2009-01-01  Jim Meyering  <meyering@redhat.com>
43974
43975         * lib/version-etc.c (version_etc_va): Update copyright year.
43976
43977 2008-12-30  Bruno Haible  <bruno@clisp.org>
43978
43979         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43980         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43981         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43982
43983 2008-12-29  Eric Blake  <ebb9@byu.net>
43984
43985         multiarch: avoid autoconf AC_REQUIRE bug
43986         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43987         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43988         2.63 and older.
43989         Reported by Bruno Haible, and analyzed in
43990         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43991
43992 2008-12-29  Bruno Haible  <bruno@clisp.org>
43993
43994         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43995         files in subdirectories correctly.
43996         Reported by Ralf Wildenhues.
43997
43998 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43999
44000         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44001         rather than 'join FILE -', for Solaris join.
44002
44003 2008-12-29  Bruno Haible  <bruno@clisp.org>
44004
44005         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44006         quoting.
44007         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44008         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44009         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44010         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44011         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44012         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44013         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44014         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44015         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44016         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44017         * m4/nls.m4 (AM_NLS): Likewise.
44018         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44019         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44020         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44021         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44022         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44023         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44024         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44025         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44026         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44027         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44028         * m4/xsize.m4 (gl_XSIZE): Likewise.
44029         Suggested by Jim Meyering.
44030
44031 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44032
44033         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44034         * lib/parse-duration.c: use a switch instead of cascading if's.
44035
44036 2008-12-29  Eric Blake  <ebb9@byu.net>
44037
44038         wchar.h: supply WEOF on Irix 5.3
44039         * lib/wchar.in.h (wint_t): Also supply WEOF.
44040         * lib/wctype.in.h (wint_t): Likewise.
44041         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44042         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44043         Reported by Tom G. Christensen.
44044
44045 2008-12-26  Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44048         i486, i586, i686.
44049
44050 2008-12-26  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44053
44054 2008-12-26  Bruno Haible  <bruno@clisp.org>
44055
44056         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44057         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44058         not __STDC_CONSTANT_MACROS.
44059         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44060
44061 2008-12-25  Bruno Haible  <bruno@clisp.org>
44062
44063         Add support for universal builds to vasnprintf.
44064         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44065         universal builds, guess no.
44066         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44067         * modules/vasprintf-posix (Depends-on): Likewise.
44068         * modules/fprintf-posix (Depends-on): Likewise.
44069         * modules/vfprintf-posix (Depends-on): Likewise.
44070         * modules/snprintf-posix (Depends-on): Likewise.
44071         * modules/vsnprintf-posix (Depends-on): Likewise.
44072         * modules/sprintf-posix (Depends-on): Likewise.
44073         * modules/vsprintf-posix (Depends-on): Likewise.
44074         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44075         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44076         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44077         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44078         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44080         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44081
44082         Add support for universal builds to <inttypes.h>.
44083         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44084         _SCNu64_PREFIX): In Apple
44085         universal builds, define directly, using _LP64.
44086         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44087         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44088         * modules/inttypes (Depends-on): Add multiarch.
44089         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44090
44091         Add support for universal builds to <stdint.h>.
44092         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44093         universal builds, define directly, using _LP64.
44094         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44095         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44096         and size_t.
44097         * modules/stdint (Depends-on): Add multiarch.
44098         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44099
44100         New module 'multiarch'.
44101         * modules/multiarch: New file.
44102         * m4/multiarch.m4: New file.
44103
44104 2008-12-25  Bruno Haible  <bruno@clisp.org>
44105
44106         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44107
44108 2008-12-25  Bruno Haible  <bruno@clisp.org>
44109
44110         * modules/btowc (License): Relicense under LGPLv2+.
44111         * modules/mbsinit (License): Likewise.
44112         * modules/mbrtowc (License): Likewise.
44113         * modules/wcrtomb (License): Likewise.
44114         * modules/streq (License): Likewise.
44115         Reported by David Lutterkort <lutter@redhat.com>.
44116
44117 2008-12-23  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44120
44121 2008-12-23  Bruno Haible  <bruno@clisp.org>
44122
44123         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44125         GETADDRINFO_LIB, not in LIBS.
44126         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44127         * modules/canon-host (Link): Likewise.
44128         * NEWS: Mention the change.
44129         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44130         GETADDRINFO_LIB.
44131
44132 2008-12-22  Bruno Haible  <bruno@clisp.org>
44133
44134         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44135         * doc/posix-functions/iswalpha_l.texi: Likewise.
44136         * doc/posix-functions/iswblank_l.texi: Likewise.
44137         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44138         * doc/posix-functions/iswctype_l.texi: Likewise.
44139         * doc/posix-functions/iswdigit_l.texi: Likewise.
44140         * doc/posix-functions/iswgraph_l.texi: Likewise.
44141         * doc/posix-functions/iswlower_l.texi: Likewise.
44142         * doc/posix-functions/iswprint_l.texi: Likewise.
44143         * doc/posix-functions/iswpunct_l.texi: Likewise.
44144         * doc/posix-functions/iswspace_l.texi: Likewise.
44145         * doc/posix-functions/iswupper_l.texi: Likewise.
44146         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44147         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44148         * doc/posix-functions/open_wmemstream.texi: Likewise.
44149         * doc/posix-functions/swscanf.texi: Likewise.
44150         * doc/posix-functions/towctrans_l.texi: Likewise.
44151         * doc/posix-functions/towlower.texi: Likewise.
44152         * doc/posix-functions/towlower_l.texi: Likewise.
44153         * doc/posix-functions/towupper.texi: Likewise.
44154         * doc/posix-functions/towupper_l.texi: Likewise.
44155         * doc/posix-functions/vfwprintf.texi: Likewise.
44156         * doc/posix-functions/vfwscanf.texi: Likewise.
44157         * doc/posix-functions/vswscanf.texi: Likewise.
44158         * doc/posix-functions/vwprintf.texi: Likewise.
44159         * doc/posix-functions/vwscanf.texi: Likewise.
44160         * doc/posix-functions/wcpcpy.texi: Likewise.
44161         * doc/posix-functions/wcpncpy.texi: Likewise.
44162         * doc/posix-functions/wcscasecmp.texi: Likewise.
44163         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44164         * doc/posix-functions/wcscoll_l.texi: Likewise.
44165         * doc/posix-functions/wcsdup.texi: Likewise.
44166         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44167         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44168         * doc/posix-functions/wcsnlen.texi: Likewise.
44169         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44170         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44171         * doc/posix-functions/wctrans_l.texi: Likewise.
44172         * doc/posix-functions/wctype_l.texi: Likewise.
44173         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44174         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44175         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44176         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44177         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44178         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44179         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44180         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44181         * doc/glibc-functions/wcschrnul.texi: Likewise.
44182         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44183         * doc/glibc-functions/wcstod_l.texi: Likewise.
44184         * doc/glibc-functions/wcstof_l.texi: Likewise.
44185         * doc/glibc-functions/wcstol_l.texi: Likewise.
44186         * doc/glibc-functions/wcstold_l.texi: Likewise.
44187         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44188         * doc/glibc-functions/wcstoq.texi: Likewise.
44189         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44190         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44191         * doc/glibc-functions/wcstouq.texi: Likewise.
44192         * doc/glibc-functions/wmempcpy.texi: Likewise.
44193
44194 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44195             Eric Blake  <ebb9@byu.net>
44196             Paolo Bonzini  <bonzini@gnu.org>
44197             Bruno Haible  <bruno@clisp.org>
44198
44199         Make c-stack work on Haiku.
44200         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44201         (c_stack_action): Use SA_ONSTACK flag.
44202
44203 2008-12-22  Bruno Haible  <bruno@clisp.org>
44204
44205         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44206
44207 2008-12-22  Bruno Haible  <bruno@clisp.org>
44208
44209         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44210         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44211         being overridden.
44212         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44213         New macros.
44214         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44216         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44217         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44218
44219 2008-12-22  Bruno Haible  <bruno@clisp.org>
44220
44221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44222         from test code.
44223
44224 2008-12-22  Eric Blake  <ebb9@byu.net>
44225
44226         Avoid gcc warnings on cygwin.
44227         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44228         Avoid unused variable.
44229         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44230         Likewise.
44231
44232 2008-12-22  Bruno Haible  <bruno@clisp.org>
44233
44234         Remove HAVE_MBRTOWC conditionals.
44235         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44236         (mbscasecmp): Assume mbrtowc function.
44237         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44238         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44239         * lib/mbschr.c: Include mbuiter.h unconditionally.
44240         (mbschr): Assume mbrtowc function.
44241         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44242         (mbscspn): Assume mbrtowc function.
44243         * lib/mbslen.c: Include mbuiter.h unconditionally.
44244         (mbslen): Assume mbrtowc function.
44245         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44246         (mbsncasecmp): Assume mbrtowc function.
44247         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44248         (mbsnlen): Assume mbrtowc function.
44249         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44250         (mbspbrk): Assume mbrtowc function.
44251         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44252         (mbspcasecmp): Assume mbrtowc function.
44253         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44254         (mbsrchr): Assume mbrtowc function.
44255         * lib/mbssep.c: Include mbuiter.h unconditionally.
44256         (mbssep): Assume mbrtowc function.
44257         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44258         (mbsspn): Assume mbrtowc function.
44259         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44260         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44261         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44262         (mbstok_r): Assume mbrtowc function.
44263         * lib/propername.c: Include mbuiter.h unconditionally.
44264         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44265         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44266         (trim2): Assume mbrtowc function.
44267         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44268         (mbsnwidth): Assume mbrtowc function.
44269         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44270         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44271         fallback definitions.
44272         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44273
44274 2008-12-22  Bruno Haible  <bruno@clisp.org>
44275
44276         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44277
44278 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44279
44280         * modules/regex: Request emulations for the mb*/wc* functions we need.
44281         * m4/regex.m4: Don't look for those functions here.
44282         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44283
44284 2008-12-22  Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44287
44288 2008-12-21  Bruno Haible  <bruno@clisp.org>
44289
44290         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44291         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44292         (Include): Remove conditionalization.
44293         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44294         (Include): Remove conditionalization.
44295         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44296         (Include): Remove conditionalization.
44297         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44298         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44299         * NEWS: Mention the change.
44300         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44301         via Sergey Poznyakoff <gray@gnu.org.ua>.
44302
44303 2008-12-21  Bruno Haible  <bruno@clisp.org>
44304
44305         * MODULES.html.sh (Extended multibyte and wide character utilities
44306         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44307         wcrtomb, wcsrtombs.
44308         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44309         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44310         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44311         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44312
44313 2008-12-21  Bruno Haible  <bruno@clisp.org>
44314
44315         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44316
44317 2008-12-21  Bruno Haible  <bruno@clisp.org>
44318
44319         * modules/wcsnrtombs-tests: New file.
44320         * tests/test-wcsnrtombs1.sh: New file.
44321         * tests/test-wcsnrtombs2.sh: New file.
44322         * tests/test-wcsnrtombs3.sh: New file.
44323         * tests/test-wcsnrtombs4.sh: New file.
44324         * tests/test-wcsnrtombs.c: New file.
44325
44326         New module 'wcsnrtombs'.
44327         * lib/wchar.in.h (wcsnrtombs): New declaration.
44328         * lib/wcsnrtombs.c: New file.
44329         * lib/wcsrtombs-state.c: New file.
44330         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44331         (internal_state): Remove variable.
44332         * m4/wcsnrtombs.m4: New file.
44333         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44334         compilation units.
44335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44336         HAVE_WCSNRTOMBS.
44337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44338         HAVE_WCSNRTOMBS.
44339         * modules/wcsnrtombs: New file.
44340         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44341         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44342
44343 2008-12-21  Bruno Haible  <bruno@clisp.org>
44344
44345         * modules/wcsrtombs-tests: New file.
44346         * tests/test-wcsrtombs1.sh: New file.
44347         * tests/test-wcsrtombs2.sh: New file.
44348         * tests/test-wcsrtombs3.sh: New file.
44349         * tests/test-wcsrtombs4.sh: New file.
44350         * tests/test-wcsrtombs.c: New file.
44351
44352         New module 'wcsrtombs'.
44353         * lib/wchar.in.h (wcsrtombs): New declaration.
44354         * lib/wcsrtombs.c: New file.
44355         * m4/wcsrtombs.m4: New file.
44356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44357         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44359         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44360         * modules/wcsrtombs: New file.
44361         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44362         bugs.
44363
44364 2008-12-21  Bruno Haible  <bruno@clisp.org>
44365
44366         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44367         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44368         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44369         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44370         if not correct.
44371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44372         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44373         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44374         m4/locale-zh.m4, m4/codeset.m4.
44375         * doc/posix-functions/wcrtomb.texi: Document the bug.
44376
44377 2008-12-21  Bruno Haible  <bruno@clisp.org>
44378
44379         Work around a btowc() bug on IRIX 6.5.
44380         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44381         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44382         REPLACE_WTOBC if not.
44383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44384         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44385         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44386
44387 2008-12-21  Bruno Haible  <bruno@clisp.org>
44388
44389         * modules/wcrtomb-tests: New file.
44390         * tests/test-wcrtomb.sh: New file.
44391         * tests/test-wcrtomb.c: New file.
44392
44393         New module 'wcrtomb'.
44394         * lib/wchar.in.h (wcrtomb): New declaration.
44395         * lib/wcrtomb.c: New file.
44396         * m4/wcrtomb.m4: New file.
44397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44398         HAVE_WCRTOMB.
44399         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44400         HAVE_WCRTOMB.
44401         * modules/wcrtomb: New file.
44402         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44403
44404 2008-12-21  Bruno Haible  <bruno@clisp.org>
44405
44406         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44407         * modules/mbsrtowcs (Files): Likewise.
44408         * modules/wctob (Files): Likewise.
44409         * modules/c-strcase-tests (Files): Likewise.
44410         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44411         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44412         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44413         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44414         * modules/vasnprintf-posix-tests (Files): Likewise.
44415
44416 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44417
44418         gitlog-to-changelog: pass all command-line arguments to git-log
44419         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44420         it is sometimes convenient to filter the commits in various ways.
44421         gitlog-to-changelog only allows --since to specify a start date,
44422         but git-log itself supports many other filtering mechanisms.
44423         At the moment, I want to filter by branch name.  Rather than
44424         adding a --branch option to gitlog-to-changelog, it seems more
44425         flexible to simply pass all options directly to git-log and let
44426         git do the work.  Notice that this effectively makes --since a
44427         redundant option for gitlog-to-changelog, but removing it would
44428         require current usage to change since calls would then require
44429         an additional '--'.
44430
44431 2008-12-21  Bruno Haible  <bruno@clisp.org>
44432
44433         * modules/mbsnrtowcs-tests: New file.
44434         * tests/test-mbsnrtowcs1.sh: New file.
44435         * tests/test-mbsnrtowcs2.sh: New file.
44436         * tests/test-mbsnrtowcs3.sh: New file.
44437         * tests/test-mbsnrtowcs4.sh: New file.
44438         * tests/test-mbsnrtowcs.c: New file.
44439
44440         New module 'mbsnrtowcs'.
44441         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44442         * lib/mbsnrtowcs.c: New file.
44443         * lib/mbsrtowcs-state.c: New file.
44444         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44445         (internal_state): Remove variable.
44446         * m4/mbsnrtowcs.m4: New file.
44447         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44448         compilation units.
44449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44450         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44451         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44452         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44453         * modules/mbsnrtowcs: New file.
44454         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44455         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44456         portability problem.
44457
44458 2008-12-21  Bruno Haible  <bruno@clisp.org>
44459
44460         Work around mbsrtowcs bug.
44461         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44462         (gl_FUNC_MBSRTOWCS): Invoke it.
44463         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44464         m4/locale-zh.m4.
44465         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44466
44467 2008-12-21  Bruno Haible  <bruno@clisp.org>
44468
44469         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44470
44471 2008-12-21  Bruno Haible  <bruno@clisp.org>
44472
44473         Update doc for AIX.
44474         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44475         16-bit wchar_t type.
44476         * doc/posix-functions/btowc.texi: Likewise.
44477         * doc/posix-functions/fgetwc.texi: Likewise.
44478         * doc/posix-functions/fgetws.texi: Likewise.
44479         * doc/posix-functions/fputwc.texi: Likewise.
44480         * doc/posix-functions/fputws.texi: Likewise.
44481         * doc/posix-functions/fwide.texi: Likewise.
44482         * doc/posix-functions/fwprintf.texi: Likewise.
44483         * doc/posix-functions/fwscanf.texi: Likewise.
44484         * doc/posix-functions/getwchar.texi: Likewise.
44485         * doc/posix-functions/getwc.texi: Likewise.
44486         * doc/posix-functions/iswalnum.texi: Likewise.
44487         * doc/posix-functions/iswalpha.texi: Likewise.
44488         * doc/posix-functions/iswblank.texi: Likewise.
44489         * doc/posix-functions/iswcntrl.texi: Likewise.
44490         * doc/posix-functions/iswctype.texi: Likewise.
44491         * doc/posix-functions/iswdigit.texi: Likewise.
44492         * doc/posix-functions/iswgraph.texi: Likewise.
44493         * doc/posix-functions/iswlower.texi: Likewise.
44494         * doc/posix-functions/iswprint.texi: Likewise.
44495         * doc/posix-functions/iswpunct.texi: Likewise.
44496         * doc/posix-functions/iswspace.texi: Likewise.
44497         * doc/posix-functions/iswupper.texi: Likewise.
44498         * doc/posix-functions/iswxdigit.texi: Likewise.
44499         * doc/posix-functions/mbrtowc.texi: Likewise.
44500         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44501         * doc/posix-functions/mbstowcs.texi: Likewise.
44502         * doc/posix-functions/mbtowc.texi: Likewise.
44503         * doc/posix-functions/putwchar.texi: Likewise.
44504         * doc/posix-functions/putwc.texi: Likewise.
44505         * doc/posix-functions/swprintf.texi: Likewise.
44506         * doc/posix-functions/tolower.texi: Likewise.
44507         * doc/posix-functions/toupper.texi: Likewise.
44508         * doc/posix-functions/towctrans.texi: Likewise.
44509         * doc/posix-functions/ungetwc.texi: Likewise.
44510         * doc/posix-functions/vswprintf.texi: Likewise.
44511         * doc/posix-functions/wcrtomb.texi: Likewise.
44512         * doc/posix-functions/wcscat.texi: Likewise.
44513         * doc/posix-functions/wcschr.texi: Likewise.
44514         * doc/posix-functions/wcscmp.texi: Likewise.
44515         * doc/posix-functions/wcscoll.texi: Likewise.
44516         * doc/posix-functions/wcscpy.texi: Likewise.
44517         * doc/posix-functions/wcscspn.texi: Likewise.
44518         * doc/posix-functions/wcsftime.texi: Likewise.
44519         * doc/posix-functions/wcslen.texi: Likewise.
44520         * doc/posix-functions/wcsncat.texi: Likewise.
44521         * doc/posix-functions/wcsncmp.texi: Likewise.
44522         * doc/posix-functions/wcsncpy.texi: Likewise.
44523         * doc/posix-functions/wcspbrk.texi: Likewise.
44524         * doc/posix-functions/wcsrchr.texi: Likewise.
44525         * doc/posix-functions/wcsrtombs.texi: Likewise.
44526         * doc/posix-functions/wcsspn.texi: Likewise.
44527         * doc/posix-functions/wcsstr.texi: Likewise.
44528         * doc/posix-functions/wcstod.texi: Likewise.
44529         * doc/posix-functions/wcstof.texi: Likewise.
44530         * doc/posix-functions/wcstoimax.texi: Likewise.
44531         * doc/posix-functions/wcstok.texi: Likewise.
44532         * doc/posix-functions/wcstold.texi: Likewise.
44533         * doc/posix-functions/wcstoll.texi: Likewise.
44534         * doc/posix-functions/wcstol.texi: Likewise.
44535         * doc/posix-functions/wcstombs.texi: Likewise.
44536         * doc/posix-functions/wcstoull.texi: Likewise.
44537         * doc/posix-functions/wcstoul.texi: Likewise.
44538         * doc/posix-functions/wcstoumax.texi: Likewise.
44539         * doc/posix-functions/wcswidth.texi: Likewise.
44540         * doc/posix-functions/wcsxfrm.texi: Likewise.
44541         * doc/posix-functions/wctob.texi: Likewise.
44542         * doc/posix-functions/wctomb.texi: Likewise.
44543         * doc/posix-functions/wctrans.texi: Likewise.
44544         * doc/posix-functions/wctype.texi: Likewise.
44545         * doc/posix-functions/wcwidth.texi: Likewise.
44546         * doc/posix-functions/wmemchr.texi: Likewise.
44547         * doc/posix-functions/wmemcmp.texi: Likewise.
44548         * doc/posix-functions/wmemcpy.texi: Likewise.
44549         * doc/posix-functions/wmemmove.texi: Likewise.
44550         * doc/posix-functions/wmemset.texi: Likewise.
44551         * doc/posix-functions/wprintf.texi: Likewise.
44552         * doc/posix-functions/wscanf.texi: Likewise.
44553
44554 2008-12-21  Bruno Haible  <bruno@clisp.org>
44555
44556         Update doc for HP-UX 11.11.
44557         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44558         in HP-UX version 11.00, not in all versions of HP-UX 11.
44559         * doc/posix-functions/fwide.texi: Likewise.
44560         * doc/posix-functions/fwprintf.texi: Likewise.
44561         * doc/posix-functions/fwscanf.texi: Likewise.
44562         * doc/posix-functions/inet_ntop.texi: Likewise.
44563         * doc/posix-functions/inet_pton.texi: Likewise.
44564         * doc/posix-functions/mbrlen.texi: Likewise.
44565         * doc/posix-functions/mbrtowc.texi: Likewise.
44566         * doc/posix-functions/mbsinit.texi: Likewise.
44567         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44568         * doc/posix-functions/swprintf.texi: Likewise.
44569         * doc/posix-functions/swscanf.texi: Likewise.
44570         * doc/posix-functions/towctrans.texi: Likewise.
44571         * doc/posix-functions/vfwprintf.texi: Likewise.
44572         * doc/posix-functions/vswprintf.texi: Likewise.
44573         * doc/posix-functions/vwprintf.texi: Likewise.
44574         * doc/posix-functions/wcrtomb.texi: Likewise.
44575         * doc/posix-functions/wcsrtombs.texi: Likewise.
44576         * doc/posix-functions/wcsstr.texi: Likewise.
44577         * doc/posix-functions/wctob.texi: Likewise.
44578         * doc/posix-functions/wctrans.texi: Likewise.
44579         * doc/posix-functions/wmemchr.texi: Likewise.
44580         * doc/posix-functions/wmemcmp.texi: Likewise.
44581         * doc/posix-functions/wmemcpy.texi: Likewise.
44582         * doc/posix-functions/wmemmove.texi: Likewise.
44583         * doc/posix-functions/wmemset.texi: Likewise.
44584         * doc/posix-functions/wprintf.texi: Likewise.
44585         * doc/posix-functions/wscanf.texi: Likewise.
44586
44587 2008-12-21  Bruno Haible  <bruno@clisp.org>
44588
44589         Work around a portability problem.
44590         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44591         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44592
44593 2008-12-20  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44596         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44597         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44599         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44600
44601         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44602         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44603         set.
44604         (GNULIB_defined_mbstate_t): New macro.
44605         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44606         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44607         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44608         reuses the system's mbrtowc function but works around the bugs.
44609         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44610         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44611         macros.
44612         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44613         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44614         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44616         REPLACE_MBSINIT if mbsinit needs to be overridden.
44617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44618         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44619         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44620         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44621         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44622         m4/locale-zh.m4.
44623         (Depends): Add mbsinit.
44624         * modules/mbsinit (Depends): Add mbrtowc.
44625         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44626
44627 2008-12-20  Bruno Haible  <bruno@clisp.org>
44628
44629         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44630         so that there are no conversion errors on AIX.
44631         * tests/test-mbsrtowcs.c (main): LIkewise.
44632
44633 2008-12-20  Bruno Haible  <bruno@clisp.org>
44634
44635         Work around wctob bug on Solaris <= 9.
44636         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44637         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44639         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44640         * modules/wctob (Files): Add m4/locale-fr.m4.
44641         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44642
44643 2008-12-20  Bruno Haible  <bruno@clisp.org>
44644
44645         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44646         /dev/null.
44647         * tests/test-select-in.sh: Likewise.
44648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44649
44650 2008-12-20  Bruno Haible  <bruno@clisp.org>
44651
44652         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44653         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44654         Cygwin 1.5.x.
44655
44656 2008-12-20  Bruno Haible  <bruno@clisp.org>
44657
44658         Ensure mbstate_t is defined on HP-UX 11.11.
44659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44660         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44661         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44662         AC_USE_SYSTEM_EXTENSIONS.
44663         * modules/fnmatch (Depends-on): Add extensions.
44664         * modules/mbrlen (Depends-on): Likewise.
44665         * modules/mbrtowc (Depends-on): Likewise.
44666         * modules/mbsinit (Depends-on): Likewise.
44667         * modules/mbsrtowcs (Depends-on): Likewise.
44668         * modules/mbswidth (Depends-on): Likewise.
44669         * modules/quotearg (Depends-on): Likewise.
44670         * modules/strftime (Depends-on): Likewise.
44671
44672 2008-12-20  Bruno Haible  <bruno@clisp.org>
44673
44674         Ensure wctob is declared on IRIX 6.5.
44675         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44676         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44677         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44679         of HAVE_WCTOB.
44680         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44681         HAVE_WCTOB.
44682         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44683
44684 2008-12-19  Bruno Haible  <bruno@clisp.org>
44685
44686         * modules/mbsrtowcs-tests: New file.
44687         * tests/test-mbsrtowcs1.sh: New file.
44688         * tests/test-mbsrtowcs2.sh: New file.
44689         * tests/test-mbsrtowcs3.sh: New file.
44690         * tests/test-mbsrtowcs4.sh: New file.
44691         * tests/test-mbsrtowcs.c: New file.
44692
44693         New module 'mbsrtowcs'.
44694         * lib/wchar.in.h (mbsrtowcs): New declaration.
44695         * lib/mbsrtowcs.c: New file.
44696         * m4/mbsrtowcs.m4: New file.
44697         * modules/mbsrtowcs: New file.
44698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44699         HAVE_MBSRTOWCS.
44700         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44701         HAVE_MBSRTOWCS.
44702         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44703
44704 2008-12-19  Bruno Haible  <bruno@clisp.org>
44705
44706         New module 'mbrlen'.
44707         * lib/wchar.in.h (mbrlen): New declaration.
44708         * lib/mbrlen.c: New file.
44709         * m4/mbrlen.m4: New file.
44710         * modules/mbrlen: New file.
44711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44712         HAVE_MBRLEN.
44713         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44714         HAVE_MBRLEN.
44715         * doc/posix-functions/mbrlen.texi: Document the new module.
44716
44717 2008-12-19  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44720         * modules/mbrtowc (Depends-on): Add verify.
44721         Suggested by Paul Eggert.
44722
44723 2008-12-18  Bruno Haible  <bruno@clisp.org>
44724
44725         * modules/mbsinit-tests: New file.
44726         * tests/test-mbsinit.sh: New file.
44727         * tests/test-mbsinit.c: New file.
44728
44729 2008-12-18  Bruno Haible  <bruno@clisp.org>
44730
44731         * modules/mbrtowc-tests: New file.
44732         * tests/test-mbrtowc1.sh: New file.
44733         * tests/test-mbrtowc2.sh: New file.
44734         * tests/test-mbrtowc3.sh: New file.
44735         * tests/test-mbrtowc4.sh: New file.
44736         * tests/test-mbrtowc.c: New file.
44737
44738         New module 'mbrtowc'.
44739         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44740         mbsinit and mbrtowc.
44741         (mbrtowc): New declaration.
44742         * lib/mbrtowc.c: New file.
44743         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44744         * modules/mbrtowc: New file.
44745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44746         HAVE_MBRTOWC.
44747         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44748         HAVE_MBRTOWC.
44749         * doc/posix-functions/mbrtowc.texi: Document the new module.
44750
44751 2008-12-18  Bruno Haible  <bruno@clisp.org>
44752
44753         New module 'wctob'.
44754         * lib/wchar.in.h (wctob): New declaration.
44755         * lib/wctob.c: New file.
44756         * m4/wctob.m4: New file.
44757         * modules/wctob: New file.
44758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44759         HAVE_WCTOB.
44760         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44761         * doc/posix-functions/wctob.texi: Document the new module.
44762
44763 2008-12-18  Bruno Haible  <bruno@clisp.org>
44764
44765         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44766         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44767
44768 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44769
44770         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44771         G. Christensen" <tgc@jupiterrise.com>.
44772
44773         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44774         G. Christensen" <tgc@jupiterrise.com>.
44775
44776         * lib/flock.c: Need to include string.h.  Reported by "Tom
44777         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44778         <ebb9@byu.net>.
44779
44780 2008-12-18  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/locale-ja.m4: New file, from GNU gettext.
44783
44784 2008-12-17  Bruno Haible  <bruno@clisp.org>
44785
44786         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44787         Suggested by Eric Blake.
44788
44789 2008-12-17  Bruno Haible  <bruno@clisp.org>
44790
44791         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44792
44793 2008-12-17  Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44796         * modules/mbsinit (Depends-on): Add verify.
44797         Suggested by Paul Eggert.
44798
44799 2008-12-17  Bruno Haible  <bruno@clisp.org>
44800
44801         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44802         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44803         gl_FUNC_MBRTOWC.
44804         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44805         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44806         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44807         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44808         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44809         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44810         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44811         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44812         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44813         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44814         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44815         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44816         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44817         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44818         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44819         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44820         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44821         * modules/trim (configure.ac): Likewise.
44822
44823 2008-12-17  Bruno Haible  <bruno@clisp.org>
44824
44825         * modules/btowc-tests: New file.
44826         * tests/test-btowc1.sh: New file.
44827         * tests/test-btowc2.sh: New file.
44828         * tests/test-btowc.c: New file.
44829
44830         New module 'btowc'.
44831         * lib/wchar.in.h (btowc): New declaration.
44832         * lib/btowc.c: New file.
44833         * m4/btowc.m4: New file.
44834         * modules/btowc: New file.
44835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44836         HAVE_BTOWC.
44837         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44838         * doc/posix-functions/btowc.texi: Document the new module.
44839
44840 2008-12-17  Bruno Haible  <bruno@clisp.org>
44841
44842         New module 'mbsinit'.
44843         * lib/wchar.in.h (mbsinit): New declaration.
44844         * lib/mbsinit.c: New file.
44845         * m4/mbsinit.m4: New file.
44846         * modules/mbsinit: New file.
44847         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44848         HAVE_MBSINIT.
44849         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44850         HAVE_MBSINIT.
44851         * doc/posix-functions/mbsinit.texi: Document the new module.
44852
44853 2008-12-16  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/unistd.in.h: Add comment.
44856         * tests/test-environ.c: Don't include <stdlib.h>.
44857
44858 2008-12-16  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/parse-duration.h (parse_duration): Document return value
44861         convention.
44862         * lib/parse-duration.c: Include specification header first. Add
44863         comments.
44864         (_): Remove macro.
44865         (parse_year_month_day, parse_hour_minute_second): Move side effects
44866         outside of strchr call.
44867         (parse_non_iso8601): Move side effects outside of isspace call.
44868         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44869         call.
44870
44871 2008-12-16  Bruno Haible  <bruno@clisp.org>
44872
44873         * tests/test-parse-duration.sh: Produce no output when the test
44874         succeeds.
44875
44876 2008-12-16  Bruno Haible  <bruno@clisp.org>
44877
44878         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44879         expressions.
44880
44881 2008-12-15  Bruno Haible  <bruno@clisp.org>
44882
44883         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44884         * doc/glibc-functions/flistxattr.texi: Likewise.
44885         * doc/glibc-functions/fopencookie.texi: Likewise.
44886         * doc/glibc-functions/fremovexattr.texi: Likewise.
44887         * doc/glibc-functions/fsetxattr.texi: Likewise.
44888         * doc/glibc-functions/getxattr.texi: Likewise.
44889         * doc/glibc-functions/lgetxattr.texi: Likewise.
44890         * doc/glibc-functions/listxattr.texi: Likewise.
44891         * doc/glibc-functions/llistxattr.texi: Likewise.
44892         * doc/glibc-functions/lremovexattr.texi: Likewise.
44893         * doc/glibc-functions/lsetxattr.texi: Likewise.
44894         * doc/glibc-functions/removexattr.texi: Likewise.
44895         * doc/glibc-functions/setxattr.texi: Likewise.
44896         * doc/posix-functions/open_memstream.texi: Likewise.
44897
44898 2008-12-15  Eric Blake  <ebb9@byu.net>
44899
44900         Update doc for cygwin 1.7.
44901         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44902         functions.
44903         * doc/posix-functions/fchmodat.texi: Likewise.
44904         * doc/posix-functions/fchownat.texi: Likewise.
44905         * doc/posix-functions/fdopendir.texi: Likewise.
44906         * doc/posix-functions/fmemopen.texi: Likewise.
44907         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44908         * doc/posix-functions/fstatat.texi: Likewise.
44909         * doc/posix-functions/futimens.texi: Likewise.
44910         * doc/posix-functions/gai_strerror.texi: Likewise.
44911         * doc/posix-functions/getaddrinfo.texi: Likewise.
44912         * doc/posix-functions/getnameinfo.texi: Likewise.
44913         * doc/posix-functions/if_freenameindex.texi: Likewise.
44914         * doc/posix-functions/if_indextoname.texi: Likewise.
44915         * doc/posix-functions/if_nameindex.texi: Likewise.
44916         * doc/posix-functions/if_nametoindex.texi: Likewise.
44917         * doc/posix-functions/insque.texi: Likewise.
44918         * doc/posix-functions/linkat.texi: Likewise.
44919         * doc/posix-functions/llrint.texi: Likewise.
44920         * doc/posix-functions/llrintf.texi: Likewise.
44921         * doc/posix-functions/llrintl.texi: Likewise.
44922         * doc/posix-functions/lockf.texi: Likewise.
44923         * doc/posix-functions/lrintl.texi: Likewise.
44924         * doc/posix-functions/mkdirat.texi: Likewise.
44925         * doc/posix-functions/mkfifoat.texi: Likewise.
44926         * doc/posix-functions/mknodat.texi: Likewise.
44927         * doc/posix-functions/mq_close.texi: Likewise.
44928         * doc/posix-functions/mq_getattr.texi: Likewise.
44929         * doc/posix-functions/mq_notify.texi: Likewise.
44930         * doc/posix-functions/mq_open.texi: Likewise.
44931         * doc/posix-functions/mq_receive.texi: Likewise.
44932         * doc/posix-functions/mq_send.texi: Likewise.
44933         * doc/posix-functions/mq_setattr.texi: Likewise.
44934         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44935         * doc/posix-functions/mq_timedsend.texi: Likewise.
44936         * doc/posix-functions/mq_unlink.texi: Likewise.
44937         * doc/posix-functions/open_memstream.texi: Likewise.
44938         * doc/posix-functions/openat.texi: Likewise.
44939         * doc/posix-functions/posix_fadvise.texi: Likewise.
44940         * doc/posix-functions/posix_fallocate.texi: Likewise.
44941         * doc/posix-functions/posix_madvise.texi: Likewise.
44942         * doc/posix-functions/posix_memalign.texi: Likewise.
44943         * doc/posix-functions/posix_openpt.texi: Likewise.
44944         * doc/posix-functions/readlinkat.texi: Likewise.
44945         * doc/posix-functions/remque.texi: Likewise.
44946         * doc/posix-functions/renameat.texi: Likewise.
44947         * doc/posix-functions/rintl.texi: Likewise.
44948         * doc/posix-functions/sem_unlink.texi: Likewise.
44949         * doc/posix-functions/shm_open.texi: Likewise.
44950         * doc/posix-functions/shm_unlink.texi: Likewise.
44951         * doc/posix-functions/signgam.texi: Likewise.
44952         * doc/posix-functions/sigset.texi: Likewise.
44953         * doc/posix-functions/stpcpy.texi: Likewise.
44954         * doc/posix-functions/stpncpy.texi: Likewise.
44955         * doc/posix-functions/strerror.texi: Likewise.
44956         * doc/posix-functions/strtod.texi: Likewise.
44957         * doc/posix-functions/symlinkat.texi: Likewise.
44958         * doc/posix-functions/unlinkat.texi: Likewise.
44959         * doc/posix-functions/utimensat.texi: Likewise.
44960         * doc/glibc-functions/bindresvport.texi: Likewise.
44961         * doc/glibc-functions/dn_expand.texi: Likewise.
44962         * doc/glibc-functions/exp10.texi: Likewise.
44963         * doc/glibc-functions/exp10f.texi: Likewise.
44964         * doc/glibc-functions/fgetxattr.texi: Likewise.
44965         * doc/glibc-functions/flistxattr.texi: Likewise.
44966         * doc/glibc-functions/fopencookie.texi: Likewise.
44967         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44968         * doc/glibc-functions/fremovexattr.texi: Likewise.
44969         * doc/glibc-functions/fsetxattr.texi: Likewise.
44970         * doc/glibc-functions/getifaddrs.texi: Likewise.
44971         * doc/glibc-functions/getxattr.texi: Likewise.
44972         * doc/glibc-functions/lgetxattr.texi: Likewise.
44973         * doc/glibc-functions/listxattr.texi: Likewise.
44974         * doc/glibc-functions/llistxattr.texi: Likewise.
44975         * doc/glibc-functions/lremovexattr.texi: Likewise.
44976         * doc/glibc-functions/lsetxattr.texi: Likewise.
44977         * doc/glibc-functions/pow10.texi: Likewise.
44978         * doc/glibc-functions/pow10f.texi: Likewise.
44979         * doc/glibc-functions/rcmd_af.texi: Likewise.
44980         * doc/glibc-functions/removexattr.texi: Likewise.
44981         * doc/glibc-functions/res_init.texi: Likewise.
44982         * doc/glibc-functions/res_mkquery.texi: Likewise.
44983         * doc/glibc-functions/res_query.texi: Likewise.
44984         * doc/glibc-functions/res_querydomain.texi: Likewise.
44985         * doc/glibc-functions/res_send.texi: Likewise.
44986         * doc/glibc-functions/rresvport_af.texi: Likewise.
44987         * doc/glibc-functions/setxattr.texi: Likewise.
44988         * doc/glibc-functions/strcasestr.texi: Likewise.
44989
44990 2008-12-15  Bruno Haible  <bruno@clisp.org>
44991
44992         Fix compilation error on OSF/1 4.0.
44993         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44994         <sys/time.h>, simply delegate to the system header.
44995         Reported by Daniel Richard G. <oss@teragram.com>.
44996
44997 2008-12-15  Bruno Haible  <bruno@clisp.org>
44998
44999         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45000         * doc/posix-functions/fchmodat.texi: Likewise.
45001         * doc/posix-functions/fchownat.texi: Likewise.
45002         * doc/posix-functions/fdopendir.texi: Likewise.
45003         * doc/posix-functions/fstatat.texi: Likewise.
45004         * doc/posix-functions/mkdirat.texi: Likewise.
45005         * doc/posix-functions/unlinkat.texi: Likewise.
45006
45007 2008-12-14  Bruno Haible  <bruno@clisp.org>
45008
45009         Update doc for POSIX:2008.
45010         * doc/posix-functions/faccessat.texi: New file.
45011         * doc/posix-functions/fchmodat.texi: New file.
45012         * doc/posix-functions/fchownat.texi: New file.
45013         * doc/posix-functions/fdopendir.texi: New file.
45014         * doc/posix-functions/fstatat.texi: New file.
45015         * doc/posix-functions/futimens.texi: New file.
45016         * doc/posix-functions/linkat.texi: New file.
45017         * doc/posix-functions/mkdirat.texi: New file.
45018         * doc/posix-functions/mkfifoat.texi: New file.
45019         * doc/posix-functions/mknodat.texi: New file.
45020         * doc/posix-functions/open_wmemstream.texi: New file.
45021         * doc/posix-functions/openat.texi: New file.
45022         * doc/posix-functions/psiginfo.texi: New file.
45023         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45024         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45025         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45026         * doc/posix-functions/readlinkat.texi: New file.
45027         * doc/posix-functions/renameat.texi: New file.
45028         * doc/posix-functions/strerror_l.texi: New file.
45029         * doc/posix-functions/symlinkat.texi: New file.
45030         * doc/posix-functions/unlinkat.texi: New file.
45031         * doc/posix-functions/utimensat.texi: New file.
45032         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45033
45034 2008-12-14  Bruno Haible  <bruno@clisp.org>
45035
45036         Update doc for POSIX:2008.
45037         * doc/posix-functions/alphasort.texi: Renamed from
45038         doc/glibc-functions/alphasort.texi.
45039         * doc/posix-functions/dirfd.texi: Renamed from
45040         doc/glibc-functions/dirfd.texi.
45041         * doc/posix-functions/dprintf.texi: Renamed from
45042         doc/glibc-functions/dprintf.texi.
45043         * doc/posix-functions/duplocale.texi: Renamed from
45044         doc/glibc-functions/duplocale.texi.
45045         * doc/posix-functions/fexecve.texi: Renamed from
45046         doc/glibc-functions/fexecve.texi.
45047         * doc/posix-functions/fmemopen.texi: Renamed from
45048         doc/glibc-functions/fmemopen.texi.
45049         * doc/posix-functions/freelocale.texi: Renamed from
45050         doc/glibc-functions/freelocale.texi.
45051         * doc/posix-functions/getdate_err.texi: Renamed from
45052         doc/glibc-functions/getdate_err.texi.
45053         * doc/posix-functions/isalnum_l.texi: Renamed from
45054         doc/glibc-functions/isalnum_l.texi.
45055         * doc/posix-functions/isalpha_l.texi: Renamed from
45056         doc/glibc-functions/isalpha_l.texi.
45057         * doc/posix-functions/isblank_l.texi: Renamed from
45058         doc/glibc-functions/isblank_l.texi.
45059         * doc/posix-functions/iscntrl_l.texi: Renamed from
45060         doc/glibc-functions/iscntrl_l.texi.
45061         * doc/posix-functions/isdigit_l.texi: Renamed from
45062         doc/glibc-functions/isdigit_l.texi.
45063         * doc/posix-functions/isgraph_l.texi: Renamed from
45064         doc/glibc-functions/isgraph_l.texi.
45065         * doc/posix-functions/islower_l.texi: Renamed from
45066         doc/glibc-functions/islower_l.texi.
45067         * doc/posix-functions/isprint_l.texi: Renamed from
45068         doc/glibc-functions/isprint_l.texi.
45069         * doc/posix-functions/ispunct_l.texi: Renamed from
45070         doc/glibc-functions/ispunct_l.texi.
45071         * doc/posix-functions/isspace_l.texi: Renamed from
45072         doc/glibc-functions/isspace_l.texi.
45073         * doc/posix-functions/isupper_l.texi: Renamed from
45074         doc/glibc-functions/isupper_l.texi.
45075         * doc/posix-functions/iswalnum_l.texi: Renamed from
45076         doc/glibc-functions/iswalnum_l.texi.
45077         * doc/posix-functions/iswalpha_l.texi: Renamed from
45078         doc/glibc-functions/iswalpha_l.texi.
45079         * doc/posix-functions/iswblank_l.texi: Renamed from
45080         doc/glibc-functions/iswblank_l.texi.
45081         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45082         doc/glibc-functions/iswcntrl_l.texi.
45083         * doc/posix-functions/iswctype_l.texi: Renamed from
45084         doc/glibc-functions/iswctype_l.texi.
45085         * doc/posix-functions/iswdigit_l.texi: Renamed from
45086         doc/glibc-functions/iswdigit_l.texi.
45087         * doc/posix-functions/iswgraph_l.texi: Renamed from
45088         doc/glibc-functions/iswgraph_l.texi.
45089         * doc/posix-functions/iswlower_l.texi: Renamed from
45090         doc/glibc-functions/iswlower_l.texi.
45091         * doc/posix-functions/iswprint_l.texi: Renamed from
45092         doc/glibc-functions/iswprint_l.texi.
45093         * doc/posix-functions/iswpunct_l.texi: Renamed from
45094         doc/glibc-functions/iswpunct_l.texi.
45095         * doc/posix-functions/iswspace_l.texi: Renamed from
45096         doc/glibc-functions/iswspace_l.texi.
45097         * doc/posix-functions/iswupper_l.texi: Renamed from
45098         doc/glibc-functions/iswupper_l.texi.
45099         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45100         doc/glibc-functions/iswxdigit_l.texi.
45101         * doc/posix-functions/isxdigit_l.texi: Renamed from
45102         doc/glibc-functions/isxdigit_l.texi.
45103         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45104         doc/glibc-functions/mbsnrtowcs.texi.
45105         * doc/posix-functions/mkdtemp.texi: Renamed from
45106         doc/glibc-functions/mkdtemp.texi.
45107         * doc/posix-functions/newlocale.texi: Renamed from
45108         doc/glibc-functions/newlocale.texi.
45109         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45110         doc/glibc-functions/nl_langinfo_l.texi.
45111         * doc/posix-functions/open_memstream.texi: Renamed from
45112         doc/glibc-functions/open_memstream.texi.
45113         * doc/posix-functions/opterr.texi: Renamed from
45114         doc/glibc-functions/opterr.texi.
45115         * doc/posix-functions/optind.texi: Renamed from
45116         doc/glibc-functions/optind.texi.
45117         * doc/posix-functions/optopt.texi: Renamed from
45118         doc/glibc-functions/optopt.texi.
45119         * doc/posix-functions/psignal.texi: Renamed from
45120         doc/glibc-functions/psignal.texi.
45121         * doc/posix-functions/scandir.texi: Renamed from
45122         doc/glibc-functions/scandir.texi.
45123         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45124         doc/glibc-functions/sched_get_priority_min.texi.
45125         * doc/posix-functions/signgam.texi: Renamed from
45126         doc/glibc-functions/signgam.texi.
45127         * doc/posix-functions/stpcpy.texi: Renamed from
45128         doc/glibc-functions/stpcpy.texi.
45129         * doc/posix-functions/stpncpy.texi: Renamed from
45130         doc/glibc-functions/stpncpy.texi.
45131         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45132         doc/glibc-functions/strcasecmp_l.texi.
45133         * doc/posix-functions/strcoll_l.texi: Renamed from
45134         doc/glibc-functions/strcoll_l.texi.
45135         * doc/posix-functions/strfmon_l.texi: Renamed from
45136         doc/glibc-functions/strfmon_l.texi.
45137         * doc/posix-functions/strftime_l.texi: Renamed from
45138         doc/glibc-functions/strftime_l.texi.
45139         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45140         doc/glibc-functions/strncasecmp_l.texi.
45141         * doc/posix-functions/strndup.texi: Renamed from
45142         doc/glibc-functions/strndup.texi.
45143         * doc/posix-functions/strnlen.texi: Renamed from
45144         doc/glibc-functions/strnlen.texi.
45145         * doc/posix-functions/strsignal.texi: Renamed from
45146         doc/glibc-functions/strsignal.texi.
45147         * doc/posix-functions/strxfrm_l.texi: Renamed from
45148         doc/glibc-functions/strxfrm_l.texi.
45149         * doc/posix-functions/timer_gettime.texi: Renamed from
45150         doc/glibc-functions/timer_gettime.texi.
45151         * doc/posix-functions/tolower_l.texi: Renamed from
45152         doc/glibc-functions/tolower_l.texi.
45153         * doc/posix-functions/toupper_l.texi: Renamed from
45154         doc/glibc-functions/toupper_l.texi.
45155         * doc/posix-functions/towctrans_l.texi: Renamed from
45156         doc/glibc-functions/towctrans_l.texi.
45157         * doc/posix-functions/towlower_l.texi: Renamed from
45158         doc/glibc-functions/towlower_l.texi.
45159         * doc/posix-functions/towupper_l.texi: Renamed from
45160         doc/glibc-functions/towupper_l.texi.
45161         * doc/posix-functions/uselocale.texi: Renamed from
45162         doc/glibc-functions/uselocale.texi.
45163         * doc/posix-functions/vdprintf.texi: Renamed from
45164         doc/glibc-functions/vdprintf.texi.
45165         * doc/posix-functions/wcpcpy.texi:
45166         Renamed from doc/glibc-functions/wcpcpy.texi.
45167         * doc/posix-functions/wcpncpy.texi: Renamed from
45168         doc/glibc-functions/wcpncpy.texi.
45169         * doc/posix-functions/wcscasecmp.texi: Renamed from
45170         doc/glibc-functions/wcscasecmp.texi.
45171         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45172         doc/glibc-functions/wcscasecmp_l.texi.
45173         * doc/posix-functions/wcscoll_l.texi: Renamed from
45174         doc/glibc-functions/wcscoll_l.texi.
45175         * doc/posix-functions/wcsdup.texi: Renamed from
45176         doc/glibc-functions/wcsdup.texi.
45177         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45178         doc/glibc-functions/wcsncasecmp.texi.
45179         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45180         doc/glibc-functions/wcsncasecmp_l.texi.
45181         * doc/posix-functions/wcsnlen.texi: Renamed from
45182         doc/glibc-functions/wcsnlen.texi.
45183         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45184         doc/glibc-functions/wcsnrtombs.texi.
45185         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45186         doc/glibc-functions/wcsxfrm_l.texi.
45187         * doc/posix-functions/wctrans_l.texi: Renamed from
45188         doc/glibc-functions/wctrans_l.texi.
45189         * doc/posix-functions/wctype_l.texi: Renamed from
45190         doc/glibc-functions/wctype_l.texi.
45191         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45192         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45193         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45194         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45195         these subsections.
45196         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45197         Remove sections.
45198
45199 2008-12-14  Bruno Haible  <bruno@clisp.org>
45200
45201         Update doc for POSIX:2008.
45202         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45203
45204 2008-12-14  Bruno Haible  <bruno@clisp.org>
45205
45206         Update doc for POSIX:2008.
45207         * doc/pastposix-functions/bcmp.texi: Renamed from
45208         doc/posix-functions/bcmp.texi.
45209         * doc/pastposix-functions/bcopy.texi: Renamed from
45210         doc/posix-functions/bcopy.texi.
45211         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45212         doc/posix-functions/bsd_signal.texi.
45213         * doc/pastposix-functions/bzero.texi: Renamed from
45214         doc/posix-functions/bzero.texi.
45215         * doc/pastposix-functions/ecvt.texi: Renamed from
45216         doc/posix-functions/ecvt.texi.
45217         * doc/pastposix-functions/fcvt.texi: Renamed from
45218         doc/posix-functions/fcvt.texi.
45219         * doc/pastposix-functions/ftime.texi: Renamed from
45220         doc/posix-functions/ftime.texi.
45221         * doc/pastposix-functions/gcvt.texi: Renamed from
45222         doc/posix-functions/gcvt.texi.
45223         * doc/pastposix-functions/getcontext.texi: Renamed from
45224         doc/posix-functions/getcontext.texi.
45225         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45226         doc/posix-functions/gethostbyaddr.texi.
45227         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45228         doc/posix-functions/gethostbyname.texi.
45229         * doc/pastposix-functions/getwd.texi: Renamed from
45230         doc/posix-functions/getwd.texi.
45231         * doc/pastposix-functions/h_errno.texi: Renamed from
45232         doc/posix-functions/h_errno.texi.
45233         * doc/pastposix-functions/index.texi: Renamed from
45234         doc/posix-functions/index.texi.
45235         * doc/pastposix-functions/makecontext.texi: Renamed from
45236         doc/posix-functions/makecontext.texi.
45237         * doc/pastposix-functions/mktemp.texi: Renamed from
45238         doc/posix-functions/mktemp.texi.
45239         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45240         doc/posix-functions/pthread_attr_getstackaddr.texi.
45241         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45242         doc/posix-functions/pthread_attr_setstackaddr.texi.
45243         * doc/pastposix-functions/rindex.texi: Renamed from
45244         doc/posix-functions/rindex.texi.
45245         * doc/pastposix-functions/scalb.texi: Renamed from
45246         doc/posix-functions/scalb.texi.
45247         * doc/pastposix-functions/setcontext.texi: Renamed from
45248         doc/posix-functions/setcontext.texi.
45249         * doc/pastposix-functions/swapcontext.texi: Renamed from
45250         doc/posix-functions/swapcontext.texi.
45251         * doc/pastposix-functions/ualarm.texi: Renamed from
45252         doc/posix-functions/ualarm.texi.
45253         * doc/pastposix-functions/usleep.texi: Renamed from
45254         doc/posix-functions/usleep.texi.
45255         * doc/pastposix-functions/vfork.texi: Renamed from
45256         doc/posix-functions/vfork.texi.
45257         * doc/pastposix-functions/wcswcs.texi: Renamed from
45258         doc/posix-functions/wcswcs.texi.
45259         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45260         (Function Substitutes): Update.
45261
45262 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45263
45264         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45265         m4/strerror.m4.
45266
45267 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45268             Bruno Haible  <bruno@clisp.org>
45269
45270         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45271
45272 2008-12-13  Bruno Haible  <bruno@clisp.org>
45273
45274         * modules/strtoull (Depends-on): Remove unistd.
45275
45276 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45277
45278         * modules/strtoull (Depends-on): Add stdlib.
45279
45280 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45281
45282         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45283
45284 2008-12-10  Jim Meyering  <meyering@redhat.com>
45285
45286         gl_ASSERT: don't say assertions are disabled when they're not
45287         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45288         "checking whether to enable assertions... no", when they are in
45289         fact enabled.  This is solely a bug in the output of configure.
45290         In spite of saying "no", NDEBUG was not defined in that case.
45291         Also, as noted by Eric Blake, leave assertions enabled upon
45292         --enable-assert=INVALID.
45293
45294 2008-12-10  Bruno Haible  <bruno@clisp.org>
45295
45296         Change MODULES.html to refer to POSIX:2008 where possible.
45297         * MODULES.html.sh (POSIX2008_URL): New variable.
45298         (posix_headers): Remove sys/timeb, ucontext.
45299         (posix2001_headers): New variable.
45300         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45301         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45302         index, makecontext, mktemp, pthread_attr_getstackaddr,
45303         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45304         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45305         (posix2001_functions): New variable.
45306         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45307         otherwise.
45308
45309 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45310
45311         add missing include to parse-duration.c
45312         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45313         * modules/parse-duration (Depends-on): Add xalloc.
45314
45315         fix sed script reading maint.mk
45316         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45317         (syntax-check-rules): Use it.
45318
45319 2008-12-09  Bruno Haible  <bruno@clisp.org>
45320
45321         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45322         MacOS X 10.4/PowerPC.
45323         Reported by Simon Josefsson.
45324
45325 2008-12-08  Jim Meyering  <meyering@redhat.com>
45326
45327         work around mingw's lack of some S_IF definitions
45328         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45329         Reported by Simon Josefsson.
45330
45331 2008-12-08  Bruno Haible  <bruno@clisp.org>
45332
45333         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45334         applied to variables. Needed on MacOS X 10.4/PowerPC.
45335         Reported by Simon Josefsson.
45336
45337 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45338         and Eric Blake  <ebb9@byu.net>
45339
45340         assert: honor --enable-assert
45341         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45342         order to honor --enable-assert, rather than treating it as a
45343         synonym for --disable-assert.
45344
45345 2008-12-08  Jim Meyering  <meyering@redhat.com>
45346
45347         * lib/posixtm.c: Remove now-useless declaration of mktime.
45348
45349         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45350
45351 2008-12-07  Bruno Haible  <bruno@clisp.org>
45352
45353         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45354         test_once): Mark functions as static.
45355         * tests/test-tls.c (test_tls): Likewise.
45356
45357 2008-12-07  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45360         iconv_register_autodetect.
45361
45362 2008-12-07  Jim Meyering  <meyering@redhat.com>
45363
45364         posixtm.c: avoid a warning
45365         * lib/posixtm.c (posixtime): Don't initialize tm0.
45366         It's no longer needed to placate gcc4's -Wuninitialized,
45367         and the attempt to placate would elicit a new warning.
45368
45369         unicodeio.c: mark unused parameters
45370         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45371         (fallback_failure_callback): Likewise.
45372
45373 2008-12-07  Bruno Haible  <bruno@clisp.org>
45374
45375         * gnulib-tool (func_create_testdir): When building the tests
45376         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45377         Reported by Simon Josefsson.
45378
45379 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45380
45381         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45382
45383 2008-12-06  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45386         Suggested by Eric Blake.
45387
45388 2008-12-06  Bruno Haible  <bruno@clisp.org>
45389
45390         Fix a c-stack test failure on MacOS X.
45391         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45392         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45393         handler for SIGBUS as well.
45394         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45395         install a signal handler for SIGBUS as well.
45396         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45397
45398 2008-12-06  Bruno Haible  <bruno@clisp.org>
45399
45400         Advocacy documentation.
45401         * doc/gnulib-intro.texi (Benefits): New section.
45402         * doc/gnulib.texi: Update.
45403
45404 2008-12-06  Bruno Haible  <bruno@clisp.org>
45405
45406         Document the 'manywarnings' module.
45407         * doc/manywarnings.texi: New file.
45408         * doc/gnulib.texi: Include it.
45409
45410 2008-12-05  Eric Blake  <ebb9@byu.net>
45411
45412         tests: silence some gcc warnings
45413         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45414         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45415         type mismatches.
45416
45417 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45418             Bruno Haible  <bruno@clisp.org>
45419
45420         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45421
45422 2008-11-29  Jim Meyering  <meyering@redhat.com>
45423
45424         unicodeio.c: mark unused parameters
45425         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45426         (fallback_failure_callback): Likewise.
45427
45428         fts: fix a thinko
45429         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45430         (set_stat_type): Return S_IF*-valued "type" directly.
45431         Prompted by James Youngman's spotting a related bug.
45432         Confirmed by further testing through find.
45433
45434         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45435         * lib/fts.c (D_TYPE): Define.
45436         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45437         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45438         (s_ifmt_shift_bits): New function.
45439         (set_stat_type): New function.
45440         (fts_build): When not calling fts_stat, call set_stat_type
45441         to propagate dirent.d_type info to fts_read caller.
45442         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45443         fts_statp->st_mode type information may be valid.
45444
45445 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45446
45447         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45448         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45449         <sds@gnu.org>.
45450
45451 2008-11-20  Bruno Haible  <bruno@clisp.org>
45452
45453         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45454         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45455         INCLUDE_NEXT.
45456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45457         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45458         * modules/math (Makefile.am): Substitute
45459         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45460         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45461
45462 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45463             Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/stdint.in.h: Define all type macros so that their expansion is
45466         a single typedef'ed token. Fixes a compilation failure in Boost which
45467         does "using ::int8_t;".
45468
45469 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45470
45471         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45472         gl_MANYWARN_ALL_GCC.
45473         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45474         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45475         * modules/manywarnings: New file.
45476         * MODULES.html.sh: Mention manywarnings module.
45477
45478 2008-11-18  Bruno Haible  <bruno@clisp.org>
45479
45480         * doc/gnulib-tool.texi (Unit tests): New section.
45481
45482 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45483
45484         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45485         paths like 'lib/po/foo.po'.
45486
45487 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45488
45489         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45490         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45491
45492 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45493
45494         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45495         parameter works.
45496
45497 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45498
45499         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45500
45501 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45502
45503         * modules/parse-duration-tests: New file.
45504         * tests/test-parse-duration.sh: New file.
45505         * tests/test-parse-duration.c: New file.
45506
45507         New module 'parse-duration'.
45508         * lib/parse-duration.h: New file.
45509         * lib/parse-duration.c: New file.
45510         * modules/parse-duration: New file.
45511
45512 2008-11-17  Bruno Haible  <bruno@clisp.org>
45513
45514         * tests/test-select-out.sh: Comment out the first pipe test.
45515         Reported by Simon Josefsson.
45516
45517 2008-11-17  Bruno Haible  <bruno@clisp.org>
45518
45519         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45521         gl_HOSTENT.
45522
45523 2008-11-17  Bruno Haible  <bruno@clisp.org>
45524
45525         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45526         -lnetwork and -lnet. Needed for Haiku and BeOS.
45527
45528 2008-11-16  Bruno Haible  <bruno@clisp.org>
45529
45530         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45531
45532 2008-11-16  Bruno Haible  <bruno@clisp.org>
45533
45534         Avoid test failure on Haiku.
45535         * tests/test-fsync.c: Include <errno.h>.
45536         (main): Don't require that fsync (0) fails.
45537
45538 2008-11-15  Bruno Haible  <bruno@clisp.org>
45539
45540         New module 'hostent'.
45541         * modules/hostent: New file.
45542         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45543
45544 2008-11-15  Bruno Haible  <bruno@clisp.org>
45545
45546         New module 'servent'.
45547         * modules/servent: New file.
45548         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45549
45550 2008-11-15  Bruno Haible  <bruno@clisp.org>
45551
45552         Avoid generating same test program with two different rules.
45553         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45554         test-frexp to test-frexp-nolibm.
45555         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45556         test-frexpl to test-frexpl-nolibm.
45557
45558 2008-11-15  Bruno Haible  <bruno@clisp.org>
45559
45560         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45561         $(FREXPL_LIBM).
45562
45563 2008-11-15  Bruno Haible  <bruno@clisp.org>
45564
45565         * lib/netdb.in.h: Activate the definitions also when the system's
45566         <netdb.h> has 'struct addrinfo'.
45567         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45568         EAI_OVERFLOW or AI_NUMERICSERV.
45569         * doc/posix-headers/netdb.texi: Document the problem.
45570
45571 2008-11-15  Bruno Haible  <bruno@clisp.org>
45572
45573         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45574
45575         Make the 'sched' module work on platforms where <sched.h> exists but
45576         is incomplete (such as Haiku).
45577         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45578         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45579         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45580         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45581         HAVE_STRUCT_SCHED_PARAM.
45582         * modules/sched (Depends-on): Add include_next.
45583         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45584         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45585         * doc/posix-headers/sched.texi: Document the issue.
45586
45587 2008-11-13  Jim Meyering  <meyering@redhat.com>
45588
45589         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45590         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45591         test would fail due to the difference in the Report bugs to ...
45592         line.  The expected address is empty, "<>", while the actual
45593         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45594
45595 2008-11-12  Bruno Haible  <bruno@clisp.org>
45596
45597         lstat: don't compile lstat.c on systems lacking lstat
45598         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45599         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45600         Reported by Daniel P. Berrange via Jim Meyering.
45601
45602 2008-11-12  Jim Meyering  <meyering@redhat.com>
45603
45604         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45605
45606 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45607
45608         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45609         instead.
45610
45611 2008-11-12  Bruno Haible  <bruno@clisp.org>
45612
45613         * lib/unicodeio.c: Include unistr.h.
45614         (utf8_wctomb): Remove function.
45615         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45616
45617 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45618
45619         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45620         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45621         <bruno@clisp.org>.
45622         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45623
45624 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45625
45626         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45627         * doc/gnulib.texi: Add section for warnings.
45628
45629 2008-11-11  Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/sockets.h: Add a comment.
45632
45633 2008-11-11  Karl Berry  <karl@gnu.org>
45634
45635         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45636
45637 2008-11-11  Eric Blake  <ebb9@byu.net>
45638
45639         fdl.texi: avoid git symlinks
45640         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45641
45642 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45643
45644         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45645
45646 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45647
45648         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45649         (gl_WARN_ADD): Substitute $2 if literal.
45650
45651 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45652
45653         * m4/warning.m4: Remove.
45654
45655 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45656
45657         * m4/warnings.m4: Almost complete rewrite. :-)
45658
45659 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45660
45661         * modules/warnings: New module.
45662         * m4/warnings.m4: New file.
45663         * MODULES.html.sh: Mention warnings module.
45664         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45665         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45666
45667 2008-11-10  Eric Blake  <ebb9@byu.net>
45668
45669         fdl.texi: make a symlink to the latest version
45670         * doc/standards.texi: Revert today's earlier change.
45671         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45672         * doc/fdl.texi: ...and replace this with a symlink to the newer
45673         fdl-1.3.texi.
45674
45675 2008-11-10  Bruno Haible  <bruno@clisp.org>
45676
45677         * tests/test-select-fd.c (main): Accept the result file name as fourth
45678         argument.
45679         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45680         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45681
45682 2008-11-10  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45685         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45686         as autoconf-substituted macros.
45687         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45688         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45689         gl_NETDB_H_DEFAULTS. Set these variables.
45690         * modules/netdb (Makefile.am): Substitute these variables.
45691
45692 2008-11-10  Eric Blake  <ebb9@byu.net>
45693
45694         standards.texi: include correct file for FDL 1.3
45695         * doc/standards.texi (GNU Free Documentation License): Change
45696         include file to pull in FDL 1.3, not 1.2.
45697
45698         fdl.texi: revert accidental change to license
45699         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45700
45701 2008-11-10  Bruno Haible  <bruno@clisp.org>
45702
45703         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45704         cross-compiling guesses also when the native compile gives no result.
45705
45706 2008-11-10  Bruno Haible  <bruno@clisp.org>
45707
45708         * lib/spawni.c (__spawni): Force variable into the stack.
45709
45710 2008-11-10  Bruno Haible  <bruno@clisp.org>
45711
45712         Add support for Haiku.
45713         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45714         glibc and BeOS, but also on Haiku.
45715         * lib/fpurge.c (fpurge): Likewise.
45716         * lib/freadable.c (freadable): Likewise.
45717         * lib/freadahead.c (freadahead): Likewise.
45718         * lib/freading.c (freading): Likewise.
45719         * lib/freadptr.c (freadptr): Likewise.
45720         * lib/freadseek.c (freadptrinc): Likewise.
45721         * lib/fseeko.c (rpl_fseeko): Likewise.
45722         * lib/fseterr.c (fseterr): Likewise.
45723         * lib/fwritable.c (fwritable): Likewise.
45724         * lib/fwriting.c (fwriting): Likewise.
45725         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45726
45727 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45728
45729         * lib/config.charset: Treat Haiku like BeOS.
45730
45731 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45732
45733         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45734         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45735
45736 2008-11-08  Bruno Haible  <bruno@clisp.org>
45737
45738         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45739         AC_CACHE_CHECK.
45740
45741 2008-11-08  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45744
45745 2008-11-08  Bruno Haible  <bruno@clisp.org>
45746
45747         * tests/test-select-fd.c: New file.
45748         * tests/test-select-in.sh: New file.
45749         * tests/test-select-out.sh: New file.
45750         * tests/test-select-stdin.c: New file.
45751         * modules/select-tests (Files): Add the new files.
45752         (Depends-on): Add gettimeofday.
45753         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45754         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45755         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45756
45757 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45758             Bruno Haible  <bruno@clisp.org>
45759
45760         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45761
45762 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45763
45764         * build-aux/pmccabe2html: Added support for C++ source files.
45765
45766 2008-11-05  Ben Pfaff  <blp@gnu.org>
45767
45768         Fix lib/close.c build on Windows.
45769         * modules/close (Files): Add lib/w32sock.h.
45770
45771 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45772
45773         Accept Bison's NEWS format.
45774         * build-aux/announce-gen (print_news_deltas): Tweak
45775         $re_prefix.
45776
45777 2008-11-04  Bruno Haible  <bruno@clisp.org>
45778
45779         * modules/random_r (Maintainer): Add glibc.
45780
45781 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45782
45783         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45784         by karl@freefriends.org (Karl Berry).
45785         * doc/alloca.texi: Likewise.
45786         * doc/c-ctype.texi: Likewise.
45787         * doc/c-strcase.texi: Likewise.
45788         * doc/c-strcaseeq.texi: Likewise.
45789         * doc/c-strcasestr.texi: Likewise.
45790         * doc/c-strstr.texi: Likewise.
45791         * doc/c-strtod.texi: Likewise.
45792         * doc/c-strtold.texi: Likewise.
45793         * doc/ctime.texi: Likewise.
45794         * doc/error.texi: Likewise.
45795         * doc/fdl.texi: Likewise.
45796         * doc/gcd.texi: Likewise.
45797         * doc/getdate.texi: Likewise.
45798         * doc/gnulib-intro.texi: Likewise.
45799         * doc/gnulib-tool.texi: Likewise.
45800         * doc/gnulib.texi: Likewise.
45801         * doc/inet_ntoa.texi: Likewise.
45802         * doc/maintain.texi: Likewise.
45803         * doc/make-stds.texi: Likewise.
45804         * doc/quote.texi: Likewise.
45805         * doc/regexprops-generic.texi: Likewise.
45806         * doc/standards.texi: Likewise.
45807         * doc/verify.texi: Likewise.
45808         * doc/visibility.texi: Likewise.
45809         * doc/gnulib.texi (GNU Free Documentation License): Include
45810         fdl-1.3.texi instead of fdl.texi.
45811
45812 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45813
45814         * doc/fdl-1.3.texi: New file, from
45815         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45816         * modules/fdl-1.3: Add.
45817         * MODULES.html.sh: Add fdl-1.3.
45818
45819 2008-11-03  Bruno Haible  <bruno@clisp.org>
45820
45821         Make determination of absolute name of header file work with AIX xlc.
45822         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45823         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45824         preprocessing.
45825         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45826         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45827
45828 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45829
45830         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45831         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45832         <ludo@gnu.org>.
45833
45834 2008-11-02  Bruno Haible  <bruno@clisp.org>
45835
45836         Mark 'strpbrk' obsolete.
45837         * modules/strpbrk (Status, Notice): New sections.
45838         * modules/strtok_r (Depends-on): Add strpbrk.
45839
45840 2008-11-02  Bruno Haible  <bruno@clisp.org>
45841
45842         Mark 'strdup' obsolete.
45843         * modules/strdup (Status, Notice): New sections.
45844         * modules/findprog (Depends-on): Add strdup.
45845         * modules/getaddrinfo (Depends-on): Likewise.
45846         * modules/localename (Depends-on): Likewise.
45847         * modules/relocatable-lib (Depends-on): Likewise.
45848         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45849         * modules/relocatable-prog (Depends-on): Likewise.
45850         * modules/trim (Depends-on): Likewise.
45851         * modules/unictype/gen-ctype (Depends-on): Likewise.
45852         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45853
45854 2008-11-02  Bruno Haible  <bruno@clisp.org>
45855
45856         Mark 'strcspn' obsolete.
45857         * modules/strcspn (Status, Notice): New sections.
45858
45859 2008-11-02  Bruno Haible  <bruno@clisp.org>
45860
45861         Mark 'rmdir' obsolete.
45862         * modules/rmdir (Status, Notice): New sections.
45863         * modules/clean-temp (Depends-on): Add rmdir.
45864         * modules/openat (Depends-on): Likewise.
45865
45866 2008-11-02  Bruno Haible  <bruno@clisp.org>
45867
45868         Mark 'raise' obsolete.
45869         * modules/raise (Status, Notice): New sections.
45870         (Include): Specify <signal.h>.
45871         * modules/stdio (Depends-on): Add raise.
45872         * modules/write (Depends-on): Likewise.
45873
45874 2008-11-02  Bruno Haible  <bruno@clisp.org>
45875
45876         Mark 'memset' obsolete.
45877         * modules/memset (Status, Notice): New sections.
45878
45879 2008-11-02  Bruno Haible  <bruno@clisp.org>
45880
45881         Mark 'memmove' obsolete.
45882         * modules/memmove (Status, Notice): New sections.
45883         * modules/argp (Depends-on): Add memmove.
45884         * modules/argz (Depends-on): Likewise.
45885         * modules/canonicalize (Depends-on): Likewise.
45886         * modules/canonicalize-lgpl (Depends-on): Likewise.
45887         * modules/fts (Depends-on): Likewise.
45888         * modules/getcwd (Depends-on): Likewise.
45889         * modules/human (Depends-on): Likewise.
45890         * modules/regex (Depends-on): Likewise.
45891         * modules/striconveh (Depends-on): Likewise.
45892         * modules/trim (Depends-on): Likewise.
45893         * modules/unistr/u8-move (Depends-on): Likewise.
45894         * modules/unistr/u16-move (Depends-on): Likewise.
45895         * modules/unistr/u32-move (Depends-on): Likewise.
45896
45897 2008-11-02  Bruno Haible  <bruno@clisp.org>
45898
45899         Mark 'memcpy' obsolete.
45900         * modules/memcpy (Status, Notice): New sections.
45901
45902 2008-11-02  Bruno Haible  <bruno@clisp.org>
45903
45904         Mark 'memcmp' obsolete.
45905         * modules/memcmp (Status, Notice): New sections.
45906         * modules/argmatch (Depends-on): Add memchr.
45907         * modules/backupfile (Depends-on): Likewise.
45908         * modules/c-strcasestr (Depends-on): Likewise.
45909         * modules/crypto/des (Depends-on): Likewise.
45910         * modules/csharpcomp (Depends-on): Likewise.
45911         * modules/fnmatch (Depends-on): Likewise.
45912         * modules/git-merge-changelog (Depends-on): Likewise.
45913         * modules/isnand (Depends-on): Likewise.
45914         * modules/isnand-nolibm (Depends-on): Likewise.
45915         * modules/isnanf (Depends-on): Likewise.
45916         * modules/isnanf-nolibm (Depends-on): Likewise.
45917         * modules/isnanl (Depends-on): Likewise.
45918         * modules/isnanl-nolibm (Depends-on): Likewise.
45919         * modules/mbchar (Depends-on): Likewise.
45920         * modules/memcoll (Depends-on): Likewise.
45921         * modules/quotearg (Depends-on): Likewise.
45922         * modules/regex (Depends-on): Likewise.
45923         * modules/relocatable-prog (Depends-on): Likewise.
45924         * modules/same (Depends-on): Likewise.
45925         * modules/signbit (Depends-on): Likewise.
45926         * modules/strcasestr-simple (Depends-on): Likewise.
45927         * modules/unictype/gen-ctype (Depends-on): Likewise.
45928         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45929         * modules/uniname/uniname (Depends-on): Likewise.
45930         * modules/unistr/u8-cmp (Depends-on): Likewise.
45931
45932 2008-11-02  Bruno Haible  <bruno@clisp.org>
45933
45934         Mark 'memchr' obsolete.
45935         * modules/memchr (Status, Notice): New sections.
45936         * modules/argp (Depends-on): Add memchr.
45937         * modules/base64 (Depends-on): Likewise.
45938         * modules/c-strcasestr (Depends-on): Likewise.
45939         * modules/chdir-long (Depends-on): Likewise.
45940         * modules/fnmatch (Depends-on): Likewise.
45941         * modules/getsubopt (Depends-on): Likewise.
45942         * modules/git-merge-changelog (Depends-on): Likewise.
45943         * modules/glob (Depends-on): Likewise.
45944         * modules/strcasestr-simple (Depends-on): Likewise.
45945         * modules/strnlen (Depends-on): Likewise.
45946
45947 2008-11-02  Bruno Haible  <bruno@clisp.org>
45948
45949         Mark 'atexit' obsolete.
45950         * modules/atexit (Status, Notice): New sections.
45951         * modules/chdir-long (Depends-on): Add atexit.
45952         * modules/wait-process (Depends-on): Likewise.
45953
45954 2008-11-02  Bruno Haible  <bruno@clisp.org>
45955
45956         * gnulib-tool: New option --with-obsolete.
45957         (func_usage): Document it.
45958         (func_modules_transitive_closure): Drop obsolete dependencies if
45959         incobsolete is not true.
45960         (func_import): Read and save the incobsolete variable to the cache.
45961
45962 2008-11-02  Bruno Haible  <bruno@clisp.org>
45963
45964         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45965         * gnulib-tool: New option --extract-status.
45966         (func_usage): Document it.
45967         (sed_extract_prog): Recognize it.
45968         (func_get_status): New function.
45969
45970 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45971
45972         * modules/sockets (License): Change from LGPL to LGPLv2+.
45973
45974 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45975
45976         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45977
45978 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45979
45980         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45981         Mention times and sys_times.
45982         * modules/sys_times, modules/sys_times-tests: New modules.
45983         * modules/times, modules/times-tests: Likewise
45984         * m4/sys_times_h.m4: New file.
45985         * lib/sys_times.in.h: Likewise
45986         * lib/times.c: Likewise.
45987         * tests/test-sys_times.c: Likewise.
45988         * tests/test-times.c: Likewise.
45989         * doc/posix-headers/sys_times.texi: Update.
45990         * doc/posix-functions/times.texi: Update.
45991
45992 2008-10-28  Jim Meyering  <meyering@redhat.com>
45993
45994         * modules/tempname (Depends-on): Add lstat.
45995
45996         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45997
45998 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45999
46000         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46001         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46002         using idiom used elsewhere in gnulib.
46003
46004 2008-10-27  Jim Meyering  <meyering@redhat.com>
46005
46006         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46007
46008 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46009
46010         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46011         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46012         programs.
46013         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46014
46015 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46016
46017         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46018
46019 2008-10-27  Bruno Haible  <bruno@clisp.org>
46020
46021         * tests/test-lstat.c: Include <stdio.h>.
46022
46023 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46024
46025         * modules/lstat-tests: New module.
46026         * tests/test-lstat.c: New file.
46027
46028 2008-10-26  Jim Meyering  <meyering@redhat.com>
46029
46030         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46031
46032 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46033             Bruno Haible  <bruno@clisp.org>
46034
46035         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46036         * modules/configmake (Include): Add a note that the include must come
46037         after all system headers.
46038         * lib/javaversion.c: Include configmake.h after all other includes.
46039
46040 2008-10-26  Bruno Haible  <bruno@clisp.org>
46041
46042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46043         HAVE_STRUCT_RANDOM_DATA to 1.
46044         (gl_STDLIB_H): Simplify.
46045
46046 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46047
46048         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46049         substitute HAVE_STRUCT_RANDOM_DATA.
46050         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46051         random_data.
46052         * modules/stdlib (Makefile.am): Substitute
46053         HAVE_STRUCT_RANDOM_DATA.
46054
46055 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46056
46057         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46058         * doc/gnulib-intro.texi (Copyright): Likewise.
46059
46060 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46061
46062         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46063         findings.
46064
46065 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46066             Bruno Haible  <bruno@clisp.org>
46067
46068         * lib/unistd.in.h: Include <winsock2.h>.
46069         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46070         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46071         Provide dummy declarations.
46072         (gethostname): Override.
46073         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46074         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46075         gl_PREREQ_SYS_H_WINSOCK2.
46076         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46077         * doc/posix-functions/gethostname.texi: More details.
46078
46079 2008-10-25  Bruno Haible  <bruno@clisp.org>
46080
46081         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46082         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46083         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46084
46085         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46086         here ...
46087         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46088         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46089         gl_UNISTD_H_DEFAULTS.
46090
46091 2008-10-25  Eric Blake  <ebb9@byu.net>
46092
46093         signbit: avoid spurious compiler failure
46094         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46095         declarations inside function.
46096
46097 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46098             Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46101         * modules/random_r (Depends-on): Add stdint.
46102
46103 2008-10-24  Bruno Haible  <bruno@clisp.org>
46104
46105         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46106         Eggert.
46107         * modules/strerror (License): Likewise.
46108
46109 2008-10-24  Jim Meyering  <meyering@redhat.com>
46110
46111         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46112         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46113
46114 2008-10-24  Eric Blake  <ebb9@byu.net>
46115
46116         getgroups: fix compilation when getgroups is available
46117         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46118         but with <config.h> override of getgroups disabled.
46119
46120 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46121
46122         * doc/gnulib.texi (Header files): Add note about C++ problems.
46123         Explained by Bruno Haible <bruno@clisp.org>.
46124
46125 2008-10-23  Bruno Haible  <bruno@clisp.org>
46126
46127         Define a dummy SA_NODEFER macro on Interix.
46128         * lib/signal.in.h (SA_NODEFER): Define fallback.
46129         Reported by Aleksey Cheusov <cheusov@tut.by> via
46130         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46131
46132 2008-10-23  Bruno Haible  <bruno@clisp.org>
46133
46134         * modules/freadahead (License): Change to LGPLv2+.
46135         Suggested by Simon Josefsson.
46136
46137 2008-10-23  Jim Meyering  <meyering@redhat.com>
46138
46139         random_r: new module
46140         * modules/random_r: New file.
46141         * m4/random_r.m4: New file.
46142         * lib/random_r.c: New file, from glibc.
46143         * modules/random_r-tests: New file.
46144         * tests/test-random_r.c: New file.
46145         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46146          Declare.
46147         (RAND_MAX): Define.
46148         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46149         * modules/stdlib: Substitute them, too.
46150         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46151         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46152         * doc/glibc-functions/random_r.texi: Likewise.
46153         * doc/glibc-functions/setstate_r.texi: Likewise.
46154         * doc/glibc-functions/srandom_r.texi: Likewise.
46155         * config/srclist.txt: Mention it.
46156
46157 2008-10-23  David Lutterkort  <lutter@redhat.com>
46158
46159         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46160         link requirement
46161
46162 2008-10-23  Jim Meyering  <meyering@redhat.com>
46163
46164         selinux-h: mark parameters of stub functions as intentionally unused
46165         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46166         * lib/se-context.in.h: Likewise.
46167
46168 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46169
46170         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46171
46172 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46173
46174         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46175
46176 2008-10-22  Eric Blake  <ebb9@byu.net>
46177
46178         glthread/thread: avoid compiler warning
46179         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46180         Add unreachable abort to silence compiler.
46181
46182 2008-10-22  Eric Blake  <ebb9@byu.net>
46183
46184         netdb: also supply struct addrinfo for cygwin 1.5.x
46185         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46186         older cygwin.
46187         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46188         cygwin.
46189         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46190
46191 2008-10-22  Bruno Haible  <bruno@clisp.org>
46192
46193         * users.txt: Update entry about pspp.
46194
46195 2008-10-21  Bruno Haible  <bruno@clisp.org>
46196
46197         Simplification.
46198         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46199         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46200
46201         Simplification.
46202         * lib/ioctl.c (ioctl): Don't undefine.
46203         * lib/socket.c (socket): Don't undefine.
46204
46205         Remove unused module indicator macros.
46206         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46207         GNULIB_$1 as a C macro.
46208
46209         * doc/posix-functions/close.texi: Undo last change.
46210         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46211         Windows platforms.
46212
46213 2008-10-21  Bruno Haible  <bruno@clisp.org>
46214
46215         Add gethostname() declaration to <unistd.h>.
46216         * lib/unistd.in.h (gethostname): New declaration.
46217         * lib/gethostname.c: Include <unistd.h>.
46218         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46219         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46221         and HAVE_GETHOSTNAME.
46222         * modules/gethostname (Depends-on): Add unistd.
46223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46224         (Include): Specify <unistd.h>.
46225         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46226         HAVE_GETHOSTNAME.
46227         * tests/test-gethostname.c: Include <unistd.h> first.
46228
46229 2008-10-21  Bruno Haible  <bruno@clisp.org>
46230
46231         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46232         * modules/select-tests (Depends-on): Likewise.
46233         Reported by Simon Josefsson.
46234
46235 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46236
46237         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46238         * lib/accept.c: New file, based on winsock.c.
46239         * lib/bind.c: New file, based on winsock.c.
46240         * lib/connect.c: New file, based on winsock.c.
46241         * lib/getpeername.c: New file, based on winsock.c.
46242         * lib/getsockname.c: New file, based on winsock.c.
46243         * lib/getsockopt.c: New file, based on winsock.c.
46244         * lib/ioctl.c: New file, based on winsock.c.
46245         * lib/listen.c: New file, based on winsock.c.
46246         * lib/recv.c: New file, based on winsock.c.
46247         * lib/recvfrom.c: New file, based on winsock.c.
46248         * lib/send.c: New file, based on winsock.c.
46249         * lib/sendto.c: New file, based on winsock.c.
46250         * lib/setsockopt.c: New file, based on winsock.c.
46251         * lib/shutdown.c: New file, based on winsock.c.
46252         * lib/socket.c: New file, based on winsock.c.
46253         * lib/w32sock.h: New file, based on winsock.c.
46254         * lib/winsock.c: Remove file.
46255         * modules/accept: Likewise.
46256         * modules/bind: Likewise.
46257         * modules/connect: Likewise.
46258         * modules/getpeername: Likewise.
46259         * modules/getsockname: Likewise.
46260         * modules/getsockopt: Likewise.
46261         * modules/ioctl: Likewise.
46262         * modules/listen: Likewise.
46263         * modules/recv: Likewise.
46264         * modules/recvfrom: Likewise.
46265         * modules/send: Likewise.
46266         * modules/sendto: Likewise.
46267         * modules/setsockopt: Likewise.
46268         * modules/shutdown: Likewise.
46269         * modules/socket: Use socket.c instead of winsock.c.
46270         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46271         * doc/posix-functions/accept.texi: Doc fix.
46272         * doc/posix-functions/bind.texi: Doc fix.
46273         * doc/posix-functions/close.texi: Doc fix.
46274         * doc/posix-functions/connect.texi: Doc fix.
46275         * doc/posix-functions/getpeername.texi: Doc fix.
46276         * doc/posix-functions/getsockname.texi: Doc fix.
46277         * doc/posix-functions/getsockopt.texi: Doc fix.
46278         * doc/posix-functions/ioctl.texi: Doc fix.
46279         * doc/posix-functions/listen.texi: Doc fix.
46280         * doc/posix-functions/recv.texi: Doc fix.
46281         * doc/posix-functions/recvfrom.texi: Doc fix.
46282         * doc/posix-functions/send.texi: Doc fix.
46283         * doc/posix-functions/sendto.texi: Doc fix.
46284         * doc/posix-functions/setsockopt.texi: Doc fix.
46285         * doc/posix-functions/shutdown.texi: Doc fix.
46286         * doc/posix-functions/socket.texi: Doc fix.
46287
46288 2008-10-20  Bruno Haible  <bruno@clisp.org>
46289
46290         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46291         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46292         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46293         as an alias for SIGABRT.
46294         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46295         (sigaction): Map it to SIGABRT.
46296         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46297
46298 2008-10-20  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/fts.c: Don't include lstat.h.
46301         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46302
46303         Move the lstat() declaration to <sys/stat.h>.
46304         * lib/lstat.h: Remove file.
46305         * lib/sys_stat.in.h: Add special invocation convention.
46306         (lstat): New declaration.
46307         * lib/lstat.c (orig_lstat): New function.
46308         (rpl_lstat): Use orig_lstat instead of lstat.
46309         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46310         AC_C_INLINE. Set REPLACE_LSTAT.
46311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46312         and REPLACE_LSTAT.
46313         * modules/lstat (Files): Remove lib/lstat.h.
46314         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46315         (Include): Specify <sys/stat.h> instead of lstat.h.
46316         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46317         REPLACE_LSTAT.
46318         * NEWS: Mention the change.
46319
46320 2008-10-20  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/posix_spawn-tests: New file.
46323         * tests/test-posix_spawn3.c: New file.
46324
46325 2008-10-20  Bruno Haible  <bruno@clisp.org>
46326
46327         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46328         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46329         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46330         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46331         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46332
46333 2008-10-20  Bruno Haible  <bruno@clisp.org>
46334
46335         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46336         of posix_spawn on AIX 5.3.
46337
46338 2008-10-20  Bruno Haible  <bruno@clisp.org>
46339
46340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46341
46342 2008-10-20  Bruno Haible  <bruno@clisp.org>
46343
46344         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46345         of AC_LANG_PROGRAM.
46346
46347 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46348
46349         * lib/netdb.in.h: Don't define GNU specific constants until they
46350         are supported or needed.  Reported by Bruno Haible
46351         <bruno@clisp.org>.
46352
46353 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46354
46355         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46356
46357 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46358
46359         * lib/getaddrinfo.h: Remove file.
46360         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46361         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46362         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46363         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46364         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46365         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46366         * tests/test-getaddrinfo.c: Likewise.
46367         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46368         * NEWS: Mention change.
46369
46370 2008-10-19  Bruno Haible  <bruno@clisp.org>
46371
46372         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46373
46374 2008-10-19  Bruno Haible  <bruno@clisp.org>
46375
46376         * lib/wait-process.c: Include simply <sys/wait.h>.
46377         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46378         WIFSTOPPED): Remove fallback definitions.
46379         * modules/wait-process (Depends-on): Add sys_wait.
46380
46381         New module 'sys_wait'.
46382         * modules/sys_wait: New file.
46383         * lib/sys_wait.in.h: New file, partially copied from
46384         lib/wait-process.c.
46385         * m4/sys_wait_h.m4: New file.
46386         * doc/posix-headers/sys_wait.texi: Mention the new module.
46387
46388 2008-10-19  Bruno Haible  <bruno@clisp.org>
46389
46390         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46391
46392 2008-10-19  Bruno Haible  <bruno@clisp.org>
46393
46394         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46395         * lib/wait-process.c (WAIT_T): Remove type.
46396         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46397         (wait_subprocess): Update.
46398
46399 2008-10-19  Bruno Haible  <bruno@clisp.org>
46400
46401         New module 'atoll'.
46402         * modules/atoll: New file.
46403         * lib/stdlib.in.h (atoll): New declaration.
46404         * lib/atoll.c: New file, from glibc with modifications.
46405         * m4/atoll.m4: New file.
46406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46407         HAVE_ATOLL.
46408         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46409         * doc/posix-functions/atoll.texi: Mention the new module.
46410
46411 2008-10-19  Bruno Haible  <bruno@clisp.org>
46412
46413         Add strtoull() declaration to <stdlib.h>.
46414         * lib/stdlib.in.h (strtoull): New declaration.
46415         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46416         Set HAVE_STRTOULL.
46417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46418         HAVE_STRTOULL.
46419         * modules/strtoull (Depends-on): Add stdlib.
46420         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46421         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46422         HAVE_STRTOULL.
46423
46424 2008-10-19  Bruno Haible  <bruno@clisp.org>
46425
46426         Add strtoll() declaration to <stdlib.h>.
46427         * lib/stdlib.in.h (strtoll): New declaration.
46428         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46429         Set HAVE_STRTOLL.
46430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46431         HAVE_STRTOLL.
46432         * modules/strtoll (Depends-on): Add stdlib.
46433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46434         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46435
46436 2008-10-19  Bruno Haible  <bruno@clisp.org>
46437
46438         * modules/bcopy (Depends-on): Add strings.
46439         (Include): Specify <strings.h>.
46440
46441 2008-10-19  Bruno Haible  <bruno@clisp.org>
46442
46443         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46444
46445 2008-10-19  Bruno Haible  <bruno@clisp.org>
46446
46447         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46448         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46449         mingw.
46450
46451 2008-10-19  Bruno Haible  <bruno@clisp.org>
46452
46453         * lib/atanl.c: Don't include isnanl.h.
46454         * lib/cosl.c: Likewise.
46455         * lib/ldexpl.c: Likewise.
46456         * lib/logl.c: Likewise.
46457         * lib/sinl.c: Likewise.
46458         * lib/sqrtl.c: Likewise.
46459         * lib/tanl.c: Likewise.
46460
46461         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46462         * lib/isnanf.h: Remove file.
46463         * lib/isnand.h: Remove file.
46464         * lib/isnanl.h: Remove file.
46465         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46466         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46467         macros.
46468         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46469         HAVE_ISNANF, don't define it as a C macro.
46470         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46471         HAVE_ISNAND, don't define it as a C macro.
46472         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46473         HAVE_ISNANL, don't define it as a C macro.
46474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46475         HAVE_ISNAN[FDL].
46476         * modules/isnanf (Files): Remove lib/isnanf.h.
46477         (Depends-on): Add math.
46478         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46479         (Include): Specify <math.h> instead of isnanf.h.
46480         * modules/isnand (Files): Remove lib/isnand.h.
46481         (Depends-on): Add math.
46482         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46483         (Include): Specify <math.h> instead of isnand.h.
46484         * modules/isnanl (Files): Remove lib/isnanl.h.
46485         (Depends-on): Add math.
46486         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46487         (Include): Specify <math.h> instead of isnanl.h.
46488         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46489         HAVE_ISNAN[FDL].
46490         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46491         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46492         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46493         * NEWS: Mention the change.
46494
46495 2008-10-18  Bruno Haible  <bruno@clisp.org>
46496
46497         Add getusershell(), setusershell(), endusershell() declarations to
46498         <unistd.h>.
46499         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46500         declarations.
46501         * lib/getusershell.c: Include unistd.h.
46502         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46503         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46504         HAVE_GETUSERSHELL.
46505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46506         and HAVE_GETUSERSHELL.
46507         * modules/getusershell (Depends-on): Add unistd, extensions.
46508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46509         (Include): Specify <unistd.h>.
46510         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46511         HAVE_GETUSERSHELL.
46512
46513 2008-10-18  Bruno Haible  <bruno@clisp.org>
46514
46515         Add a getloadavg() declaration to <stdlib.h>.
46516         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46517         getloadavg declaration.
46518         (getloadavg): New declaration.
46519         * lib/getloadavg.c: Include <stdlib.h> first.
46520         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46521         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46522         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46524         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46525         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46527         (Include): Specify <stdlib.h>.
46528         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46529         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46530
46531 2008-10-18  Bruno Haible  <bruno@clisp.org>
46532
46533         * lib/dirchownmod.c: Don't include lchmod.h.
46534
46535         Move the lchmod() declaration to <sys/stat.h>.
46536         * lib/lchmod.h: Remove file.
46537         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46538         (lchmod): New declaration, moved here from lib/lchown.h.
46539         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46540         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46542         and HAVE_LCHMOD.
46543         * modules/lchmod (Files): Remove lib/lchmod.h.
46544         (Depends-on): Add sys_stat, extensions.
46545         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46546         (Include): Specify <sys/stat.h> instead of lchmod.h.
46547         * modules/sys_stat (Depends-on): Add link-warning.
46548         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46549         definition of GL_LINK_WARNING.
46550         * NEWS: Mention the change.
46551
46552 2008-10-18  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/fchdir.c: Don't include dirfd.h.
46555         * lib/fts.c: Likewise.
46556         * lib/getcwd.c: Likewise.
46557         * lib/glob.c: Likewise.
46558
46559         Move the dirfd() declaration to <dirent.h>.
46560         * lib/dirfd.h: Remove file.
46561         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46562         (dirfd): New declaration.
46563         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46564         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46565         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46566         HAVE_DECL_DIRFD.
46567         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46568         HAVE_DECL_DIRFD.
46569         * modules/dirfd (Files): Remove lib/dirfd.h.
46570         (Depends-on): Add dirent, extensions.
46571         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46572         (Include): Specify <dirent.h> instead of dirfd.h.
46573         * modules/dirent (Depends-on): Add link-warning.
46574         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46575         definition of GL_LINK_WARNING.
46576         * NEWS: Mention the change.
46577
46578 2008-10-18  Bruno Haible  <bruno@clisp.org>
46579
46580         Move the euidaccess() declaration to <unistd.h>.
46581         * lib/euidaccess.h: Remove file.
46582         * lib/unistd.in.h (euidaccess): New declaration.
46583         * lib/euidaccess.c: Don't include euidaccess.h.
46584         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46585         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46587         and HAVE_EUIDACCESS.
46588         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46589         (Depends-on): Add unistd.
46590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46591         (Include): Specify <unistd.h> instead of euidaccess.h.
46592         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46593         HAVE_EUIDACCESS.
46594         * NEWS: Mention the change.
46595
46596 2008-10-18  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46599
46600         Move the getdomainname() declaration to <unistd.h>.
46601         * lib/getdomainname.h: Remove file.
46602         * lib/unistd.in.h (getdomainname): New declaration.
46603         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46604         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46605         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46606         HAVE_GETDOMAINNAME.
46607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46608         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46609         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46610         (Depends-on): Add unistd, extensions.
46611         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46612         (Includes): Specify <unistd.h> instead of getdomainname.h.
46613         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46614         HAVE_GETDOMAINNAME.
46615         * NEWS: Mention the change.
46616
46617 2008-10-18  Bruno Haible  <bruno@clisp.org>
46618
46619         * modules/dirent: New file.
46620         * m4/dirent_h.m4: New file.
46621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46622         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46623         * modules/fchdir (Files): Remove lib/dirent.in.h.
46624         (Depends-on): Add dirent.
46625         (Makefile.am): Move rules to modules/dirent.
46626         * doc/posix-headers/dirent.texi: Mention the new module.
46627
46628 2008-10-18  Bruno Haible  <bruno@clisp.org>
46629
46630         Avoid -Wunused-parameter warnings in public gnulib header files.
46631         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46632         macro.
46633         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46634
46635 2008-10-18  Bruno Haible  <bruno@clisp.org>
46636
46637         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46638         * doc/glibc-functions/error.texi: Mention the module 'error'.
46639         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46640         * doc/glibc-functions/getdomainname.texi: Mention the module
46641         'getdomainname'.
46642         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46643         * doc/glibc-functions/getpagesize.texi: Mention the module
46644         'getpagesize'.
46645         * doc/glibc-functions/getusershell.texi: Mention the module
46646         'getusershell'.
46647         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46648         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46649         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46650         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46651         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46652         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46653         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46654         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46655         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46656         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46657         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46658         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46659         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46660         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46661
46662 2008-10-17  Bruno Haible  <bruno@clisp.org>
46663
46664         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46665         HP-UX and IRIX, use -0.0L.
46666         * tests/test-ceill.c (minus_zero): Likewise.
46667         * tests/test-floorl.c (minus_zero): Likewise.
46668         * tests/test-frexpl.c (minus_zero): Likewise.
46669         * tests/test-isnan.c (minus_zerol): Likewise.
46670         * tests/test-isnanl.h (minus_zero): Likewise.
46671         * tests/test-ldexpl.c (minus_zero): Likewise.
46672         * tests/test-roundl.c (minus_zero): Likewise.
46673         * tests/test-signbit.c (minus_zerol): Likewise.
46674         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46675         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46676         * tests/test-truncl.c (minus_zero): Likewise.
46677         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46678         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46679         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46680         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46681
46682 2008-10-17  Bruno Haible  <bruno@clisp.org>
46683
46684         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46685         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46686         that it gets activated only for gcc >= 3.0.
46687         * lib/dirent.in.h: Likewise.
46688         * lib/errno.in.h: Likewise.
46689         * lib/fcntl.in.h: Likewise.
46690         * lib/float.in.h: Likewise.
46691         * lib/iconv.in.h: Likewise.
46692         * lib/inttypes.in.h: Likewise.
46693         * lib/locale.in.h: Likewise.
46694         * lib/math.in.h: Likewise.
46695         * lib/netdb.in.h: Likewise.
46696         * lib/netinet_in.in.h: Likewise.
46697         * lib/search.in.h: Likewise.
46698         * lib/signal.in.h: Likewise.
46699         * lib/spawn.in.h: Likewise.
46700         * lib/stdarg.in.h: Likewise.
46701         * lib/stdint.in.h: Likewise.
46702         * lib/stdio.in.h: Likewise.
46703         * lib/stdlib.in.h: Likewise.
46704         * lib/string.in.h: Likewise.
46705         * lib/strings.in.h: Likewise.
46706         * lib/sys_file.in.h: Likewise.
46707         * lib/sys_ioctl.in.h: Likewise.
46708         * lib/sys_select.in.h: Likewise.
46709         * lib/sys_socket.in.h: Likewise.
46710         * lib/sys_stat.in.h: Likewise.
46711         * lib/sys_time.in.h: Likewise.
46712         * lib/sysexits.in.h: Likewise.
46713         * lib/time.in.h: Likewise.
46714         * lib/unistd.in.h: Likewise.
46715         * lib/wchar.in.h: Likewise.
46716         * lib/wctype.in.h: Likewise.
46717         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46718
46719 2008-10-17  Jim Meyering  <meyering@redhat.com>
46720
46721         ignore-value: don't depend on inline module
46722         * modules/ignore-value (Depends-on): Remove 'inline'.
46723         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46724         Suggestion from Bruno Haible.
46725
46726 2008-10-17  Bruno Haible  <bruno@clisp.org>
46727
46728         New implementation of condition variables for Win32.
46729         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46730         (gl_linked_waitqueue_t): New type.
46731         (gl_cond_t): Use it.
46732         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46733         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46734         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46735         (glthread_cond_init_func, glthread_cond_wait_func,
46736         glthread_cond_timedwait_func, glthread_cond_signal_func,
46737         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46738         Reimplemented on the basis of gl_linked_waitqueue_t.
46739         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46740         gl_waitqueue_t.
46741         (gl_rwlock_t): Update.
46742         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46743
46744 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46745
46746         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46747         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46748
46749 2008-10-17  Jim Meyering  <meyering@redhat.com>
46750
46751         ignore-value: new module
46752         * modules/ignore-value: New file.
46753         * lib/ignore-value.h: New file.
46754         * MODULES.html.sh (Compiler warning management): New section,
46755         just for this module.  More to come.
46756
46757 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46758
46759         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46760         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46761         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46762
46763 2008-10-16  Jim Meyering  <meyering@redhat.com>
46764
46765         openat-die.c: avoid 'no previous prototype' warning
46766         * lib/openat-die.c: Include "openat.h".
46767         Reported by Reuben Thomas <rrt@sc3d.org>.
46768
46769 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46770
46771         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46772         * lib/netdb.in.h: Fix typo.
46773         Reported by Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/netdb.in.h: Include sys/socket.h for platforms without
46776         netdb.h, to get structures like hostent on MinGW.
46777         * modules/netdb (Depends-on): Add sys_socket.
46778
46779 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46780
46781         * modules/netdb, modules/netdb-tests: New file.
46782         * m4/netdb_h.m4: New file.
46783         * lib/netdb.in.h: Add, currently just an empty file pending
46784         definitions.
46785         * tests/test-netdb.c: New file.
46786         * doc/posix-headers/netdb.texi: Mention that we replace it if
46787         needed.
46788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46789         netdb.
46790
46791 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46792
46793         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46794         with code.
46795
46796 2008-10-13  Bruno Haible  <bruno@clisp.org>
46797
46798         * lib/glthread/cond.c (glthread_cond_wait_func,
46799         glthread_cond_timedwait_func): Add a comment.
46800
46801 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46802
46803         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46804         * tests/test-select.c: Likewise,
46805
46806 2008-10-13  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/glthread/cond.c (glthread_cond_wait_func,
46809         glthread_cond_timedwait_func): Fix variable name.
46810         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46811
46812 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46813
46814         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46815         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46816         struct sockaddr.sa_len.
46817         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46818
46819 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46820
46821         * build-aux/pmccabe2html: Add css and css_url parameters.
46822
46823 2008-10-12  Bruno Haible  <bruno@clisp.org>
46824
46825         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46826         calling aclx_get.
46827         Reported by Rainer Tammer <tammer@tammer.net>.
46828
46829 2008-10-12  Bruno Haible  <bruno@clisp.org>
46830
46831         Use msvcrt aware primitives for creation/termination of Win32 threads.
46832         * lib/glthread/thread.c: Include <process.h>.
46833         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46834         (wrapper_func): Update signature.
46835         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46836
46837 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46838             Bruno Haible  <bruno@clisp.org>
46839
46840         Provide a Win32 implementation of the 'cond' module.
46841         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46842         * lib/glthread/cond.c (glthread_cond_init_func,
46843         glthread_cond_wait_func, glthread_cond_timedwait_func,
46844         glthread_cond_signal_func, glthread_cond_broadcast_func,
46845         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46846         * modules/cond (Dependencies): Add gettimeofday.
46847
46848 2008-10-11  Bruno Haible  <bruno@clisp.org>
46849
46850         Make sleep work on older versions of mingw.
46851         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46852         only whether it exists.
46853         * doc/posix-functions/sleep.texi: Mention the problem with older
46854         versions of mingw.
46855
46856 2008-10-11  Bruno Haible  <bruno@clisp.org>
46857
46858         New module 'shutdown'.
46859         * modules/shutdown: New file.
46860         * lib/sys_socket.in.h (shutdown): New declaration.
46861         * lib/winsock.c (shutdown): New function.
46862         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46863         GNULIB_SHUTDOWN.
46864         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46865         * doc/posix-functions/shutdown.texi: Document the new module.
46866
46867 2008-10-11  Jim Meyering  <meyering@redhat.com>
46868
46869         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46870
46871 2008-10-11  Bruno Haible  <bruno@clisp.org>
46872
46873         New module 'fclose'.
46874         * modules/fclose: New file.
46875         * lib/stdio.in.h (fclose): New declaration.
46876         * lib/fclose.c: New file.
46877         * m4/fclose.m4: New file.
46878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46879         REPLACE_FCLOSE.
46880         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46881         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46882         REPLACE_FCLOSE.
46883         * modules/close (Depends-on): fclose.
46884         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46885
46886 2008-10-11  Bruno Haible  <bruno@clisp.org>
46887
46888         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46889         set errno and don't call _close.
46890
46891 2008-10-10  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46894         ACL, not afterwards. Fixes test failure on Cygwin.
46895
46896 2008-10-09  Ben Pfaff  <blp@gnu.org>
46897
46898         * build-aux/announce-gen: Fix gnulib version related part of usage
46899         message.  Die with a useful error message if no tarballs are
46900         found.
46901
46902 2008-10-10  Jim Meyering  <meyering@redhat.com>
46903
46904         bootstrap: use git's --depth=N option only if it's supported
46905         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46906         recognize the --depth option.  Reported by Pádraig Brady.
46907
46908 2008-10-09  Bruno Haible  <bruno@clisp.org>
46909
46910         New module 'ioctl'.
46911         * modules/ioctl: New file.
46912         * lib/sys_socket.in.h (ioctl): Remove declaration.
46913         * lib/winsock.c: Include <sys/ioctl.h>.
46914         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46915         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46916         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46917         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46918         * doc/posix-functions/ioctl.texi: Mention the new module.
46919
46920 2008-10-09  Bruno Haible  <bruno@clisp.org>
46921
46922         New module 'sys_ioctl'.
46923         * lib/sys_ioctl.in.h: New file.
46924         * m4/sys_ioctl_h.m4: New file.
46925         * modules/sys_ioctl: New file.
46926         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46927
46928 2008-10-09  Bruno Haible  <bruno@clisp.org>
46929
46930         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46931         * lib/winsock.c: Include <stdarg.h>.
46932         (rpl_ioctl): Change to second argument 'int' and then varargs.
46933
46934 2008-10-09  Bruno Haible  <bruno@clisp.org>
46935
46936         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46937         when the sys_socket module is present and the system has <winsock2.h>.
46938
46939 2008-10-09  Bruno Haible  <bruno@clisp.org>
46940
46941         * doc/posix-functions/close.texi: Mention module 'close' instead of
46942         module 'sys_socket'.
46943
46944 2008-10-09  Bruno Haible  <bruno@clisp.org>
46945
46946         * doc/glibc-headers/sys_ioctl.texi: New file.
46947         * doc/gnulib.texi: Include it.
46948
46949 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46950             Bruno Haible  <bruno@clisp.org>
46951
46952         Combine the two replacements of 'close'.
46953         * lib/sys_socket.in.h (close): Define to a reminder to include
46954         <unistd.h>.
46955         (_gl_close_fd_maybe_socket): New declaration.
46956         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46957         * lib/winsock.c (close): Remove undefinition.
46958         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46959         needed for the gnulib module 'close'.
46960         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46961         define to an error symbol or to a warning, if suitable.
46962         * lib/close.c: Include <sys/socket.h>.
46963         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46964         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46965         UNISTD_H_HAVE_WINSOCK2_H.
46966         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46968         UNISTD_H_HAVE_WINSOCK2_H.
46969         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46970         (configure.ac): Set a module indicator.
46971         (Makefile.am): Substitute GNULIB_CLOSE.
46972         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46973         * modules/poll-tests (Depends-on): Add close.
46974         * modules/select-tests (Depends-on): Likewise.
46975
46976 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46977             Bruno Haible  <bruno@clisp.org>
46978
46979         New module 'close'.
46980         * modules/close: New file.
46981         * lib/unistd.in.h (close): Move declaration out of the
46982         FCHDIR_REPLACEMENT scope.
46983         (_gl_unregister_fd): New declaration.
46984         * lib/close.c: New file.
46985         * lib/fchdir.c (rpl_close): Remove function.
46986         * m4/close.m4: New file.
46987         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46988         close.
46989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46990         REPLACE_CLOSE.
46991         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46992         REPLACE_CLOSE.
46993         * modules/fchdir (Depends-on): Add close.
46994
46995 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46996             Bruno Haible  <bruno@clisp.org>
46997
46998         * lib/fcntl.in.h (open): Simplify conditionals.
46999         (_gl_register_fd): New declaration.
47000         * lib/fchdir.c (rpl_open): Remove function.
47001         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47002         also.
47003         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47005         open.
47006
47007 2008-10-09  Jim Meyering  <meyering@redhat.com>
47008
47009         GNUmakefile: use the more name-space-friendly "_version"
47010         * top/GNUmakefile (_dummy): Update.
47011         (_version): Rename from "version".
47012
47013 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47014             Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47017         rpl_close.
47018         (_gl_register_fd): New function, extracted from rpl_open.
47019         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47020         (rpl_open, rpl_opendir): Use _gl_register_fd.
47021
47022 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47023
47024         Fix organization of 'open' replacement.
47025         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47026         (gl_FUNC_OPEN): Use it.
47027         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47028
47029 2008-10-08  Bruno Haible  <bruno@clisp.org>
47030
47031         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47032
47033 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47034
47035         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47036         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47037         listen).
47038
47039 2008-10-08  Eric Blake  <ebb9@byu.net>
47040
47041         GNUmakefile: add 'make version' target
47042         * top/GNUmakefile (_curr-ver): Split version update rules...
47043         (version): ...into a target.
47044
47045 2008-10-07  Bruno Haible  <bruno@clisp.org>
47046
47047         Use a more portable replacement expression for -0.0L.
47048         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47049         instead of -0.0L. Fix m4 quotation.
47050
47051         * tests/test-signbit.c: Include <float.h>.
47052         (minus_zero): New variable.
47053         (test_signbitl): Use minus_zero instead of -zero.
47054         * modules/signbit-tests (Depends-on): Add float.
47055
47056         * tests/test-ceill.c: Include <float.h>.
47057         (zero): Remove variable.
47058         (minus_zero): New variable.
47059         (main): Use minus_zero instead of -zero.
47060         * modules/ceill-tests (Depends-on): Add float.
47061
47062         * tests/test-floorl.c: Include <float.h>.
47063         (zero): Remove variable.
47064         (minus_zero): New variable.
47065         (main): Use minus_zero instead of -zero.
47066         * modules/floorl-tests (Depends-on): Add float.
47067
47068         * tests/test-roundl.c: Include <float.h>.
47069         (zero): Remove variable.
47070         (minus_zero): New variable.
47071         (main): Use minus_zero instead of -zero.
47072         * modules/roundl-tests (Depends-on): Add float.
47073
47074         * tests/test-truncl.c: Include <float.h>.
47075         (zero): Remove variable.
47076         (minus_zero): New variable.
47077         (main): Use minus_zero instead of -zero.
47078         * modules/truncl-tests (Depends-on): Add float.
47079
47080         * tests/test-frexpl.c (zero): Remove variable.
47081         (minus_zero): New variable.
47082         (main): Use minus_zero instead of -zero.
47083         * modules/frexpl-tests (Depends-on): Add float.
47084
47085         * tests/test-isnan.c (zerol): Remove variable.
47086         (minus_zerol): New variable.
47087         (test_long_double): Use minus_zerol instead of -zerol.
47088         * modules/isnan-tests (Depends-on): Add float.
47089
47090         * tests/test-isnanl.h (zero): Remove variable.
47091         (minus_zero): New variable.
47092         (main): Use minus_zero instead of -zero.
47093         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47094         * modules/isnanl-tests (Depends-on): Add float.
47095
47096         * tests/test-ldexpl.c (zero): Remove variable.
47097         (minus_zero): New variable.
47098         (main): Use minus_zero instead of -zero.
47099         * modules/ldexpl-tests (Depends-on): Add float.
47100
47101         * tests/test-snprintf-posix.h (zerol): Remove variable.
47102         (minus_zerol): New variable.
47103         (test_function): Use minus_zerol instead of -zerol.
47104         * modules/snprintf-posix-tests (Depends-on): Add float.
47105         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47106
47107         * tests/test-sprintf-posix.h (zerol): Remove variable.
47108         (minus_zerol): New variable.
47109         (test_function): Use minus_zerol instead of -zerol.
47110         * modules/sprintf-posix-tests (Depends-on): Add float.
47111         * modules/vsprintf-posix-tests (Depends-on): Add float.
47112
47113         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47114         (minus_zerol): New variable.
47115         (test_function): Use minus_zerol instead of -zerol.
47116         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47117
47118         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47119         (minus_zerol): New variable.
47120         (test_function): Use minus_zerol instead of -zerol.
47121         * modules/vasprintf-posix-tests (Depends-on): Add float.
47122
47123 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47124
47125         * MODULES.html.sh (Support for building documentation): Mention
47126         pmccabe2html.  Sort entries.
47127
47128         Add pmccabe2html module, from gnupdf.
47129         * build-aux/pmccabe.css: New file.
47130         * build-aux/pmccabe2html: New file.
47131         * m4/pmccabe2html.m4: New file.
47132         * modules/pmccabe2html: New file.
47133
47134 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47135
47136         flock: new module
47137         * MODULES.html.sh: Add to list of modules.
47138         * lib/flock.c: flock implementation for Windows and Unix systems
47139         which have fcntl.
47140         * doc/glibc-functions/flock.texi: Update documentation.
47141         * lib/sys_file.in.h: <sys/file.h> header file.
47142         * m4/flock.m4: M4 macros.
47143         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47144         * modules/flock: flock module.
47145         * modules/flock-tests: flock tests module.
47146         * modules/sys_file: sys/file.h module.
47147         * tests/test-flock.c: test suite for flock.
47148
47149 2008-10-06  Jim Meyering  <meyering@redhat.com>
47150
47151         bootstrap: check for LT_INIT more portably still ;-)
47152         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47153         Spotted by Bruno Haible.
47154
47155 2008-10-06  Eric Blake  <ebb9@byu.net>
47156
47157         test-signbit: avoid tripping Irix cc bug on -0.0L
47158         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47159         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47160         entire testsuite consistent and avoids an Irix 6.2 bug.
47161
47162 2008-10-05  Bruno Haible  <bruno@clisp.org>
47163             Jim Meyering  <jim@meyering.net>
47164
47165         Add an option for ignoring EPIPE during close_stdout.
47166         * lib/closeout.h: Include <stdbool.h>.
47167         (close_stdout_set_ignore_EPIPE): New declaration.
47168         * lib/closeout.c: Include <stdbool.h>.
47169         (ignore_EPIPE): New variable.
47170         (close_stdout_set_ignore_EPIPE): New function.
47171         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47172         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47173         failure.
47174         * modules/closeout (Depends-on): Add stdbool.
47175
47176 2008-10-05  Bruno Haible  <bruno@clisp.org>
47177
47178         * modules/accept: New file.
47179         * modules/bind: New file.
47180         * modules/connect: New file.
47181         * modules/getpeername: New file.
47182         * modules/getsockname: New file.
47183         * modules/getsockopt: New file.
47184         * modules/listen: New file.
47185         * modules/recv: New file.
47186         * modules/recvfrom: New file.
47187         * modules/send: New file.
47188         * modules/sendto: New file.
47189         * modules/setsockopt: New file.
47190         * modules/socket: New file.
47191         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47192         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47193         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47194         the particular module is requested. Add a link warning when the
47195         particular module is not requested.
47196         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47197         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47198         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47199         the particular module is requested.
47200         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47201         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47202         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47203         * modules/sys_socket (Depends-on): Add link-warning.
47204         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47205         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47206         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47207         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47208         GL_LINK_WARNING.
47209         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47210         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47211         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47212         * doc/posix-functions/getpeername.texi: Mention the new module
47213         'getpeername'.
47214         * doc/posix-functions/getsockname.texi: Mention the new module
47215         'getsockname'.
47216         * doc/posix-functions/getsockopt.texi: Mention the new module
47217         'getsockopt'.
47218         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47219         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47220         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47221         * doc/posix-functions/send.texi: Mention the new module 'send'.
47222         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47223         * doc/posix-functions/setsockopt.texi: Mention the new module
47224         'setsockopt'.
47225         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47226         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47227         listen, connect, accept.
47228         * modules/select-tests (Depends-on): Likewise.
47229
47230 2008-10-05  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/winsock.c (strerror): Remove unused #undef.
47233         (rpl_close): Remove unused local variable.
47234
47235         * modules/sys_socket (Depends-on); Add errno.
47236
47237 2008-10-05  Bruno Haible  <bruno@clisp.org>
47238
47239         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47240         (select): Add a link warning when the 'select' module is not used.
47241         * modules/sys_select (Depends-on): Add link-warning.
47242         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47243         Suggested by Paolo Bonzini.
47244
47245 2008-10-05  Jim Meyering  <meyering@redhat.com>
47246
47247         bootstrap: check for LT_INIT more portably
47248         * build-aux/bootstrap: Avoid using grep -E, since it's not
47249         portable enough.  Suggestion from Bruno Haible.
47250
47251 2008-10-05  Bruno Haible  <bruno@clisp.org>
47252
47253         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47254         as being fixed by gnulib.
47255
47256 2008-10-05  Bruno Haible  <bruno@clisp.org>
47257
47258         * modules/select-tests: New file, mostly copied from
47259         modules/sys_select-tests.
47260         * tests/test-select.c: New file, mostly copied from
47261         tests/test-sys_select.c.
47262         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47263         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47264         (Makefile.am): Remove test_sys_select_LDADD.
47265
47266         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47267         to an undefined symbol, for an error message.
47268         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47269         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47270         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47271         winsock-select.c here.
47272         * modules/sys_select (Files): Remove lib/winsock-select.c.
47273         (Depends-on): Remove alloca.
47274         (Makefile.am): Substitute GNULIB_SELECT.
47275         * modules/select: New file.
47276         * doc/posix-functions/select.texi: Update.
47277
47278 2008-10-05  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47281         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47282         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47283         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47284         getdtablesize.
47285         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47286         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47287
47288 2008-10-05  Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/getdtablesize-tests: New file.
47291         * tests/test-getdtablesize.c: New file.
47292
47293         New module 'getdtablesize'.
47294         * lib/unistd.in.h (getdtablesize): New declaration.
47295         * lib/getdtablesize.c: New file.
47296         * m4/getdtablesize.m4: New file.
47297         * modules/getdtablesize: New file.
47298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47299         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47300         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47301         HAVE_GETDTABLESIZE.
47302         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47303
47304 2008-10-05  Bruno Haible  <bruno@clisp.org>
47305
47306         * modules/sched (Makefile.am): Fix typo.
47307         Reported by Simon Josefsson.
47308
47309 2008-10-05  Jim Meyering  <meyering@redhat.com>
47310
47311         bootstrap: check for LT_INIT, too
47312         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47313         are deprecated.  Suggestion from Ralf Wildenhues.
47314
47315 2008-10-05  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47318         overriding them by ours.
47319         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47320
47321 2008-10-05  Jim Meyering  <meyering@redhat.com>
47322
47323         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47324         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47325         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47326
47327 2008-10-04  Bruno Haible  <bruno@clisp.org>
47328
47329         * modules/dup2 (License): Change to LGPLv2+.
47330         * modules/sleep (License): Likewise.
47331         * modules/perror (License): Likewise.
47332         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47333         Blake.
47334         * modules/signal (License): Likewise.
47335         * modules/sigprocmask (License): Likewise.
47336         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47337         Meyering.
47338
47339 2008-10-04  Bruno Haible  <bruno@clisp.org>
47340
47341         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47342         Reported by Rainer Tammer <tammer@tammer.net>.
47343
47344 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47345             Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47348         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47349         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47350
47351 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47352
47353         filevercmp: new module
47354         * lib/filevercmp.h: New function filevercmp comparing version strings.
47355         * lib/filevercmp.c: Implementation of filevercmp function.
47356         * modules/filevercmp: Module metadata.
47357         * tests/test-filevercmp.c: Unit test for new module.
47358         * modules/filevercmp-tests: Unit test metadata.
47359         * MODULES.html.sh: Add filevercmp module.
47360
47361 2008-10-03  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/c-ctype.h: Add comment.
47364         Reported by Jim Meyering.
47365
47366 2008-10-02  Bruno Haible  <bruno@clisp.org>
47367
47368         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47369
47370 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47371
47372         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47373         name of bootstrap.conf accordingly.
47374
47375 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47376
47377         * build-aux/bootstrap: Install git-merge-changelog configuration
47378         items into .gitconfig if needed.
47379
47380 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47381
47382         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47383         git repository, and initialize/update it accordingly.
47384
47385 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47386
47387         * modules/fsync-tests: New file.
47388         * tests/test-fsync.c: New file.
47389
47390         New module 'fsync'.
47391         * lib/fsync.c: New file.
47392         * m4/fsync.m4: New file.
47393         * modules/fsync: New file.
47394         * lib/unistd.in.h (fsync): New declaration.
47395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47396         GNULIB_FSYNC and HAVE_FSYNC.
47397         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47398         * MODULES.html.sh (posix_functions): Add fsync.
47399         * doc/posix-functions/fsync.texi: Mention the new module.
47400
47401 2008-10-02  Jim Meyering  <meyering@redhat.com>
47402
47403         fts.c: sync with similar code from coreutils' remove.c
47404         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47405         Guard also with "#if defined __linux__", since for now at least,
47406         this code is Linux-kernel-specific.
47407
47408 2008-10-02  Jim Meyering  <meyering@redhat.com>
47409
47410         fts: bug fixes
47411         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47412         Include <sys/vfs.h>, not <sys/statfs.h>.
47413
47414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47415         Include <sys/vfs.h>, not <sys/statfs.h>.
47416
47417 2008-10-01  Bruno Haible  <bruno@clisp.org>
47418
47419         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47420         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47421         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47422         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47423         * doc/posix-functions/posix_spawnp.texi: Likewise.
47424         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47425         whether posix_spawn actually works.
47426         * m4/pipe.m4 (gl_PIPE): Likewise.
47427         * modules/execute (Files): Add m4/posix_spawn.m4.
47428         * modules/pipe (Files): Add m4/posix_spawn.m4.
47429         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47430
47431 2008-10-01  Jim Meyering  <meyering@redhat.com>
47432
47433         remove trailing spaces
47434         * NEWS: Likewise.
47435         * lib/poll.c (poll): Likewise.
47436         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47437         * lib/winsock.c (rpl_close): Likewise.
47438         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47439         * modules/yield: Likewise.
47440         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47441         * tests/test-sys_select.c (connect_to_socket): Likewise.
47442
47443         fts.c: adjust a new interface to be more generally useful
47444         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47445         (fts_build): Adjust caller.
47446
47447 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47448
47449         * modules/cond-tests: New file.
47450         * tests/test-cond.c: New file.
47451
47452 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47453             Bruno Haible  <bruno@clisp.org>
47454
47455         * modules/cond (Dependencies): Add errno, time.
47456         * lib/glthread/cond.h: Include <time.h>.
47457         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47458         across platforms.
47459
47460 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47461             Bruno Haible  <bruno@clisp.org>
47462
47463         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47464
47465 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47466             Bruno Haible  <bruno@clisp.org>
47467
47468         * modules/tls-tests (Depends-on): Add thread, yield.
47469         (configure.ac): Remove all checks.
47470         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47471         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47472         gl_thread_self): Remove definitions. Include glthread/thread.h and
47473         glthread/yield.h instead.
47474         (test_tls): Pass an additional NULL argument to gl_thread_join.
47475
47476 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47477             Bruno Haible  <bruno@clisp.org>
47478
47479         * modules/lock-tests (Depends-on): Add thread, yield.
47480         (configure.ac): Remove all checks.
47481         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47482         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47483         gl_thread_self): Remove definitions. Include glthread/thread.h and
47484         glthread/yield.h instead.
47485         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47486         additional NULL argument to gl_thread_join.
47487
47488 2008-09-30  Bruno Haible  <bruno@clisp.org>
47489
47490         Fix the Win32 implementation of the 'thread' module.
47491         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47492         pointer type.
47493         (gl_thread_self): Invoke gl_thread_self_func.
47494         (gl_thread_self_func): New declaration.
47495         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47496         (do_init_self_key, init_self_key): New functions.
47497         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47498         Remove some fields.
47499         (running_threads, running_lock): Remove variables.
47500         (get_current_thread_handle): New function.
47501         (gl_thread_self_func, wrapper_func, glthread_create_func,
47502         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47503         simplified.
47504
47505 2008-09-30  Bruno Haible  <bruno@clisp.org>
47506
47507         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47508         files.
47509
47510 2008-09-30  Jim Meyering  <meyering@redhat.com>
47511
47512         fts.m4: correct the test for statfs.f_type
47513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47514         when checking for statfs.f_type.
47515
47516 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47517
47518         tests: avoid some compiler warnings
47519         * tests/test-memchr.c (main): Pass NULL indirectly.
47520         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47521
47522 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47523
47524         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47525         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47526         exactly specified dayshifts.
47527         (dayshift): New rule.
47528         (rel): Add dayshift.
47529         (relative_time_table) [tomorrow, yesterday, today, now]:
47530         Use tDAY_SHIFT in place of tDAY_UNIT.
47531         * tests/test-getdate.c: Add tests for now-disallowed countable
47532         dayshifts, e.g., "4 yesterday ago".
47533
47534 2008-09-29  Bruno Haible  <bruno@clisp.org>
47535
47536         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47537         * tests/test-posix_spawn1.in.sh: Renamed from
47538         tests/test-posix_spawn.in.sh.
47539         * tests/test-posix_spawn2.c: New file.
47540         * tests/test-posix_spawn2.in.sh: New file.
47541         * modules/posix_spawnp-tests (Files): Update.
47542         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47543
47544 2008-09-29  Bruno Haible  <bruno@clisp.org>
47545
47546         Propagate effects of putenv/setenv/unsetenv to child processes.
47547         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47548         * lib/pipe.c (create_pipe): Likewise.
47549
47550 2008-09-29  Bruno Haible  <bruno@clisp.org>
47551
47552         Enable use of shell scripts as executables in mingw.
47553         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47554         run the program as a shell script.
47555         * lib/pipe.c (create_pipe): Likewise.
47556         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47557         resulting array.
47558
47559 2008-09-29  Eric Blake  <ebb9@byu.net>
47560
47561         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47562
47563 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47564
47565         * doc/posix-functions/accept.texi: Update mingw problems.
47566         * doc/posix-functions/bind.texi: Update mingw problems.
47567         * doc/posix-functions/close.texi: Update mingw problems.
47568         * doc/posix-functions/connect.texi: Update mingw problems.
47569         * doc/posix-functions/getpeername.texi: Update mingw problems.
47570         * doc/posix-functions/getsockname.texi: Update mingw problems.
47571         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47572         * doc/posix-functions/ioctl.texi: Update mingw problems.
47573         * doc/posix-functions/listen.texi: Update mingw problems.
47574         * doc/posix-functions/recv.texi: Update mingw problems.
47575         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47576         * doc/posix-functions/select.texi: Update mingw problems.
47577         * doc/posix-functions/send.texi: Update mingw problems.
47578         * doc/posix-functions/sendto.texi: Update mingw problems.
47579         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47580         * doc/posix-functions/socket.texi: Update mingw problems.
47581
47582 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47583             Bruno Haible  <bruno@clisp.org>
47584
47585         * lib/sys_select.in.h: Include sys/time.h.
47586         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47587         * modules/sys_select: Depend on sys_time.
47588         * tests/test-sys_select.c: Test that sys/select.h defines struct
47589         timeval fully.
47590
47591 2008-09-29  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47594         * lib/sys_select.in.h: Likewise.
47595
47596 2008-09-29  Bruno Haible  <bruno@clisp.org>
47597
47598         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47599
47600 2008-09-29  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47603         Set LIBSOCKET instead of augmenting LIBS.
47604         * modules/sockets (Link): New section.
47605         * modules/sockets-tests (test_sockets_LDADD): New variable.
47606         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47607         * modules/poll-tests (test_poll_LDADD): New variable.
47608         * NEWS: Document the change.
47609
47610 2008-09-29  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47613         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47614         ARPA_INET_H directly.
47615         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47616
47617 2008-09-28  Bruno Haible  <bruno@clisp.org>
47618
47619         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47620         from gl_HEADER_SYS_SOCKET.
47621         (gl_HEADER_SYS_SOCKET): Invoke it.
47622         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47623
47624 2008-09-28  Bruno Haible  <bruno@clisp.org>
47625
47626         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47627         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47628         Needed on OSF/1 4.0.
47629
47630 2008-09-28  Bruno Haible  <bruno@clisp.org>
47631
47632         Override open more carefully.
47633         * lib/open.c (orig_open): New function.
47634         (rpl_open): Use orig_open instead of open.
47635         * lib/fcntl.in.h: Add special invocation convention.
47636         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47637         (gl_FUNC_OPEN): Invoke it.
47638
47639         Override freopen more carefully.
47640         * lib/freopen.c (orig_freopen): New function.
47641         (rpl_freopen): Use orig_freopen instead of freopen.
47642         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47643         (gl_FUNC_FREOPEN): Invoke it.
47644
47645         Override fopen more carefully.
47646         * lib/fopen.c (orig_fopen): New function.
47647         (rpl_fopen): Use orig_fopen instead of fopen.
47648         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47649         (gl_FUNC_FOPEN): Invoke it.
47650         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47651
47652 2008-09-28  Bruno Haible  <bruno@clisp.org>
47653
47654         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47655         SIGPIPE.
47656
47657 2008-09-28  Bruno Haible  <bruno@clisp.org>
47658
47659         * tests/test-sigaction.c (handler, main): Disable the check whether
47660         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47661         glibc systems with LinuxThreads.
47662
47663 2008-09-28  Bruno Haible  <bruno@clisp.org>
47664
47665         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47666
47667         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47668         with AIX xlc.
47669         * lib/fcntl.in.h (open): Likewise.
47670         Reported by Rainer Tammer <tammer@tammer.net>.
47671
47672 2008-09-28  Bruno Haible  <bruno@clisp.org>
47673
47674         * modules/posix_spawnp-tests: New file.
47675         * tests/test-posix_spawn.c: New file.
47676         * tests/test-posix_spawn.in.sh: New file.
47677
47678         New module 'posix_spawnp'.
47679         * modules/posix_spawnp: New file.
47680         * lib/spawnp.c: New file, from GNU libc with modifications.
47681         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47682
47683         New module 'posix_spawn'.
47684         * modules/posix_spawn: New file.
47685         * lib/spawn.c: New file, from GNU libc with modifications.
47686         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47687
47688         New module 'posix_spawnattr_destroy'.
47689         * modules/posix_spawnattr_destroy: New file.
47690         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47691         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47692         module.
47693
47694         New module 'posix_spawnattr_setsigmask'.
47695         * modules/posix_spawnattr_setsigmask: New file.
47696         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47697         modifications.
47698         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47699         new module.
47700
47701         New module 'posix_spawnattr_getsigmask'.
47702         * modules/posix_spawnattr_getsigmask: New file.
47703         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47704         modifications.
47705         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47706         new module.
47707
47708         New module 'posix_spawnattr_setsigdefault'.
47709         * modules/posix_spawnattr_setsigdefault: New file.
47710         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47711         modifications.
47712         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47713         new module.
47714
47715         New module 'posix_spawnattr_getsigdefault'.
47716         * modules/posix_spawnattr_getsigdefault: New file.
47717         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47718         modifications.
47719         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47720         new module.
47721
47722         New module 'posix_spawnattr_setschedpolicy'.
47723         * modules/posix_spawnattr_setschedpolicy: New file.
47724         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47725         modifications.
47726         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47727         new module.
47728
47729         New module 'posix_spawnattr_getschedpolicy'.
47730         * modules/posix_spawnattr_getschedpolicy: New file.
47731         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47732         modifications.
47733         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47734         new module.
47735
47736         New module 'posix_spawnattr_setschedparam'.
47737         * modules/posix_spawnattr_setschedparam: New file.
47738         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47739         modifications.
47740         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47741         new module.
47742
47743         New module 'posix_spawnattr_getschedparam'.
47744         * modules/posix_spawnattr_getschedparam: New file.
47745         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47746         modifications.
47747         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47748         new module.
47749
47750         New module 'posix_spawnattr_setpgroup'.
47751         * modules/posix_spawnattr_setpgroup: New file.
47752         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47753         modifications.
47754         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47755         module.
47756
47757         New module 'posix_spawnattr_getpgroup'.
47758         * modules/posix_spawnattr_getpgroup: New file.
47759         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47760         modifications.
47761         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47762         module.
47763
47764         New module 'posix_spawnattr_setflags'.
47765         * modules/posix_spawnattr_setflags: New file.
47766         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47767         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47768         module.
47769
47770         New module 'posix_spawnattr_getflags'.
47771         * modules/posix_spawnattr_getflags: New file.
47772         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47773         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47774         module.
47775
47776         New module 'posix_spawnattr_init'.
47777         * modules/posix_spawnattr_init: New file.
47778         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47779         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47780         module.
47781
47782         New module 'posix_spawn_file_actions_destroy'.
47783         * modules/posix_spawn_file_actions_destroy: New file.
47784         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47785         modifications.
47786         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47787         the new module.
47788
47789         New module 'posix_spawn_file_actions_addopen'.
47790         * modules/posix_spawn_file_actions_addopen: New file.
47791         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47792         modifications.
47793         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47794         the new module.
47795
47796         New module 'posix_spawn_file_actions_adddup2'.
47797         * modules/posix_spawn_file_actions_adddup2: New file.
47798         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47799         modifications.
47800         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47801         the new module.
47802
47803         New module 'posix_spawn_file_actions_addclose'.
47804         * modules/posix_spawn_file_actions_addclose: New file.
47805         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47806         modifications.
47807         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47808         the new module.
47809
47810         New module 'posix_spawn_file_actions_init'.
47811         * modules/posix_spawn_file_actions_init: New file.
47812         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47813         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47814         new module.
47815
47816         New module 'posix_spawn-internal'.
47817         * modules/posix_spawn-internal: New file.
47818         * lib/spawn_int.h: New file, from GNU libc with modifications.
47819         * lib/spawni.c: New file, from GNU libc with modifications.
47820         * m4/posix_spawn.m4: New file.
47821
47822         New module 'spawn'.
47823         * modules/spawn: New file.
47824         * lib/spawn.in.h: New file, from GNU libc with modifications.
47825         * m4/spawn_h.m4: New file.
47826         * doc/posix-headers/spawn.texi: Mention the new module.
47827
47828 2008-09-28  Bruno Haible  <bruno@clisp.org>
47829
47830         * modules/sched-tests: New file.
47831         * tests/test-sched.c: New file.
47832
47833         New module 'sched'.
47834         * modules/sched: New file.
47835         * lib/sched.in.h: New file.
47836         * m4/sched_h.m4: New file.
47837         * doc/posix-headers/sched.texi: Mention the new module.
47838
47839 2008-09-27  Eric Blake  <ebb9@byu.net>
47840
47841         Fix previous patch, and tweak references to $0.
47842         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47843         (func_version, func_gnulib_dir): Don't call this program
47844         gnulib-tool.
47845         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47846         with using $0 in function.
47847         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47848         (func_fatal_error): Reuse the name the user invoked us with.
47849
47850 2008-09-27  Bruno Haible  <bruno@clisp.org>
47851
47852         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47853         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47854         (gl_ICONV_H): Not here.
47855         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47856         instead of assigning ICONV_H directly.
47857
47858         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47860         WCHAR_H directly.
47861
47862 2008-09-27  Bruno Haible  <bruno@clisp.org>
47863
47864         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47865         * modules/arpa_inet (Depends-on): Add link-warning.
47866         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47867         * modules/unistd (Makefile.am): Likewise.
47868
47869 2008-09-26  Bruno Haible  <bruno@clisp.org>
47870
47871         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47872         variables.
47873         (func_version): Essentially copied from gnulib-tool.
47874         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47875         func_readlink): Copied from gnulib-tool.
47876
47877 2008-09-26  Bruno Haible  <bruno@clisp.org>
47878
47879         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47880         invoking git-version-gen.
47881
47882 2008-09-26  Bruno Haible  <bruno@clisp.org>
47883
47884         * posix-modules: Update to directory names changed on 2008-01-19.
47885         Remove commas in output before splitting into words. No more need to
47886         avoid 'ftruncate' since 2007-02-19.
47887
47888 2008-09-26  Bruno Haible  <bruno@clisp.org>
47889
47890         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47891
47892 2008-09-26  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47895         * modules/fwriteerror (Depends-on): Add errno.
47896
47897 2008-09-26  Bruno Haible  <bruno@clisp.org>
47898
47899         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47900         * tests/test-vc-list-files-cvs.sh: Likewise.
47901
47902 2008-09-26  Bruno Haible  <bruno@clisp.org>
47903
47904         * doc/posix-headers/sys_resource.texi: Reorder items.
47905
47906 2008-09-26  Jim Meyering  <meyering@redhat.com>
47907
47908         fts: tweak inode comparison function
47909         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47910         inode numbers, as documented.
47911
47912         fts: sort dirent entries on inode number before traversing
47913         This avoids a quadratic, seek-related performance penalty when
47914         operating on a directory containing many entries (measurable at 10k;
47915         3.5 hours at 2 million entries with a cold cache) on certain types
47916         of file systems, including ext3 and ext4, but not tmpfs.
47917         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47918         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47919         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47920         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47921         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47922         (fts_build): Set the stat.st_ino member from D_INO.
47923         If it is likely to be useful, sort dirent entries on inode number.
47924
47925         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47926         and the struct statfs.f_type member.
47927         * modules/fts (Depends-on): Add d-ino.
47928
47929 2008-09-26  Bruno Haible  <bruno@clisp.org>
47930
47931         * modules/sigpipe-die (Depends-on): Add sigpipe.
47932
47933         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47934         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47935         and GNULIB_STDIO_H_SIGPIPE are set.
47936         * lib/stdio-write.c: New file.
47937         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47938         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47939         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47940         REPLACE_STDIO_WRITE_FUNCS.
47941         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47942         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47943         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47944         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47945         * modules/stdio (Files): Add lib/stdio-write.c.
47946         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47947         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47948         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47949         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47950         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47951         REPLACE_FPRINTF_POSIX.
47952         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47953         REPLACE_PRINTF_POSIX.
47954         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47955         REPLACE_VFPRINTF_POSIX.
47956         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47957         REPLACE_VPRINTF_POSIX.
47958         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47959         SIGPIPE issue.
47960         * doc/posix-functions/fputc.texi: Likewise.
47961         * doc/posix-functions/fputs.texi: Likewise.
47962         * doc/posix-functions/fwrite.texi: Likewise.
47963         * doc/posix-functions/printf.texi: Likewise.
47964         * doc/posix-functions/putc.texi: Likewise.
47965         * doc/posix-functions/putchar.texi: Likewise.
47966         * doc/posix-functions/puts.texi: Likewise.
47967         * doc/posix-functions/vfprintf.texi: Likewise.
47968         * doc/posix-functions/vprintf.texi: Likewise.
47969
47970         * modules/safe-write (Depends-on): Add write.
47971
47972         * modules/sigpipe-tests: New file.
47973         * tests/test-sigpipe.c: New file.
47974         * tests/test-sigpipe.sh: New file.
47975
47976         * modules/write: New file.
47977         * lib/unistd.in.h: Include <sys/types.h>.
47978         (write): New declaration.
47979         * lib/write.c: New file.
47980         * m4/write.m4: New file.
47981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47982         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47983         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47984         GNULIB_WRITE, REPLACE_WRITE.
47985         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47986         and the SIGPIPE issue.
47987
47988         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47989         (raise): New declaration.
47990         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47991         (ext_signal): New function.
47992         (rpl_raise): New function.
47993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47994         GNULIB_SIGNAL_H_SIGPIPE.
47995         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47996         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47997
47998         * modules/sigpipe: New file.
47999         * m4/sigpipe.m4: New file.
48000
48001 2008-09-25  Derek Price  <derek@ximbiot.com>
48002             Bruno Haible  <bruno@clisp.org>
48003
48004         * gnulib-tool (func_import): Report all license incompatibilities, not
48005         just the first one.
48006
48007 2008-09-25  Bruno Haible  <bruno@clisp.org>
48008
48009         * gnulib-tool (func_import): When computing the edits, consider not
48010         only the Makefile.ams that exist but also those that will be generated.
48011
48012 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48013
48014         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48015         fixes gnulib-tool --test warning about duplicate dependency.
48016
48017 2008-09-25  Bruno Haible  <bruno@clisp.org>
48018
48019         * gnulib-tool: Don't ask the user to perform edits in the generated
48020         Makefile.ams.
48021         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48022         apply to the Makefile.am being generated.
48023         (func_emit_tests_Makefile_am): Execute edits that apply to the
48024         Makefile.am being generated.
48025         (func_import): Setup list of Makefile.am edits before emitting the
48026         Makefile.ams, not at the end.
48027         (func_create_testdir): Update.
48028         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48029
48030 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48031
48032         * gnulib-tool (func_import): Store the --tests-base option in the
48033         comment in gnulib-cache.m4.
48034
48035 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48036
48037         * NEWS: Document increased portability that sys_select now provides.
48038
48039         * lib/sys_select.in.h: Install select wrapper.
48040         * lib/sys_socket.in.h: Use more descriptive name when there is no
48041         select wrapper.
48042         * lib/winsock-select.c: New.
48043         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48044         Require gl_HEADER_SYS_SOCKET.
48045         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48046         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48047         * tests/test-sys_select.c: Add functional tests.
48048
48049 2008-09-24  Eric Blake  <ebb9@byu.net>
48050
48051         open, fopen: close fd leak in last patch
48052         * lib/open.c (rpl_open): Close fd before returning error.
48053         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48054         * doc/posix-functions/open.texi (open): Document that Irix also
48055         has the bug.
48056         * doc/posix-functions/fopen.texi (fopen): Likewise.
48057         Reported by Paolo Bonzini.
48058
48059 2008-09-24  Bruno Haible  <bruno@clisp.org>
48060
48061         Ensure that a filename ending in a slash cannot be used to access a
48062         non-directory.
48063         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48064         to check whether it's really a directory.
48065         * lib/fopen.c: Include fcntl.h, unistd.h.
48066         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48067         and fdopen().
48068         * modules/fopen (Depends-on): Add unistd.
48069         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48070         * tests/test-fopen.c (main): Likewise.
48071         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48072         * doc/posix-functions/fopen.texi: Likewise.
48073         Reported by Eric Blake.
48074
48075 2008-09-23  Eric Blake  <ebb9@byu.net>
48076
48077         c-stack: avoid compiler optimizations when provoking overflow
48078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48079         recursion harder to optimize, to ensure a stack overflow occurs.
48080         * tests/test-c-stack.c (recurse): Likewise.
48081         Borrowed from libsigsegv.
48082
48083         c-stack: work around Irix sigaltstack bug
48084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48085         whether sigaltstack uses wrong end of stack_t (copied in part from
48086         libsigsegv).
48087         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48088         Irix bug, without requiring an over-allocation.
48089         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48090         bug.
48091
48092         fopen: document mingw bug on directories
48093         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48094         not allowing a stream visiting a directory, even though reading
48095         from such a stream is not portable.
48096
48097 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48098
48099         * lib/poll.c: Rewrite.
48100         * modules/poll: Depend on alloca.
48101
48102 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48103
48104         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48105         instead define prototypes for a full set of wrappers.  Ensure
48106         that Cygwin does not use the compatibility code, which is only
48107         for MinGW.
48108         * lib/winsock.c: New.
48109         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48110         * modules/sys_socket: Add lib/winsock.c.
48111
48112         * modules/poll-tests: Add errno and perror.
48113         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48114
48115 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48116
48117         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48118
48119 2008-09-23  Bruno Haible  <bruno@clisp.org>
48120
48121         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48122         * doc/glibc-functions/*: Likewise.
48123
48124 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48125
48126         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48127         success.
48128
48129 2008-09-22  Eric Blake  <ebb9@byu.net>
48130             Bruno Haible  <bruno@clisp.org>
48131
48132         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48133         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48134         supply %A but mishandle pseudo-NaN.
48135         Reported by Simon Josefsson.
48136
48137 2008-09-21  Bruno Haible  <bruno@clisp.org>
48138
48139         * tests/test-lock.c (main): Tweak skip message.
48140         * tests/test-tls.c (main): Likewise.
48141
48142 2008-09-21  Bruno Haible  <bruno@clisp.org>
48143
48144         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48145         whether 'struct sigaction' has sa_sigaction here...
48146         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48147         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48148
48149 2008-09-21  Bruno Haible  <bruno@clisp.org>
48150
48151         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48152         section.
48153         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48154         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48155         the new section.
48156         (Support for obsolete systems lacking POSIX:2001): New section.
48157         (String handling <string.h>): Move strdup to the new section.
48158         Suggested by Simon Josefsson and Paolo Bonzini.
48159
48160 2008-09-21  Bruno Haible  <bruno@clisp.org>
48161
48162         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48163         exponents in %e and %g results on 'long double'. Needed for mingw's
48164         improved *printf functions.
48165         * tests/test-vasprintf-posix.c (test_function): Likewise.
48166         * tests/test-snprintf-posix.h (test_function): Likewise.
48167         * tests/test-sprintf-posix.h (test_function): Likewise.
48168         Reported by Eric Blake.
48169
48170 2008-09-21  Bruno Haible  <bruno@clisp.org>
48171
48172         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48173         * tests/test-sprintf-posix.h (test_function): Likewise.
48174
48175 2008-09-21  Bruno Haible  <bruno@clisp.org>
48176
48177         * modules/getpass (Depends-on): Add strdup-posix.
48178
48179         New module 'strdup-posix'.
48180         * modules/strdup-posix: New file.
48181         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48182         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48184         REPLACE_STRDUP.
48185         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48186         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48188         strdup-posix.
48189
48190         * modules/strdup (Depends-on): Remove malloc-posix.
48191
48192 2008-09-20  Bruno Haible  <bruno@clisp.org>
48193
48194         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48195         Wildenhues.
48196
48197 2008-09-20  Bruno Haible  <bruno@clisp.org>
48198
48199         Ensure that wint_t gets defined on IRIX 5.3.
48200         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48201         * lib/wctype.in.h (wint_t): Likewise.
48202         (__wctype_wint_t): Remove type.
48203         (isw*): Use wint_t instead of __wctype_wint_t.
48204         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48205         * modules/wchar (Files): Add m4/wint_t.m4.
48206         (Makefile.am): Substitute HAVE_WINT_T.
48207         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48208         * tests/test-wctype.c: Check that wint_t is defined.
48209         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48210         * doc/posix-headers/wctype.texi: Likewise.
48211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48212
48213 2008-09-18  Bruno Haible  <bruno@clisp.org>
48214
48215         * gnulib-tool (func_exit): Update comment.
48216
48217 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48218
48219         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48220         assumes strdup exists and does not depend on strdup to return
48221         ENOMEM on out of memory conditions.
48222
48223 2008-09-18  Bruno Haible  <bruno@clisp.org>
48224
48225         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48226         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48227         digits for the exponent.
48228
48229 2008-09-18  Jim Meyering  <meyering@redhat.com>
48230             Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/vasnprintf.c (decimal_point_char): Define also if
48233         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48234
48235 2008-09-16  Bruno Haible  <bruno@clisp.org>
48236         and Eric Blake  <ebb9@byu.net>
48237
48238         vasnprintf: support Irix 5.3
48239         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48240         that mishandle long double infinity.
48241         Reported by Tom G. Christensen.
48242
48243 2008-09-16  Bruno Haible  <bruno@clisp.org>
48244
48245         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48246         Solaris 9.
48247         * doc/glibc-functions/alphasort.texi: Likewise.
48248         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48249
48250 2008-09-16  Jim Meyering  <meyering@redhat.com>
48251
48252         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48253         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48254         a umask modification leak out of a subshell.  Otherwise, the
48255         opensolaris /bin/sh would be accepted and thus cause unwarranted
48256         failures in the coreutils test suite.
48257
48258 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48259
48260         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48261         to succeed.
48262
48263 2008-09-16  Jim Meyering  <meyering@redhat.com>
48264
48265         avoid spurious test failure when library is built without ACL support
48266         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48267         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48268         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48269         * tests/test-copy-acl.sh: Likewise.
48270
48271 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48272
48273         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48274         based on character occurrence counts.
48275
48276 2008-09-15  Eric Blake  <ebb9@byu.net>
48277
48278         tests: avoid some compiler warnings
48279         * tests/test-memchr.c (main): Pass NULL indirectly.
48280         * tests/test-closein.c (main): Avoid unused variable.
48281
48282 2008-09-15  Bruno Haible  <bruno@clisp.org>
48283
48284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48285         are missing on OpenBSD 4.0 individually.
48286         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48287
48288 2008-09-15  Bruno Haible  <bruno@clisp.org>
48289
48290         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48291         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48292         * doc/posix-functions/perror.texi: Likewise.
48293         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48294         is missing.
48295         Reported by Eric Blake.
48296
48297         * lib/errno.in.h: Use replacement values >= 2000.
48298         Reported by Eric Blake.
48299
48300 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48301
48302         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48303         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48304         limit.
48305         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48306         compareseq was aborted.
48307
48308 2008-09-14  Bruno Haible  <bruno@clisp.org>
48309
48310         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48311         yvec_edit_count.
48312         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48313         (fstrcmp_bounded): Simplify result computation accordingly.
48314
48315 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48316
48317         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48318         (fstrcmp): Define in terms of fstrcmp_bounded.
48319         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48320         lower_bound argument.
48321         Return quickly if the result is certainly < lower_bound.
48322         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48323
48324 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48325
48326         * lib/diffseq.h (EARLY_ABORT): New macro.
48327         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48328         evaluates to true.
48329
48330 2008-09-14  Bruno Haible  <bruno@clisp.org>
48331
48332         * modules/perror-tests: New file.
48333         * tests/test-perror.sh: New file.
48334         * tests/test-perror.c: New file.
48335
48336         New module 'perror'.
48337         * lib/stdio.in.h (perror): New declaration.
48338         * lib/perror.c: New file.
48339         * m4/perror.m4: New file.
48340         * modules/perror: New file.
48341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48342         * doc/posix-functions/perror.texi: Mention the perror module.
48343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48344         REPLACE_PERROR.
48345         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48346         REPLACE_PERROR.
48347
48348 2008-09-14  Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/stdio (Makefile.am): Reorder to match the order in
48351         lib/stdio.in.h.
48352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48353
48354 2008-09-13  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48357
48358 2008-09-13  Bruno Haible  <bruno@clisp.org>
48359
48360         Extend strerror to cover the added errno values.
48361         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48362         (rpl_strerror): Provide error messages for the added errno values and
48363         for the WSA* values.
48364         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48365         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48366         strerror.
48367         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48368         * modules/strerror (Depends-on): Add errno.
48369         * doc/posix-functions/strerror.texi: Document the change.
48370         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48371         and EOVERFLOW.
48372
48373 2008-09-13  Bruno Haible  <bruno@clisp.org>
48374
48375         * modules/EOVERFLOW: Remove file.
48376         * m4/eoverflow.m4: Remove file.
48377         * modules/EOVERFLOW-tests: Remove file.
48378         * tests/test-EOVERFLOW.c: Remove file.
48379         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48380         * modules/ftell (Depends-on): Likewise.
48381         * modules/getdelim (Depends-on): Likewise.
48382         * modules/getugroups (Depends-on): Likewise.
48383         * modules/poll (Depends-on): Likewise.
48384         * modules/snprintf (Depends-on): Likewise.
48385         * modules/sprintf-posix (Depends-on): Likewise.
48386         * modules/vasnprintf (Depends-on): Likewise.
48387         * modules/vasprintf (Depends-on): Likewise.
48388         * modules/vfprintf-posix (Depends-on): Likewise.
48389         * modules/vsnprintf (Depends-on): Likewise.
48390         * modules/vsprintf-posix (Depends-on): Likewise.
48391         * modules/xvasprintf (Depends-on): Likewise.
48392         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48393         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48394         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48395         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48396         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48397         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48398         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48399         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48400         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48401         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48402         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48403         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48404         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48405         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48406         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48407         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48408         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48409         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48410         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48411         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48412         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48413         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48414         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48415         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48416         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48417         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48418         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48419         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48420         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48421         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48422         * MODULES.html.sh: Remove EOVERFLOW.
48423         * NEWS: Mention the change.
48424
48425 2008-09-13  Bruno Haible  <bruno@clisp.org>
48426
48427         * modules/errno-tests: New file.
48428         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48429
48430         * lib/errno.in.h: New file.
48431         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48432         * modules/errno: New file.
48433         * doc/posix-headers/errno.texi: Update documentation.
48434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48435
48436 2008-09-13  Bruno Haible  <bruno@clisp.org>
48437
48438         * tests/test-poll.c: Use #if for native Windows, rather than testing
48439         __MSVCRT__.
48440
48441 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48442             Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/glob.c: Don't include <pwd.h> on native Windows.
48445         (WINDOWS32): New macro.
48446         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48447
48448 2008-09-13  Bruno Haible  <bruno@clisp.org>
48449
48450         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48451         (ETIMEDOUT): Remove macro.
48452         (glthread_cond_timedwait_multithreaded): New declaration.
48453         (glthread_cond_timedwait): Use it.
48454         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48455         (glthread_cond_timedwait_multithreaded): New function.
48456
48457 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48458
48459         * modules/poll-tests: Do not check for io.h.
48460         * tests/test-poll.c: Check for __MSVCRT__ instead.
48461
48462 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48463
48464         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48465         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48466         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48467
48468 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48469
48470         * modules/poll-tests: New.
48471         * tests/test-poll.c: New.
48472
48473 2008-09-12  Eric Blake  <ebb9@byu.net>
48474
48475         frexp: test for NetBSD failure on -0.0
48476         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48477         not all, bugs from NetBSD 3.0 have been fixed.
48478         * doc/posix-functions/frexp.texi (frexp): Document bug.
48479         Reported by Thomas Klausner.
48480
48481         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48482         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48483         literal -0.0.
48484         Reported by Jonathan C. Patschke <jp@centtech.com>.
48485
48486 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48487
48488         * lib/glthread/cond.h: Use dummy implementation also if
48489         USE_WIN32_THREADS.
48490
48491 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48492
48493         * modules/fnmatch-posix (License): Change to LGPLv2+.
48494         * modules/fnmatch-gnu (License): Likewise.
48495
48496 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48497
48498         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48499
48500 2008-09-11  Jim Meyering  <meyering@redhat.com>
48501
48502         * users.txt: Add gtk-vnc.
48503
48504 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48505
48506         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48507         rotate amounts.
48508
48509         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48510         required for 16-bit and 8-bit rotates.
48511         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48512         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48513         UINT8_MAX instead of hard-coded constants.
48514         Suggested by Paul Eggert.
48515
48516 2008-09-07  Bruno Haible  <bruno@clisp.org>
48517
48518         * tests/test-striconveh.c (main): Check behaviour when converting from
48519         UTF-7.
48520
48521         Make striconveh work better with stateful encodings.
48522         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48523         that iconv does not increment the inptr when returning -1/EINVAL.
48524
48525 2008-09-07  Bruno Haible  <bruno@clisp.org>
48526
48527         * build-aux/config.rpath: Update according to libtool-2.2.6.
48528         * build-aux/config.libpath: Likewise.
48529
48530 2008-09-06  Bruno Haible  <bruno@clisp.org>
48531
48532         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48533         * lib/freadptr.c (freadptr): Likewise.
48534         * lib/freadseek.c (freadptrinc): Likewise.
48535         Reported by Simon Josefsson.
48536
48537 2008-09-06  Bruno Haible  <bruno@clisp.org>
48538
48539         * modules/freadptr (License): Change to LGPLv2+.
48540         * modules/freadseek (License): Likewise.
48541         Suggested by Eric Blake.
48542
48543         * modules/memchr2 (License): Change to LGPLv2+.
48544         Approved by Eric Blake.
48545
48546 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48547             Bruno Haible  <bruno@clisp.org>
48548
48549         Make gnulib-tool work with native 'sed' on AIX.
48550         * gnulib-tool (sed_noop): New variable.
48551         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48552         func_add_or_update, func_create_testdir): Use it to initialize sed
48553         script variables.
48554         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48555
48556 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48557             Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48560         also works after #include directives.
48561
48562 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48563
48564         getdate.y: reject an out-of-range timezone value
48565         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48566         the range [-24...+24].  When specified with only one or two digits,
48567         * tests/test-getdate.c: Tests for the fix.
48568         * doc/getdate.texi: Document this change.
48569
48570 2008-09-03  Bruno Haible  <bruno@clisp.org>
48571
48572         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48573
48574 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48575
48576         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48577         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48578         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48579         Blake <ebb9@byu.net>.
48580
48581         * tests/test-bitrotate.c: Add more test vectors.
48582
48583 2008-09-02  Eric Blake  <ebb9@byu.net>
48584
48585         vasnprintf-posix: handle large precision via %.*d
48586         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48587         when handling it ourselves.
48588         * tests/test-vasnprintf-posix.c (test_function): Add test.
48589         * tests/test-snprintf-posix.h (test_function): Likewise.
48590         * tests/test-sprintf-posix.h (test_function): Likewise.
48591         * tests/test-vasprintf-posix.c (test_function): Likewise.
48592         Reported by Alain Guibert.
48593
48594 2008-09-01  Eric Blake  <ebb9@byu.net>
48595
48596         c-stack: make configure-time check more robust
48597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48598         successful sigaction call.
48599         Reported by Tom G. Christensen.
48600
48601 2008-09-01  Bruno Haible  <bruno@clisp.org>
48602
48603         New module 'findprog-lgpl'.
48604         * modules/findprog-lgpl: New file.
48605         * lib/findprog-lgpl.c: New file.
48606         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48607         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48608         to decide whether to use strdup or xstrdup, concatenated_filename or
48609         xconcatenated_filename.
48610
48611 2008-09-01  Bruno Haible  <bruno@clisp.org>
48612
48613         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48614         'xconcat-filename' (GPL).
48615         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48616         (License): Change to LGPLv2+.
48617         * modules/xconcat-filename: New file.
48618         * lib/concat-filename.h (concatenated_filename): Change specification.
48619         (xconcatenated_filename): New declaration.
48620         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48621         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48622         memory situations.
48623         * lib/xconcat-filename.c: New file.
48624         * NEWS: Mention the change.
48625         * lib/findprog.c: Include concat-filename.h, not filename.h.
48626         (find_in_path): Use xconcatenated_filename instead of
48627         concatenated_filename.
48628         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48629         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48630         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48631         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48632         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48633         instead of concatenated_filename.
48634         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48635         (execute_java_class): Use xconcatenated_filename instead of
48636         concatenated_filename.
48637         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48638         * modules/javacomp (Depends-on): Likewise.
48639         * modules/javaexec (Depends-on): Likewise.
48640
48641 2008-09-01  Bruno Haible  <bruno@clisp.org>
48642
48643         Split module 'filename' into 'filename' and 'concat-filename'.
48644         * modules/filename: Keep only lib/filename.h.
48645         (License): Change to LGPLv2+.
48646         * modules/concat-filename: New file, extracted from modules/filename.
48647         * lib/filename.h (concatenated_filename): Remove declaration.
48648         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48649         * lib/concat-filename.c: Include concat-filename.h.
48650         * NEWS: Mention the change.
48651
48652 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48653
48654         * lib/bitrotate.h (rotl8, rotr8): Add.
48655
48656         * modules/bitrotate (configure.ac): Need
48657         AC_REQUIRE([AC_C_INLINE]).
48658         (Description): Mention stdint.h.  Reported by Bruno Haible
48659         <bruno@clisp.org>.
48660
48661         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48662         Paolo Bonzini <bonzini@gnu.org>.
48663
48664 2008-08-31  Bruno Haible  <bruno@clisp.org>
48665
48666         Assume Solaris specific bi-arch conventions on Solaris systems.
48667         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48668         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48669         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48670         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48671         like acl_libdirstem.
48672         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48673         acl_libdirstem.
48674         * NEWS: Mention the change.
48675         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48676
48677 2008-08-31  Jim Meyering  <meyering@redhat.com>
48678
48679         * lib/strftime.h: Add comments describing the two added arguments.
48680
48681         remove duplicate #include directives
48682         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48683         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48684
48685 2008-08-31  Bruno Haible  <bruno@clisp.org>
48686
48687         New module 'sigpipe-die'.
48688         * modules/sigpipe-die: New file.
48689         * lib/sigpipe-die.h: New file.
48690         * lib/sigpipe-die.c: New file.
48691         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48692
48693 2008-08-31  Bruno Haible  <bruno@clisp.org>
48694
48695         Don't override previously installed signal handlers.
48696         * lib/fatal-signal.c (saved_sigactions): New variable.
48697         (uninstall_handlers): Reset the signal to the saved handler, not
48698         to SIG_DFL (except when ignored).
48699         (install_handlers): Save the previous handlers.
48700
48701 2008-08-30  Bruno Haible  <bruno@clisp.org>
48702
48703         * gnulib-tool (func_reset_sigpipe): New function.
48704         (func_get_automake_snippet, func_modules_transitive_closure,
48705         func_import): Invoke it before a join command that reads from stdin,
48706         to avoid "echo: write error: Broken pipe" error messages on stderr.
48707         Reported by Sam Steingold <sds@gnu.org>.
48708
48709 2008-08-30  Bruno Haible  <bruno@clisp.org>
48710
48711         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48712         Code copied from m4/open.m4.
48713         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48714         access and the filename ends in a slash. Code copied from lib/open.c.
48715         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48716         * tests/test-fopen.c (main): Check against bug with trailing slash.
48717
48718 2008-08-29  Bruno Haible  <bruno@clisp.org>
48719
48720         Avoid some "gcc -pedantic" warnings.
48721         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48722         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48723         * lib/dirent.in.h: Likewise.
48724         * lib/fcntl.in.h: Likewise.
48725         * lib/float.in.h: Likewise.
48726         * lib/iconv.in.h: Likewise.
48727         * lib/inttypes.in.h: Likewise.
48728         * lib/locale.in.h: Likewise.
48729         * lib/math.in.h: Likewise.
48730         * lib/netinet_in.in.h: Likewise.
48731         * lib/search.in.h: Likewise.
48732         * lib/signal.in.h: Likewise.
48733         * lib/stdarg.in.h: Likewise.
48734         * lib/stdint.in.h: Likewise.
48735         * lib/stdio.in.h: Likewise.
48736         * lib/stdlib.in.h: Likewise.
48737         * lib/string.in.h: Likewise.
48738         * lib/strings.in.h: Likewise.
48739         * lib/sys_select.in.h: Likewise.
48740         * lib/sys_socket.in.h: Likewise.
48741         * lib/sys_stat.in.h: Likewise.
48742         * lib/sys_time.in.h: Likewise.
48743         * lib/sysexits.in.h: Likewise.
48744         * lib/time.in.h: Likewise.
48745         * lib/unistd.in.h: Likewise.
48746         * lib/wchar.in.h: Likewise.
48747         * lib/wctype.in.h: Likewise.
48748         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48749         * modules/fchdir (Makefile.am): Likewise.
48750         * modules/fcntl (Makefile.am): Likewise.
48751         * modules/float (Makefile.am): Likewise.
48752         * modules/iconv_open (Makefile.am): Likewise.
48753         * modules/inttypes (Makefile.am): Likewise.
48754         * modules/locale (Makefile.am): Likewise.
48755         * modules/math (Makefile.am): Likewise.
48756         * modules/netinet_in (Makefile.am): Likewise.
48757         * modules/search (Makefile.am): Likewise.
48758         * modules/signal (Makefile.am): Likewise.
48759         * modules/stdarg (Makefile.am): Likewise.
48760         * modules/stdint (Makefile.am): Likewise.
48761         * modules/stdio (Makefile.am): Likewise.
48762         * modules/stdlib (Makefile.am): Likewise.
48763         * modules/string (Makefile.am): Likewise.
48764         * modules/strings (Makefile.am): Likewise.
48765         * modules/sys_select (Makefile.am): Likewise.
48766         * modules/sys_socket (Makefile.am): Likewise.
48767         * modules/sys_stat (Makefile.am): Likewise.
48768         * modules/sys_time (Makefile.am): Likewise.
48769         * modules/sysexits (Makefile.am): Likewise.
48770         * modules/time (Makefile.am): Likewise.
48771         * modules/unistd (Makefile.am): Likewise.
48772         * modules/wchar (Makefile.am): Likewise.
48773         * modules/wctype (Makefile.am): Likewise.
48774         Reported by Reuben Thomas <rrt@sc3d.org>.
48775
48776 2008-08-29  Bruno Haible  <bruno@clisp.org>
48777
48778         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48779         any more.
48780
48781 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48782
48783         * MODULES.html.sh (Misc): Add bitrotate.
48784
48785         * modules/bitrotate: New file.
48786
48787         * lib/bitrotate.h: New file.
48788
48789         * modules/bitrotate-tests: New file.
48790
48791         * tests/test-bitrotate.c: New file.
48792
48793         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48794         on the bitrotate module.
48795
48796         * lib/arctwo.c: Use new bitrotate module.
48797
48798 2008-08-29  Jim Meyering  <meyering@redhat.com>
48799
48800         bootstrap: merge changes from coreutils
48801         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48802         of copied files.  Remove a kludge, now that this is fixed.
48803         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48804         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48805         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48806
48807 2008-08-29  Bruno Haible  <bruno@clisp.org>
48808
48809         * MODULES.html.sh: Remove --cvs-urls option.
48810
48811 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48812
48813         maint.mk: adjust to file name change
48814         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48815
48816 2008-08-28  Jim Meyering  <meyering@redhat.com>
48817
48818         * modules/getndelim2 (License): Relicense to LGPLv2+.
48819         Approved by Richard Stallman for the version of 1995, and by
48820         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48821
48822 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48823
48824         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48825         dummy if one is not available.  Do not touch them if
48826         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48827         (getc_maybe_unlocked): New.
48828         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48829
48830 2008-08-26  Eric Blake  <ebb9@byu.net>
48831
48832         doc/INSTALL: resync from autoconf
48833         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48834         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48835         moving...
48836         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48837         * INSTALL: Regenerate.
48838         * INSTALL.ISO: New file.
48839         * INSTALL.UTF-8: Likewise.
48840
48841 2008-08-26  Jim Meyering  <meyering@redhat.com>
48842
48843         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48844         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48845         these definitions conditional, so that they may be overridden, too.
48846
48847 2008-08-26  Bruno Haible  <bruno@clisp.org>
48848
48849         Generate INSTALL file variants with prettier quotes.
48850         * doc/Makefile (INSTALL_PRELUDE): New macro.
48851         (INSTALL): Use it.
48852         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48853
48854 2008-08-26  Bruno Haible  <bruno@clisp.org>
48855
48856         Run makeinfo in an English locale.
48857         * doc/Makefile (MAKEINFO): New variable.
48858
48859 2008-08-26  Bruno Haible  <bruno@clisp.org>
48860
48861         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48862         Suggested by Eric Blake.
48863
48864 2008-08-25  Bruno Haible  <bruno@clisp.org>
48865
48866         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48867
48868 2008-08-25  Eric Blake  <ebb9@byu.net>
48869
48870         c-stack: test that stack overflow can be caught
48871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48872         that platform allows handling stack overflow; at least OS/2 EMX
48873         has sigaltstack, but crashes before transferring control to
48874         handler on stack overflow.
48875         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48876         check for HAVE_STACK_OVERFLOW_HANDLING.
48877         Reported by Elbert Pol.
48878
48879 2008-08-25  Bruno Haible  <bruno@clisp.org>
48880
48881         * doc/posix-functions/strftime.texi: Fix description of strftime
48882         module.
48883
48884 2008-08-24  Bruno Haible  <bruno@clisp.org>
48885
48886         * tests/uniwidth/test-uc_width2.c: New file.
48887         * tests/uniwidth/test-uc_width2.sh: New file.
48888         * modules/uniwidth/width-tests (Files): Add the new files.
48889         (TESTS): Add uniwidth/test-uc_width2.sh.
48890         (TESTS_ENVIRONMENT): New variable.
48891         (check_PROGRAMS): Add test-uc_width2.
48892         (test_uc_width2_SOURCES): New variable.
48893
48894         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48895         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48896         not 0x00AB.
48897         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48898
48899 2008-08-22  Eric Blake  <ebb9@byu.net>
48900
48901         test-lock, test-tls: mention why a test is skipped
48902         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48903         skipped.
48904         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48905
48906         count-one-bits: relax license
48907         * modules/count-one-bits (License): Relicense to LGPLv2+.
48908         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48909
48910 2008-08-22  Andreas Schwab  <schwab@suse.de>
48911
48912         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48913         Remove spurious space in assignment.
48914
48915 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48916
48917         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48918         Paul Eggert <eggert@CS.UCLA.EDU>.
48919
48920 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48921
48922         * modules/gettext: Add m4/threadlib.m4.
48923
48924 2008-08-19  Eric Blake  <ebb9@byu.net>
48925
48926         test-c-stack: fix compilation failure on FreeBSD 5.0
48927         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48928         headers before <sys/resource.h>.
48929         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48930         the bug.
48931         Reported by Nelson H. F. Beebe.
48932
48933         strverscmp: migrate from "strverscmp.h" to <string.h>
48934         * modules/string (Makefile.am): Add new hooks.
48935         * modules/strverscmp (Files): Remove strverscmp.h.
48936         (Depends-on): Add string.
48937         (configure.ac): Add indicator.
48938         (Include): Mention new header.
48939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48940         defaults.
48941         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48942         results.
48943         * lib/strverscmp.h: Delete.
48944         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48945         * tests/test-strverscmp.c (includes): Adjust client.
48946         * lib/check-version.c (includes): Likewise.
48947         * NEWS: Document the change.
48948
48949         strverscmp: add unit test
48950         * modules/strverscmp-tests: New file.
48951         * tests/test-strverscmp.c: Likewise.
48952
48953 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48954
48955         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48956         regarding Windows crypto stuff, from Mono.
48957
48958 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48959
48960         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48961         if present, for intel RND.  Return error on failures.
48962
48963 2008-08-18  Ben Pfaff  <blp@gnu.org>
48964
48965         gitlog-to-changelog: give better diagnostic for failed pipe-open
48966         * build-aux/gitlog-to-changelog: Improve error message: suggest
48967         that the version of Git may be too old.
48968
48969 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48970
48971         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48972         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48973
48974 2008-08-18  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48977         pthread_in_use().
48978
48979 2008-08-18  Bruno Haible  <bruno@clisp.org>
48980
48981         * lib/glthread/threadlib.c: Include <pthread.h>.
48982
48983 2008-08-18  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48986         glthread_recursive_lock_* macros.
48987         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48988         Fix syntax error.
48989
48990 2008-08-18  Bruno Haible  <bruno@clisp.org>
48991
48992         * lib/glthread/thread.c: Avoid forcing a context switch right after
48993         thread creation.
48994
48995 2008-08-17  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48998         * lib/glthread/thread.h: Provide Win32 specific implementation.
48999         * modules/thread (Files): Add lib/glthread/thread.c.
49000         (Depends-on): Add lock.
49001         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49002
49003 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49004
49005         New module 'yield'.
49006         * modules/yield: New file.
49007         * lib/glthread/yield.h: New file.
49008         * m4/yield.m4: New file.
49009         * MODULES.html.sh (Multithreading): Add yield.
49010
49011 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49012
49013         New module 'thread'.
49014         * modules/thread: New file.
49015         * lib/glthread/thread.h: New file.
49016         * m4/thread.m4: New file.
49017         * MODULES.html.sh (Multithreading): Add thread.
49018
49019 2008-08-17  Bruno Haible  <bruno@clisp.org>
49020
49021         * lib/glthread/lock.h: Include <stdlib.h> always.
49022         * lib/glthread/tls.h: Likewise.
49023         * lib/glthread/cond.h: Likewise.
49024
49025 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49026
49027         New module 'cond'.
49028         * modules/cond: New file.
49029         * lib/glthread/cond.h: New file.
49030         * lib/glthread/cond.c: New file.
49031         * m4/cond.m4: New file.
49032         * MODULES.html.sh (Multithreading): Add cond.
49033
49034 2008-08-16  Eric Blake  <ebb9@byu.net>
49035
49036         c-stack: fix regression on Irix 5.3 from 2008-06-21
49037         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49038         sa_sigaction...
49039         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49040         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49042         * modules/signal (Makefile.am): Use the value.
49043         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49044         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49045         * doc/posix-headers/signal.texi (signal.h): Document this
49046         portability issue.
49047         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49048         Reported by Tom G. Christensen.
49049
49050 2008-08-17  Bruno Haible  <bruno@clisp.org>
49051
49052         New module 'threadlib'.
49053         * modules/threadlib: New file.
49054         * lib/glthread/threadlib.c: New file, extracted from
49055         lib/glthread/lock.c.
49056         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49057         functions.
49058         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49059         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49060         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49061         macros.
49062         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49063         (gl_DISABLE_THREADS): Remove macro.
49064         * modules/lock (Files): Remove build-aux/config.rpath.
49065         (Depends-on): Remove havelib. Add threadlib.
49066         (configure.ac-early): Remove section.
49067         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49068         * modules/tls (Depends-on): Remove lock. Add threadlib.
49069         (Link): New section, copied from threadlib.
49070         * MODULES.html.sh (Multithreading): Add threadlib.
49071
49072 2008-08-14  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49075         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49076         glthread_rwlock_unlock, glthread_rwlock_destroy,
49077         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49078         glthread_recursive_lock_destroy): Define as macros always.
49079         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49080         glthread_lock_lock.
49081         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49082         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49083         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49084         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49085         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49086         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49087         (glthread_recursive_lock_lock_func): Renamed from
49088         glthread_recursive_lock_lock.
49089         (glthread_recursive_lock_unlock_func): Renamed from
49090         glthread_recursive_lock_unlock.
49091         (glthread_recursive_lock_destroy_func): Renamed from
49092         glthread_recursive_lock_destroy.
49093
49094 2008-08-14  Bruno Haible  <bruno@clisp.org>
49095
49096         * lib/glthread/lock.h: Renamed from lib/lock.h.
49097         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49098         * lib/glthread/tls.h: Renamed from lib/tls.h.
49099         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49100         * lib/fstrcmp.c: Update includes.
49101         * lib/strsignal.c: Update includes.
49102         * modules/lock (Files, Makefile.am): Update.
49103         (Include): Change to "glthread/lock.h".
49104         * modules/tls (Files, Makefile.am): Update.
49105         (Include): Change to "glthread/tls.h".
49106         * tests/test-lock.c: Update includes.
49107         * tests/test-tls.c: Update includes.
49108         * NEWS: Mention the renamed header files.
49109
49110 2008-08-11  Jim Meyering  <meyering@redhat.com>
49111
49112         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49113
49114 2008-08-11  Eric Blake  <ebb9@byu.net>
49115
49116         test-c-stack: avoid C99-ism
49117         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49118         before statement.
49119         Reported by Alain Guibert.
49120
49121 2008-08-10  Jim Meyering  <meyering@redhat.com>
49122
49123         ensure that return value of uinttostr et al are not ignored
49124         * lib/inttostr.h (__GNUC_PREREQ): Define.
49125         (__attribute_warn_unused_result__): Define.
49126         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49127
49128 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49129
49130         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49131         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49132
49133 2008-08-07  Jim Meyering  <meyering@redhat.com>
49134
49135         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49136
49137         * modules/mkstemp (License): Relicense under LGPLv2+.
49138         * modules/tempname (License): Likewise.
49139
49140 2008-08-06  Bruno Haible  <bruno@clisp.org>
49141
49142         * lib/poll.c (poll): Further micro-optimization.
49143
49144 2008-08-06  Jim Meyering  <meyering@redhat.com>
49145
49146         inet_pton.c: use locale-independent tolower
49147         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49148         (inet_pton6): Use c_tolower rather than tolower.
49149         * modules/inet_pton (Depends-on): Add c-ctype.
49150
49151 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49152
49153         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49154         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49155
49156 2008-08-06  Jim Meyering  <meyering@redhat.com>
49157
49158         * modules/inet_pton (License): Relicense under LGPLv2+.
49159
49160 2008-08-03  Bruno Haible  <bruno@clisp.org>
49161
49162         Additional non-aborting API for lock and tls.
49163         * lib/lock.h: Include <errno.h>.
49164         (glthread_lock_init): New macro/function.
49165         (gl_lock_init): Define as wrapper around glthread_lock_init.
49166         (glthread_lock_lock): New macro/function.
49167         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49168         (glthread_lock_unlock): New macro/function.
49169         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49170         (glthread_lock_destroy): New macro/function.
49171         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49172         (glthread_rwlock_init): New macro/function.
49173         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49174         (glthread_rwlock_rdlock): New macro/function.
49175         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49176         (glthread_rwlock_wrlock): New macro/function.
49177         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49178         (glthread_rwlock_unlock): New macro/function.
49179         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49180         (glthread_rwlock_destroy): New macro/function.
49181         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49182         (glthread_recursive_lock_init): New macro/function.
49183         (gl_recursive_lock_init): Define as wrapper around
49184         glthread_recursive_lock_init.
49185         (glthread_recursive_lock_lock): New macro/function.
49186         (gl_recursive_lock_lock): Define as wrapper around
49187         glthread_recursive_lock_lock.
49188         (glthread_recursive_lock_unlock): New macro/function.
49189         (gl_recursive_lock_unlock): Define as wrapper around
49190         glthread_recursive_lock_unlock.
49191         (glthread_recursive_lock_destroy): New macro/function.
49192         (gl_recursive_lock_destroy): Define as wrapper around
49193         glthread_recursive_lock_destroy.
49194         (glthread_once): New macro/function.
49195         (gl_once): Define as wrapper around glthread_once.
49196         Update function declarations.
49197         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49198         glthread_rwlock_init. Return error code.
49199         (glthread_rwlock_rdlock_multithreaded): Renamed from
49200         glthread_rwlock_rdlock. Return error code.
49201         (glthread_rwlock_wrlock_multithreaded): Renamed from
49202         glthread_rwlock_wrlock. Return error code.
49203         (glthread_rwlock_unlock_multithreaded): Renamed from
49204         glthread_rwlock_unlock. Return error code.
49205         (glthread_rwlock_destroy_multithreaded): Renamed from
49206         glthread_rwlock_destroy. Return error code.
49207         (glthread_recursive_lock_init_multithreaded): Renamed from
49208         glthread_recursive_lock_init. Return error code.
49209         (glthread_recursive_lock_lock_multithreaded): Renamed from
49210         glthread_recursive_lock_lock. Return error code.
49211         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49212         glthread_recursive_lock_unlock. Return error code.
49213         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49214         glthread_recursive_lock_destroy. Return error code.
49215         (glthread_once_call): Make static.
49216         (glthread_once_multithreaded): Renamed from glthread_once.
49217         * lib/tls.h: Include <errno.h>.
49218         (glthread_tls_key_init): New macro/function.
49219         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49220         (glthread_tls_set): New macro/function.
49221         (gl_tls_set): Define as wrapper around glthread_tls_set.
49222         (glthread_tls_key_destroy): New macro/function.
49223         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49224         Update function declarations.
49225         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49226         glthread_tls_get.
49227         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49228
49229 2008-08-04  Eric Blake  <ebb9@byu.net>
49230
49231         gnumakefile: use space, not TAB, outside of targets
49232         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49233
49234 2008-08-02  Jim Meyering  <meyering@redhat.com>
49235
49236         getdate.y: avoid locale-dependent date parsing failure
49237         In Turkish locales, getdate would fail to recognize keywords
49238         containing a lowercase "i".  The solution is not to rely on
49239         locale-sensitive case-conversion.
49240         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49241         (lookup_word): Use c_toupper in place of toupper.
49242         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49243         Reported by Vefa Bicakci <bicave@superonline.com> in
49244         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49245         * modules/getdate (Depends-on): Add c-ctype.
49246
49247 2008-08-02  Bruno Haible  <bruno@clisp.org>
49248
49249         * gnulib-tool (func_import): When updating or creating a .gitignore
49250         file, prepend each added line with a slash, and ignore leading slashes
49251         from the existing lines.
49252         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49253
49254 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49255
49256         Portability fix for GNU make 3.79.1.
49257         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49258         versions do not understand.
49259
49260 2008-08-01  Bruno Haible  <bruno@clisp.org>
49261
49262         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49263         * tests/test-isnanf.h (zero): New variable.
49264         (main): Avoid literal -0.0f.
49265         * tests/test-isnand.h (zero): New variable.
49266         (main): Avoid literal -0.0.
49267         * tests/test-isnanl.h (zero): New variable.
49268         (main): Avoid literal -0.0L.
49269         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49270         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49271         -0.0, -0.0L.
49272         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49273         (test_signbitd): Avoid literal -0.0.
49274         (test_signbitl): Avoid literal -0.0L.
49275         * tests/test-ceilf1.c (zero): New variable.
49276         (main): Avoid literal -0.0f.
49277         * tests/test-ceill.c (zero): New variable.
49278         (main): Avoid literal -0.0L.
49279         * tests/test-floorf1.c (zero): New variable.
49280         (main): Avoid literal -0.0f.
49281         * tests/test-floorl.c (zero): New variable.
49282         (main): Avoid literal -0.0L.
49283         * tests/test-roundf1.c (zero): New variable.
49284         (main): Avoid literal -0.0f.
49285         * tests/test-round1.c (zero): New variable.
49286         (main): Avoid literal -0.0.
49287         * tests/test-roundl.c (zero): New variable.
49288         (main): Avoid literal -0.0L.
49289         * tests/test-truncf1.c (zero): New variable.
49290         (main): Avoid literal -0.0f.
49291         * tests/test-trunc1.c (zero): New variable.
49292         (main): Avoid literal -0.0.
49293         * tests/test-truncl.c (zero): New variable.
49294         (main): Avoid literal -0.0L.
49295         * tests/test-frexp.c (zero): New variable.
49296         (main): Avoid literal -0.0.
49297         * tests/test-frexpl.c (zero): New variable.
49298         (main): Avoid literal -0.0L.
49299         * tests/test-ldexpl.c (zero): New variable.
49300         (main): Avoid literal -0.0L.
49301         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49302         (zerod, zerol): New variables.
49303         (test_function): Avoid literals -0.0, -0.0L.
49304         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49305         (zerod, zerol): New variables.
49306         (test_function): Avoid literals -0.0, -0.0L.
49307         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49308         (zerod, zerol): New variables.
49309         (test_function): Avoid literals -0.0, -0.0L.
49310         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49311         (zerod, zerol): New variables.
49312         (test_function): Avoid literals -0.0, -0.0L.
49313         * tests/test-strtod.c (zero): New variable.
49314         (main): Avoid literal -0.0.
49315         Reported by Jonathan C. Patschke <jp@centtech.com>.
49316
49317 2008-07-31  Jim Meyering  <meyering@redhat.com>
49318
49319         sha256.h: correct definition of SHA224_DIGEST_SIZE
49320         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49321         Reported by Paulie Pena IV <paulie4@gmail.com>.
49322         Define as 224 / 8, rather than as a literal.
49323         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49324         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49325         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49326
49327 2008-07-31  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49330         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49331         Reported by Jonathan Patschke <jp@centtech.com>.
49332
49333 2008-07-31  Bruno Haible  <bruno@clisp.org>
49334
49335         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49336         Reported by Paolo Bonzini <bonzini@gnu.org>.
49337
49338 2008-07-30  Eric Blake  <ebb9@byu.net>
49339
49340         test-strtod: allow compilation without -lm
49341         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49342         Reported by Dennis Clarke <blastwave@gmail.com>.
49343
49344 2008-07-28  Jim Meyering  <meyering@redhat.com>
49345
49346         bootstrap: work also when there are no .po files in po/
49347         * build-aux/bootstrap (update_po_files): Complete the change
49348         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49349
49350 2008-07-27  Jim Meyering  <meyering@redhat.com>
49351
49352         * users.txt: Add zile.
49353
49354 2008-07-26  Ben Pfaff  <blp@gnu.org>
49355
49356         Add missing dependencies on new m4/exponent[fdl].m4 files.
49357         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49358         * modules/isnand-nolibm: Add m4/exponentd.m4.
49359         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49360         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49361         m4/isnan[fdl].m4, because the macros actually used moved.
49362         Reported by Jim Meyering.
49363
49364 2008-07-14  Ben Pfaff  <blp@gnu.org>
49365
49366         Add isinf module.
49367         * lib/isinf.c: New file.
49368         * lib/math.in.h: Define isinf macro if we have decided to replace
49369         it.
49370         * m4/isinf.m4: New file.
49371         * m4/math_h.m4: Initialize and substitute variables for isinf
49372         module.
49373         * modules/isinf: New file.
49374         * modules/isinf-tests: New file.
49375         * modules/math: Add substitutions for new module.
49376         * tests/test-isinf.c: New file.
49377         * doc/posix-functions/isinf.texi: Mention new module.
49378         * MODULES.html.sh: Mention new module.
49379
49380 2008-07-14  Ben Pfaff  <blp@gnu.org>
49381
49382         Factor out some macros for use by additional modules.
49383         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49384         exponentf.m4.
49385         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49386         exponentd.m4.
49387         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49388         file exponentl.m4.
49389         * m4/exponentf.m4: New file.
49390         * m4/exponentd.m4: New file.
49391         * m4/exponentl.m4: New file.
49392         * modules/isnanf: Use new file m4/exponentf.m4.
49393         * modules/isnand: Use new file m4/exponentd.m4.
49394         * modules/isnanl: Use new file m4/exponentl.m4.
49395
49396 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49397
49398         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49399         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49400         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49401         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49402
49403         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49404         readlink on platforms without PATH_MAX.
49405
49406 2008-07-21  Eric Blake  <ebb9@byu.net>
49407
49408         Warn, not fail, on stale version.
49409         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49410
49411         Don't allow installation with stale devel version number.
49412         * top/GNUmakefile (_is-install-target): New macro.
49413         (_curr-ver): Forbid installation with stale version number.
49414
49415 2008-07-20  Bruno Haible  <bruno@clisp.org>
49416
49417         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49418         TESTS_ENVIRONMENT.
49419         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49420
49421 2008-07-20  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/c-stack.h (c_stack_action): Add documentation.
49424         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49425
49426 2008-07-20  Bruno Haible  <bruno@clisp.org>
49427
49428         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49429         * modules/readlink (License): Likewise.
49430
49431 2008-07-17  Eric Blake  <ebb9@byu.net>
49432
49433         * modules/c-stack (Link): Fix typo.
49434
49435         Make c-stack use libsigsegv, when available.
49436         * modules/c-stack (Depends-on): Add libsigsegv.
49437         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49438         needed.
49439         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49440         (segv_handler, overflow_handler, c_stack_action)
49441         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49442         implementation when libsigsegv is available, but only when using
49443         the library is necessary.
49444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49445         comment, explaining why XSI check fails on Linux.
49446         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49447         * tests/test-c-stack2.sh: Tweak skip message.
49448         * NEWS: Document new link-time requirements.
49449
49450 2008-07-16  Eric Blake  <ebb9@byu.net>
49451
49452         c-stack: Expose false positives when not using libsigsegv.
49453         * modules/c-stack-tests (Files): Expand test.
49454         * tests/test-c-stack.c (main): Add means to conditionally trigger
49455         non-overflow SIGSEGV.
49456         * tests/test-c-stack2.sh: New file.
49457
49458 2008-07-14  Bruno Haible  <bruno@clisp.org>
49459
49460         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49461         Reported by Eric Blake.
49462
49463 2008-07-14  Sam Steingold  <sds@gnu.org>
49464             Bruno Haible  <bruno@clisp.org>
49465
49466         New module libsigsegv.
49467         * modules/libsigsegv: New file.
49468         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49469         modifications.
49470         * MODULES.html.sh (Signal handling): New section.
49471
49472 2008-07-14  Bruno Haible  <bruno@clisp.org>
49473
49474         * modules/unictype/ctype-* (Description): Add the word "function".
49475         Improves the resulting doc in MODULES.html.
49476
49477 2008-07-12  Ben Pfaff  <blp@gnu.org>
49478
49479         Add longlong module.
49480         * modules/longlong: New file.
49481
49482 2008-07-12  Bruno Haible  <bruno@clisp.org>
49483
49484         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49485         to empty.
49486
49487 2008-07-10  Ben Pfaff  <blp@gnu.org>
49488
49489         Add isnan module.
49490         * doc/posix-functions/isnan.texi: Mention new module.
49491         * lib/math.in.h: Define isnan macro if we have decided to replace
49492         it.
49493         * m4/isnan.m4: New file.
49494         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49495         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49496         also.
49497         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49498         redundancy.
49499         * m4/math_h.m4: Initialize and substitute variables for isnan
49500         module.
49501         * modules/isnan: New file.
49502         * modules/isnan-tests: New file.
49503         * modules/math: Add substitutions for new module.
49504         * tests/test-isnan.c: New file.
49505         * MODULES.html.sh: Mention new module.
49506
49507 2008-07-10  Ben Pfaff  <blp@gnu.org>
49508
49509         Add isnanf module.
49510         * lib/isnanf.m4: New file.
49511         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49512         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49513         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49514         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49515         * modules/isnanf: New file.
49516         * modules/isnanf-tests: New file.
49517         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49518         files.
49519         * tests/test-isnanf-nolibm.c: factored most of its contents into
49520         new file tests/test-isnanf.h.
49521         * tests/test-isnanf.h: New file.
49522         * tests/test-isnanf.c: New file.
49523         * MODULES.html.sh: Mention new module.
49524         * doc/glibc-functions/isnanf.texi: Mention new module.
49525
49526 2008-07-10  Ben Pfaff  <blp@gnu.org>
49527
49528         Add isnand module.
49529         * lib/isnand.h: New file.
49530         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49531         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49532         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49533         functionality also.
49534         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49535         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49536         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49537         * modules/isnand: New file.
49538         * modules/isnand-tests: New file.
49539         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49540         files.
49541         * tests/test-isnand-nolibm.c: factored most of its contents into
49542         new file tests/test-isnand.h.
49543         * tests/test-isnand.h: New file.
49544         * tests/test-isnand.c: New file.
49545         * MODULES.html.sh: Mention new module.
49546
49547 2008-07-10  Ben Pfaff  <blp@gnu.org>
49548
49549         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49550         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49551         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49552         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49553         * modules/isnanf-nolibm: Update references to renamed files.
49554         * modules/isnand-nolibm: Likewise.
49555         * modules/isnanf-nolibm-tests: Likewise.
49556         * modules/isnand-nolibm-tests: Likewise.
49557         * lib/frexp.c: Likewise.
49558         * lib/isfinite.c: Likewise.
49559         * lib/signbitd.c: Likewise.
49560         * lib/signbitf.c: Likewise.
49561         * lib/vasnprintf.c: Likewise.
49562         * tests/test-ceilf1.c: Likewise.
49563         * tests/test-ceilf2.c: Likewise.
49564         * tests/test-floorf1.c: Likewise.
49565         * tests/test-floorf2.c: Likewise.
49566         * tests/test-frexp.c: Likewise.
49567         * tests/test-round1.c: Likewise.
49568         * tests/test-round2.c: Likewise.
49569         * tests/test-roundf1.c: Likewise.
49570         * tests/test-strtod.c: Likewise.
49571         * tests/test-trunc1.c: Likewise.
49572         * tests/test-trunc2.c: Likewise.
49573         * tests/test-truncf1.c: Likewise.
49574         * tests/test-truncf2.c: Likewise.
49575         * NEWS: Mention the renamed header files.
49576
49577 2008-07-11  Jim Meyering  <meyering@redhat.com>
49578
49579         vc-list-files: make the last-resort awk code more portable
49580         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49581         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49582         does not support it.
49583
49584 2008-07-10  Eric Blake  <ebb9@byu.net>
49585
49586         Work with tar's bootstrap.
49587         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49588         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49589         an m4 comment.
49590
49591 2008-07-09  Jim Meyering  <meyering@redhat.com>
49592
49593         posix-shell.m4: fix typo that made this test malfunction
49594         * m4/posix-shell.m4: Remove capitalization in variable name.
49595
49596 2008-07-08  Bruno Haible  <bruno@clisp.org>
49597
49598         * m4/onceonly.m4: Update comments.
49599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49600
49601 2008-07-04  Jim Meyering  <meyering@redhat.com>
49602
49603         * users.txt: Add vc-dwim.
49604         (bison, coreutils): Use the gitweb URL.
49605
49606 2008-07-03  Jim Meyering  <meyering@redhat.com>
49607
49608         * users.txt: Add libffcall.  From Sam Steingold.
49609
49610 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49611
49612         getdate.y: do not ignore TZ with relative day, month or year offset
49613         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49614         relative-date-handling, since otherwise, the latter would clobber the
49615         sole output (an updated Start value) of the tz-handling block.
49616         * tests/test-getdate.c: Tests for the fix
49617
49618 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49619
49620         Recognize 'foo_LIBRARIES += libgnu.a'.
49621         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49622         makefile snippet has already specified an installation location,
49623         also using '+='.
49624
49625 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49626
49627         getdate.y: factor out common actions
49628         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49629         Use them in place of open-coded actions.
49630
49631 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49632
49633         Add self-test for getdate module.
49634         * modules/getdate-tests: New file.
49635         * tests/test-getdate.c: New file.
49636
49637 2008-06-29  Bruno Haible  <bruno@clisp.org>
49638
49639         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49640         .gitignore.
49641         Reported by Sylvain Beucler <beuc@beuc.net>.
49642
49643 2008-06-29  Bruno Haible  <bruno@clisp.org>
49644
49645         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49646         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49647
49648 2008-06-29  Bruno Haible  <bruno@clisp.org>
49649
49650         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49651         EXTRA_DIST.
49652         Reported by Sylvain Beucler <beuc@beuc.net>.
49653
49654 2008-06-26  Jim Meyering  <meyering@redhat.com>
49655
49656         make several modules depend on the "open" module
49657         This provides slightly increased consistency when opening-for-write
49658         the name of a non-directory spelled with a trailing slash.
49659         * modules/chdir-safer: Likewise.
49660         * modules/chown: Likewise.
49661         * modules/clean-temp: Likewise.
49662         * modules/copy-file: Likewise.
49663         * modules/fchdir: Likewise.
49664         * modules/fcntl-safer: Likewise.
49665         * modules/pipe: Likewise.
49666         * modules/utime: Likewise.
49667         Prompted by Eric Blake and Bruno Haible.
49668
49669 2008-06-24  Andreas Schwab  <schwab@suse.de>
49670
49671         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49672         literals can be used as initializers for global variables.
49673
49674 2008-06-23  Eric Blake  <ebb9@byu.net>
49675
49676         Make gnulib-cache.m4 easier to diff.
49677         * gnulib-tool (func_import): Allow newlines when reading cached
49678         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49679
49680 2008-06-23  Bruno Haible  <bruno@clisp.org>
49681
49682         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49683         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49684         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49685         m4/signalblocking.m4.
49686         (gl_PREREQ_SIGACTION): Don't invoke it.
49687         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49688         gl_PREREQ_SIG_HANDLER_H.
49689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49690         Don't check for sigaction here.
49691
49692 2008-06-23  Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49695         (install_handlers): Don't set the SA_RESETHAND flag.
49696
49697 2008-06-23  Bruno Haible  <bruno@clisp.org>
49698
49699         * m4/sigaction.m4: Comment fixes.
49700         * lib/signal.in.h: Likewise.
49701
49702 2008-06-23  Eric Blake  <ebb9@byu.net>
49703
49704         Fix typo.
49705         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49706
49707         Avoid SA_ namespace.
49708         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49709         Reported by Ralf Wildenhues.
49710
49711         Avoid test failure due to SA_RESTORER.
49712         * tests/test-sigaction.c (SA_MASK): New macro.
49713         (main): Avoid failing due to extension flags being set.
49714         Reported by Jim Meyering.
49715
49716         Revert use of sig-handler.h in sigprocmask.c.
49717         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49718         it requires the existence of struct sigaction.
49719         * lib/sigprocmask.c (handler_t): Restore typedef.
49720         (rpl_signal, old_handlers): Use local type.
49721
49722 2008-06-22  Bruno Haible  <bruno@clisp.org>
49723
49724         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49725         conditionally.
49726         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49727
49728 2008-06-22  Bruno Haible  <bruno@clisp.org>
49729
49730         * doc/posix-functions/siginterrupt.texi: Move note.
49731
49732         * lib/signal.in.h (SA_RESTART): New macro.
49733         * lib/sigaction.c: Update comment.
49734
49735         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49736
49737         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49738         (gl_PREREQ_SIGPROCMASK): Invoke it.
49739         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49740
49741         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49742
49743         * lib/sigprocmask.c: Update a comment.
49744
49745 2008-06-21  Eric Blake  <ebb9@byu.net>
49746
49747         Use sigaction module rather than signal().
49748         * modules/c-stack (Depends-on): Add sigaction.
49749         * modules/fatal-signal (Depends-on): Likewise.
49750         * modules/nanosleep (Depends-on): Likewise.
49751         * modules/sigprocmask (Files): Add sig-handler.h.
49752         * modules/sigaction (Files): Likewise.
49753         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49754         Eggert.
49755         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49756         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49757         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49758         (init_fatal_signals): Likewise.
49759         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49760         (siginterrupt): Delete fallback.
49761         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49762         instead.
49763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49764         siginterrupt.
49765
49766         New module sigaction, for mingw.
49767         * modules/sigaction: New module...
49768         * modules/sigaction-tests: ...and its test.
49769         * m4/sigaction.m4: New file.
49770         * lib/sigaction.c: Likewise.
49771         * tests/test-sigaction.c: Likewise.
49772         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49773         * modules/signal (Makefile.am): Likewise.
49774         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49775         needed.
49776         * doc/posix-headers/signal.texi (signal.h): Mention provided
49777         types.
49778         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49779         that sigaction is preferable.
49780         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49781         module.
49782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49783         sigaction.
49784
49785         Improve robustness of sigprocmask by overriding signal.
49786         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49787         is in use.
49788         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49789         (SIGKILL, SIGSTOP): Provide fallbacks.
49790         (rpl_signal): Implement.
49791         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49792         signal can be called inside handlers.
49793
49794         Fix nanosleep module on mingw.
49795         * modules/nanosleep (Depends-on): Add sys_select.
49796         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49797
49798         Fix licensing of sigprocmask.
49799         * modules/raise (License): Relicense as LGPL.
49800
49801 2008-06-21  Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49804         result if it contains question marks.
49805         Reported by Michael Geng <linux@michaelgeng.de>.
49806
49807 2008-06-19  Bruno Haible  <bruno@clisp.org>
49808
49809         Fix CVS-ism.
49810         * doc/gnulib.texi: Include updated-stamp.texi.
49811         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49812         (updated-stamp.texi): New rule.
49813         (gnulib.info): Depend on it.
49814         * doc/.gitignore: Add updated-stamp.texi.
49815         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49816
49817 2008-06-19  Bruno Haible  <bruno@clisp.org>
49818
49819         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49820         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49821
49822 2008-06-19  Eric Blake  <ebb9@byu.net>
49823
49824         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49825         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49826         Reported by Stepan Kasal.
49827
49828 2008-06-18  Bruno Haible  <bruno@clisp.org>
49829
49830         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49831         Reported by Eric Blake.
49832
49833 2008-06-18  Eric Blake  <ebb9@byu.net>
49834
49835         Work around cygwin 1.5.25 strsignal bug.
49836         * tests/test-strsignal.c: Allow for const char *.
49837         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49838
49839 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49840
49841         * users.txt: Update URL to article and add author/date
49842         information.
49843
49844 2008-06-17  Bruno Haible  <bruno@clisp.org>
49845
49846         New macro gl_DISABLE_THREADS.
49847         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49848         if the user did not pass --enable-threads or --disable-threads option.
49849         (gl_DISABLE_THREADS): New macro.
49850         Reported by Eric Blake <ebb9@byu.net>.
49851
49852 2008-06-17  Bruno Haible  <bruno@clisp.org>
49853
49854         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49855         when the macro ignores it.
49856         Based on a patch by Eric Blake <ebb9@byu.net>.
49857
49858 2008-06-17  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/tls (License): Change to LGPLv2+.
49861         Reported by Eric Blake.
49862
49863 2008-06-17  Eric Blake  <ebb9@byu.net>
49864
49865         Simplify c-stack prerequisites.
49866         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49868         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49869         check.
49870         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49871         <sys/resource.h>.
49872
49873         Move c-stack test into testsuite.
49874         * modules/c-stack-tests: New file.
49875         * lib/c-stack.c [DEBUG]: Move test program...
49876         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49877         fail test if sigaltstack is lacking.
49878         * tests/test-c-stack.sh: New driver file.
49879
49880 2008-06-16  Eric Blake  <ebb9@byu.net>
49881
49882         Use raise module consistently.
49883         * modules/fatal-signal (Depends-on): Add raise.
49884         * modules/sigprocmask (Depends-on): Likewise.
49885         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49886         * lib/sigprocmask.c (sigprocmask): Likewise.
49887         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49888         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49889
49890         Fix compliance bug in sigpending.
49891         * lib/sigprocmask.c (sigpending): Return pending array via
49892         parameter, not return value.
49893
49894 2008-06-14  Eric Blake  <ebb9@byu.net>
49895
49896         Improve obstack-printf test code.
49897         * tests/test-obstack-printf.c (test_function): Fix comment, and
49898         simplify usage of obstack_* in macros.  Add a test for coverage.
49899         Reported by Bruno Haible.
49900
49901 2008-06-14  Bruno Haible  <bruno@clisp.org>
49902
49903         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49904         array size as a constant, not as a const variable.
49905         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49906         AC_USE_SYSTEM_EXTENSIONS.
49907         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49908         Test whether the obstack_printf function actually exists.
49909         * modules/obstack-printf (Depends-on): Add extensions.
49910         (Include): Remove obstack.h.
49911         * modules/obstack-printf-posix (Depends-on): Add extensions.
49912         (Include): Remove obstack.h.
49913
49914 2008-06-13  Eric Blake  <ebb9@byu.net>
49915
49916         Add obstack-printf and obstack-printf-posix modules.
49917         * modules/obstack-printf: New file.
49918         * modules/obstack-printf-posix: Likewise.
49919         * MODULES.html.sh (Misc): Mention them.
49920         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49921         Likewise.
49922         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49923         Likewise.
49924         * modules/stdio (Makefile.am): Accomodate new modules.
49925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49926         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49927         Declare.
49928         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49929         functions.
49930         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49931         (gl_REPLACE_OBSTACK_PRINTF): New macros
49932         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49933         * tests/test-obstack-printf.c: New file.
49934         * modules/obstack-printf-tests: Likewise.
49935         * modules/obstack-printf-posix-tests: Likewise.
49936
49937 2008-06-11  Bruno Haible  <bruno@clisp.org>
49938
49939         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49940         * lib/open.c: Include errno.h.
49941         (open): Fail when attempting to write to a file that has a trailing
49942         slash.
49943         * tests/test-open.c (main): Test against trailing slash bug.
49944         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49945
49946 2008-06-10  Bruno Haible  <bruno@clisp.org>
49947
49948         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49949         for $? to work inside the trap command, with various /bin/sh-s.
49950         * tests/test-vc-list-files-cvs.sh: Likewise.
49951
49952 2008-06-10  Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/acl-internal.h: Don't include gettext.h here.
49955         * lib/set-mode-acl.c: Include gettext.h here.
49956         * lib/copy-acl.c: Likewise.
49957
49958 2008-06-10  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49961         * lib/wait-process.c (wait_subprocess): Likewise.
49962         * lib/execute.h (execute): Add termsigp argument.
49963         * lib/execute.c (execute): Likewise.
49964         * lib/csharpcomp.c (compile_csharp_using_pnet,
49965         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49966         * lib/csharpexec.c (execute_csharp_using_pnet,
49967         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49968         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49969         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49970         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49971         is_jikes_present): Update.
49972         * lib/javaexec.c (execute_java_class): Update.
49973         * lib/javaversion.c (execute_and_read_line): Update.
49974         * NEWS: Document the changes.
49975         Reported by Eric Blake.
49976
49977 2008-06-10  Eric Blake  <ebb9@byu.net>
49978
49979         Add missing include.
49980         * tests/test-strstr.c (includes): Add <signal.h>.
49981         * tests/test-strcasestr.c (includes): Likewise.
49982         * tests/test-memmem.c (includes): Likewise.
49983
49984 2008-06-10  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/wait-process.c (wait_subprocess): Add an assertion.
49987
49988 2008-06-10  Bruno Haible  <bruno@clisp.org>
49989
49990         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49991
49992 2008-06-10  Bruno Haible  <bruno@clisp.org>
49993
49994         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49995         using alarm().
49996         * tests/test-strcasestr.c (main): Likewise.
49997         * tests/test-strstr.c (main): Likewise.
49998
49999 2008-06-09  Bruno Haible  <bruno@clisp.org>
50000
50001         Work around the Solaris 10 ACE ACLs ABI change.
50002         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50003         declare if ACL_NO_TRIVIAL is present.
50004         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50005         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50006         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50007         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50008         define if ACL_NO_TRIVIAL is present.
50009         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50010         and use the current ABI.
50011         (file_has_acl): Use same #if condition as elsewhere.
50012         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50013         in use, and use the current ABI.
50014         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50015         Reported by Jim Meyering.
50016
50017 2008-06-09  Eric Blake  <ebb9@byu.net>
50018
50019         Work around environments that (stupidly) ignore SIGALRM.
50020         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50021         before using alarm().
50022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50024         Reported by Ian Beckwith <ianb@erislabs.net>.
50025
50026         Produce autobuild blurb earlier in log.
50027         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50028
50029 2008-06-09  Jim Meyering  <meyering@redhat.com>
50030         and OndÅ™ej Vašík  <ovasik@redhat.com>
50031
50032         utimens.c: correct kernel bug work-around
50033         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50034         failure, not success, and the kernel bug we're trying to work
50035         around affects not just the utimensat call, but also the fallback
50036         futimens call.
50037         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50038         not success.
50039         [HAVE_FUTIMENS]: Use the same work-around, here.
50040
50041 2008-06-09  Jim Meyering  <meyering@redhat.com>
50042
50043         add more guards around definition of ACE_-related code
50044         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50045         ALLOW and ACE_OWNER are also defined.
50046
50047 2008-06-08  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/acl-internal.h: Add me as co-author.
50050         * lib/file-has-acl.c: Likewise.
50051         * lib/set-mode-acl.c: Likewise.
50052         * lib/copy-acl.c: Likewise.
50053
50054 2008-06-08  Bruno Haible  <bruno@clisp.org>
50055
50056         Add support for AIX ACLs.
50057         * lib/acl-internal.h (acl_nontrivial): New declaration.
50058         * lib/file-has-acl.c (acl_nontrivial): New function.
50059         (file_has_acl): Add implementation using AIX 4 ACL API.
50060         * lib/set-mode-acl.c (qset_acl): Likewise.
50061         * lib/copy-acl.c (qcopy_acl): Likewise.
50062
50063 2008-06-08  Bruno Haible  <bruno@clisp.org>
50064
50065         Add support for HP-UX ACLs.
50066         * lib/acl-internal.h (acl_nontrivial): New declaration.
50067         * lib/file-has-acl.c (acl_nontrivial): New function.
50068         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50069         * lib/set-mode-acl.c (qset_acl): Likewise.
50070         * lib/copy-acl.c (qcopy_acl): Likewise.
50071
50072 2008-06-08  Bruno Haible  <bruno@clisp.org>
50073
50074         Add support for Cygwin ACLs.
50075         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50076         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50077         the chmod_or_fchmod call.
50078         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50079
50080 2008-06-08  Bruno Haible  <bruno@clisp.org>
50081
50082         Fix bug with setuid modes in Solaris 10+ code.
50083         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50084         succeeded, when the mode contains some special bits.
50085
50086 2008-06-08  Bruno Haible  <bruno@clisp.org>
50087
50088         Add support for Solaris 7..10 ACLs.
50089         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50090         declarations.
50091         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50092         functions.
50093         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50094         * lib/set-mode-acl.c (qset_acl): Likewise.
50095         * lib/copy-acl.c (qcopy_acl): Likewise.
50096
50097 2008-06-08  Bruno Haible  <bruno@clisp.org>
50098
50099         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50100         declaration.
50101         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50102         (acl_access_nontrivial): Remove MacOS X case.
50103         (file_has_acl): Use acl_extended_nontrivial.
50104         * lib/copy-acl.c (qcopy_acl): Likewise.
50105
50106 2008-06-08  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50109
50110 2008-06-08  Jim Meyering  <meyering@redhat.com>
50111
50112         * modules/acl (Maintainer): Add Bruno Haible.
50113
50114 2008-06-07  Bruno Haible  <bruno@clisp.org>
50115
50116         Improve support for Tru64 ACLs.
50117         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50118         ACL on OSF/1.
50119
50120 2008-06-07  Bruno Haible  <bruno@clisp.org>
50121
50122         Add support for MacOS X ACLs.
50123         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50124         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50125         * lib/set-mode-acl.c (qset_acl): Likewise.
50126         * lib/copy-acl.c (qcopy_acl): Likewise.
50127
50128 2008-06-07  Bruno Haible  <bruno@clisp.org>
50129
50130         Fix memory leak introduced on 2008-05-22.
50131         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50132         use.
50133
50134 2008-06-07  Bruno Haible  <bruno@clisp.org>
50135
50136         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50137         to construct an empty ACL.
50138
50139 2008-06-07  Bruno Haible  <bruno@clisp.org>
50140
50141         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50142         precisely.
50143         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50144
50145 2008-06-07  Bruno Haible  <bruno@clisp.org>
50146
50147         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50148         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50149
50150 2008-06-07  Bruno Haible  <bruno@clisp.org>
50151
50152         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50153         regardless of POSIX.
50154         * doc/posix-functions/_longjmp.texi: Likewise.
50155         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50156         SystemV platform in this case.
50157
50158 2008-06-06  Eric Blake  <ebb9@byu.net>
50159
50160         Document abort() bugs.
50161         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50162
50163         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50164         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50165         sigsetjmp.
50166         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50167         siglongjmp, but only as a macro.
50168         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50169         is obsolete.
50170         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50171
50172         Tweak documentation to cover cygwin argz bugs.
50173         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50174         argz bug fix; no code change needed since no cygwin releases
50175         occurred between the last fix and the bug being tested.
50176         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50177         module and recently fixed cygwin bugs.
50178         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50179         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50180         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50181         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50182         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50183         Likewise.
50184         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50185         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50186         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50187         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50188         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50189         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50190         Likewise.
50191
50192         Avoid gcc warning on cygwin.
50193         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50194         !ACL_NO_TRIVIAL]: Avoid unused variable.
50195
50196 2008-06-05  Eric Blake  <ebb9@byu.net>
50197
50198         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50199         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50200         git-version-gen fails to come up with a version.
50201         Reported by Simon Josefsson.
50202
50203 2008-06-05  Jim Meyering  <meyering@redhat.com>
50204             Paul Eggert  <eggert@cs.ucla.edu>
50205
50206         utimens.c: work around a probable Linux kernel bug
50207         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50208         appears to be a kernel bug that causes utimensat to return 280
50209         instead of 0, indicating success.
50210
50211 2008-06-04  Bruno Haible  <bruno@clisp.org>
50212
50213         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50214         2008-06-01 commit.
50215
50216 2008-06-04  Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50219         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50220         (file_has_acl): Use it. Save errno afterwards.
50221         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50222
50223 2008-06-03  Bruno Haible  <bruno@clisp.org>
50224
50225         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50226         draft code. Simplify #ifs.
50227         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50228         Put Solaris code after POSIX-draft code. Fix comments regarding
50229         Solaris 10, HP-UX. Mention Cygwin.
50230         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50231
50232 2008-06-03  Eric Blake  <ebb9@byu.net>
50233
50234         Provide fallback for older kernels.
50235         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50236         Provide runtime fallback if kernel lacks support.
50237         Reported by Mike Frysinger.
50238
50239 2008-06-02  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50242         it exists.
50243
50244 2008-06-02  Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50247         * lib/copy-acl.c (qcopy_acl): Update comment.
50248
50249 2008-06-02  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50252         like ACL APIs.
50253
50254 2008-06-02  Bruno Haible  <bruno@clisp.org>
50255
50256         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50257         * tests/test-set-mode-acl.sh: Likewise.
50258         * tests/test-copy-acl.sh: Likewise.
50259         * tests/test-copy-file.sh: Likewise.
50260
50261 2008-06-02  Bruno Haible  <bruno@clisp.org>
50262
50263         * tests/test-file-has-acl.sh: Remove unused code.
50264
50265 2008-06-01  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50268         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50269         messages.
50270         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50271
50272 2008-06-01  Bruno Haible  <bruno@clisp.org>
50273
50274         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50275         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50276         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50277         APIs.
50278         * modules/acl-tests (configure.ac): Remove tests now contained in
50279         m4/acl.m4.
50280
50281 2008-06-02  Jim Meyering  <meyering@redhat.com>
50282
50283         announce-gen: use a better key-server host name
50284         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50285         it may be more consistently reliable.  Suggested by Werner Koch
50286         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50287
50288 2008-06-01  Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50291         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50292
50293 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50294
50295         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50296
50297 2008-06-01  Bruno Haible  <bruno@clisp.org>
50298
50299         New ACL tests.
50300         * tests/test-file-has-acl.sh: New file.
50301         * tests/test-file-has-acl.c: New file.
50302         * tests/test-set-mode-acl.sh: New file.
50303         * tests/test-set-mode-acl.c: New file.
50304         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50305         * tests/test-copy-acl.c: New file.
50306         * modules/acl-tests: New file, based on modules/copy-file-tests.
50307         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50308         (Depends-on): Add acl-tests.
50309         (configure.ac): Remove checks.
50310         (Makefile.am): Don't create test-sameacls program here any more.
50311
50312 2008-06-01  Bruno Haible  <bruno@clisp.org>
50313
50314         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50315         * tests/test-sameacls.c: Include progname.h.
50316         (main): Invoke set_program_name. Portability fixes for MacOS X,
50317         Solaris, HP-UX.
50318
50319 2008-06-01  Bruno Haible  <bruno@clisp.org>
50320
50321         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50322         function.
50323         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50324
50325 2008-06-01  Bruno Haible  <bruno@clisp.org>
50326
50327         * modules/rpmatch (Depends-on): Add strdup.
50328
50329 2008-06-01  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/pipe.c: Include unistd-safer.h.
50332         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50333         * modules/pipe (Depends-on): Add unistd-safer.
50334
50335 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50336
50337         * modules/autobuild (configure.ac): Call AB_INIT.
50338
50339 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50340
50341         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50342         Suggested by Bruno Haible <bruno@clisp.org>.
50343
50344 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50345
50346         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50347         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50348         <bruno@clisp.org>.
50349
50350 2008-05-29  Eric Blake  <ebb9@byu.net>
50351
50352         Prefer new POSIX 200x interfaces over futimesat.
50353         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50354         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50355         when available.
50356         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50357
50358 2008-05-28  Bruno Haible  <bruno@clisp.org>
50359
50360         * modules/stpcpy (License): Change to LGPLv2+.
50361         Requested by David Lutterkort <dlutter@redhat.com>.
50362
50363 2008-05-27  Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50366         current mingw.
50367         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50368
50369 2008-05-27  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/iconv_open (Link): New section, from module 'iconv'.
50372         * modules/striconv (Link): Likewise.
50373         * modules/striconveh (Link): Likewise.
50374         * modules/xstriconv (Link): Likewise.
50375         * modules/unicodeio (Link): Likewise.
50376         * modules/propername (Link): Likewise.
50377         Reported by Jim Meyering.
50378
50379 2008-05-26  Jim Meyering  <meyering@redhat.com>
50380
50381         sha256: do not artificially restrict buffer length to be < 2^32
50382         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50383         uint32_t to size_t.
50384         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50385         to match.
50386
50387         avoid unaligned access errors, e.g., on sparc
50388         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50389         direct access through a possibly-unaligned uint64* pointer.
50390         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50391         direct access through a possibly-unaligned uint32* pointer.
50392         Prompted by this patch from Tom "spot" Callaway:
50393         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50394
50395         sha512.c: fix typo in comment
50396         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50397
50398 2008-05-25  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50401         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50402         (Makefile.am): Update lib_SOURCES.
50403
50404 2008-05-25  Bruno Haible  <bruno@clisp.org>
50405
50406         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50407
50408 2008-05-25  Jim Meyering  <meyering@redhat.com>
50409
50410         useless-if-before-free: freed expr may have white-space differences
50411         * build-aux/useless-if-before-free: Recognize cases in which the
50412         freed expression differs from the tested one in embedded white
50413         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50414         $1 was used, so we can't make any regexp shy.  Improved tests now
50415         detect this.
50416
50417         useless-if-before-free: accept white space in the expression.
50418         * build-aux/useless-if-before-free: For now, any white space
50419         in the expression must be identical in the free argument.
50420
50421         useless-if-before-free: efficiency tweak
50422         * build-aux/useless-if-before-free: Make the expression-matching
50423         regexp "shy".
50424         Make the *outer* regexp shy, not the expr-matching one.
50425
50426         update code-in-comment to accept cast of free arg
50427         * build-aux/useless-if-before-free: Update regexp.
50428
50429 2008-05-25  Bruno Haible  <bruno@clisp.org>
50430
50431         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50432         * modules/copy-file-tests (Files, Makefile.am): Update.
50433         * tests/test-copy-file.c (func_test_copy): Update.
50434
50435 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50436
50437         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50438
50439 2008-05-23  Bruno Haible  <bruno@clisp.org>
50440
50441         Improve support for ACLs on OSF/1.
50442         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50443         Remove fallback for unknown flavors of ACLs.
50444
50445 2008-05-22  Bruno Haible  <bruno@clisp.org>
50446
50447         Add support for ACLs on OSF/1.
50448         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50449         replacements.
50450         (acl_free_text): New macro fallback.
50451         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50452         acl_free.
50453         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50454         acl_free_text function. Require AC_C_INLINE.
50455
50456 2008-05-22  Bruno Haible  <bruno@clisp.org>
50457
50458         Make copy_acl work on MacOS X 10.5.
50459         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50460         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50461         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50462         If MODE_INSIDE_ACL, don't assume that every system has the same text
50463         representation for ACLs as FreeBSD.
50464         * lib/copy-acl.c (copy_acl): Add support for platforms with
50465         !MODE_INSIDE_ACL.
50466         * lib/file-has-acl.c (file_has_acl): Likewise.
50467         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50468         FreeBSD, MacOS X, or IRIX, respectively.
50469
50470 2008-05-22  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/acl.h: Don't include <sys/acl.h>.
50473         (GETACLCNT): Move fallback to lib/acl-internal.h.
50474         * lib/acl-internal.h: Include <sys/acl.h> here.
50475         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50476
50477 2008-05-22  Bruno Haible  <bruno@clisp.org>
50478
50479         Split off copy_acl function to separate file.
50480         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50481         * lib/acl.c (copy_acl): Moved function to separate file.
50482         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50483         * modules/acl (Files): Add lib/copy-acl.c.
50484         (Makefiles.am): Augment lib_SOURCES.
50485
50486 2008-05-22  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/copy-file-tests: New file.
50489         * tests/test-copy-file.sh: New file.
50490         * tests/test-copy-file.c: New file.
50491         * tests/test-copy-file-sameacls.c: New file.
50492
50493 2008-05-22  Eric Blake  <ebb9@byu.net>
50494
50495         Avoid gcc warning.
50496         * tests/test-memcmp.c (main): Pass NULL indirectly.
50497
50498 2008-05-21  Bruno Haible  <bruno@clisp.org>
50499
50500         Add reference doc about ACLs.
50501         * doc/acl-resources.txt: New file.
50502         * doc/acl-cygwin.txt: New file.
50503
50504 2008-05-21  Bruno Haible  <bruno@clisp.org>
50505
50506         Avoid one more warning from gcc.
50507         * lib/vasnprintf.c (IF_LINT): Update comments.
50508         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50509
50510 2008-05-21  Jim Meyering  <meyering@redhat.com>
50511
50512         avoid a warning from gcc
50513         * lib/vasnprintf.c (IF_LINT): Define.
50514         (scale10_round_decimal_long_double):
50515         Use it to avoid a "may be used uninitialized" warning.
50516         (scale10_round_decimal_double): Likewise.
50517
50518 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50519
50520         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50521         declared.
50522
50523 2008-05-20  Bruno Haible  <bruno@clisp.org>
50524
50525         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50526         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50527
50528 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50529
50530         * modules/memcmp-tests: New file.
50531         * tests/test-memcmp.c: New file.
50532
50533 2008-05-19  Bruno Haible  <bruno@clisp.org>
50534
50535         * modules/propername (Notice, configure.ac): Put quoted "..." into
50536         --keyword option.
50537         * lib/propername.h: Update comments accordingly.
50538         Reported by Eric Blake.
50539
50540 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50541
50542         * modules/getpass-gnu (Depends-on): Add fseeko.
50543
50544 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50545
50546         * modules/base64-tests: New file.
50547
50548 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50549
50550         * lib/base64.c (base64_decode_ctx): If a decode context structure
50551         was passed in use it to ignore newlines.  If a context structure
50552         was _not_ passed in, continue to treat newlines as garbage (this
50553         is the historical behavior).  Formerly base64_decode.
50554         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50555         takes a decode context structure.
50556         * lib/base64.h (base64_decode): Macro for four-argument calls.
50557         (base64_decode_alloc): Likewise.
50558         * lib/base64.c (base64_decode_ctx): If a decode context structure
50559         was passed in use it to ignore newlines.  If a context structure
50560         was _not_ passed in, continue to treat newlines as garbage (this
50561         is the historical behavior).  Formerly base64_decode.
50562         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50563         takes a decode context structure.
50564         * lib/base64.h (base64_decode): Macro for four-argument calls.
50565         (base64_decode_alloc): Likewise.
50566
50567 2008-05-19  Jim Meyering  <meyering@redhat.com>
50568
50569         avoid a warning from gcc
50570         * lib/trim.c (IF_LINT): Define.
50571         (trim2): Use it to avoid a "may be used uninitialized" warning.
50572
50573         Fix doc typo.
50574         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50575
50576 2008-05-19  Bruno Haible  <bruno@clisp.org>
50577
50578         * doc/glibc-functions/getpass.texi: Document limits of other
50579         implementations.
50580
50581 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50582             Bruno Haible <bruno@clisp.org>
50583
50584         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50585
50586 2008-05-18  Bruno Haible  <bruno@clisp.org>
50587
50588         * modules/propername: New file, from GNU gettext.
50589         * lib/propername.h: New file, from GNU gettext.
50590         * lib/propername.c: New file, from GNU gettext.
50591         * MODULES.html.sh (Internationalization functions): Add propername.
50592
50593 2008-05-16  Jim Meyering  <meyering@redhat.com>
50594             Bruno Haible  <bruno@clisp.org>
50595
50596         Avoid some warnings from "gcc -Wshadow".
50597         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50598
50599 2008-05-15  Eric Blake  <ebb9@byu.net>
50600
50601         Extend previous patch to cygwin 1.7.0.
50602         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50603         fast implementation in cygwin >= 1.7.0.
50604         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50606
50607 2008-05-15  Bruno Haible  <bruno@clisp.org>
50608
50609         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50610         implementation in glibc >= 2.9.
50611         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50613
50614 2008-05-15  Bruno Haible  <bruno@clisp.org>
50615
50616         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50617         (Unicode string functions): Add unilbrk/*.
50618         Reported by Karl Berry.
50619
50620 2008-05-15  Eric Blake  <ebb9@byu.net>
50621
50622         Fix violation of <stdbool.h> replacement in regex.
50623         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50624         * lib/regexec.c (re_search_internal): Likewise.
50625         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50626
50627 2008-05-15  Jim Meyering  <meyering@redhat.com>
50628
50629         avoid distracting test output when git or cvs is not found
50630         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50631         * tests/test-vc-list-files-git.sh: Likewise.
50632
50633 2008-05-15  Eric Blake  <ebb9@byu.net>
50634
50635         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50636         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50637         glibc version.
50638         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50639         * doc/posix-functions/strstr.texi (strstr): Likewise.
50640         * lib/str-two-way.h (MAX): Sychronize with glibc.
50641
50642 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50643
50644         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50645         opr.ctx_type.
50646         (calc_first): Initialize constraint field.
50647         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50648         Fix grammar.
50649         (duplicate_node): Merge constraint field for all node types.
50650         (calc_eclosure_iter): Look at constraint field for all node types.
50651         * lib/regex_internal.c (create_cd_newstate): Don't look at
50652         opr.ctx_type.
50653
50654 2008-05-14  Bruno Haible  <bruno@clisp.org>
50655
50656         Help GCC to do better code generation.
50657         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50658         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50659         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50660         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50661         Declare with attribute 'malloc' if supported.
50662
50663 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50664
50665         use "echo STR|wc -c" rather than unportable "expr length STR"
50666         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50667         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50668
50669 2008-05-14  Jim Meyering  <meyering@redhat.com>
50670
50671         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50672         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50673         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50674         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50675         via Collin Lasse.
50676
50677 2008-05-14  Eric Blake  <ebb9@byu.net>
50678
50679         Avoid quadratic growth in gl_LIBSOURCES.
50680         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50681         Suggested by Bruno Haible.
50682
50683         Test xmemdup0.
50684         * modules/xmemdup0-tests: New file.
50685         * tests/test-xmemdup0.c: Likewise.
50686
50687 2008-05-13  Eric Blake  <ebb9@byu.net>
50688
50689         Split xmemdup0 into its own module.
50690         * modules/xmemdup0: New file.
50691         * lib/xmemdup0.h: Likewise.
50692         * lib/xmemdup0.c: Likewise.
50693         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50694         * lib/xalloc.h (xmemdup0): Remove.
50695         * lib/xmalloc.c (xmemdup0): Likewise.
50696
50697 2008-05-13  Eric Blake  <ebb9@byu.net>
50698             Bruno Haible  <bruno@clisp.org>
50699
50700         Reduce number of forks required during autoconf.
50701         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50702         and gl_LIBSOURCES_DIR.
50703         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50704         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50705         m4_syscmd per file.
50706         <m4_foreach_w>: Move...
50707         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50708
50709 2008-05-13  Eric Blake  <ebb9@byu.net>
50710
50711         * gnulib-tool: Fix various comment typos.
50712
50713 2008-05-12  Bruno Haible  <bruno@clisp.org>
50714
50715         Tailor the linebreaking algorithm.
50716         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50717
50718 2008-05-12  Bruno Haible  <bruno@clisp.org>
50719
50720         Update to Unicode 5.0.0.
50721         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50722         LBP_JV, LBP_JT. Redistribute values.
50723         (unilbrk_table): Change size.
50724         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50725         Unicode TR#14 rev. 22.
50726         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50727         LBP_JV, LBP_JT. Redistribute values.
50728         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50729         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50730         Update.
50731         * lib/unilbrk/lbrkprop1.h: Regenerated.
50732         * lib/unilbrk/lbrkprop2.h: Regenerated.
50733         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50734         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50735         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50736         Likewise.
50737         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50738         Likewise.
50739         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50740         result.
50741         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50742         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50743         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50744         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50745         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50746         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50747
50748 2008-05-11  Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50751
50752 2008-05-11  Bruno Haible  <bruno@clisp.org>
50753
50754         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50755         * modules/unilbrk/gen-lbrk: New file.
50756
50757 2008-05-11  Bruno Haible  <bruno@clisp.org>
50758
50759         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50760         * m4/sha512.m4 (gl_SHA512): Likewise.
50761
50762 2008-05-11  Jim Meyering  <meyering@redhat.com>
50763
50764         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50765         * modules/crypto/sha256: New file.
50766         * modules/crypto/sha512: Likewise.
50767         * lib/sha256.c: Likewise.
50768         * lib/sha256.h: Likewise.
50769         * lib/sha512.c: Likewise.
50770         * lib/sha512.h: Likewise.
50771         * lib/u64.h: Likewise.
50772         * m4/sha256.m4: Likewise.
50773         * m4/sha512.m4: Likewise.
50774         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50775
50776 2008-05-10  Bruno Haible  <bruno@clisp.org>
50777
50778         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50779         (Input/Output <stdio.h>): Add xprintf.
50780         (Signal handling <signal.h>): Add strsignal.
50781         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50782         (Core language properties): Add func.
50783         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50784         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50785         strings.
50786         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50787         (Input/output): New section.
50788         (File system functions): Add openat-die, stat-macros.
50789         (Networking functions): Add sockets.
50790         (Unicode string functions): Add unictype/*.
50791         (Support for building libraries and executables): Add gperf.
50792         (Support for building documentation): Add agpl-3.0.
50793         (Misc): Add nocrash.
50794
50795 2008-05-10  Bruno Haible  <bruno@clisp.org>
50796
50797         * modules/unictype/gen-ctype: New file.
50798
50799 2008-05-10  Jim Meyering  <meyering@redhat.com>
50800
50801         Make chdir-safer.c more efficient on a system with no symlinks.
50802         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50803         also if ELOOP is zero.  Suggested by Bruno Haible.
50804
50805         Make chdir-safer.c slightly safer.
50806         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50807         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50808
50809         Avoid compile failure on systems without ELOOP (like mingw).
50810         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50811         Reported by Bruno Haible.
50812
50813 2008-05-10  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50816         (is_utf8_encoding): Use a case-insensitive comparison.
50817         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50818         streq.
50819
50820 2008-05-10  Bruno Haible  <bruno@clisp.org>
50821
50822         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50823         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50824         * lib/unilbrk/ulc-common.h (iconv_string_length,
50825         iconv_string_keeping_offsets): Remove declarations.
50826         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50827         Don't include <iconv.h>, streq.h, xsize.h.
50828         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50829         conversion.
50830         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50831         <iconv.h>, streq.h, xsize.h.
50832         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50833         conversion.
50834         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50835         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50836         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50837         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50838
50839 2008-05-10  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50842         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50843
50844         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50845         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50846
50847         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50848         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50849
50850         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50851         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50852
50853         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50854         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50855
50856         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50857         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50858
50859         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50860         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50861
50862         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50863         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50864
50865 2008-05-10  Bruno Haible  <bruno@clisp.org>
50866
50867         Split up 'linebreak' module.
50868         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50869         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50870         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50871         modifications.
50872         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50873         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50874         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50875         lib/linebreak.c.
50876         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50877         lib/linebreak.c.
50878         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50879         lib/linebreak.c.
50880         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50881         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50882         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50883         lib/linebreak.c.
50884         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50885         lib/linebreak.c.
50886         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50887         lib/linebreak.c.
50888         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50889         lib/linebreak.c.
50890         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50891         lib/linebreak.c.
50892         * modules/unilbrk/base: New file.
50893         * modules/unilbrk/tables: New file.
50894         * modules/unilbrk/u8-possible-linebreaks: New file.
50895         * modules/unilbrk/u16-possible-linebreaks: New file.
50896         * modules/unilbrk/u32-possible-linebreaks: New file.
50897         * modules/unilbrk/ulc-common: New file.
50898         * modules/unilbrk/ulc-possible-linebreaks: New file.
50899         * modules/unilbrk/u8-width-linebreaks: New file.
50900         * modules/unilbrk/u16-width-linebreaks: New file.
50901         * modules/unilbrk/u32-width-linebreaks: New file.
50902         * modules/unilbrk/ulc-width-linebreaks: New file.
50903         * lib/linebreak.h: Remove file.
50904         * lib/linebreak.c: Remove file.
50905         * m4/linebreak.m4: Remove file.
50906         * modules/linebreak: Remove file.
50907         * NEWS: Mention the changes.
50908
50909 2008-05-09  Eric Blake  <ebb9@byu.net>
50910
50911         Add xmemdup0.
50912         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50913         implementation.
50914         * lib/xmalloc.c (xmemdup0): New C implementation.
50915
50916 2008-05-08  Bruno Haible  <bruno@clisp.org>
50917
50918         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50919
50920 2008-05-07  Eric Blake  <ebb9@byu.net>
50921
50922         Support cross-compilation of <wctype.h>.
50923         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50924         AC_CACHE_CHECK.
50925
50926 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50927
50928         * build-aux/vc-list-files: Add support for bzr.
50929
50930 2008-05-03  Jim Meyering  <meyering@redhat.com>
50931
50932         avoid failed assertion with tight malloc
50933         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50934
50935 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50936
50937         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50938         are needed from arpa/inet.h.
50939         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50940         Reported by Bruno Haible.
50941
50942 2008-05-02  Jim Meyering  <meyering@redhat.com>
50943
50944         avoid compilation error on FreeBSD 6
50945         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50946
50947 2008-05-01  Jim Meyering  <meyering@redhat.com>
50948
50949         useless-if-before-free: correct --help's exit status description
50950         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50951         for one or more matches, etc.  Reported by Bruno Haible.
50952
50953         vc-list-files: make the stand-alone gnulib test work
50954         * modules/vc-list-files-tests (configure.ac):
50955         Define and AC_SUBST abs_aux_dir.
50956         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50957         $(abs_top_srcdir) to each script and having each of them
50958         duplicate the work of setting PATH, set PATH here, using
50959         the new variable, abs_aux_dir instead.
50960         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50961         * tests/test-vc-list-files-git.sh: Likewise.
50962         Reported by Bruno Haible.
50963
50964 2008-05-01  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50967         reallocation. Rename 'done' to 'found_delimiter'.
50968
50969 2008-05-01  Jim Meyering  <meyering@redhat.com>
50970
50971         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50972         * build-aux/vc-list-files: Use `...`, not $(...).
50973
50974 2008-04-30  Jim Meyering  <meyering@redhat.com>
50975
50976         add tests for vc-list-files
50977         * modules/vc-list-files-tests: New module.
50978         * tests/test-vc-list-files-cvs.sh: New file.
50979         * tests/test-vc-list-files-git.sh: New file.
50980
50981         avoid a warning from gcc
50982         * lib/getndelim2.c (IF_LINT): Define.
50983         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50984
50985         vc-list-files: work properly with build-aux/cvsu, too
50986         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50987         to all cvs-based clauses.
50988
50989         vc-list-files: work properly in the CVS+awk case, too
50990         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50991
50992         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50993         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50994         take more than one file argument, so .  Add quotes, just in case $dir
50995         ever contains a shell meta-character.  Prompted by Soren Hansen in
50996         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50997
50998 2008-04-29  Eric Blake  <ebb9@byu.net>
50999
51000         Optimize getndelim2 to use block operations when possible.
51001         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51002         freadseek, and memchr2.
51003         * lib/getndelim2.c (getndelim2): Use them for block reads.
51004
51005 2008-04-29  Bruno Haible  <bruno@clisp.org>
51006
51007         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51008         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51009         * modules/inet_ntop (Depends-on): Add extensions.
51010         * modules/inet_pton (Depends-on): Likewise.
51011         Reported by Simon Josefsson.
51012
51013 2008-04-29  Jim Meyering  <meyering@redhat.com>
51014
51015         When the is more than one match in a block, match all of them.
51016         * build-aux/useless-if-before-free: Iterate through each block
51017         until there are no more matches.
51018
51019         Fix broken useless-if-before-free script.
51020         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51021         the expression to match cast of argument to free-like function.
51022
51023 2008-04-29  Eric Blake  <ebb9@byu.net>
51024
51025         Use new header.
51026         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51027
51028 2008-04-29  Jim Meyering  <meyering@redhat.com>
51029
51030         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51031         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51032         by gnulib to exist and to declare e.g., inet_ntop.
51033         Don't include "inet_ntop.h", now removed.
51034
51035         * m4/arpa_inet_h.m4: Remove trailing blanks.
51036
51037 2008-04-29  Eric Blake  <ebb9@byu.net>
51038
51039         Silence valgrind on safe reads beyond potential array bounds.
51040         * lib/rawmemchr.valgrind: New file.
51041         * lib/strchrnul.valgrind: Likewise.
51042         * modules/rawmemchr (Files): Distribute new file.
51043         * modules/strchrnul (Files): Likewise.
51044         Suggested by Bruno Haible.
51045
51046 2008-04-29  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51049         (inet_ntop, inet_pton): Change portability warning's wording.
51050         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51051         Invoke gl_CHECK_NEXT_HEADERS.
51052         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51053         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51054         set ARPA_INET_H.
51055         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51056         * modules/arpa_inet (Description): No longer only for systems that
51057         lack it.
51058         (Depends-on): Add include_next.
51059         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51060         HAVE_ARPA_INET_H.
51061
51062 2008-04-29  Jim Meyering  <meyering@redhat.com>
51063
51064         * modules/mkdir (License): Re-license as LGPLv2+.
51065
51066 2008-04-29  Bruno Haible  <bruno@clisp.org>
51067
51068         * modules/rawmemchr (Maintainer): Set to Eric.
51069         * modules/strchrnul (Maintainer): Likewise.
51070
51071 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51072
51073         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51074         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51075
51076         * modules/arpa_inet (arpa/inet.h): Use them.
51077
51078 2008-04-28  Eric Blake  <ebb9@byu.net>
51079
51080         Test getndelim2.
51081         * modules/getndelim2-tests: New file.
51082         * tests/test-getndelim2.c: Likewise.
51083         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51084         stream.
51085         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51086
51087         * MODULES.html.sh: Document new module.
51088
51089 2008-04-20  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/c-stack.c (die): Use raise.
51092         * modules/c-stack (Depends-on): Add raise.
51093
51094 2008-04-28  Bruno Haible  <bruno@clisp.org>
51095
51096         Expect rpmatch to be declared.
51097         * lib/yesno.c (rpmatch): Remove declaration.
51098
51099         Declare rpmatch.
51100         * lib/stdlib.in.h (rpmatch): New declaration.
51101         * lib/rpmatch.c: Include <stdlib.h> first.
51102         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51103         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51105         HAVE_RPMATCH.
51106         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51108         (Include): Set to <stdlib.h>.
51109         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51110         HAVE_RPMATCH.
51111         * NEWS: Document the change.
51112
51113 2008-04-28  Bruno Haible  <bruno@clisp.org>
51114
51115         Change rpmatch to use nl_langinfo when appropriate.
51116         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51117         (N_): New macro.
51118         (localized_pattern): New function/macro.
51119         (try): Remove match, nomatch arguments. Copy the pattern into safe
51120         memory before caching it.
51121         (rpmatch): Use localized_pattern. Add translator comments.
51122         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51123         Suggested by Eric Blake.
51124         * modules/rpmatch (Depends-on): Add stdbool.
51125
51126 2008-04-28  Eric Blake  <ebb9@byu.net>
51127
51128         Add rawmemchr module, matching glibc.
51129         * modules/string (Makefile.am): New indicator.
51130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51131         * lib/string.in.h (rawmemchr): Declare when appropriate.
51132         * modules/rawmemchr: New file.
51133         * m4/rawmemchr.m4: Likewise.
51134         * lib/rawmemchr.c: Likewise.
51135         * modules/rawmemchr-tests: Likewise.
51136         * tests/test-rawmemchr.c: Likewise.
51137         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51138         module.
51139         * modules/strchrnul (Depends-on): Add rawmemchr.
51140         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51141
51142         Whitespace cleanup.
51143         * tests/test-strchrnul.c: Reindent.
51144         * lib/strchrnul.c: Likewise.
51145
51146         Optimize and test strchrnul.
51147         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51148         * modules/strchrnul-tests: New file.
51149         * tests/test-strchrnul.c: Likewise.
51150
51151         Remove intprops dependency.
51152         * modules/memchr (Depends-on): Remove intprops.
51153         * modules/memrchr (Depends-on): Likewise.
51154         * modules/memchr2 (Depends-on): Likewise.
51155         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51156         * lib/memrchr.c (__memrchr): Likewise.
51157         * lib/memrchr2.c (memchr2): Likewise.
51158         Reported by Simon Josefsson.
51159
51160 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51161
51162         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51163         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51164
51165 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51166
51167         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51168
51169         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51170
51171         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51172
51173         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51174         declarations.
51175         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51176
51177         * m4/inet_pton.m4: Don't check for header files.
51178
51179         * m4/inet_ntop.m4: Don't check for header files.
51180
51181 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51182
51183         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51184         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51185         trigger for cygwin).
51186         Reported by Bruno Haible  <bruno@clisp.org>.
51187
51188 2008-04-28  Bruno Haible  <bruno@clisp.org>
51189
51190         * doc/posix-functions/strdup.texi: Mention mingw problem.
51191
51192 2008-04-27  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/stat-time-tests (Depends-on): Add sleep.
51195         * tests/test-stat-time.c (force_unlink): New function.
51196         (cleanup): Use it.
51197         (test_mtime): Remove the ctime related tests.
51198         (test_ctime): New function, containing the ctime related tests.
51199         (main): Call test_ctime, except on native Windows platforms.
51200
51201 2008-04-27  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/rpmatch.c (rpmatch): Add some comments.
51204         Reported by James Youngman <jay@gnu.org>.
51205
51206 2008-04-27  Bruno Haible  <bruno@clisp.org>
51207
51208         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51209         quiet NaNs.
51210
51211 2008-04-27  Bruno Haible  <bruno@clisp.org>
51212
51213         Make test-yesno.sh work on mingw.
51214         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51215         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51216         (main): Set stdin to binary mode.
51217         * modules/yesno-tests (Depends-on): Add binary-io.
51218
51219 2008-04-27  Bruno Haible  <bruno@clisp.org>
51220
51221         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51222         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51223         argument that lie outside the IEEE 854 domain.
51224         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51225         (gl_ISFINITE): Use it.
51226         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51227
51228 2008-04-27  Bruno Haible  <bruno@clisp.org>
51229
51230         Allow local renaming in config.h.
51231         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51232
51233 2008-04-27  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/memchr.c (__memchr): Change type of 'i'.
51236         * lib/memchr2.c (memchr2): Likewise.
51237
51238 2008-04-26  Eric Blake  <ebb9@byu.net>
51239         and Bruno Haible  <bruno@clisp.org>
51240
51241         Optimize and test memrchr.
51242         * modules/memrchr (Depends-on): Add intprops.
51243         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51244         * modules/memrchr-tests: New file.
51245         * tests/test-memrchr.c: New file.
51246
51247 2008-04-26  Bruno Haible  <bruno@clisp.org>
51248
51249         Add tentative support for DragonFly BSD.
51250         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51251         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51252         fp.
51253         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51254         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51255         * lib/fpurge.c (fpurge): Likewise.
51256         * lib/freadable.c (freaadable): Likewise.
51257         * lib/freadahead.c (freadahead): Likewise.
51258         * lib/freading.c (freading): Likewise.
51259         * lib/freadptr.c (freadptr): Likewise.
51260         * lib/freadseek.c (freadptrinc): Likewise.
51261         * lib/fseeko.c (fseeko): Likewise.
51262         * lib/fseterr.c (fseterr): Likewise.
51263         * lib/fwritable.c (fwritable): Likewise.
51264         * lib/fwriting.c (fwriting): Likewise.
51265
51266 2008-04-26  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/stdio-impl.h: New file.
51269         * lib/fbufmode.c: Include stdio-impl.h.
51270         (fbufmode): Use fp_, remove redundant #defines.
51271         * lib/fflush.c: Include stdio-impl.h.
51272         (clear_ungetc_buffer): Remove redundant #defines.
51273         * lib/fpurge.c: Include stdio-impl.h.
51274         (fpurge): Remove redundant #defines.
51275         * lib/freadable.c: Include stdio-impl.h.
51276         (freadable): Remove redundant #defines.
51277         * lib/freadahead.c: Include stdio-impl.h.
51278         (freadahead): Remove redundant #defines.
51279         * lib/freading.c: Include stdio-impl.h.
51280         (freading): Remove redundant #defines.
51281         * lib/freadptr.c: Include stdio-impl.h.
51282         (freadptr): Remove redundant #defines.
51283         * lib/freadseek.c: Include stdio-impl.h.
51284         (freadptrinc): Remove redundant #defines.
51285         * lib/fseeko.c: Include stdio-impl.h.
51286         (rpl_fseeko): Remove redundant #defines.
51287         * lib/fseterr.c: Include stdio-impl.h.
51288         (fseterr): Remove redundant #defines.
51289         * lib/fwritable.c: Include stdio-impl.h.
51290         (fwritable: Remove redundant #defines.
51291         * lib/fwriting.c: Include stdio-impl.h.
51292         (fwriting): Remove redundant #defines.
51293         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51294         * modules/fflush (Files): Likewise.
51295         * modules/fpurge (Files): Likewise.
51296         * modules/freadable (Files): Likewise.
51297         * modules/freadahead (Files): Likewise.
51298         * modules/freading (Files): Likewise.
51299         * modules/freadptr (Files): Likewise.
51300         * modules/freadseek (Files): Likewise.
51301         * modules/fseeko (Files): Likewise.
51302         * modules/fseterr (Files): Likewise.
51303         * modules/fwritable (Files): Likewise.
51304         * modules/fwriting (Files): Likewise.
51305
51306 2008-04-26  Bruno Haible  <bruno@clisp.org>
51307
51308         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51309         restore_seek_optimization, update_fpos_cache): New functions, extracted
51310         from rpl_fflush.
51311         (rpl_fflush): Use them.
51312         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51313         (gl_REPLACE_FFLUSH): Use it.
51314
51315 2008-04-26  Bruno Haible  <bruno@clisp.org>
51316
51317         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51318         on Solaris.
51319         * tests/test-xstrtoimax.sh: Likewise.
51320         * tests/test-xstrtoumax.sh: Likewise.
51321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51322
51323 2008-04-26  Bruno Haible  <bruno@clisp.org>
51324
51325         * modules/memchr-tests: New file.
51326         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51327
51328 2008-04-26  Eric Blake  <ebb9@byu.net>
51329             Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/memchr.c: Include intprops.h.
51332         (__memchr): Optimize parallel detection of matching bytes. Rename local
51333         variables. Add explanatory comments.
51334
51335 2008-04-26  Bruno Haible  <bruno@clisp.org>
51336
51337         Fix module 'memchr', broken since 2000-10-28.
51338         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51339
51340 2008-04-26  Bruno Haible  <bruno@clisp.org>
51341
51342         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51343         comments.
51344
51345 2008-04-25  Eric Blake  <ebb9@byu.net>
51346
51347         Use native fstatat on cygwin 1.7.0.
51348         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51349         first.
51350
51351 2008-04-23  Eric Blake  <ebb9@byu.net>
51352
51353         Improve memchr2 performance.
51354         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51355         NUL bytes.
51356         * modules/memchr2 (Depends-on): Use intprops.h.
51357
51358 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51359
51360         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51361         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51362         <blp@cs.stanford.edu>.
51363
51364 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51365
51366         * lib/arpa_inet.in.h: New file.
51367
51368         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51369         (Makefile.am): Sed in substitute header file.
51370
51371         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51372         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51373
51374         * modules/inet_ntop (configure.ac): Use
51375         gl_ARPA_INET_MODULE_INDICATOR.
51376
51377         * modules/inet_pton (configure.ac): Use
51378         gl_ARPA_INET_MODULE_INDICATOR.
51379
51380 2008-04-22  Jim Meyering  <meyering@redhat.com>
51381
51382         * modules/verify (License): Re-license as LGPLv2+.
51383
51384 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51385
51386         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51387         parameter to void* as per POSIX standard (MinGW uses char*).
51388
51389 2008-04-21  Bruno Haible  <bruno@clisp.org>
51390
51391         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51392         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51393         Define to replacements if REPLACE_ISWCNTRL is 1.
51394         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51395         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51396         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51397         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51398         what it fixes.
51399         * doc/posix-functions/iswalpha.texi: Likewise.
51400         * doc/posix-functions/iswblank.texi: Likewise.
51401         * doc/posix-functions/iswcntrl.texi: Likewise.
51402         * doc/posix-functions/iswdigit.texi: Likewise.
51403         * doc/posix-functions/iswgraph.texi: Likewise.
51404         * doc/posix-functions/iswlower.texi: Likewise.
51405         * doc/posix-functions/iswprint.texi: Likewise.
51406         * doc/posix-functions/iswpunct.texi: Likewise.
51407         * doc/posix-functions/iswspace.texi: Likewise.
51408         * doc/posix-functions/iswupper.texi: Likewise.
51409         * doc/posix-functions/iswxdigit.texi: Likewise.
51410         Reported by Alain Guibert.
51411
51412 2008-04-21  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51415         Patch by Alain Guibert.
51416
51417 2008-04-21  Bruno Haible  <bruno@clisp.org>
51418
51419         Fix test failures on mingw.
51420         * tests/test-xstrtol.c (print_no_progname): New function.
51421         (main): Install it in error_print_progname hook.
51422         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51423         * tests/test-xstrtoimax.sh: Likewise.
51424         * tests/test-xstrtoumax.sh: Likewise.
51425
51426 2008-04-21  Bruno Haible  <bruno@clisp.org>
51427
51428         Fix test failure on mingw.
51429         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51430
51431 2008-04-21  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51434         Actually assign a value.
51435
51436 2008-04-20  Bruno Haible  <bruno@clisp.org>
51437
51438         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51439         take 2.
51440         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51441         'canonicalize-lgpl' module is also used.
51442         * lib/canonicalize-lgpl.c: Undo last change.
51443         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51444
51445 2008-04-20  Bruno Haible  <bruno@clisp.org>
51446
51447         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51448         config.h. Provide _mkdir based fallback for mingw.
51449         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51450         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51451         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51452         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51453         rather than defining mkdir in config.h.
51454         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51455         (gl_SYS_STAT_H_DEFAULTS): New macro.
51456         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51457         HAVE_IO_H any more.
51458         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51459         HAVE_DECL_MKDIR and HAVE_IO_H.
51460
51461 2008-04-20  Bruno Haible  <bruno@clisp.org>
51462
51463         * lib/isapipe.c: Port to native Windows platforms.
51464
51465 2008-04-20  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51468
51469 2008-04-21  Eric Blake  <ebb9@byu.net>
51470
51471         Work around preprocessors that don't handle UINTMAX_MAX.
51472         * lib/memchr2.c (memchr2): Avoid embedded #if.
51473         Reported by Alain Guibert, fix suggested by Bruno Haible.
51474
51475 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51476
51477         * doc/posix-functions/strftime.texi (strftime): Explain better
51478         Windows incompatibility.  Suggested by Micah Cowan
51479         <micah@cowan.name>.
51480
51481 2008-04-20  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51484         unistr/u8-mblen.
51485
51486 2008-04-20  Bruno Haible  <bruno@clisp.org>
51487
51488         Fix test failure on platforms with non-GNU iconv.
51489         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51490         (U_TO_U8): Use it, rather than u16_to_u8.
51491         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51492         units at the end of the input string.
51493         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51494
51495 2008-04-20  Bruno Haible  <bruno@clisp.org>
51496
51497         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51498         when the resulting length is 0.
51499         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51500
51501 2008-04-20  Bruno Haible  <bruno@clisp.org>
51502
51503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51504         works.
51505         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51506
51507 2008-04-20  Bruno Haible  <bruno@clisp.org>
51508
51509         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51510         * modules/tsearch-tests (configure.ac): Test for initstate function.
51511
51512 2008-04-20  Bruno Haible  <bruno@clisp.org>
51513
51514         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51515         for nlink_t if missing.
51516         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51517
51518 2008-04-19  Bruno Haible  <bruno@clisp.org>
51519
51520         Work around snprintf bug on Linux libc5.
51521         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51522         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51523         gl_SNPRINTF_SIZE1.
51524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51525         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51526         that test failed.
51527         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51528         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51529         * modules/snprintf (Files): Add m4/printf.m4.
51530         * modules/vsnprintf (Files): Likewise.
51531         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51532         * doc/posix-functions/vsnprintf.texi: Likewise.
51533
51534 2008-04-19  Bruno Haible  <bruno@clisp.org>
51535
51536         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51537         from 0.0058 to less than 10^-7.
51538
51539 2008-04-19  Bruno Haible  <bruno@clisp.org>
51540
51541         Fix rounding when a precision is given.
51542         * lib/vasnprintf.c (is_borderline): New function.
51543         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51544         9...9x.
51545         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51546         %e, %g.
51547         * tests/test-vasprintf-posix.c (test_function): Likewise.
51548         * tests/test-snprintf-posix.h (test_function): Likewise.
51549         * tests/test-sprintf-posix.h (test_function): Likewise.
51550         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51551         * tests/test-printf-posix.h (test_function): Likewise.
51552         * tests/test-printf-posix.output: Update.
51553         Reported by John Darrington <john@darrington.wattle.id.au> via
51554         Ben Pfaff <blp@cs.stanford.edu>.
51555
51556 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51557
51558         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51559         Suggested by Bruno Haible <bruno@clisp.org>.
51560
51561 2008-04-17  Bruno Haible  <bruno@clisp.org>
51562
51563         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51564         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51565         implementation.
51566         Patch by Bruce Merry <bmerry@gmail.com>.
51567
51568 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51569
51570         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51571         doesn't work under Windows.
51572
51573 2008-04-16  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51576         New macros.
51577         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51578         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51579         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51580         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51581         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51582         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51583         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51584         macros.
51585         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51586         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51587         Northern Sotho, Uighur.
51588
51589 2008-04-16  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51592         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51593         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51594         Reported by Daniel Bergström <daniel@octocode.com>.
51595
51596 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51597             Bruno Haible  <bruno@clisp.org>
51598
51599         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51600         function.
51601         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51602         New functions, mostly extracted from gl_locale_name_default.
51603         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51604
51605 2008-04-16  Eric Blake  <ebb9@byu.net>
51606
51607         Adjust strtod detection to catch glibc 2.7 bug.
51608         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51609         Reported by John Gatewood Ham.
51610
51611 2008-04-16  Bruno Haible  <bruno@clisp.org>
51612
51613         Add tentative support for Linux libc5.
51614         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51615         * lib/fpurge.c (fpurge): Likewise.
51616         * lib/freadable.c (freadable): Likewise.
51617         * lib/freadahead.c (freadahead): Likewise.
51618         * lib/freading.c (freading): Likewise.
51619         * lib/freadptr.c (freadptr): Likewise.
51620         * lib/freadseek.c (freadptrinc): Likewise.
51621         * lib/fseeko.c (rpl_fseeko): Likewise.
51622         * lib/fseterr.c (fseterr): Likewise.
51623         * lib/fwritable.c (fwritable): Likewise.
51624         * lib/fwriting.c (fwriting): Likewise.
51625         Reported by Alain Guibert <alguibert+bts@free.fr>.
51626
51627 2008-04-15  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/mathl (configure.ac): Define module indicator.
51630
51631 2008-04-15  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/logl.c (logl): Remove unused variables.
51634
51635 2008-04-15  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51638         fails.
51639
51640 2008-04-15  Bruno Haible  <bruno@clisp.org>
51641
51642         * lib/trim.c (trim2): Fix argument of isspace() macro.
51643
51644 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51645
51646         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51647         to 0.
51648         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51649
51650 2008-04-14  Bruno Haible  <bruno@clisp.org>
51651
51652         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51653         AC_LANG_PROGRAM argument.
51654         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51655         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51657         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51658         * m4/math_h.m4 (gl_MATH_H): Likewise.
51659         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51660         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51661         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51662         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51663         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51664         * m4/regex.m4 (gl_REGEX): Likewise.
51665         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51666         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51668         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51669         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51670         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51673
51674 2008-04-14  Jim Meyering  <meyering@redhat.com>
51675
51676         test-strtod: fix typos: s/abs/fabs/
51677         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51678
51679 2008-04-13  Bruno Haible  <bruno@clisp.org>
51680
51681         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51682         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51683         module is also used and while not building the reloc-wrapper.
51684
51685 2008-04-13  Bruno Haible  <bruno@clisp.org>
51686
51687         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51688
51689 2008-04-13  Bruno Haible  <bruno@clisp.org>
51690
51691         Fix AIX compilation failure introduced on 2008-04-02.
51692         * tests/test-frexp.c (exp): Undefine before redefining.
51693         * tests/test-frexpl.c (exp): Likewise.
51694
51695 2008-04-13  Bruno Haible  <bruno@clisp.org>
51696
51697         Work around a HP-UX stdio bug.
51698         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51699         * tests/test-ftello.c (main): Likewise.
51700         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51701         * doc/posix-functions/ftello.texi: Likewise.
51702
51703 2008-04-13  Bruno Haible  <bruno@clisp.org>
51704
51705         Make test-signbit pass on HP-UX/hppa.
51706         * tests/test-signbit.c (minus_zerol): New variable.
51707         (test_signbitl): Use it.
51708
51709 2008-04-13  Bruno Haible  <bruno@clisp.org>
51710
51711         Make truncl work on OSF/1 4.0.
51712         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51713         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51714         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51716         HAVE_DECL_TRUNCL.
51717         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51718         HAVE_DECL_TRUNCL.
51719         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51720
51721 2008-04-13  Bruno Haible  <bruno@clisp.org>
51722
51723         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51724
51725 2008-04-13  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51728         expression, so as to avoid HP-UX 11 cc compiler bug.
51729
51730 2008-04-13  Bruno Haible  <bruno@clisp.org>
51731
51732         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51733
51734 2008-04-13  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/git-merge-changelog.c: Remove empty declaration outside of
51737         functions.
51738
51739 2008-04-13  Bruno Haible  <bruno@clisp.org>
51740
51741         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51742
51743 2008-04-13  Bruno Haible  <bruno@clisp.org>
51744
51745         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51746         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51748         also if it exists but lacks definitions of the SHUT_* macros.
51749         * modules/sys_socket (Description): Update.
51750         Reported by Elbert Pol <e.pol@chello.nl>.
51751
51752 2008-04-13  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/localcharset.c (OS2): Don't redefine if already defined.
51755         Reported by Elbert Pol <e.pol@chello.nl>.
51756
51757 2008-04-13  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/binary-io.h [__EMX__]: Include <io.h>.
51760         Reported by Elbert Pol <e.pol@chello.nl>.
51761
51762 2008-04-12  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/fpucw.h: Enable the definitions also for x86_64.
51765         Needed for NetBSD/x86_64.
51766         Reported by Thomas Klausner <tk@giga.or.at>.
51767
51768 2008-04-12  Bruno Haible  <bruno@clisp.org>
51769
51770         * tests/test-strtod.c: Include isnand.h.
51771         (main): Use isnand instead of isnan.
51772         Reported by Jim Meyering.
51773
51774 2008-04-12  Bruno Haible  <bruno@clisp.org>
51775
51776         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51777         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51778
51779 2008-04-12  Jim Meyering  <meyering@redhat.com>
51780
51781         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51782
51783 2008-04-12  Bruno Haible  <bruno@clisp.org>
51784
51785         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51786         Reported by Elbert Pol <e.pol@chello.nl>.
51787
51788 2008-04-12  Eric Blake  <ebb9@byu.net>
51789
51790         Work around Solaris 10 math.h bug.
51791         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51792         (gl_MATH_H_DEFAULTS): Set up default.
51793         * modules/math (Makefile.am): Replace new indicators.
51794         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51795         * tests/test-math.c (main): Test this.
51796         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51797         * doc/posix-headers/math.texi (math.h): Mention bug.
51798         Reported by Nelson H. F. Beebe and Jim Meyering.
51799
51800 2008-04-11  Bruno Haible  <bruno@clisp.org>
51801
51802         Adapt to future versions of Apple GCC.
51803         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51804         Reported by Peter O'Gorman <peter@pogma.com>.
51805
51806 2008-04-11  Bruno Haible  <bruno@clisp.org>
51807
51808         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51809
51810 2008-04-11  Bruno Haible  <bruno@clisp.org>
51811
51812         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51813
51814         * modules/getaddrinfo-tests (Makefile.am): Define
51815         test_getaddrinfo_LDADD.
51816
51817 2008-04-11  Bruno Haible  <bruno@clisp.org>
51818
51819         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51820         (init): Fix syntax error.
51821         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51822         is declared.
51823
51824 2008-04-11  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51827         * modules/glob (Depends-on): Add stdbool.
51828
51829 2008-04-11  Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/trim.c: Include <string.h>.
51832
51833 2008-04-11  Eric Blake  <ebb9@byu.net>
51834
51835         Avoid compile failure on OS/2.
51836         * lib/regex_internal.h (internal_function): Disable optimization
51837         on OS/2 (__EMX__), where it caused compiler error.
51838         Reported by Elbert Pol.
51839
51840 2008-04-11  Bruno Haible  <bruno@clisp.org>
51841
51842         Flush the standard error stream before aborting. Needed on mingw.
51843         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51844         * tests/test-array_list.c (ASSERT): Likewise.
51845         * tests/test-array_oset.c (ASSERT): Likewise.
51846         * tests/test-avltree_list.c (ASSERT): Likewise.
51847         * tests/test-avltree_oset.c (ASSERT): Likewise.
51848         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51849         * tests/test-binary-io.c (ASSERT): Likewise.
51850         * tests/test-byteswap.c (ASSERT): Likewise.
51851         * tests/test-c-ctype.c (ASSERT): Likewise.
51852         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51853         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51854         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51855         * tests/test-c-strstr.c (ASSERT): Likewise.
51856         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51857         * tests/test-canonicalize.c (ASSERT): Likewise.
51858         * tests/test-carray_list.c (ASSERT): Likewise.
51859         * tests/test-ceilf1.c (ASSERT): Likewise.
51860         * tests/test-ceilf2.c (ASSERT): Likewise.
51861         * tests/test-ceill.c (ASSERT): Likewise.
51862         * tests/test-count-one-bits.c (ASSERT): Likewise.
51863         * tests/test-fbufmode.c (ASSERT): Likewise.
51864         * tests/test-fflush2.c (ASSERT): Likewise.
51865         * tests/test-floorf1.c (ASSERT): Likewise.
51866         * tests/test-floorf2.c (ASSERT): Likewise.
51867         * tests/test-floorl.c (ASSERT): Likewise.
51868         * tests/test-fopen.c (ASSERT): Likewise.
51869         * tests/test-fpending.c (ASSERT): Likewise.
51870         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51871         * tests/test-fpurge.c (ASSERT): Likewise.
51872         * tests/test-freadable.c (ASSERT): Likewise.
51873         * tests/test-freadahead.c (ASSERT): Likewise.
51874         * tests/test-freading.c (ASSERT): Likewise.
51875         * tests/test-freadptr.c (ASSERT): Likewise.
51876         * tests/test-freadptr2.c (ASSERT): Likewise.
51877         * tests/test-freadseek.c (ASSERT): Likewise.
51878         * tests/test-freopen.c (ASSERT): Likewise.
51879         * tests/test-frexp.c (ASSERT): Likewise.
51880         * tests/test-frexpl.c (ASSERT): Likewise.
51881         * tests/test-fseek.c (ASSERT): Likewise.
51882         * tests/test-fseeko.c (ASSERT): Likewise.
51883         * tests/test-fstrcmp.c (ASSERT): Likewise.
51884         * tests/test-ftell.c (ASSERT): Likewise.
51885         * tests/test-ftello.c (ASSERT): Likewise.
51886         * tests/test-func.c (ASSERT): Likewise.
51887         * tests/test-fwritable.c (ASSERT): Likewise.
51888         * tests/test-fwriting.c (ASSERT): Likewise.
51889         * tests/test-getdelim.c (ASSERT): Likewise.
51890         * tests/test-getline.c (ASSERT): Likewise.
51891         * tests/test-i-ring.c (ASSERT): Likewise.
51892         * tests/test-iconv-utf.c (ASSERT): Likewise.
51893         * tests/test-iconv.c (ASSERT): Likewise.
51894         * tests/test-isfinite.c (ASSERT): Likewise.
51895         * tests/test-isnand.c (ASSERT): Likewise.
51896         * tests/test-isnanf.c (ASSERT): Likewise.
51897         * tests/test-isnanl.h (ASSERT): Likewise.
51898         * tests/test-ldexpl.c (ASSERT): Likewise.
51899         * tests/test-linked_list.c (ASSERT): Likewise.
51900         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51901         * tests/test-localename.c (ASSERT): Likewise.
51902         * tests/test-lseek.c (ASSERT): Likewise.
51903         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51904         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51905         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51906         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51907         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51908         * tests/test-mbschr.c (ASSERT): Likewise.
51909         * tests/test-mbscspn.c (ASSERT): Likewise.
51910         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51911         * tests/test-mbspbrk.c (ASSERT): Likewise.
51912         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51913         * tests/test-mbsrchr.c (ASSERT): Likewise.
51914         * tests/test-mbsspn.c (ASSERT): Likewise.
51915         * tests/test-mbsstr1.c (ASSERT): Likewise.
51916         * tests/test-mbsstr2.c (ASSERT): Likewise.
51917         * tests/test-mbsstr3.c (ASSERT): Likewise.
51918         * tests/test-memchr2.c (ASSERT): Likewise.
51919         * tests/test-memmem.c (ASSERT): Likewise.
51920         * tests/test-open.c (ASSERT): Likewise.
51921         * tests/test-printf-frexp.c (ASSERT): Likewise.
51922         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51923         * tests/test-printf-posix.c (ASSERT): Likewise.
51924         * tests/test-quotearg.c (ASSERT): Likewise.
51925         * tests/test-rbtree_list.c (ASSERT): Likewise.
51926         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51927         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51928         * tests/test-round1.c (ASSERT): Likewise.
51929         * tests/test-roundf1.c (ASSERT): Likewise.
51930         * tests/test-roundl.c (ASSERT): Likewise.
51931         * tests/test-signbit.c (ASSERT): Likewise.
51932         * tests/test-sleep.c (ASSERT): Likewise.
51933         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51934         * tests/test-snprintf.c (ASSERT): Likewise.
51935         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51936         * tests/test-stat-time.c (ASSERT): Likewise.
51937         * tests/test-strcasestr.c (ASSERT): Likewise.
51938         * tests/test-strerror.c (ASSERT): Likewise.
51939         * tests/test-striconv.c (ASSERT): Likewise.
51940         * tests/test-striconveh.c (ASSERT): Likewise.
51941         * tests/test-striconveha.c (ASSERT): Likewise.
51942         * tests/test-strsignal.c (ASSERT): Likewise.
51943         * tests/test-strstr.c (ASSERT): Likewise.
51944         * tests/test-strtod.c (ASSERT): Likewise.
51945         * tests/test-trunc1.c (ASSERT): Likewise.
51946         * tests/test-trunc2.c (ASSERT): Likewise.
51947         * tests/test-truncf1.c (ASSERT): Likewise.
51948         * tests/test-truncf2.c (ASSERT): Likewise.
51949         * tests/test-truncl.c (ASSERT): Likewise.
51950         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51951         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51952         * tests/test-vasnprintf.c (ASSERT): Likewise.
51953         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51954         * tests/test-vasprintf.c (ASSERT): Likewise.
51955         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51956         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51957         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51958         * tests/test-vsnprintf.c (ASSERT): Likewise.
51959         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51960         * tests/test-wcwidth.c (ASSERT): Likewise.
51961         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51962         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51963         * tests/test-xvasprintf.c (ASSERT): Likewise.
51964         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51965         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51966         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51967         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51968         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51969         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51970         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51971         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51972         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51973         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51974         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51975         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51976         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51977         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51978         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51979         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51980         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51981         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51982         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51983         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51984         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51985         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51986         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51987         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51988         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51989         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51990         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51991         * tests/unictype/test-combining.c (ASSERT): Likewise.
51992         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51993         * tests/unictype/test-digit.c (ASSERT): Likewise.
51994         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51995         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51996         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51997         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51998         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51999         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52000         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52001         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52002         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52003         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52004         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52005         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52006         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52007         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52008         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52009         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52010         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52011         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52012         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52013         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52014         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52015         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52016         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52017         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52018         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52019         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52020         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52021         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52022         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52023         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52024         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52025         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52026         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52027         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52028         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52029         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52030         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52031         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52032         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52033         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52034         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52035         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52036         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52037         Reported by Eric Blake.
52038
52039 2008-04-11  Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/wchar.in.h: Tweak comment.
52042
52043 2008-04-11  Bruno Haible  <bruno@clisp.org>
52044
52045         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52046         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52047         gl_COMMON.
52048         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52049
52050 2008-04-11  Bruno Haible  <bruno@clisp.org>
52051
52052         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52053
52054 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52055
52056         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52057         of attempting to use non-existing /dev/*random.  Based on patch
52058         from Adam Strzelecki <ono@java.pl> in
52059         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52060
52061 2008-04-08  Bruno Haible  <bruno@clisp.org>
52062
52063         Add tentative support for emx+gcc.
52064         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52065         * lib/fpurge.c (fpurge): Likewise.
52066         * lib/freadable.c (freadable): Likewise.
52067         * lib/freadahead.c (freadahead): Likewise.
52068         * lib/freading.c (freading): Likewise.
52069         * lib/freadptr.c (freadptr): Likewise.
52070         * lib/freadseek.c (freadptrinc): Likewise.
52071         * lib/fseeko.c (rpl_fseeko): Likewise.
52072         * lib/fseterr.c (fseterr): Likewise.
52073         * lib/fwritable.c (fwritable): Likewise.
52074         * lib/fwriting.c (fwriting): Likewise.
52075         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52076
52077 2008-04-09  Eric Blake  <ebb9@byu.net>
52078
52079         Avoid some autoconf warnings.
52080         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52081         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52082         * m4/afs.m4 (gl_AFS): Likewise.
52083         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52084         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52086         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52087         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52088         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52089         (AC_CHECK_DECLS_ONCE): Likewise.
52090         Rename file...
52091         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52092         gnulib-tool requires autoconf 2.59 or better.
52093         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52094
52095 2008-04-08  Eric Blake  <ebb9@byu.net>
52096
52097         Use 'git describe --match' if present (added in git 1.5.5).
52098         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52099         if possible.
52100
52101 2008-04-08  Bruno Haible  <bruno@clisp.org>
52102
52103         Add tentative support for OpenServer.
52104         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52105         _ptr, _cnt.
52106         * lib/fpurge.c (fpurge): Likewise.
52107         * lib/freadable.c (freadable): Likewise.
52108         * lib/freadahead.c (freadahead): Likewise.
52109         * lib/freading.c (freading): Likewise.
52110         * lib/freadptr.c (freadptr): Likewise.
52111         * lib/freadseek.c (freadptrinc): Likewise.
52112         * lib/fseeko.c (rpl_fseeko): Likewise.
52113         * lib/fseterr.c (fseterr): Likewise.
52114         * lib/fwritable.c (fwritable): Likewise.
52115         * lib/fwriting.c (fwriting): Likewise.
52116         Reported by Roger Cornelius <rac@tenzing.org> and
52117         Brian K. White <brian@aljex.com>.
52118
52119 2008-04-06  Jim Meyering  <meyering@redhat.com>
52120
52121         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52122
52123 2008-04-06  Bruno Haible  <bruno@clisp.org>
52124
52125         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52126         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52127         * tests/test-printf-posix.sh: Likewise.
52128         * tests/test-vfprintf-posix.sh: Likewise.
52129         * tests/test-vprintf-posix.sh: Likewise.
52130         * tests/test-xprintf-posix.sh: Likewise.
52131
52132 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52133
52134         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52135         hide error from 'ls', needed on OS/2.
52136         Report by Elbert Pol <elbert.pol@gmail.com>.
52137
52138 2008-04-04  Eric Blake  <ebb9@byu.net>
52139
52140         Make test-fseeko.c failures meaningful.
52141         * tests/test-fseeko.c: Print line number on failure.
52142         * tests/test-fseek.c: Likewise.
52143         Reported by Nelson H. F. Beebe.
52144
52145         Improve strtod bug detection check.
52146         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52147         required for Solaris 10.
52148         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52149
52150 2008-04-04  Bruno Haible  <bruno@clisp.org>
52151
52152         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52153         by m4/setenv.m4.
52154
52155 2008-04-03  Eric Blake  <ebb9@byu.net>
52156
52157         Ensure sane .version contents.
52158         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52159         version string.
52160         * build-aux/git-version-gen: Improve documentation.
52161
52162         Make GNU make output nicer.
52163         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52164         MAKECMDGOALS to enforce message for all command line targets.  Set
52165         srcdir for use in maint.mk.
52166
52167         Another maintainer tweak.
52168         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52169         a target that regenerates version.
52170
52171 2008-04-03  Jim Meyering  <meyering@redhat.com>
52172
52173         vc-list-files: don't cause coreutils "make po-check" failure
52174         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52175
52176 2008-04-03  Eric Blake  <ebb9@byu.net>
52177
52178         Allow VPATH usage of vc-list-files.
52179         * build-aux/vc-list-files (scriptversion): Add timestamp.
52180         (options): Add --help, --version, -C.
52181         (CVS): Support installed cvsu.
52182
52183 2008-04-02  Bruno Haible  <bruno@clisp.org>
52184
52185         Avoid some "statement with no effect" warnings from gcc.
52186         * tests/test-wctype.c (main): Explicitly ignore unused values.
52187         Reported by Jim Meyering.
52188
52189 2008-04-02  Jim Meyering  <meyering@redhat.com>
52190
52191         Avoid some warnings from "gcc -Wshadow".
52192         * tests/test-frexp.c (exp): Define to a different identifier.
52193         * tests/test-frexpl.c (exp): Likewise.
52194
52195 2008-04-03  Jim Meyering  <meyering@redhat.com>
52196
52197         bootstrap: remove dangling *.[ch] symlinks from lib
52198         * build-aux/bootstrap [dangling symlink removal]: Move find's
52199         -depth option to precede all others, to avoid a warning.
52200         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52201
52202 2008-04-02  Bruno Haible  <bruno@clisp.org>
52203
52204         Avoid some warnings from "gcc -Wshadow".
52205         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52206         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52207         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52208         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52209         Reported by Jim Meyering.
52210
52211 2008-04-01  Bruno Haible  <bruno@clisp.org>
52212
52213         Fix test to work on IRIX 6.5 with cc.
52214         * tests/test-math.c (numeric_equal): New function.
52215         (main): Use it.
52216
52217 2008-04-01  Bruno Haible  <bruno@clisp.org>
52218
52219         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52220
52221 2008-04-01  Bruno Haible  <bruno@clisp.org>
52222
52223         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52224         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52225         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52226         (Depends-on): Remove math.
52227
52228         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52229         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52230         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52231         (Depends-on): Remove math.
52232
52233         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52234         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52235         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52236         (Depends-on): Remove math.
52237         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52238         (Depends-on): Remove math.
52239
52240         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52241         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52242         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52243         (Depends-on): Remove math.
52244         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52245         (Depends-on): Remove math.
52246
52247         * tests/test-round1.c: Include nan.h.
52248         (main): Use NaNd instead of NAN.
52249         * modules/round-tests (Files): Add tests/nan.h.
52250
52251         * tests/test-trunc1.c: Include nan.h.
52252         (main): Use NaNd instead of NAN.
52253         * modules/trunc-tests (Files): Add tests/nan.h.
52254
52255         * tests/test-roundf1.c: Include nan.h.
52256         (main): Use NaNf instead of NAN.
52257         * modules/roundf-tests (Files): Add tests/nan.h.
52258
52259         * tests/test-truncf1.c: Include nan.h.
52260         (main): Use NaNf instead of NAN.
52261         * modules/truncf-tests (Files): Add tests/nan.h.
52262
52263         * tests/test-ceilf1.c: Include nan.h.
52264         (main): Use NaNf instead of NAN.
52265         * modules/ceilf-tests (Files): Add tests/nan.h.
52266
52267         * tests/test-floorf1.c: Include nan.h.
52268         (main): Use NaNf instead of NAN.
52269         * modules/floorf-tests (Files): Add tests/nan.h.
52270
52271         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52272         (main): Use NaNf instead of NAN.
52273         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52274
52275         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52276         (main): Use NaNd instead of NAN.
52277         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52278
52279         * tests/test-frexp.c: Include nan.h.
52280         (main): Use NaNd instead of NAN.
52281         * modules/frexp-tests (Files): Add tests/nan.h.
52282
52283         * lib/isnan.c: Don't include <math.h>.
52284         (FUNC): Don't use NAN macro.
52285         * modules/isnand-nolibm (Depends-on): Remove math.
52286         * modules/isnanf-nolibm (Depends-on): Remove math.
52287         * modules/isnanl (Depends-on): Remove math.
52288         * modules/isnanl-nolibm (Depends-on): Remove math.
52289
52290         * tests/nan.h: New file.
52291
52292 2008-04-01  Eric Blake  <ebb9@byu.net>
52293
52294         Fix typos.
52295         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52296         values to be the right type.
52297
52298         For now, cater to gnulib strtod inaccuracies.
52299         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52300         fractional results.  While not as nice from a QoI perspective, it
52301         is a quicker patch than correctly implementing decimal to binary
52302         rounding.
52303
52304 2008-03-31  Eric Blake  <ebb9@byu.net>
52305
52306         Guarantee a definition of NAN.
52307         * lib/math.in.h (NAN): Define if missing.
52308         * tests/test-math.c (main): Test it.
52309         * doc/posix-headers/math.texi (math.h): Document this.
52310         * lib/isnan.c (rpl_isnand): Use it.
52311         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52312         * tests/test-floorf1.c (NaN): Likewise.
52313         * tests/test-frexp.c (NaN): Likewise.
52314         * tests/test-isnand.c (NaN): Likewise.
52315         * tests/test-isnanf.c (NaN): Likewise.
52316         * tests/test-round1.c (NaN): Likewise.
52317         * tests/test-roundf1.c (NaN): Likewise.
52318         * tests/test-snprintf-posix.h (NaN): Likewise.
52319         * tests/test-sprintf-posix.h (NaN): Likewise.
52320         * tests/test-trunc1.c (NaN): Likewise.
52321         * tests/test-truncf1.c (NaN): Likewise.
52322         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52323         * tests/test-vasprintf-posix.c (NaN): Likewise.
52324         * modules/isnand-nolibm (Depends-on): Add math.
52325         * modules/isnanf-nolibm (Depends-on): Likewise.
52326         * modules/isnanl (Depends-on): Likewise.
52327         * modules/isnanl-nolibm (Depends-on): Likewise.
52328         * modules/snprintf-posix-tests (Depends-on): Likewise.
52329         * modules/sprintf-posix-tests (Depends-on): Likewise.
52330         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52331         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52332         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52333         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52334
52335 2008-03-31  Bruno Haible  <bruno@clisp.org>
52336
52337         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52338         * doc/posix-functions/strtod.texi: Likewise.
52339
52340 2008-03-31  Bruno Haible  <bruno@clisp.org>
52341
52342         * tests/test-strtod.c (main): Don't use C99 syntax.
52343
52344 2008-03-31  Bruno Haible  <bruno@clisp.org>
52345
52346         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52347         Reported by Eric Blake.
52348
52349 2008-03-31  Jim Meyering  <meyering@redhat.com>
52350
52351         Don't compare actual signbit return values.
52352         * tests/test-strtod.c (main): Rather, compare only their
52353         zero/non-zero nature.
52354
52355 2008-03-31  Eric Blake  <ebb9@byu.net>
52356
52357         More strtod documentation.
52358         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52359         failures as distinct bugs.
52360
52361 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52364         Problem reported by Erik Benada in
52365         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52366
52367 2008-03-30  Bruno Haible  <bruno@clisp.org>
52368
52369         * tests/test-strtod.c: Add comments about which assertion fails on which
52370         platform.
52371         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52372
52373 2008-03-30  Eric Blake  <ebb9@byu.net>
52374
52375         Test signbit behavior on zeros.
52376         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52377         (test_signbitd, test_signbitl): Likewise.
52378
52379         More strtod touchups.
52380         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52381         sign of negative underflow, for now.  Use .5, not .1.
52382         * doc/posix-functions/strtod.texi (strtod): Mention these
52383         limitations.
52384         Reported by Jim Meyering.
52385
52386 2008-03-30  Bruno Haible  <bruno@clisp.org>
52387
52388         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52389         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52390
52391 2008-03-30  Bruno Haible  <bruno@clisp.org>
52392
52393         Avoid failure when attempting to return empty iconv results on some
52394         platforms.
52395         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52396         allocation, don't report ENOMEM when the resulting string is empty.
52397
52398 2008-03-30  Bruno Haible  <bruno@clisp.org>
52399
52400         Fix buffer overrun.
52401         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52402         Don't consider the width for tmp_length. Check count against tmp_length
52403         before doing the padding. Ensure enough allocation during padding.
52404
52405 2008-03-30  Eric Blake  <ebb9@byu.net>
52406
52407         strtod touchups.
52408         * lib/strtod.c (strtod): Avoid compiler warnings.
52409         Reported by Jim Meyering.
52410
52411 2008-03-30  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52414         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52415         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52416         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52417         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52418         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52419         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52420         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52421
52422         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52423         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52424         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52425         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52426         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52427         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52428         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52429         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52430
52431         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52432         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52433         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52434         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52435         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52436         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52437         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52438         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52439
52440         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52441         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52442
52443         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52444         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52445
52446         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52447         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52448
52449         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52451         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52452
52453         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52455         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52456
52457         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52459         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52460
52461         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52463         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52464
52465         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52466         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52468         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52469         (Depends-on): Add EOVERFLOW.
52470         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52471         (Depends-on): Add EOVERFLOW.
52472         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52473         (Depends-on): Add EOVERFLOW.
52474         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52475         (Depends-on): Add EOVERFLOW.
52476         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52477         (Depends-on): Add EOVERFLOW.
52478         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52479         (Depends-on): Add EOVERFLOW.
52480         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52481         (Depends-on): Add EOVERFLOW.
52482         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52483         (Depends-on): Add EOVERFLOW.
52484
52485         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52486         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52487         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52488
52489         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52491         * modules/snprintf (Depends-on): Add EOVERFLOW.
52492
52493         * lib/poll.c (EOVERFLOW): Remove fallback.
52494         * modules/poll (Depends-on): Add EOVERFLOW.
52495
52496         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52497         * modules/getugroups (Depends-on): Add EOVERFLOW.
52498
52499         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52500         * modules/getdelim (Depends-on): Add EOVERFLOW.
52501
52502         * lib/ftell.c (EOVERFLOW): Remove fallback.
52503         * modules/ftell (Depends-on): Add EOVERFLOW.
52504
52505         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52507         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52508
52509         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52510
52511         * modules/EOVERFLOW-tests: New file.
52512         * tests/test-EOVERFLOW.c: New file.
52513
52514         * modules/EOVERFLOW: New file.
52515         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52516
52517 2008-03-30  Bruno Haible  <bruno@clisp.org>
52518
52519         Fix bug introduced on 2007-06-10.
52520         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52521         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52522
52523 2008-03-30  Bruno Haible  <bruno@clisp.org>
52524
52525         Improve freadseek's efficiency after ungetc.
52526         * lib/freadseek.c: Include freadahead.h.
52527         (freadptrinc): New function, extracted from freadseek.
52528         (freadseek): Use it in a loop. Use freadahead to determine the number
52529         of loop iterations.
52530         * modules/freadseek (Depends-on): Add freadahead.
52531         (configure.ac): Require AC_C_INLINE.
52532
52533 2008-03-30  Bruno Haible  <bruno@clisp.org>
52534
52535         * lib/freadseek.c (freadseek): Don't ignore the return value of
52536         freadptr.
52537
52538 2008-03-29  Eric Blake  <ebb9@byu.net>
52539
52540         Add hex float support.
52541         * modules/strtod (Depends-on): Add c-ctype.
52542         (Link): Mention POW_LIB.
52543         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52544         whitespace between 'e' and exponent.
52545         * tests/test-strtod.c (main): Enable hex float tests.
52546         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52547         now provides.
52548
52549         Document various strtod bugs, with some fixes.
52550         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52551         "-0x", "inf", "nan", and hex constants.
52552         * doc/posix-functions/atof.texi (atof): Likewise.
52553         * modules/stdlib (Makefile.am): Support strtod.
52554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52555         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52556         detect additional strtod bugs.
52557         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52558         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52559         bool where appropriate.  Parse 'inf' and 'nan'.
52560         * tests/test-strtod.c: New file.
52561         * modules/strtod (Depends-on): Add stdbool, stdlib.
52562         (configure.ac): Turn on module indicator.
52563         * modules/strtod-tests: New module.
52564
52565 2008-03-29  Eric Blake  <ebb9@byu.net>
52566
52567         Fix ftell on mingw.
52568         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52569         * modules/ftell-tests (Depends-on): Add binary-io.
52570         * modules/ftello-tests (Depends-on): Likewise.
52571         * tests/test-ftell.c (main): Enhance test to cover behavior after
52572         ungetc.  Enforce binary mode.
52573         * tests/test-ftello.c (main): Likewise.
52574
52575         Pass test-freadseek on cygwin.
52576         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52577         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52578         ungetc buffer.
52579
52580         * tests/test-fflush2.c (main): Fix typo.
52581
52582 2008-03-29  Bruno Haible  <bruno@clisp.org>
52583
52584         * tests/test-fflush2.c (main): Temporarily disable the contents of
52585         this test.
52586         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52587         Reported by Eric Blake.
52588
52589 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52590
52591         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52592         (GC_SHA224_DIGEST_SIZE): Add.
52593
52594         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52595         (gc_hash_digest_length): Likewise.
52596         (gc_hash_buffer): Likewise.
52597
52598 2008-03-25  Bruno Haible  <bruno@clisp.org>
52599
52600         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52601         detail which gettext release to use.
52602         Reported by Simon Josefsson.
52603
52604 2008-03-26  Jim Meyering  <meyering@redhat.com>
52605
52606         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52607         * modules/gnumakefile (clean-GNUmakefile): Also, use
52608         test ... && ... || : syntax rather than if-then ... fi.
52609
52610         gnumakefile: Don't double-quote-expand $(VPATH) value.
52611         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52612
52613 2008-03-24  Eric Blake  <ebb9@byu.net>
52614
52615         Alter GNUmakefile to install into top directory.
52616         * modules/maintainer-makefile: Split, and add dependency...
52617         * modules/gnumakefile: to this new module.
52618         * build-aux/GNUmakefile: Move...
52619         * top/GNUmakefile: ...here.
52620         * build-aux/maint.mk: Move...
52621         * top/maint.mk: ...here.
52622         * MODULES.html.sh (Support for maintaining...): Document new
52623         module.
52624
52625 2008-03-23  Bruno Haible  <bruno@clisp.org>
52626
52627         * gnulib-tool: New options --vc-files, --no-vc-files.
52628         (func_usage): Document them.
52629         (vc_files): New variable.
52630         (func_import): Consider vc_files.
52631         (func_create_testdir): Set vc_files to empty.
52632         Suggested by Jim Meyering and Karl Berry.
52633
52634 2008-03-23  Bruno Haible  <bruno@clisp.org>
52635
52636         Fix regex compilation error on HP-UX 11.
52637         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52638         * modules/regex (Files): Add m4/mbstate_t.m4.
52639         Reported by Ton Voon <ton.voon@altinity.com>.
52640
52641 2008-03-23  Bruno Haible  <bruno@clisp.org>
52642
52643         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52644
52645 2008-03-23  Eric Blake  <ebb9@byu.net>
52646             Bruno Haible  <bruno@clisp.org>
52647
52648         Install files from top/ in the destination directory.
52649         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52650         augmentation also for the files from top/.
52651         (func_import, func_create_testdir): Rewrite file names:
52652         top/filename -> filename.
52653
52654 2008-03-23  Bruno Haible  <bruno@clisp.org>
52655
52656         Tweak "gnulib --version" output.
52657         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52658
52659 2008-03-23  Bruno Haible  <bruno@clisp.org>
52660
52661         Tweak "gnulib --version" output.
52662         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52663         rather than contents of ChangeLog, when possible.
52664
52665 2008-03-21  Eric Blake  <ebb9@byu.net>
52666
52667         More --version tweaks.
52668         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52669         date of last ChangeLog entry.
52670
52671 2008-03-21  Jim Meyering  <meyering@redhat.com>
52672
52673         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52674
52675 2008-03-20  Eric Blake  <ebb9@byu.net>
52676
52677         VPATH fix.
52678         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52679
52680 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52681
52682         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52683         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52684
52685 2008-03-20  Eric Blake  <ebb9@byu.net>
52686
52687         Sync GNUmakefile with coreutils.
52688         * build-aux/GNUmakefile (have-Makefile): Rename...
52689         (_have-Makefile): ...to this, for namespace consideration.
52690         (GNUmakefile.cfg): Include, if present.
52691         (_autoreconf): Define a default.
52692         (_is-dist-target): New rule for rebuilds to pick up intra-release
52693         version.
52694         (maint-cfg.mk): Rename...
52695         (cfg.mk): ...to this.
52696
52697 2008-03-18  Jim Meyering  <meyering@redhat.com>
52698
52699         New script and module: mktempd
52700         * MODULES.html.sh (maint+release support): Add mktempd.
52701         * build-aux/mktempd: New file.
52702         * modules/mktempd: New file.
52703
52704 2008-03-15  Jim Meyering  <meyering@redhat.com>
52705
52706         Undo last change.
52707         * lib/sha1.c, lib/md5.c: 63 != ~63.
52708         Reported by Andreas Schwab.
52709
52710         sha1.c, md5.c: Hoist a redundant expression.
52711         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52712         "ctx->buflen" only once, before calling *_process_block.
52713         * lib/md5.c (md5_process_bytes): Likewise.
52714
52715 2008-03-14  Eric Blake  <ebb9@byu.net>
52716
52717         Bump copyright year in files generated by gnulib-tool.
52718         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52719         gnulib-tool, rather than hard-coding it.
52720
52721         Fix 'gnulib-tool --version' output to work with git.
52722         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52723         (startup): ...here.
52724         (func_version): Use it to invoke git-version-gen, rather than
52725         relying on CVS keyword expansion.  Modernize wording.
52726         (cvsdatestamp, last_checkin_date, version): Kill unused
52727         variables.
52728
52729 2008-03-12  Jim Meyering  <meyering@redhat.com>
52730
52731         Recognize optional cast of the argument to free.
52732         * build-aux/useless-if-before-free: Update regexps.
52733
52734         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52735
52736 2008-03-11  Bruno Haible  <bruno@clisp.org>
52737
52738         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52739         by a single package.
52740         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52741         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52742         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52743         Reported by Sam Steingold <sds@gnu.org>.
52744
52745 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52746
52747         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52748         repositories.
52749
52750 2008-03-11  Bruno Haible  <bruno@clisp.org>
52751
52752         Avoid conflicts between local macro definitions.
52753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52754         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52755
52756 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52757             Bruno Haible  <bruno@clisp.org>
52758
52759         Make va_copy work with some version of xlc on AIX 5.1.
52760         * lib/stdarg.in.h: New file.
52761         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52762         On AIX, use a <stdarg.h> file substitute.
52763         * modules/stdarg (Files): Add lib/stdarg.in.h.
52764         (Depends-on): Add include_next.
52765         (Makefile.am): Build a stdarg.h substitute if requested.
52766         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52767
52768 2008-03-10  Bruno Haible  <bruno@clisp.org>
52769
52770         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52772         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52773
52774 2008-03-10  Bruno Haible  <bruno@clisp.org>
52775
52776         * modules/stdlib (Depends-on): Add include_next, remove
52777         absolute-header.
52778
52779 2008-03-09  Bruno Haible  <bruno@clisp.org>
52780
52781         * lib/freadahead.h (freadahead): Document more precisely.
52782         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52783         the sum of both buffer sizes.
52784         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52785         * NEWS: Document the change.
52786
52787 2008-03-09  Bruno Haible  <bruno@clisp.org>
52788
52789         Extend freadptr to return also the buffer size.
52790         * lib/freadptr.h (freadptr): Add sizep argument.
52791         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52792         (freadptr): Add sizep argument. Determine buffer size like freadahead
52793         does.
52794         * tests/test-freadptr.c: Don't include freadahead.h.
52795         (main): Adapt for new calling convention of freadptr.
52796         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52797         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52798         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52799         tests/test-freadptr2.sh.
52800         (Depends): Remove freadahead.
52801         (TESTS): Add test-freadptr2.sh.
52802         (check_PROGRAMS): Add test-freadptr2.
52803
52804 2008-03-09  Bruno Haible  <bruno@clisp.org>
52805
52806         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52807         Report and solution by Simon Josefsson.
52808
52809 2008-03-06  Bruno Haible  <bruno@clisp.org>
52810
52811         Make fflush after ungetc work on BSD platforms.
52812         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52813         * tests/test-fflush2.c: New file.
52814         * tests/test-fflush2.sh: New file.
52815         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52816         tests/test-fflush2.c.
52817         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52818         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52819
52820 2008-03-06  Eric Blake  <ebb9@byu.net>
52821
52822         Likewise for ftello.
52823         * modules/ftello (Dependencies): Add extensions.
52824         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52825
52826 2008-03-06  Bruno Haible  <bruno@clisp.org>
52827
52828         * modules/fseeko (Dependencies): Add extensions.
52829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52830         Needed on glibc systems.
52831
52832 2008-03-06  Bruno Haible  <bruno@clisp.org>
52833
52834         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52835         email address.
52836         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52837
52838 2008-03-06  Bruno Haible  <bruno@clisp.org>
52839
52840         * users.txt: Add libgnupdf.
52841
52842 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52843
52844         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52845         (Header File Substitutes, Function Substitutes,
52846         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52847         (Build robot for gnulib): Fix typo.
52848
52849 2008-03-06  Bruno Haible  <bruno@clisp.org>
52850
52851         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52852         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52853
52854 2008-03-06  Bruno Haible  <bruno@clisp.org>
52855
52856         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52857         * doc/gnulib.texi: Include it.
52858
52859 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52860
52861         * modules/func (License): Change license to unlimited; there was
52862         no LGPL parts in the module anyway.
52863
52864 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52865
52866         * modules/__func__: Renamed to modules/func.
52867         * modules/__func__-tests: Renamed to modules/func-tests.
52868         * tests/test-__func__.c: Renamed to tests/test-func.c.
52869         * m4/__func__.m4: Renamed to m4/func.m4.
52870         * doc/gnulib.texi (__func__): Section renamed to func.
52871         Suggested by Eric Blake <ebb9@byu.net>.
52872
52873 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52874
52875         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52876         about __func__.  Make example self-contained.  Suggested by Eric
52877         Blake <ebb9@byu.net>.
52878
52879         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52880         Suggested by Eric Blake <ebb9@byu.net>.
52881
52882 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52883
52884         * modules/__func__: New file.
52885         * modules/__func__-tests: New file.
52886         * tests/test-__func__.c: New file.
52887         * m4/__func__.m4: New file.
52888         * doc/gnulib.texi (__func__): Document __func__ module.
52889
52890 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52891
52892         * modules/byteswap (License): Re-license as LGPLv2+.
52893
52894 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52895
52896         * doc/Makefile: Add pdf target.
52897
52898 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52899
52900         * modules/inline (License): Use 'unlimited', since there are only
52901         *.m4 files in this module.
52902
52903 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52904             Bruno Haible  <bruno@clisp.org>
52905
52906         Add support for HP C 7.1 on OpenVMS 8.3.
52907         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52908
52909 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52910
52911         Update VMS specifics.
52912         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52913
52914 2008-03-02  Jim Meyering  <meyering@redhat.com>
52915
52916         Remove the last dependency on the "free" module.
52917         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52918         Reported by Bob Proulx.
52919
52920         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52921
52922         Remove useless "if" tests before free.  Deprecate "free" module.
52923         * doc/posix-functions/free.texi: Mention that this
52924         module is no longer useful.
52925         * modules/free (Notice): Say this module is obsolete.
52926         * modules/readutmp (Depends-on): Remove free.
52927         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52928         * lib/putenv.c (putenv): Likewise.
52929         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52930         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52931         * tests/test-c-strcasestr.c (main): Likewise.
52932         * tests/test-c-strstr.c (main): Likewise.
52933         * tests/test-mbscasestr1.c (main): Likewise.
52934         * tests/test-mbscasestr2.c (main): Likewise.
52935         * tests/test-mbsstr1.c (main): Likewise.
52936         * tests/test-mbsstr2.c (main): Likewise.
52937         * tests/test-memmem.c (main): Likewise.
52938         * tests/test-strcasestr.c (main): Likewise.
52939         * tests/test-striconv.c (main): Likewise.
52940         * tests/test-striconveh.c (main): Likewise.
52941         * tests/test-striconveha.c (main): Likewise.
52942         * tests/test-strstr.c (main): Likewise.
52943
52944         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52945
52946         bootstrap: sync from coreutils again
52947         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52948
52949 2008-03-01  Jim Meyering  <meyering@redhat.com>
52950
52951         bootstrap: sync from coreutils
52952         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52953         also when the target doesn't exist.
52954
52955 2008-03-01  Eric Blake  <ebb9@byu.net>
52956
52957         Fix bugs in last patch.
52958         * lib/memchr2.c (memchr2): Fix typo.
52959         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52960         extension.
52961         Reported by Bruce Korb.
52962
52963         New module 'memchr2'.
52964         * modules/memchr2: New file.
52965         * modules/memchr2-tests: Likewise.
52966         * lib/memchr2.h: Likewise.
52967         * lib/memchr2.c: Likewise, based on memchr.c.
52968         * tests/test-memchr2.c: New test.
52969         * MODULES.html.sh (String handling): Add memchr2.
52970
52971 2008-02-29  Bruno Haible  <bruno@clisp.org>
52972
52973         * modules/freadseek-tests: New file.
52974         * tests/test-freadseek.sh: New file.
52975         * tests/test-freadseek.c: New file.
52976
52977         New module 'freadseek'.
52978         * modules/freadseek: New file.
52979         * lib/freadseek.h: New file.
52980         * lib/freadseek.c: New file.
52981         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52982
52983 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52984
52985         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52986         wydawca.
52987
52988         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52989         program_invocation_name and program_invocation_short_name are
52990         present.
52991
52992 2008-02-28  Bruno Haible  <bruno@clisp.org>
52993
52994         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52995         * tests/test-freadptr.sh: Also test non-seekable stdin.
52996
52997 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52998
52999         * build-aux/bootstrap (source_base, m4_base)
53000         (doc_base, tests_base): New variables.
53001         (gnulib_tool_options): Do not hardcode base directories, use
53002         the above variables instead.
53003
53004 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53005
53006         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53007
53008 2008-02-28  Bruno Haible  <bruno@clisp.org>
53009
53010         * modules/freadptr-tests: New file.
53011         * tests/test-freadptr.sh: New file.
53012         * tests/test-freadptr.c: New file.
53013
53014         New module 'freadptr'.
53015         * modules/freadptr: New file.
53016         * lib/freadptr.h: New file.
53017         * lib/freadptr.c: New file.
53018         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53019
53020 2008-02-26  Karl Berry  <karl@freefriends.org>
53021
53022         Sync from Libtool:
53023         * libltdl/argz.c (argz_add, argz_count): New functions.
53024         * libltdl/argz.in.h: Declare them.
53025         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53026
53027 2008-02-22  Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53030         is a pointer type.  Needed for HP-UX 10.
53031         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53032         * doc/posix-functions/gmtime_r.texi: Likewise.
53033         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53034
53035 2008-02-24  Bruno Haible  <bruno@clisp.org>
53036
53037         * modules/environ-tests: New file.
53038         * tests/test-environ.c: New file.
53039
53040         New module 'environ'.
53041         * modules/environ: New file.
53042         * lib/unistd.in.h (environ): New declaration.
53043         * m4/environ.m4: New file.
53044         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53045         after use.
53046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53047         HAVE_DECL_ENVIRON.
53048         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53049         HAVE_DECL_ENVIRON.
53050         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53051         wrong claim that 'environ' is missing on some systems.
53052         * modules/execute (Depends-on): Add environ.
53053         * lib/execute.c (environ): Remove fallback declaration.
53054         * modules/pipe (Depends-on): Add environ.
53055         * lib/pipe.c (environ): Remove fallback declaration.
53056         * modules/setenv (Depends-on): Add environ.
53057         * lib/setenv.c (environ): Remove fallback declaration.
53058         * modules/unsetenv (Depends-on): Add environ.
53059         * lib/unsetenv.c (environ): Remove fallback declaration.
53060         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53061         m4/environ.m4.
53062         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53063         (gl_PREREQ_UNSETENV): Likewise.
53064
53065 2008-02-24  Bruno Haible  <bruno@clisp.org>
53066
53067         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53068
53069 2008-02-20  Bob Proulx  <bob@proulx.com>
53070
53071         Enable use of older two part flavor 'git describe'.
53072         * build-aux/git-version-gen: If using the older two part flavor of
53073         git version then recreate the third part now present in the
53074         newer three part flavor of git describe.
53075
53076 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53077
53078         * lib/fts.c (fts_build): Typo correction to comment.
53079
53080 2008-02-17  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53083         generating no-op conflicts.
53084
53085 2008-02-17  Bruno Haible  <bruno@clisp.org>
53086
53087         Speed up by 10%.
53088         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53089         result_entries, rather than an index-based loop.
53090
53091 2008-02-17  Bruno Haible  <bruno@clisp.org>
53092
53093         Speed up by 25%.
53094         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53095         'hashcode_cached'.
53096         (entry_create): New function.
53097         (entry_hashcode): Use the cached hashcode if possible.
53098         (read_changelog_file, try_split_merged_entry): Use entry_create.
53099
53100 2008-02-17  Bruno Haible  <bruno@clisp.org>
53101
53102         Speed up from O(n^2) to O(n) for long ChangeLog files.
53103         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53104         (read_changelog_file): Change implementation of entries_reversed list
53105         to rbtreehash.
53106         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53107
53108 2008-02-17  Bruno Haible  <bruno@clisp.org>
53109
53110         New option --split-merged-entry.
53111         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53112         (find_paragraph_end, try_split_merged_entry): New functions.
53113         (long_options): Add option --split-merged-entry.
53114         (usage): Document option --split-merged-entry.
53115         (main): Implement option --split-merged-entry.
53116         Reported by Eric Blake.
53117
53118 2008-02-17  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/git-merge-changelog.c: Include c-strstr.h.
53121         (main): Support the "git pull --rebase" situation.
53122         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53123         Reported by Eric Blake.
53124
53125 2008-02-16  Eric Blake  <ebb9@byu.net>
53126
53127         Avoid doubling \ in common case of "c-maybe" quoting style.
53128         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53129         eliding outer quotes.
53130         * lib/quotearg.h: Document this.
53131         * tests/test-quotearg.c (result_strings, inputs, results_g)
53132         (flag_results, locale_results): Test it by adding a new string to
53133         each test group.
53134         (compare_strings): Test new string.
53135
53136 2008-02-13  Eric Blake  <ebb9@byu.net>
53137
53138         Avoid trigraph quoting in default output.
53139         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53140         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53141         unless explicitly requested.
53142         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53143
53144 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53145
53146         Don't rely on signed integer overflowing to negative value.
53147         * lib/getugroups.c (getugroups): Include <limits.h>.
53148         Instead, compare against INT_MAX, and increment only if the test passes.
53149
53150 2008-02-13  Jim Meyering  <meyering@redhat.com>
53151         and Eric Blake  <ebb9@byu.net>
53152
53153         Avoid shadowing warning and compile errors on Linux.
53154         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53155         forwarding macros on Linux.
53156         (dcgettext): Define a stub, for Linux.
53157         (results_g, main): Avoid warnings.
53158
53159 2008-02-12  Eric Blake  <ebb9@byu.net>
53160
53161         Silence warning in last patch.
53162         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53163
53164         Quotearg part 4: add tests, fix c-maybe colon quoting.
53165         * lib/quotearg.h: Improve documentation.
53166         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53167         escapes when adding outer quotes.  When quoting trigraphs, use
53168         valid C notation.  When quoting NUL, omit extra characters if next
53169         character is not digit.  Alter prototype.
53170         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53171         callers.
53172         * modules/quotearg-tests: New module.
53173         * tests/test-quotearg.c: New test.
53174
53175 2008-02-07  Eric Blake  <ebb9@byu.net>
53176
53177         Quotearg part 3: add flag to control outer quote elision.
53178         * lib/quotearg.h (c_maybe_quoting_style): New style.
53179         (enum quoting_flags): Better documentation of flags.
53180         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53181         c-maybe style.
53182         (quotearg_buffer_restyled): Handle new flag to elide outer
53183         quotes.
53184
53185         Quotearg part 2: add flag that can control NUL elision.
53186         * lib/quotearg.h (set_quoting_flags): New prototype.
53187         * lib/quotearg.c (struct quoting_options): Add flag field.
53188         (set_quoting_flags): New function.
53189         (quotearg_buffer_restyled): Add flags parameter.
53190         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53191         (quotearg_n_options): Set the flag, since length cannot be
53192         returned.
53193         (quoting_options_from_style): Default flags correctly.
53194
53195         Quotearg part 1: more wrappers, restore quotearg_char state.
53196         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53197         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53198         (quotearg_colon_mem): New wrappers.
53199         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53200         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53201         functions.
53202         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53203         (quotearg_colon_mem): New functions.
53204
53205 2008-02-11  Bruno Haible  <bruno@clisp.org>
53206
53207         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53208         library in the current directory: it does not work with parallel make.
53209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53210
53211 2008-02-11  Bruno Haible  <bruno@clisp.org>
53212
53213         * .gitattributes: New file.
53214
53215 2008-02-11  Jim Meyering  <meyering@redhat.com>
53216
53217         useless-if-before-free: Fix reversed exit values.
53218         * build-aux/useless-if-before-free: Use correct values
53219         for EXIT_MATCH and EXIT_NO_MATCH.
53220
53221         * build-aux/useless-if-before-free: Close stdout carefully.
53222
53223 2008-02-10  Bruno Haible  <bruno@clisp.org>
53224
53225         New module 'git-merge-changelog'.
53226         * modules/git-merge-changelog: New file.
53227         * lib/git-merge-changelog.c: New file.
53228
53229 2008-02-10  Jim Meyering  <meyering@redhat.com>
53230
53231         useless-if-before-free: New option: --list (-l).
53232
53233         useless-if-before-free: Don't exit immediately upon open failure.
53234         * build-aux/useless-if-before-free: Exit 2 for errors.
53235         Upon failure to open a file, don't exit immediately.
53236         Rather, just warn and continue with any remaining files.
53237
53238 2008-02-10  Bruno Haible  <bruno@clisp.org>
53239
53240         New abstract list operation 'node_set_value'.
53241         * lib/gl_list.h (gl_list_node_set_value): New function.
53242         (struct gl_list_implementation): New field node_set_value.
53243         * lib/gl_list.c (gl_list_node_set_value): New function.
53244         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53245         (gl_array_list_implementation): Update.
53246         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53247         (gl_carray_list_implementation): Update.
53248         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53249         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53250         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53251         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53252         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53253         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53254         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53255         Update.
53256         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53257         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53258         (gl_sublist_list_implementation): Update.
53259
53260 2008-02-10  Bruno Haible  <bruno@clisp.org>
53261
53262         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53263         Needed when ELEMENT is #defined to 'some_type *'.
53264
53265 2008-02-10  Jim Meyering  <meyering@redhat.com>
53266
53267         New script and module: useless-if-before-free
53268         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53269         * build-aux/useless-if-before-free: New file.
53270         * modules/useless-if-before-free: New file.
53271
53272         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53273
53274         xstrtol_error: Fix typo.
53275         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53276         s/exit_failure/exit_status/.
53277
53278 2008-02-09  Jim Meyering  <meyering@redhat.com>
53279
53280         New script and module: gitlog-to-changelog
53281         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53282         * modules/gitlog-to-changelog: New file.
53283         * build-aux/gitlog-to-changelog: New file.
53284
53285 2008-02-08  Jim Meyering  <meyering@redhat.com>
53286
53287         Avoid two "parameter unused" warnings.
53288         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53289         Mark "st" as used.
53290
53291         Use "git COMMAND", not "git-COMMAND".
53292         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53293         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53294         * build-aux/git-version-gen: Use "git status", not "git-status".
53295
53296 2008-02-07  Bruno Haible  <bruno@clisp.org>
53297
53298         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53299         Avoids a crash on Windows Vista.
53300         Reported by Adam Strzelecki <ono@java.pl> via
53301         Simon Josefsson <simon@josefsson.org>.
53302
53303 2008-02-06  Bruno Haible  <bruno@clisp.org>
53304
53305         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53306         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53307         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53309         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53311         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53312         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53320         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53321         left-adjust flag.
53322         * tests/test-snprintf-posix.h (test_function): Likewise.
53323         * tests/test-sprintf-posix.h (test_function): Likewise.
53324         * tests/test-vasprintf-posix.c (test_function): Likewise.
53325         * doc/posix-functions/fprintf.texi: Update.
53326         * doc/posix-functions/printf.texi: Update.
53327         * doc/posix-functions/snprintf.texi: Update.
53328         * doc/posix-functions/sprintf.texi: Update.
53329         * doc/posix-functions/vfprintf.texi: Update.
53330         * doc/posix-functions/vprintf.texi: Update.
53331         * doc/posix-functions/vsnprintf.texi: Update.
53332         * doc/posix-functions/vsprintf.texi: Update.
53333         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53334
53335 2008-02-06  Bruno Haible  <bruno@clisp.org>
53336
53337         Fix bug introduced on 2008-01-26.
53338         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53339
53340 2008-02-06  Bruno Haible  <bruno@clisp.org>
53341
53342         Fix bug introduced on 2007-06-10.
53343         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53344         !NEED_PRINTF_FLAG_ZERO.
53345
53346 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53347
53348         getloadavg: use libperfstat on AIX5
53349         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53350
53351 2008-02-03  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/diffseq.h: Add comments about required #includes.
53354         Reported by Michael Biggs <gnulib@doubleplum.net>.
53355
53356 2008-02-01  Bruno Haible  <bruno@clisp.org>
53357
53358         * users.txt: Add gnuit.
53359
53360 2008-01-31  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/md4.c (set_uint32): Mark as inline.
53363         * lib/md5.c (set_uint32): Likewise.
53364         * lib/sha1.c (set_uint32): Likewise.
53365         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53366         * m4/md5.m4 (gl_MD5): Likewise.
53367         * m4/sha1.m4 (gl_SHA1): Likewise.
53368
53369 2008-01-31  Jim Meyering  <meyering@redhat.com>
53370
53371         Use "sizeof VAR", rather than a literal "4".
53372         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53373         * lib/md4.c (md4_read_ctx): Likewise.
53374         * lib/sha1.c (sha1_read_ctx): Likewise.
53375
53376 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53377
53378         * tests/test-sha1.c: New file, based on test-md5.c.
53379
53380         * modules/crypto/sha1-tests: New file.
53381
53382 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53383
53384         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53385
53386 2008-01-31  Jim Meyering  <meyering@redhat.com>
53387
53388         Prefer "sizeof v" over the equivalent "4".
53389         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53390         * lib/md5.c (set_uint32): Likewise.
53391         * lib/sha1.c (set_uint32): Likewise.
53392
53393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53394
53395         * lib/sha1.c (set_uint32): Mark function as static.
53396
53397 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53398
53399         md2: clarify comments to say that alignment is not required.
53400         * lib/md2.h: Remove warning about alignment in comment.
53401         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53402         never been required.
53403
53404 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53405
53406         md4: adapt alignment constraint fix from sha1.
53407         * lib/md4.c (set_uint32): New function, from sha1.c
53408         (md4_read_ctx): Use it.
53409         (md4_finish_ctx): Doc fix.
53410         * lib/md4.h: Doc fix.
53411
53412 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53413
53414         md5: adapt alignment constraint fix from sha1.
53415         * lib/md5.c (set_uint32): New function, from sha1.c
53416         (md5_read_ctx): Use it.
53417         (md5_finish_ctx): Doc fix.
53418         * lib/md5.h: Doc fix.
53419
53420 2008-01-30  Peter Palfrader  <weasel@debian.org>
53421
53422         sha1: remove the result buffer alignment constraint
53423         * lib/sha1.c (set_uint32): New function.
53424         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53425         constraint.
53426         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53427         * lib/sha1.h: Likewise.
53428
53429 2008-01-30  Andreas Schwab  <schwab@suse.de>
53430             Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53433         correct definition of LDBL_MIN_EXP.
53434
53435 2008-01-30  Karl Berry  <karl@gnu.org>
53436
53437         * config/srclist-update: try to preserve x bit on updates.
53438         * config/srclistvars.sh: update for karl.
53439
53440 2008-01-29  Jim Meyering  <meyering@redhat.com>
53441
53442         vasnprintf.c: Avoid warning about unused label
53443         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53444         "overflow" label definition and associated code with the
53445         same cpp condition that guards the sole use of that label.
53446
53447 2008-01-26  Bruno Haible  <bruno@clisp.org>
53448
53449         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53450         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53451         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53452         * lib/isnanl-nolibm.h (isnanl): Likewise.
53453         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53454
53455 2008-01-26  Bruno Haible  <bruno@clisp.org>
53456
53457         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53458         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53459
53460 2008-01-26  Bruno Haible  <bruno@clisp.org>
53461
53462         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53463         GCC >= 4.0 built-in.
53464         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53465
53466 2008-01-26  Bruno Haible  <bruno@clisp.org>
53467
53468         Rename isnan, applicable to 'double' only, to isnand.
53469         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53470         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53471         (configure.ac): Update.
53472         (Include): Replace "isnan.h" with "isnand.h".
53473         * m4/isnand.m4: Renamed from m4/isnan.m4.
53474         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53475         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53476         instead of isnan.c.
53477         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53478         instead of HAVE_ISNAN_IN_LIBC.
53479         (isnand): Renamed from isnan.
53480         * lib/isnand.c: New file.
53481         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53482         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53483         (Makefile.am): Update.
53484         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53485         Include isnand.h instead of isnan.h.
53486         (main): Test isnand instead of isnan.
53487         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53488         isnan-nolibm.
53489         * modules/frexp (Depends-on): Likewise.
53490         * modules/frexp-tests (Depends-on): Likewise.
53491         * modules/frexp-nolibm (Depends-on): Likewise.
53492         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53493         * modules/isfinite (Depends-on): Likewise.
53494         * modules/round-tests (Depends-on): Likewise.
53495         * modules/signbit (Depends-on): Likewise.
53496         * modules/signbit-tests (Depends-on): Likewise.
53497         * modules/snprintf-posix (Depends-on): Likewise.
53498         * modules/sprintf-posix (Depends-on): Likewise.
53499         * modules/trunc-tests (Depends-on): Likewise.
53500         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53503         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53506         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53507         * modules/vasnprintf-posix (Depends-on): Likewise.
53508         * modules/vasprintf-posix (Depends-on): Likewise.
53509         * modules/vfprintf-posix (Depends-on): Likewise.
53510         * modules/vsnprintf-posix (Depends-on): Likewise.
53511         * modules/vsprintf-posix (Depends-on): Likewise.
53512         * lib/frexp.c: Include isnand.h instead of isnan.h.
53513         (ISNAN): Set to isnand instead of isnan.
53514         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53515         (gl_isfinited): Use isnand instead of isnan.
53516         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53517         (gl_signbitd): Use isnand instead of isnan.
53518         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53519         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53520         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53521         (main): Use isnand instead of isnan.
53522         * tests/test-round1.c: Include isnand.h.
53523         (main): Use isnand instead of isnan.
53524         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53525         (ISNAN): Set to isnand instead of isnan.
53526         * tests/test-trunc1.c: Include isnand.h.
53527         (main): Use isnand instead of isnan.
53528         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53529         (equal): Use isnand instead of isnan.
53530         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53531         isnand-nolibm.
53532         * NEWS: Mention the change.
53533
53534 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53535             Bruno Haible  <bruno@clisp.org>
53536
53537         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53538         the GCC builtins for signbits are present and set
53539         REPLACE_SIGNBIT_USING_GCC if so.
53540         * lib/math.in.h (signbit): Define using GCC builtins if
53541         REPLACE_SIGNBIT_USING_GCC is set.
53542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53543         REPLACE_SIGNBIT_USING_GCC.
53544         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53545
53546 2008-01-25  Jim Meyering  <meyering@redhat.com>
53547
53548         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53549         * lib/poll.c: Include <config.h>, not "config.h".
53550         * tests/test-getaddrinfo.c: Likewise.
53551
53552 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53553
53554         * modules/sockets-tests: New file.
53555
53556 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53557
53558         * modules/sockets: New module, can be used to call WSA_Startup and
53559         WSA_Cleanup when needed.
53560
53561         * lib/sockets.h, lib/sockets.c: New files.
53562
53563         * m4/sockets.m4: New file.
53564
53565         * tests/test-sockets.c: New file.
53566
53567 2008-01-19  Bruno Haible  <bruno@clisp.org>
53568
53569         * doc/posix-headers: Renamed from doc/headers.
53570         * doc/posix-functions: Renamed from doc/functions.
53571         * doc/gnulib.texi: Update.
53572
53573 2008-01-19  Bruno Haible  <bruno@clisp.org>
53574
53575         * doc/glibc-functions/strcasestr.texi: Include contents of
53576         doc/functions/strcasestr.texi, fixing the list of platforms.
53577         * doc/functions/strcasestr.texi: Remove file.
53578
53579 2008-01-19  Bruno Haible  <bruno@clisp.org>
53580
53581         * doc/glibc-functions/memmem.texi: Include contents of
53582         doc/functions/memmem.texi.
53583         * doc/functions/memmem.texi: Remove file.
53584
53585 2008-01-18  Bruno Haible  <bruno@clisp.org>
53586
53587         * doc/glibc-functions/*.texi: New files.
53588         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53589         to use the new files.
53590
53591 2008-01-17  Bruno Haible  <bruno@clisp.org>
53592
53593         * tests/test-gethostname.c (main): Fix printf statement.
53594
53595 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53596
53597         * modules/gethostname-tests: New file.
53598
53599         * tests/test-gethostname.c: New file.
53600
53601 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53602
53603         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53604         used by the UNAME case.  Reported by Bruno Haible
53605         <bruno@clisp.org>.
53606
53607 2008-01-17  Eric Blake  <ebb9@byu.net>
53608
53609         Convert c-strcasestr to be more efficient.
53610         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53611         (Depends-on): Add c-strcase, remove malloca, strnlen.
53612         * tests/test-c-strcasestr.c (main): Enhance test.
53613         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53614
53615 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53616
53617         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53618         Use it in creating po/Makevars.
53619
53620 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53621
53622         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53623         Applications that requires it should initialize libgcrypt
53624         manually.
53625
53626 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53627
53628         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53629
53630 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53631
53632         Fix problem with getdate on mingw32 reported by Simon Josefsson
53633         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53634         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53635         tzname", when deciding whether to declare tzname.
53636         * lib/strftime.c (tzname): Likewise.
53637
53638 2008-01-15  Bruno Haible  <bruno@clisp.org>
53639
53640         Work around a MacOS X 10.5 bug in frexpl().
53641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53642         * doc/functions/frexpl.texi: Document the bug.
53643         Reported by Elias Pipping <pipping@gentoo.org>.
53644
53645 2008-01-14  Eric Blake  <ebb9@byu.net>
53646
53647         Touch up previous patch.
53648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53649         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53650
53651         Convert strcasestr module to use Two-Way algorithm.
53652         * modules/strcasestr-simple: New module, based on the old
53653         strcasestr, but with Two-Way rather than KMP.
53654         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53655         * lib/string.in.h (rpl_strcasestr): Declare.
53656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53657         performance.
53658         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53659         * modules/string (Makefile.am): Support strcasestr.
53660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53661         * modules/strcasestr-tests (Depends-on): Check for alarm.
53662         * tests/test-strcasestr.c: Augment test.
53663         * lib/str-two-way.h: Clean up stray macro.
53664         * NEWS: Document new module.
53665         * MODULES.html.sh (string handling): Likewise.
53666         * doc/functions/strcasestr.texi: New file.
53667         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53668         here, since it is not a POSIX function.
53669
53670 2008-01-14  Colin Watson  <cjwatson@debian.org>
53671             Bruno Haible  <bruno@clisp.org>
53672
53673         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53674         works fine; if not, set REPLACE_STRSIGNAL.
53675         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53677         REPLACE_STRSIGNAL.
53678         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53679         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53680         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53681
53682 2008-01-14  Bruno Haible  <bruno@clisp.org>
53683
53684         * modules/strsignal (Include): Change to <string.h>.
53685
53686 2008-01-14  Colin Watson  <cjwatson@debian.org>
53687
53688         * modules/argp (Notice): Add a notice recommending to change
53689         XGETTEXT_OPTIONS.
53690         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53691
53692 2008-01-13  Colin Watson  <cjwatson@debian.org>
53693
53694         * modules/strsignal-tests: New file.
53695         * tests/test-strsignal.c: New file.
53696
53697         * lib/strsignal.c: New file, from glibc with modifications.
53698         * lib/siglist.h: New file, from glibc with modifications.
53699         * lib/string.in.h (strsignal): New declaration.
53700         * m4/strsignal.m4: New file.
53701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53702         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53703         * modules/strsignal: New file.
53704         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53705         HAVE_DECL_STRSIGNAL.
53706
53707 2008-01-13  Bruno Haible  <bruno@clisp.org>
53708
53709         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53710         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53711         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53713
53714 2008-01-13  Bruno Haible  <bruno@clisp.org>
53715
53716         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53717         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53718         * lib/argp.h (__attribute__): Likewise.
53719         * lib/c-stack.c (__attribute__): Likewise.
53720         * lib/error.h (__attribute__): Likewise.
53721         * lib/fts.c (__attribute__): Likewise.
53722         * lib/openat.h (__attribute__): Likewise.
53723         * lib/stdio.in.h (__attribute__): Likewise.
53724         * lib/string.in.h (__attribute__): Likewise.
53725         * lib/utimens.c (__attribute__): Likewise.
53726         * lib/vasnprintf.h (__attribute__): Likewise.
53727         * lib/xalloc.h (__attribute__): Likewise.
53728         * lib/xprintf.h (__attribute__): Likewise.
53729         * lib/xstrtol.h (__attribute__): Likewise.
53730         * lib/xvasprintf.h (__attribute__): Likewise.
53731
53732 2008-01-12  Bruno Haible  <bruno@clisp.org>
53733
53734         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53735         * doc/glibc-headers/a.out.texi: New file.
53736         * doc/glibc-headers/aliases.texi: New file.
53737         * doc/glibc-headers/alloca.texi: New file.
53738         * doc/glibc-headers/ar.texi: New file.
53739         * doc/glibc-headers/argp.texi: New file.
53740         * doc/glibc-headers/argz.texi: New file.
53741         * doc/glibc-headers/byteswap.texi: New file.
53742         * doc/glibc-headers/crypt.texi: New file.
53743         * doc/glibc-headers/endian.texi: New file.
53744         * doc/glibc-headers/envz.texi: New file.
53745         * doc/glibc-headers/err.texi: New file.
53746         * doc/glibc-headers/error.texi: New file.
53747         * doc/glibc-headers/execinfo.texi: New file.
53748         * doc/glibc-headers/fpu_control.texi: New file.
53749         * doc/glibc-headers/fstab.texi: New file.
53750         * doc/glibc-headers/fts.texi: New file.
53751         * doc/glibc-headers/getopt.texi: New file.
53752         * doc/glibc-headers/ieee754.texi: New file.
53753         * doc/glibc-headers/ifaddrs.texi: New file.
53754         * doc/glibc-headers/libintl.texi: New file.
53755         * doc/glibc-headers/mcheck.texi: New file.
53756         * doc/glibc-headers/mntent.texi: New file.
53757         * doc/glibc-headers/obstack.texi: New file.
53758         * doc/glibc-headers/paths.texi: New file.
53759         * doc/glibc-headers/printf.texi: New file.
53760         * doc/glibc-headers/pty.texi: New file.
53761         * doc/glibc-headers/resolv.texi: New file.
53762         * doc/glibc-headers/shadow.texi: New file.
53763         * doc/glibc-headers/sysexits.texi: New file.
53764         * doc/glibc-headers/ttyent.texi: New file.
53765
53766 2008-01-12  Jim Meyering  <meyering@redhat.com>
53767
53768         announce-gen: emit Gnulib's git-based version string.
53769         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53770         New option --gnulib-version=V, where V is expected to be
53771         the output of running git describe in the gnulib directory.
53772         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53773         not useful, and plan to stop publishing an xdelta file with each
53774         coreutils release.
53775
53776         * build-aux/announce-gen: Also check for lzma-compressed files.
53777
53778 2008-01-11  Bruno Haible  <bruno@clisp.org>
53779
53780         * tests/test-memmem.c (main): Increase maximum allowed time.
53781         * tests/test-strstr.c (main): Likewise.
53782
53783 2008-01-11  Bruno Haible  <bruno@clisp.org>
53784
53785         * doc/functions/memmem.texi: Add more precisions about platforms.
53786         * doc/functions/strstr.texi: Likewise.
53787
53788 2008-01-10  Eric Blake  <ebb9@byu.net>
53789
53790         * m4/strstr.m4: Delete cruft from copy-n-paste.
53791         Reported by Bruno Haible.
53792
53793 2008-01-10  Bruno Haible  <bruno@clisp.org>
53794
53795         Make c-strstr rely on strstr.
53796         * lib/c-strstr.c: Don't include str-kmp.h.
53797         (c_strstr): Define in terms of strstr.
53798         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53799         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53800
53801 2008-01-10  Bruno Haible  <bruno@clisp.org>
53802
53803         * doc/gnulib.texi (String Functions in C Locale): New section.
53804         * doc/c-ctype.texi: New file.
53805         * doc/c-strcase.texi: New file.
53806         * doc/c-strcaseeq.texi: New file.
53807         * doc/c-strcasestr.texi: New file.
53808         * doc/c-strstr.texi: New file.
53809         * doc/c-strtod.texi: New file.
53810         * doc/c-strtold.texi: New file.
53811
53812 2008-01-10  Eric Blake  <ebb9@byu.net>
53813
53814         * lib/relocatable.h: Fix a comment.
53815
53816 2008-01-10  Eric Blake  <ebb9@byu.net>
53817
53818         Share two-way algorithm.
53819         * lib/str-two-way.h: New file, merged from...
53820         * lib/memmem.c: ...here...
53821         * lib/strstr.c: ...and here.
53822         * modules/memmem (Files): Use it.
53823         * modules/strstr (Files): Likewise.
53824
53825         Avoid quadratic strstr implementations.
53826         * lib/strstr.c: New file.
53827         * m4/strstr.m4: Likewise.
53828         * modules/strstr: Likewise.
53829         * modules/strstr-tests: Likewise.
53830         * tests/test-strstr.c: Likewise.
53831         * lib/string.in.h (rpl_strstr): Declare.
53832         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53834         * modules/string (Makefile.am): Likewise.
53835         * MODULES.html.sh (string handling): Mention new module.
53836         * doc/functions/strstr.texi (strstr): Document the bug.
53837
53838 2008-01-10  Bruno Haible  <bruno@clisp.org>
53839
53840         * lib/relocatable.h (relocate): State whether result is freshly
53841         allocated or not.
53842         * lib/relocatable.c (relocate): Return a freshly allocated string
53843         instead of a pointer to a privately held string.
53844         Reported by Sylvain Beucler <beuc@gnu.org>.
53845
53846 2008-01-10  Colin Watson  <cjwatson@debian.org>
53847
53848         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53849         s/S_ISNLK/S_ISLNK/.
53850
53851 2008-01-09  Bruno Haible  <bruno@clisp.org>
53852
53853         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53854         and other files.
53855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53856         if it's only a guess.
53857         * modules/memmem: Simplify by depending on memmem-simple.
53858
53859 2008-01-09  Bruno Haible  <bruno@clisp.org>
53860
53861         Work around OpenBSD 4.0 tdelete() bug.
53862         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53863         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53864         macros and don't redefine the enum values.
53865         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53866         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53867         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53868
53869 2008-01-09  Bruno Haible  <bruno@clisp.org>
53870
53871         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53872         (main): Don't perform the tests if setlocale did not install a UTF-8
53873         locale. Needed on OpenBSD 4.0.
53874         * modules/wcwidth-tests (Depends-on): Add localcharset.
53875
53876 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53877
53878         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53879         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53880         * NEWS: announce this.
53881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53882
53883 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53884         and Eric Blake  <ebb9@byu.net>
53885
53886         Add memmem-simple module.
53887         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53888         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53889         * modules/memmem-simple: New file.
53890         * modules/memmem (Description): Tweak.
53891         * MODULES.html.sh (string handling): Mention new module.
53892         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53893         addressed by memmem-simple.
53894         * NEWS: Document the difference.
53895
53896 2008-01-09  Eric Blake  <ebb9@byu.net>
53897
53898         Give gcc some memmem optimization hints.
53899         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53900         (strcasestr): Declare as pure.
53901         * modules/memmem (Maintainer): Claim my implementation.
53902
53903 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53904
53905         Support AIX 6.1 and higher.
53906         * build-aux/config.libpath: Likewise.
53907         * build-aux/config.rpath: Likewise.
53908
53909 2008-01-08  Jim Meyering  <meyering@redhat.com>
53910             Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53913         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53914         Reported by Peter Fales in
53915         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53916
53917 2008-01-08  Bruno Haible  <bruno@clisp.org>
53918
53919         * modules/unictype/category-of (Depends-on): Add
53920         unictype/category-none.
53921         * modules/unictype/category-and-tests (Depends-on): Add
53922         unictype/category-{L,N,Lu,Nd}.
53923         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53924         * modules/unictype/category-or-tests (Depends-on): Add
53925         unictype/category-{L,N}.
53926         * modules/unictype/category-name-tests (Depends-on): Add
53927         unictype/category-{Z,Nl}.
53928         Reported by Simon Josefsson.
53929
53930 2008-01-08  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53933         convention better.
53934         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53935         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53936         Reported by Peter Miller <millerp@canb.auug.org.au>.
53937
53938 2008-01-08  Eric Blake  <ebb9@byu.net>
53939
53940         Rewrite memmem to guarantee linear complexity without malloc.
53941         * lib/memmem.c (memmem): Use Two-Way rather than
53942         Knuth-Morris-Pratt, to allow O(1) space usage.
53943         (critical_factorization, two_way_short_needle)
53944         (two_way_long_needle): New functions.
53945         (knuth_morris_pratt): Delete.
53946         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53947         Add stdint.
53948         * tests/test-memmem.c (main): Add tests for periodic needle and
53949         sublinear performance.
53950         * doc/functions/memmem.texi (memmem): Document other deficiencies
53951         in cygwin and older glibc.
53952
53953 2008-01-08  Bruno Haible  <bruno@clisp.org>
53954
53955         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53956         augmentation.
53957
53958 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53959
53960         Add a configure time option: --disable-acl.
53961         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53962         AC_ARG_ENABLE(acl).
53963
53964 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53965
53966         * tests/test-localename.c: Don't include obsolete "setenv.h".
53967
53968         * modules/localename-tests (Depends-on): Need unsetenv.
53969
53970 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53971
53972         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53973
53974 2008-01-06  Colin Watson  <cjwatson@debian.org>
53975
53976         * users.txt: Add man-db.
53977
53978 2008-01-07  Bruno Haible  <bruno@clisp.org>
53979
53980         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53981         previous section name.
53982
53983 2008-01-07  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/progname.c (set_program_name): Don't strip off a leading
53986         "lt-" prefix outside a .libs directory.
53987         Suggested by Paul Eggert.
53988
53989 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53990             Bruno Haible  <bruno@clisp.org>
53991
53992         Improve memory cleanup in 'relocatable' module.
53993         * lib/relocatable.h (compute_curr_prefix): Change return type to
53994         'char *'.
53995         * lib/relocatable.c (compute_curr_prefix): Change return type to
53996         'char *'. Free curr_installdir after use.
53997         (relocate): Free curr_prefix_better after use.
53998         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53999
54000 2008-01-01  Bruno Haible  <bruno@clisp.org>
54001
54002         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54003         failure on older glibc systems.
54004         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54005
54006 2008-01-05  Eric Blake  <ebb9@byu.net>
54007
54008         Avoid quadratic system memmem.
54009         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54010         Reported by Ralf Wildenhues.
54011
54012         Fix memmem test for mingw.
54013         * modules/memmem-tests (configure.ac): Check for alarm.
54014         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54015         it.
54016         * doc/functions/memmem.texi: New file.
54017         * doc/gnulib.texi (Function Substitutes): Add memmem.
54018         Reported by Bruno Haible.
54019
54020 2008-01-04  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54023         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54024         gl_HEADER_STRING_H_DEFAULTS.
54025
54026 2008-01-04  Eric Blake  <ebb9@byu.net>
54027
54028         Shorten duration of memmem test.
54029         * tests/test-memmem.c (main): Use alarm to declare failure if test
54030         is taking too long.
54031         Reported by Ralf Wildenhues.
54032
54033 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54034
54035         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54036         string, needed by strerror.
54037
54038 2008-01-03  Colin Watson  <cjwatson@debian.org>
54039             Bruno Haible  <bruno@clisp.org>
54040
54041         * doc/gnulib-tool.texi (Localization): New section.
54042
54043 2008-01-02  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54046         variables to 'unsigned char *' type.
54047         Reported by Paul Eggert.
54048
54049 2008-01-02  Jim Meyering  <jim@meyering.net>
54050
54051         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54052
54053 2007-12-31  Jim Meyering  <jim@meyering.net>
54054
54055         Avoid use of private FTS type name.
54056         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54057
54058 2007-12-30  Karl Berry  <karl@gnu.org>
54059
54060         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54061         work around defect in Texinfo and/or the standalone Info browser.
54062
54063 2007-12-30  Bruno Haible  <bruno@clisp.org>
54064
54065         Unify 5 copies of the KMP code.
54066         * lib/str-kmp.h: New file.
54067         * lib/c-strcasestr.c: Include str-kmp.h.
54068         (knuth_morris_pratt): Remove function.
54069         (c_strcasestr): Update.
54070         * lib/c-strstr.c: Include str-kmp.h.
54071         (knuth_morris_pratt): Remove function.
54072         (c_strcasestr): Update.
54073         * lib/mbscasestr.c: Include str-kmp.h.
54074         (knuth_morris_pratt_unibyte): Remove function.
54075         * lib/mbsstr.c: Include str-kmp.h.
54076         (knuth_morris_pratt_unibyte): Remove function.
54077         * lib/strcasestr.c: Include str-kmp.h.
54078         (knuth_morris_pratt): Remove function.
54079         (strcasestr): Update.
54080         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54081         * modules/c-strstr (Files): Likewise.
54082         * modules/mbscasestr (Files): Likewise.
54083         * modules/mbsstr (Files): Likewise.
54084         * modules/strcasestr (Files): Likewise.
54085         Suggested by Paul Eggert.
54086
54087 2007-12-30  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54090         defined.
54091
54092 2007-12-30  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/xmalloca.h: Include xalloc.h.
54095         (xnmalloca): New macro.
54096
54097 2007-12-30  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/malloca.h (nmalloca): New macro.
54100         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54101         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54102         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54103         knuth_morris_pratt_multibyte): Likewise.
54104         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54105         knuth_morris_pratt_multibyte): Likewise.
54106         * lib/memmem.c (knuth_morris_pratt): Likewise.
54107         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54108
54109 2007-12-25  Bruno Haible  <bruno@clisp.org>
54110
54111         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54112         * lib/glob.c: Don't include openat.h.
54113         (link_exists2_p): Add back the code that deals with the
54114         !GLOB_ALTDIRFUNC case.
54115         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54116         let it do the filename concatenation.
54117         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54118         * modules/glob (Depends-on): Remove openat.
54119
54120 2007-12-31  Bruno Haible  <bruno@clisp.org>
54121
54122         * modules/dirfd (License): Change to LGPLv2+.
54123         Approved by Jim Meyering.
54124
54125 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54126
54127         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54128         when multiplying M by sizeof (size_t).
54129
54130 2007-12-10  Martin Lambers  <marlam@marlam.de>
54131
54132         Override getpagesize on mingw.
54133         * lib/getpagesize.c: New file.
54134         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54135         * modules/getpagesize (Files): Add lib/getpagesize.c.
54136         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54138         REPLACE_GETPAGESIZE.
54139         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54140
54141 2007-12-25  Bruno Haible  <bruno@clisp.org>
54142
54143         * modules/localcharset (Notice): New field.
54144         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54145         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54146
54147 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54148             Bruno Haible  <bruno@clisp.org>
54149
54150         Avoid using the syntax symbol() in formatted documentation.
54151         * MODULES.html.sh (func_module): When replacing symbol() with a
54152         hyperlink, remove the parentheses. Show an error if some remain.
54153         Recognize and render the '...' syntax.
54154         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54155         Rework. Add paragraph about GCC's inlining.
54156         * doc/alloca.texi: Likewise.
54157         * doc/error.texi: Remove parentheses from symbol reference.
54158         * doc/gnulib-intro.texi: Likewise.
54159         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54160         * modules/fnmatch (Description): Reword to say "the ... function".
54161         * modules/full-read (Description): Likewise.
54162         * modules/full-write (Description): Likewise.
54163         * modules/safe-read (Description): Likewise.
54164         * modules/safe-write (Description): Likewise.
54165         * modules/strchrnul (Description): Likewise.
54166         * modules/trim (Description): Likewise.
54167         * modules/error (Description): Remove parentheses from symbol
54168         references.
54169         * modules/verror (Description): Likewise.
54170         Reported by Karl Berry.
54171
54172 2007-12-25  Bruno Haible  <bruno@clisp.org>
54173
54174         Fixup after 2007-10-16 commit.
54175         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54176
54177 2007-12-24  Bruno Haible  <bruno@clisp.org>
54178
54179         Make --enable-relocatable work with DESTDIR.
54180         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54181         to compute installdir from destprog.
54182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54183         also set the RELOC_DESTDIR variable.
54184         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54185
54186 2007-12-24  Bruno Haible  <bruno@clisp.org>
54187
54188         Fix link error due to xalloc_die().
54189         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54190         of xreadlink.
54191         * lib/relocwrapper.c: Update comments.
54192         * build-aux/install-reloc: Remove xreadlink.c from file list.
54193         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54194         xreadlink.c.
54195         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54196
54197 2007-12-24  Bruno Haible  <bruno@clisp.org>
54198
54199         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54200         * lib/setenv.h: Remove file.
54201         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54202         lib/setenv.h.
54203         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54204         (Depends-on): Add stdlib.
54205         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54206         gl_FUNC_UNSETENV.
54207         (Include): Replace setenv.h with <stdlib.h>.
54208         * modules/unsetenv: New file.
54209         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54210         * lib/unsetenv.c: Include <stdlib.h> first.
54211         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54212         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54213         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54214         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54215         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54216         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54218         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54219         * doc/functions/unsetenv.texi: Update.
54220         * modules/xsetenv (Depends-on): Add unsetenv.
54221         * modules/getdate (Depends-on): Likewise.
54222         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54223         * lib/xsetenv.c: Don't include setenv.h.
54224         * lib/getdate.y: Likewise.
54225         * lib/relocwrapper.c: Likewise.
54226         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54227         (Depends-on): Add stdlib.
54228         * NEWS: Mention the changes.
54229         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54230
54231 2007-12-23  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54234         indentation.
54235
54236 2007-12-23  Bruno Haible  <bruno@clisp.org>
54237
54238         * lib/c-strcasestr.c: Add more comments.
54239         * lib/c-strstr.c: Likewise.
54240         * lib/mbscasestr.c: Likewise.
54241         * lib/mbsstr.c: Likewise.
54242         * lib/strcasestr.c: Likewise.
54243         * lib/memmem.c: Likewise.
54244
54245 2007-12-23  Bruno Haible  <bruno@clisp.org>
54246
54247         * tests/test-memmem.c: Include <string.h> first.
54248
54249 2007-12-22  Bruno Haible  <bruno@clisp.org>
54250
54251         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54252         the contents of $testsbase.
54253         Reported by Ralf Wildenhues.
54254
54255 2007-12-22  Bruno Haible  <bruno@clisp.org>
54256
54257         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54258         two variables local_ldadd_before, local_ldadd_last.
54259
54260 2007-12-20  Eric Blake  <ebb9@byu.net>
54261
54262         Work around circular library issue when cross-compiling.
54263         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54264         that progname.o does not need to pull in rpl_memcmp.
54265
54266 2007-12-19  Eric Blake  <ebb9@byu.net>
54267
54268         Fix memmem to avoid O(n^2) worst-case complexity.
54269         * lib/memmem.c (knuth_morris_pratt): New function.
54270         (memmem): Use it if first few naive iterations fail.
54271         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54272         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54273         * modules/memchr (License): Likewise.
54274         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54275         malloca.
54276         * tests/test-memmem.c: Rewrite, borrowing ideas from
54277         test-mbsstr1.c; the old version wouldn't even compile!
54278         * modules/memmem-tests: New file.
54279         * lib/string.in.h (rpl_memmem): Add declaration.
54280         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54282         REPLACE_MEMMEM.
54283
54284 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54285
54286         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54287         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54288         before any system include files, and undef after them all.  This
54289         should fix a problem on VMS reported by John E. Malmberg in
54290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54291
54292 2007-12-17  Eric Blake  <ebb9@byu.net>
54293
54294         Revert addition of verify, for BSD/OS.
54295         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54296         can't handle large files, for the sake of obsolete platforms.
54297         * modules/fseeko (Depends-on): Remove verify.
54298         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54299         * doc/functions/ftello.texi (ftello): Likewise.
54300         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54301         Reported by Larry Jones.
54302
54303 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54304
54305         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54306         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54307
54308 2007-12-17  Jim Meyering  <meyering@redhat.com>
54309
54310         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54311         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54312         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54313         * modules/getcwd (Depends-on): Add openat.
54314         Reported by Petr Salinger.
54315
54316 2007-12-17  Bruno Haible  <bruno@clisp.org>
54317
54318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54319         avoid a segmentation fault of the configure test on x86_64 systems.
54320
54321 2007-12-15  Jim Meyering  <meyering@redhat.com>
54322
54323         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54324
54325 2007-12-13  Eric Blake  <ebb9@byu.net>
54326
54327         Another fseek test.
54328         * tests/test-fseek.c (main): Also test ungetc handling.
54329         * tests/test-fseeko.c (main): Likewise.
54330         * modules/fseeko (Depends-on): Add verify.
54331         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54332         large.
54333         Reported by Larry Jones.
54334
54335         Fix fseeko on mingw.
54336         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54337         seek.
54338
54339         Beef up fseek tests.
54340         * tests/test-fseek.c (main): Also test eof handling.
54341         * tests/test-fseeko.c (main): Likewise.
54342         Reported by Larry Jones.
54343
54344 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54345
54346         Fix fseeko on BSD-based platforms.
54347         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54348         successful seek.
54349
54350 2007-12-12  Eric Blake  <ebb9@byu.net>
54351
54352         Allow circular dependency of separate libtests.a
54353         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54354         when use_libtests.
54355
54356 2007-12-11  Eric Blake  <ebb9@byu.net>
54357
54358         Fix bug with -0.0L in previous patch.
54359         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54360         * tests/test-isnan.c (main): Also test on zeroes.
54361         * tests/test-isnanf.c (main): Likewise.
54362         * tests/test-isnanl.h (main): Likewise.
54363
54364         Detect pseudo-denormals on x86 even when cross-compiling.
54365         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54366         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54367         invalid bit patterns that happen to satisfy ==.
54368
54369         Avoid link failures with separate libtests.a.
54370         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54371         last, to satisfy circular dependencies.
54372
54373 2007-12-11  Eric Blake  <ebb9@byu.net>
54374         and Bruno Haible  <bruno@clisp.org>
54375
54376         Fix OpenBSD 4.0 <float.h> handling of long double.
54377         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54378         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54379         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54380
54381 2007-12-11  Jim Meyering  <meyering@redhat.com>
54382
54383         * users.txt: Add libvirt.
54384
54385         Support versions of autoconf prior to 2.59c.
54386         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54387         if it is not already defined.
54388
54389 2007-12-09  Bruno Haible  <bruno@clisp.org>
54390
54391         Let 'gnulib-tool --import' collect sources needed for the tests in
54392         tests/ rather than in lib/.
54393         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54394         argument. If true, add rules to generate libtests.a, and put libtests.a
54395         into $(LDADD). Consider source files in subdirectories and set
54396         uses_subdirs.
54397         (func_emit_initmacro_start, func_emit_initmacro_end,
54398         func_emit_initmacro_done): Pass all arguments explicitly.
54399         (func_import): Determine two module lists main_modules,
54400         testsrelated_modules. Determine use_libtests. Determine two variables
54401         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54402         instead of just sed_transform_lib_file. Determine two variables
54403         main_files and testsrelated_files. Compute 'files' as the union of
54404         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54405         func_add_or_update. In the generated gnulib-comp.m4, collect the
54406         object files for tests/ in different variables than those for lib/.
54407         Substitute LIBTESTS_LIBDEPS.
54408         (func_create_testdir): Combine the uses_subdirs results from
54409         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54410
54411 2007-12-09  Bruno Haible  <bruno@clisp.org>
54412
54413         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54414         the build-aux directory.
54415
54416 2007-12-09  Bruno Haible  <bruno@clisp.org>
54417
54418         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54419         introduced on 2006-09-09.
54420
54421 2007-12-07  Jim Meyering  <meyering@redhat.com>
54422
54423         Let these macros work also with autoconf-2.59.
54424         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54425         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54427
54428 2007-12-06  Jim Meyering  <meyering@redhat.com>
54429
54430         Avoid a configure-time syntax error in gl_FUNC_ACL.
54431         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54432         function in each branch, before testing the cache variable.
54433
54434 2007-12-04  Eric Blake  <ebb9@byu.net>
54435
54436         Make scripts executable.
54437         * build-aux/config.guess: Add execute permissions.
54438         * build-aux/config.sub: Likewise.
54439         * build-aux/gendocs.sh: Likewise.
54440
54441         Fix frexp on mingw.
54442         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54443         cross-compiling.
54444         * doc/functions/frexp.texi (frexp): Document the bug.
54445
54446         Make cygwin fseeko check more reliable.
54447         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54448         version numbers, rather than unrelated feature check.
54449         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54450         * doc/functions/ftello.texi (ftello): Likewise.
54451         Reported by Bruno Haible.
54452
54453         * m4/strerror.m4: Bump version number.
54454
54455 2007-12-03  Bruno Haible  <bruno@clisp.org>
54456
54457         * doc/functions/mprotect.texi: Mention the mingw problem.
54458
54459 2007-12-03  Eric Blake  <ebb9@byu.net>
54460
54461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54462         REPLACE_STRERROR is initialized before this macro.
54463
54464 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54467         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54468         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54469         put -lsec in even for programs other than 'ls'.  This fixes a problem
54470         for gettext reported by Bruno Haible in
54471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54472         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54473         Add support for Solaris 10.  This isn't efficient, but should get the
54474         job done for now.
54475
54476 2007-12-03  James Youngman  <jay@gnu.org>
54477
54478         * doc/regexprops-generic.texi: change "an close-group" to "a
54479         close-group" and "illegal" to "not allowed".
54480
54481 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54482
54483         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54484         pr_byname.h. Needed for the rare case when the maintainer has done
54485         "make maintainer-clean" in the source directory and then attempts a
54486         build outside the source directory.
54487         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54488         scripts_byname.h.
54489
54490 2007-12-02  Martin Lambers <marlam@marlam.de>
54491             Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/getpagesize.h: Remove file.
54494         * lib/unistd.in.h: Include declaration of getpagesize here.
54495         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54496         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54497         HAVE_SYS_PARAM_H.
54498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54499         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54500         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54501         (Depends-on): Add unistd.
54502         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54503         (Include): Use <unistd.h> instead of getpagesize.h.
54504         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54505         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54506         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54507         gl_GETPAGESIZE invocation, already handled by module dependency.
54508         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54509
54510 2007-12-02  Bruno Haible  <bruno@clisp.org>
54511
54512         * modules/strings-tests: New file.
54513         * tests/test-strings.c: New file.
54514
54515         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54516         * lib/strings.in.h: New file.
54517         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54518         * m4/strings_h.m4: New file.
54519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54520         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54521         * modules/strings: New file.
54522         * modules/string (Makefile.am): Update.
54523         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54524         Reported by Karl Berry.
54525
54526 2007-12-01  Eric Blake  <ebb9@byu.net>
54527
54528         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54529         accomodate fix in cygwin 1.5.25.
54530
54531 2007-12-01  Jim Meyering  <meyering@redhat.com>
54532
54533         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54534         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54535         that would inhibit utf8-optimization of a regexp containing line-
54536         or buffer-anchors, e.g., `^', `$'.
54537
54538 2007-11-30  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54541         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54542         glthread_recursive_lock_init.
54543         * lib/lock.c (glthread_recursive_lock_init)
54544         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54545         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54546
54547 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         New function qset_acl, like set_acl but with syscall semantics.
54550         * lib/acl.h (qset_acl): New decl.
54551         * lib/acl.c (qset_acl): New function.
54552         (set_acl): Use new function.  Use more-consistent diagnostics.
54553
54554 2007-11-28  Jim Meyering  <meyering@redhat.com>
54555
54556         * modules/physmem (License): Change from GPL to LGPLv2+.
54557
54558 2007-11-26  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54561         'long double' type has excess precision.
54562         Reported by Jim Meyering in
54563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54564
54565 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54566
54567         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54568         Sync from <http://gnu.org/licenses>.
54569         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54570         with license text from same location.
54571         * doc/maintain.texi, doc/standards.texi:  Sync from
54572         <http://savannah.gnu.org/projects/gnustandards>.
54573
54574 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54575         and Jim Meyering  <meyering@redhat.com>
54576
54577         Adjust getdate' grammar to accept a slightly more regular language.
54578         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54579         Before, the former was rejected.
54580         * lib/getdate.y (digits_to_date_time): New function, factored
54581         out of ...
54582         (number): ...here.  Just call digits_to_date_time.
54583         (hybrid): New non-terminal to handle an <unsigned number,
54584         signed relative offset> sequence consistently.
54585
54586 2007-11-18  Jim Meyering  <meyering@redhat.com>
54587
54588         Pull my changes from coreutils:
54589         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54590         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54591         use of $gnulib_tool_option_extras, so that it's separated from the
54592         preceding argument.
54593
54594         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54595         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54596         parent destination directories before copying a file into place.
54597
54598 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54599
54600         bootstrap: work also with 4-argument variant of AC_INIT
54601         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54602
54603 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         Port test-getaddrinfo to Solaris.
54606         Problem reported by Bruno Haible in
54607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54608         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54609         explanation of setting 'hints'.
54610         Don't reject an implementation merely because it returns EAI_SERVICE.
54611         (EAI_SERVICE): Define to 0 if not defined.
54612
54613 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         The license of gnu-make and posix-shell is now "GPLed build tool".
54616         * modules/gnu-make (License): Likewise.
54617         * modules/posix-shell (License): Likewise.
54618
54619         New module posix-shell, for determining a POSIX shell
54620         or perhaps something that is close enough to a POSIX shell.
54621         * m4/posix-shell.m4: New file.
54622         * modules/posix-shell: New file.
54623
54624         * MODULES.html.sh: Mention new module.
54625
54626         New module gnu-make, for determining whether we're using GNU Make.
54627         * m4/gnu-make.m4: New file.
54628         * modules/gnu-make: New file.
54629         * MODULES.html.sh: Mention new module.
54630
54631 2007-11-14  Jim Meyering  <meyering@redhat.com>
54632
54633         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54634         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54635         use this macro to create a function _definition_.
54636         Remove useless "#undef ARGMATCH_DIE".
54637
54638 2007-11-14  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/config.charset: Update for OpenBSD 4.1.
54641         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54642
54643 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         Document 64-bit #if problems in stdint.texi.
54646         * doc/headers/stdint.texi (stdint.h): Mention problems with
54647         64-bit-#if, and how to work around them.
54648
54649         Don't insist on 'long long int' support in the preprocessor.  It
54650         breaks too many things.  For example, PRIdMAX still uses a 'long
54651         long int' format with the latest Sun compiler, even though
54652         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54653         preprocessor problem.  This causes the latest coreutils to dump
54654         core on Solaris 10 sparc with the Sun C compiler.
54655         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54656         the troublesome expressions at configure-time, not at #if-time.
54657         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54658         preprocessor.
54659         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54660         compile-time C checks, done at 'configure'-time.
54661         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54662         * modules/inttypes (Makefile): Substitute the new symbols that
54663         gl_INTTYPES_H now generates.
54664         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54665
54666 2007-11-12  Bruno Haible  <bruno@clisp.org>
54667
54668         Tests for Unicode character classification functions.
54669
54670         * modules/unictype/bidicategory-byname-tests: New file.
54671         * modules/unictype/bidicategory-name-tests: New file.
54672         * modules/unictype/bidicategory-of-tests: New file.
54673         * modules/unictype/bidicategory-test-tests: New file.
54674         * modules/unictype/block-list-tests: New file.
54675         * modules/unictype/block-of-tests: New file.
54676         * modules/unictype/block-test-tests: New file.
54677         * modules/unictype/category-C-tests: New file.
54678         * modules/unictype/category-Cc-tests: New file.
54679         * modules/unictype/category-Cf-tests: New file.
54680         * modules/unictype/category-Cn-tests: New file.
54681         * modules/unictype/category-Co-tests: New file.
54682         * modules/unictype/category-Cs-tests: New file.
54683         * modules/unictype/category-L-tests: New file.
54684         * modules/unictype/category-Ll-tests: New file.
54685         * modules/unictype/category-Lm-tests: New file.
54686         * modules/unictype/category-Lo-tests: New file.
54687         * modules/unictype/category-Lt-tests: New file.
54688         * modules/unictype/category-Lu-tests: New file.
54689         * modules/unictype/category-M-tests: New file.
54690         * modules/unictype/category-Mc-tests: New file.
54691         * modules/unictype/category-Me-tests: New file.
54692         * modules/unictype/category-Mn-tests: New file.
54693         * modules/unictype/category-N-tests: New file.
54694         * modules/unictype/category-Nd-tests: New file.
54695         * modules/unictype/category-Nl-tests: New file.
54696         * modules/unictype/category-No-tests: New file.
54697         * modules/unictype/category-P-tests: New file.
54698         * modules/unictype/category-Pc-tests: New file.
54699         * modules/unictype/category-Pd-tests: New file.
54700         * modules/unictype/category-Pe-tests: New file.
54701         * modules/unictype/category-Pf-tests: New file.
54702         * modules/unictype/category-Pi-tests: New file.
54703         * modules/unictype/category-Po-tests: New file.
54704         * modules/unictype/category-Ps-tests: New file.
54705         * modules/unictype/category-S-tests: New file.
54706         * modules/unictype/category-Sc-tests: New file.
54707         * modules/unictype/category-Sk-tests: New file.
54708         * modules/unictype/category-Sm-tests: New file.
54709         * modules/unictype/category-So-tests: New file.
54710         * modules/unictype/category-Z-tests: New file.
54711         * modules/unictype/category-Zl-tests: New file.
54712         * modules/unictype/category-Zp-tests: New file.
54713         * modules/unictype/category-Zs-tests: New file.
54714         * modules/unictype/category-and-not-tests: New file.
54715         * modules/unictype/category-and-tests: New file.
54716         * modules/unictype/category-byname-tests: New file.
54717         * modules/unictype/category-name-tests: New file.
54718         * modules/unictype/category-none-tests: New file.
54719         * modules/unictype/category-of-tests: New file.
54720         * modules/unictype/category-or-tests: New file.
54721         * modules/unictype/category-test-withtable-tests: New file.
54722         * modules/unictype/combining-class-tests: New file.
54723         * modules/unictype/ctype-alnum-tests: New file.
54724         * modules/unictype/ctype-alpha-tests: New file.
54725         * modules/unictype/ctype-blank-tests: New file.
54726         * modules/unictype/ctype-cntrl-tests: New file.
54727         * modules/unictype/ctype-digit-tests: New file.
54728         * modules/unictype/ctype-graph-tests: New file.
54729         * modules/unictype/ctype-lower-tests: New file.
54730         * modules/unictype/ctype-print-tests: New file.
54731         * modules/unictype/ctype-punct-tests: New file.
54732         * modules/unictype/ctype-space-tests: New file.
54733         * modules/unictype/ctype-upper-tests: New file.
54734         * modules/unictype/ctype-xdigit-tests: New file.
54735         * modules/unictype/decimal-digit-tests: New file.
54736         * modules/unictype/digit-tests: New file.
54737         * modules/unictype/mirror-tests: New file.
54738         * modules/unictype/numeric-tests: New file.
54739         * modules/unictype/property-alphabetic-tests: New file.
54740         * modules/unictype/property-ascii-hex-digit-tests: New file.
54741         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54742         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54743         * modules/unictype/property-bidi-block-separator-tests: New file.
54744         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54745         * modules/unictype/property-bidi-common-separator-tests: New file.
54746         * modules/unictype/property-bidi-control-tests: New file.
54747         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54748         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54749         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54750         * modules/unictype/property-bidi-european-digit-tests: New file.
54751         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54752         * modules/unictype/property-bidi-left-to-right-tests: New file.
54753         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54754         * modules/unictype/property-bidi-other-neutral-tests: New file.
54755         * modules/unictype/property-bidi-pdf-tests: New file.
54756         * modules/unictype/property-bidi-segment-separator-tests: New file.
54757         * modules/unictype/property-bidi-whitespace-tests: New file.
54758         * modules/unictype/property-byname-tests: New file.
54759         * modules/unictype/property-combining-tests: New file.
54760         * modules/unictype/property-composite-tests: New file.
54761         * modules/unictype/property-currency-symbol-tests: New file.
54762         * modules/unictype/property-dash-tests: New file.
54763         * modules/unictype/property-decimal-digit-tests: New file.
54764         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54765         * modules/unictype/property-deprecated-tests: New file.
54766         * modules/unictype/property-diacritic-tests: New file.
54767         * modules/unictype/property-extender-tests: New file.
54768         * modules/unictype/property-format-control-tests: New file.
54769         * modules/unictype/property-grapheme-base-tests: New file.
54770         * modules/unictype/property-grapheme-extend-tests: New file.
54771         * modules/unictype/property-grapheme-link-tests: New file.
54772         * modules/unictype/property-hex-digit-tests: New file.
54773         * modules/unictype/property-hyphen-tests: New file.
54774         * modules/unictype/property-id-continue-tests: New file.
54775         * modules/unictype/property-id-start-tests: New file.
54776         * modules/unictype/property-ideographic-tests: New file.
54777         * modules/unictype/property-ids-binary-operator-tests: New file.
54778         * modules/unictype/property-ids-trinary-operator-tests: New file.
54779         * modules/unictype/property-ignorable-control-tests: New file.
54780         * modules/unictype/property-iso-control-tests: New file.
54781         * modules/unictype/property-join-control-tests: New file.
54782         * modules/unictype/property-left-of-pair-tests: New file.
54783         * modules/unictype/property-line-separator-tests: New file.
54784         * modules/unictype/property-logical-order-exception-tests: New file.
54785         * modules/unictype/property-lowercase-tests: New file.
54786         * modules/unictype/property-math-tests: New file.
54787         * modules/unictype/property-non-break-tests: New file.
54788         * modules/unictype/property-not-a-character-tests: New file.
54789         * modules/unictype/property-numeric-tests: New file.
54790         * modules/unictype/property-other-alphabetic-tests: New file.
54791         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54792         * modules/unictype/property-other-grapheme-extend-tests: New file.
54793         * modules/unictype/property-other-id-continue-tests: New file.
54794         * modules/unictype/property-other-id-start-tests: New file.
54795         * modules/unictype/property-other-lowercase-tests: New file.
54796         * modules/unictype/property-other-math-tests: New file.
54797         * modules/unictype/property-other-uppercase-tests: New file.
54798         * modules/unictype/property-paired-punctuation-tests: New file.
54799         * modules/unictype/property-paragraph-separator-tests: New file.
54800         * modules/unictype/property-pattern-syntax-tests: New file.
54801         * modules/unictype/property-pattern-white-space-tests: New file.
54802         * modules/unictype/property-private-use-tests: New file.
54803         * modules/unictype/property-punctuation-tests: New file.
54804         * modules/unictype/property-quotation-mark-tests: New file.
54805         * modules/unictype/property-radical-tests: New file.
54806         * modules/unictype/property-sentence-terminal-tests: New file.
54807         * modules/unictype/property-soft-dotted-tests: New file.
54808         * modules/unictype/property-space-tests: New file.
54809         * modules/unictype/property-terminal-punctuation-tests: New file.
54810         * modules/unictype/property-test-tests: New file.
54811         * modules/unictype/property-titlecase-tests: New file.
54812         * modules/unictype/property-unassigned-code-value-tests: New file.
54813         * modules/unictype/property-unified-ideograph-tests: New file.
54814         * modules/unictype/property-uppercase-tests: New file.
54815         * modules/unictype/property-variation-selector-tests: New file.
54816         * modules/unictype/property-white-space-tests: New file.
54817         * modules/unictype/property-xid-continue-tests: New file.
54818         * modules/unictype/property-xid-start-tests: New file.
54819         * modules/unictype/property-zero-width-tests: New file.
54820         * modules/unictype/scripts-tests: New file.
54821         * modules/unictype/syntax-c-ident-tests: New file.
54822         * modules/unictype/syntax-c-whitespace-tests: New file.
54823         * modules/unictype/syntax-java-ident-tests: New file.
54824         * modules/unictype/syntax-java-whitespace-tests: New file.
54825         * tests/unictype/test-bidi_byname.c: New file.
54826         * tests/unictype/test-bidi_name.c: New file.
54827         * tests/unictype/test-bidi_of.c: New file.
54828         * tests/unictype/test-bidi_test.c: New file.
54829         * tests/unictype/test-block_list.c: New file.
54830         * tests/unictype/test-block_of.c: New file.
54831         * tests/unictype/test-block_test.c: New file.
54832         * tests/unictype/test-categ_and.c: New file.
54833         * tests/unictype/test-categ_and_not.c: New file.
54834         * tests/unictype/test-categ_byname.c: New file.
54835         * tests/unictype/test-categ_name.c: New file.
54836         * tests/unictype/test-categ_none.c: New file.
54837         * tests/unictype/test-categ_of.c: New file.
54838         * tests/unictype/test-categ_or.c: New file.
54839         * tests/unictype/test-categ_test_withtable.c: New file.
54840         * tests/unictype/test-combining.c: New file.
54841         * tests/unictype/test-decdigit.c: New file.
54842         * tests/unictype/test-digit.c: New file.
54843         * tests/unictype/test-mirror.c: New file.
54844         * tests/unictype/test-numeric.c: New file.
54845         * tests/unictype/test-pr_byname.c: New file.
54846         * tests/unictype/test-pr_test.c: New file.
54847         * tests/unictype/test-predicate-part1.h: New file.
54848         * tests/unictype/test-predicate-part2.h: New file.
54849         * tests/unictype/test-scripts.c: New file.
54850         * tests/unictype/test-sy_c_ident.c: New file.
54851         * tests/unictype/test-sy_java_ident.c: New file.
54852
54853         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54854         for Unicode 5.0.0.
54855         * tests/unictype/test-categ_Cc.c: Likewise.
54856         * tests/unictype/test-categ_Cf.c: Likewise.
54857         * tests/unictype/test-categ_Cn.c: Likewise.
54858         * tests/unictype/test-categ_Co.c: Likewise.
54859         * tests/unictype/test-categ_Cs.c: Likewise.
54860         * tests/unictype/test-categ_L.c: Likewise.
54861         * tests/unictype/test-categ_Ll.c: Likewise.
54862         * tests/unictype/test-categ_Lm.c: Likewise.
54863         * tests/unictype/test-categ_Lo.c: Likewise.
54864         * tests/unictype/test-categ_Lt.c: Likewise.
54865         * tests/unictype/test-categ_Lu.c: Likewise.
54866         * tests/unictype/test-categ_M.c: Likewise.
54867         * tests/unictype/test-categ_Mc.c: Likewise.
54868         * tests/unictype/test-categ_Me.c: Likewise.
54869         * tests/unictype/test-categ_Mn.c: Likewise.
54870         * tests/unictype/test-categ_N.c: Likewise.
54871         * tests/unictype/test-categ_Nd.c: Likewise.
54872         * tests/unictype/test-categ_Nl.c: Likewise.
54873         * tests/unictype/test-categ_No.c: Likewise.
54874         * tests/unictype/test-categ_P.c: Likewise.
54875         * tests/unictype/test-categ_Pc.c: Likewise.
54876         * tests/unictype/test-categ_Pd.c: Likewise.
54877         * tests/unictype/test-categ_Pe.c: Likewise.
54878         * tests/unictype/test-categ_Pf.c: Likewise.
54879         * tests/unictype/test-categ_Pi.c: Likewise.
54880         * tests/unictype/test-categ_Po.c: Likewise.
54881         * tests/unictype/test-categ_Ps.c: Likewise.
54882         * tests/unictype/test-categ_S.c: Likewise.
54883         * tests/unictype/test-categ_Sc.c: Likewise.
54884         * tests/unictype/test-categ_Sk.c: Likewise.
54885         * tests/unictype/test-categ_Sm.c: Likewise.
54886         * tests/unictype/test-categ_So.c: Likewise.
54887         * tests/unictype/test-categ_Z.c: Likewise.
54888         * tests/unictype/test-categ_Zl.c: Likewise.
54889         * tests/unictype/test-categ_Zp.c: Likewise.
54890         * tests/unictype/test-categ_Zs.c: Likewise.
54891         * tests/unictype/test-ctype_alnum.c: Likewise.
54892         * tests/unictype/test-ctype_alpha.c: Likewise.
54893         * tests/unictype/test-ctype_blank.c: Likewise.
54894         * tests/unictype/test-ctype_cntrl.c: Likewise.
54895         * tests/unictype/test-ctype_digit.c: Likewise.
54896         * tests/unictype/test-ctype_graph.c: Likewise.
54897         * tests/unictype/test-ctype_lower.c: Likewise.
54898         * tests/unictype/test-ctype_print.c: Likewise.
54899         * tests/unictype/test-ctype_punct.c: Likewise.
54900         * tests/unictype/test-ctype_space.c: Likewise.
54901         * tests/unictype/test-ctype_upper.c: Likewise.
54902         * tests/unictype/test-ctype_xdigit.c: Likewise.
54903         * tests/unictype/test-decdigit.h: Likewise.
54904         * tests/unictype/test-digit.h: Likewise.
54905         * tests/unictype/test-numeric.h: Likewise.
54906         * tests/unictype/test-pr_alphabetic.c: Likewise.
54907         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54908         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54909         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54910         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54911         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54912         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54913         * tests/unictype/test-pr_bidi_control.c: Likewise.
54914         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54915         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54916         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54917         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54918         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54919         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54920         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54921         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54922         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54923         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54924         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54925         * tests/unictype/test-pr_combining.c: Likewise.
54926         * tests/unictype/test-pr_composite.c: Likewise.
54927         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54928         * tests/unictype/test-pr_dash.c: Likewise.
54929         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54930         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54931         * tests/unictype/test-pr_deprecated.c: Likewise.
54932         * tests/unictype/test-pr_diacritic.c: Likewise.
54933         * tests/unictype/test-pr_extender.c: Likewise.
54934         * tests/unictype/test-pr_format_control.c: Likewise.
54935         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54936         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54937         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54938         * tests/unictype/test-pr_hex_digit.c: Likewise.
54939         * tests/unictype/test-pr_hyphen.c: Likewise.
54940         * tests/unictype/test-pr_id_continue.c: Likewise.
54941         * tests/unictype/test-pr_id_start.c: Likewise.
54942         * tests/unictype/test-pr_ideographic.c: Likewise.
54943         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54944         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54945         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54946         * tests/unictype/test-pr_iso_control.c: Likewise.
54947         * tests/unictype/test-pr_join_control.c: Likewise.
54948         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54949         * tests/unictype/test-pr_line_separator.c: Likewise.
54950         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54951         * tests/unictype/test-pr_lowercase.c: Likewise.
54952         * tests/unictype/test-pr_math.c: Likewise.
54953         * tests/unictype/test-pr_non_break.c: Likewise.
54954         * tests/unictype/test-pr_not_a_character.c: Likewise.
54955         * tests/unictype/test-pr_numeric.c: Likewise.
54956         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54957         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54958         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54959         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54960         * tests/unictype/test-pr_other_id_start.c: Likewise.
54961         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54962         * tests/unictype/test-pr_other_math.c: Likewise.
54963         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54964         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54965         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54966         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54967         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54968         * tests/unictype/test-pr_private_use.c: Likewise.
54969         * tests/unictype/test-pr_punctuation.c: Likewise.
54970         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54971         * tests/unictype/test-pr_radical.c: Likewise.
54972         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54973         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54974         * tests/unictype/test-pr_space.c: Likewise.
54975         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54976         * tests/unictype/test-pr_titlecase.c: Likewise.
54977         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54978         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54979         * tests/unictype/test-pr_uppercase.c: Likewise.
54980         * tests/unictype/test-pr_variation_selector.c: Likewise.
54981         * tests/unictype/test-pr_white_space.c: Likewise.
54982         * tests/unictype/test-pr_xid_continue.c: Likewise.
54983         * tests/unictype/test-pr_xid_start.c: Likewise.
54984         * tests/unictype/test-pr_zero_width.c: Likewise.
54985         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54986         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54987
54988 2007-11-12  Bruno Haible  <bruno@clisp.org>
54989
54990         Unicode character classification functions.
54991         * lib/unictype.h: New file.
54992         * modules/unictype/base: New file.
54993         * modules/unictype/category-L: New file.
54994         * modules/unictype/category-Lu: New file.
54995         * modules/unictype/category-Ll: New file.
54996         * modules/unictype/category-Lt: New file.
54997         * modules/unictype/category-Lm: New file.
54998         * modules/unictype/category-Lo: New file.
54999         * modules/unictype/category-M: New file.
55000         * modules/unictype/category-Mn: New file.
55001         * modules/unictype/category-Mc: New file.
55002         * modules/unictype/category-Me: New file.
55003         * modules/unictype/category-N: New file.
55004         * modules/unictype/category-Nd: New file.
55005         * modules/unictype/category-Nl: New file.
55006         * modules/unictype/category-No: New file.
55007         * modules/unictype/category-P: New file.
55008         * modules/unictype/category-Pc: New file.
55009         * modules/unictype/category-Pd: New file.
55010         * modules/unictype/category-Ps: New file.
55011         * modules/unictype/category-Pe: New file.
55012         * modules/unictype/category-Pi: New file.
55013         * modules/unictype/category-Pf: New file.
55014         * modules/unictype/category-Po: New file.
55015         * modules/unictype/category-S: New file.
55016         * modules/unictype/category-Sm: New file.
55017         * modules/unictype/category-Sc: New file.
55018         * modules/unictype/category-Sk: New file.
55019         * modules/unictype/category-So: New file.
55020         * modules/unictype/category-Z: New file.
55021         * modules/unictype/category-Zs: New file.
55022         * modules/unictype/category-Zl: New file.
55023         * modules/unictype/category-Zp: New file.
55024         * modules/unictype/category-C: New file.
55025         * modules/unictype/category-Cc: New file.
55026         * modules/unictype/category-Cf: New file.
55027         * modules/unictype/category-Cs: New file.
55028         * modules/unictype/category-Co: New file.
55029         * modules/unictype/category-Cn: New file.
55030         * modules/unictype/category-or: New file.
55031         * modules/unictype/category-of: New file.
55032         * modules/unictype/category-test: New file.
55033         * modules/unictype/category-test-withtable: New file.
55034         * modules/unictype/category-byname: New file.
55035         * modules/unictype/category-none: New file.
55036         * modules/unictype/category-and: New file.
55037         * modules/unictype/category-and-not: New file.
55038         * modules/unictype/category-name: New file.
55039         * modules/unictype/combining-class: New file.
55040         * modules/unictype/category-all: New file.
55041         * modules/unictype/bidicategory-all: New file.
55042         * modules/unictype/bidicategory-byname: New file.
55043         * modules/unictype/bidicategory-name: New file.
55044         * modules/unictype/bidicategory-of: New file.
55045         * modules/unictype/bidicategory-test: New file.
55046         * modules/unictype/decimal-digit: New file.
55047         * modules/unictype/digit: New file.
55048         * modules/unictype/numeric: New file.
55049         * modules/unictype/mirror: New file.
55050         * modules/unictype/property-white-space: New file.
55051         * modules/unictype/property-alphabetic: New file.
55052         * modules/unictype/property-other-alphabetic: New file.
55053         * modules/unictype/property-not-a-character: New file.
55054         * modules/unictype/property-default-ignorable-code-point: New file.
55055         * modules/unictype/property-other-default-ignorable-code-point: New
55056         file.
55057         * modules/unictype/property-deprecated: New file.
55058         * modules/unictype/property-logical-order-exception: New file.
55059         * modules/unictype/property-variation-selector: New file.
55060         * modules/unictype/property-private-use: New file.
55061         * modules/unictype/property-unassigned-code-value: New file.
55062         * modules/unictype/property-uppercase: New file.
55063         * modules/unictype/property-other-uppercase: New file.
55064         * modules/unictype/property-lowercase: New file.
55065         * modules/unictype/property-other-lowercase: New file.
55066         * modules/unictype/property-titlecase: New file.
55067         * modules/unictype/property-soft-dotted: New file.
55068         * modules/unictype/property-id-start: New file.
55069         * modules/unictype/property-other-id-start: New file.
55070         * modules/unictype/property-id-continue: New file.
55071         * modules/unictype/property-other-id-continue: New file.
55072         * modules/unictype/property-xid-start: New file.
55073         * modules/unictype/property-xid-continue: New file.
55074         * modules/unictype/property-pattern-white-space: New file.
55075         * modules/unictype/property-pattern-syntax: New file.
55076         * modules/unictype/property-join-control: New file.
55077         * modules/unictype/property-grapheme-base: New file.
55078         * modules/unictype/property-grapheme-extend: New file.
55079         * modules/unictype/property-other-grapheme-extend: New file.
55080         * modules/unictype/property-grapheme-link: New file.
55081         * modules/unictype/property-bidi-control: New file.
55082         * modules/unictype/property-bidi-left-to-right: New file.
55083         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55084         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55085         * modules/unictype/property-bidi-european-digit: New file.
55086         * modules/unictype/property-bidi-eur-num-separator: New file.
55087         * modules/unictype/property-bidi-eur-num-terminator: New file.
55088         * modules/unictype/property-bidi-arabic-digit: New file.
55089         * modules/unictype/property-bidi-common-separator: New file.
55090         * modules/unictype/property-bidi-block-separator: New file.
55091         * modules/unictype/property-bidi-segment-separator: New file.
55092         * modules/unictype/property-bidi-whitespace: New file.
55093         * modules/unictype/property-bidi-non-spacing-mark: New file.
55094         * modules/unictype/property-bidi-boundary-neutral: New file.
55095         * modules/unictype/property-bidi-pdf: New file.
55096         * modules/unictype/property-bidi-embedding-or-override: New file.
55097         * modules/unictype/property-bidi-other-neutral: New file.
55098         * modules/unictype/property-hex-digit: New file.
55099         * modules/unictype/property-ascii-hex-digit: New file.
55100         * modules/unictype/property-ideographic: New file.
55101         * modules/unictype/property-unified-ideograph: New file.
55102         * modules/unictype/property-radical: New file.
55103         * modules/unictype/property-ids-binary-operator: New file.
55104         * modules/unictype/property-ids-trinary-operator: New file.
55105         * modules/unictype/property-zero-width: New file.
55106         * modules/unictype/property-space: New file.
55107         * modules/unictype/property-non-break: New file.
55108         * modules/unictype/property-iso-control: New file.
55109         * modules/unictype/property-format-control: New file.
55110         * modules/unictype/property-dash: New file.
55111         * modules/unictype/property-hyphen: New file.
55112         * modules/unictype/property-punctuation: New file.
55113         * modules/unictype/property-line-separator: New file.
55114         * modules/unictype/property-paragraph-separator: New file.
55115         * modules/unictype/property-quotation-mark: New file.
55116         * modules/unictype/property-sentence-terminal: New file.
55117         * modules/unictype/property-terminal-punctuation: New file.
55118         * modules/unictype/property-currency-symbol: New file.
55119         * modules/unictype/property-math: New file.
55120         * modules/unictype/property-other-math: New file.
55121         * modules/unictype/property-paired-punctuation: New file.
55122         * modules/unictype/property-left-of-pair: New file.
55123         * modules/unictype/property-combining: New file.
55124         * modules/unictype/property-composite: New file.
55125         * modules/unictype/property-decimal-digit: New file.
55126         * modules/unictype/property-numeric: New file.
55127         * modules/unictype/property-diacritic: New file.
55128         * modules/unictype/property-extender: New file.
55129         * modules/unictype/property-ignorable-control: New file.
55130         * modules/unictype/property-test: New file.
55131         * modules/unictype/property-byname: New file.
55132         * modules/unictype/property-all: New file.
55133         * modules/unictype/scripts: New file.
55134         * modules/unictype/scripts-all: New file.
55135         * modules/unictype/block-of: New file.
55136         * modules/unictype/block-test: New file.
55137         * modules/unictype/block-list: New file.
55138         * modules/unictype/block-all: New file.
55139         * modules/unictype/syntax-c-whitespace: New file.
55140         * modules/unictype/syntax-java-whitespace: New file.
55141         * modules/unictype/syntax-c-ident: New file.
55142         * modules/unictype/syntax-java-ident: New file.
55143         * modules/unictype/ctype-alnum: New file.
55144         * modules/unictype/ctype-alpha: New file.
55145         * modules/unictype/ctype-cntrl: New file.
55146         * modules/unictype/ctype-digit: New file.
55147         * modules/unictype/ctype-graph: New file.
55148         * modules/unictype/ctype-lower: New file.
55149         * modules/unictype/ctype-print: New file.
55150         * modules/unictype/ctype-punct: New file.
55151         * modules/unictype/ctype-space: New file.
55152         * modules/unictype/ctype-upper: New file.
55153         * modules/unictype/ctype-xdigit: New file.
55154         * modules/unictype/ctype-blank: New file.
55155         * lib/unictype/bidi_byname.c: New file.
55156         * lib/unictype/bidi_name.c: New file.
55157         * lib/unictype/bidi_of.c: New file.
55158         * lib/unictype/bidi_test.c: New file.
55159         * lib/unictype/bitmap.h: New file.
55160         * lib/unictype/block_test.c: New file.
55161         * lib/unictype/blocks.c: New file.
55162         * lib/unictype/categ_C.c: New file.
55163         * lib/unictype/categ_Cc.c: New file.
55164         * lib/unictype/categ_Cf.c: New file.
55165         * lib/unictype/categ_Cn.c: New file.
55166         * lib/unictype/categ_Co.c: New file.
55167         * lib/unictype/categ_Cs.c: New file.
55168         * lib/unictype/categ_L.c: New file.
55169         * lib/unictype/categ_Ll.c: New file.
55170         * lib/unictype/categ_Lm.c: New file.
55171         * lib/unictype/categ_Lo.c: New file.
55172         * lib/unictype/categ_Lt.c: New file.
55173         * lib/unictype/categ_Lu.c: New file.
55174         * lib/unictype/categ_M.c: New file.
55175         * lib/unictype/categ_Mc.c: New file.
55176         * lib/unictype/categ_Me.c: New file.
55177         * lib/unictype/categ_Mn.c: New file.
55178         * lib/unictype/categ_N.c: New file.
55179         * lib/unictype/categ_Nd.c: New file.
55180         * lib/unictype/categ_Nl.c: New file.
55181         * lib/unictype/categ_No.c: New file.
55182         * lib/unictype/categ_P.c: New file.
55183         * lib/unictype/categ_Pc.c: New file.
55184         * lib/unictype/categ_Pd.c: New file.
55185         * lib/unictype/categ_Pe.c: New file.
55186         * lib/unictype/categ_Pf.c: New file.
55187         * lib/unictype/categ_Pi.c: New file.
55188         * lib/unictype/categ_Po.c: New file.
55189         * lib/unictype/categ_Ps.c: New file.
55190         * lib/unictype/categ_S.c: New file.
55191         * lib/unictype/categ_Sc.c: New file.
55192         * lib/unictype/categ_Sk.c: New file.
55193         * lib/unictype/categ_Sm.c: New file.
55194         * lib/unictype/categ_So.c: New file.
55195         * lib/unictype/categ_Z.c: New file.
55196         * lib/unictype/categ_Zl.c: New file.
55197         * lib/unictype/categ_Zp.c: New file.
55198         * lib/unictype/categ_Zs.c: New file.
55199         * lib/unictype/categ_and.c: New file.
55200         * lib/unictype/categ_and_not.c: New file.
55201         * lib/unictype/categ_byname.c: New file.
55202         * lib/unictype/categ_name.c: New file.
55203         * lib/unictype/categ_none.c: New file.
55204         * lib/unictype/categ_of.c: New file.
55205         * lib/unictype/categ_or.c: New file.
55206         * lib/unictype/categ_test.c: New file.
55207         * lib/unictype/combining.c: New file.
55208         * lib/unictype/ctype_alnum.c: New file.
55209         * lib/unictype/ctype_alpha.c: New file.
55210         * lib/unictype/ctype_blank.c: New file.
55211         * lib/unictype/ctype_cntrl.c: New file.
55212         * lib/unictype/ctype_digit.c: New file.
55213         * lib/unictype/ctype_graph.c: New file.
55214         * lib/unictype/ctype_lower.c: New file.
55215         * lib/unictype/ctype_print.c: New file.
55216         * lib/unictype/ctype_punct.c: New file.
55217         * lib/unictype/ctype_space.c: New file.
55218         * lib/unictype/ctype_upper.c: New file.
55219         * lib/unictype/ctype_xdigit.c: New file.
55220         * lib/unictype/decdigit.c: New file.
55221         * lib/unictype/digit.c: New file.
55222         * lib/unictype/identsyntaxmap.h: New file.
55223         * lib/unictype/mirror.c: New file.
55224         * lib/unictype/numeric.c: New file.
55225         * lib/unictype/pr_alphabetic.c: New file.
55226         * lib/unictype/pr_ascii_hex_digit.c: New file.
55227         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55228         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55229         * lib/unictype/pr_bidi_block_separator.c: New file.
55230         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55231         * lib/unictype/pr_bidi_common_separator.c: New file.
55232         * lib/unictype/pr_bidi_control.c: New file.
55233         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55234         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55235         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55236         * lib/unictype/pr_bidi_european_digit.c: New file.
55237         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55238         * lib/unictype/pr_bidi_left_to_right.c: New file.
55239         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55240         * lib/unictype/pr_bidi_other_neutral.c: New file.
55241         * lib/unictype/pr_bidi_pdf.c: New file.
55242         * lib/unictype/pr_bidi_segment_separator.c: New file.
55243         * lib/unictype/pr_bidi_whitespace.c: New file.
55244         * lib/unictype/pr_byname.c: New file.
55245         * lib/unictype/pr_byname.gperf: New file.
55246         * lib/unictype/pr_combining.c: New file.
55247         * lib/unictype/pr_composite.c: New file.
55248         * lib/unictype/pr_currency_symbol.c: New file.
55249         * lib/unictype/pr_dash.c: New file.
55250         * lib/unictype/pr_decimal_digit.c: New file.
55251         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55252         * lib/unictype/pr_deprecated.c: New file.
55253         * lib/unictype/pr_diacritic.c: New file.
55254         * lib/unictype/pr_extender.c: New file.
55255         * lib/unictype/pr_format_control.c: New file.
55256         * lib/unictype/pr_grapheme_base.c: New file.
55257         * lib/unictype/pr_grapheme_extend.c: New file.
55258         * lib/unictype/pr_grapheme_link.c: New file.
55259         * lib/unictype/pr_hex_digit.c: New file.
55260         * lib/unictype/pr_hyphen.c: New file.
55261         * lib/unictype/pr_id_continue.c: New file.
55262         * lib/unictype/pr_id_start.c: New file.
55263         * lib/unictype/pr_ideographic.c: New file.
55264         * lib/unictype/pr_ids_binary_operator.c: New file.
55265         * lib/unictype/pr_ids_trinary_operator.c: New file.
55266         * lib/unictype/pr_ignorable_control.c: New file.
55267         * lib/unictype/pr_iso_control.c: New file.
55268         * lib/unictype/pr_join_control.c: New file.
55269         * lib/unictype/pr_left_of_pair.c: New file.
55270         * lib/unictype/pr_line_separator.c: New file.
55271         * lib/unictype/pr_logical_order_exception.c: New file.
55272         * lib/unictype/pr_lowercase.c: New file.
55273         * lib/unictype/pr_math.c: New file.
55274         * lib/unictype/pr_non_break.c: New file.
55275         * lib/unictype/pr_not_a_character.c: New file.
55276         * lib/unictype/pr_numeric.c: New file.
55277         * lib/unictype/pr_other_alphabetic.c: New file.
55278         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55279         * lib/unictype/pr_other_grapheme_extend.c: New file.
55280         * lib/unictype/pr_other_id_continue.c: New file.
55281         * lib/unictype/pr_other_id_start.c: New file.
55282         * lib/unictype/pr_other_lowercase.c: New file.
55283         * lib/unictype/pr_other_math.c: New file.
55284         * lib/unictype/pr_other_uppercase.c: New file.
55285         * lib/unictype/pr_paired_punctuation.c: New file.
55286         * lib/unictype/pr_paragraph_separator.c: New file.
55287         * lib/unictype/pr_pattern_syntax.c: New file.
55288         * lib/unictype/pr_pattern_white_space.c: New file.
55289         * lib/unictype/pr_private_use.c: New file.
55290         * lib/unictype/pr_punctuation.c: New file.
55291         * lib/unictype/pr_quotation_mark.c: New file.
55292         * lib/unictype/pr_radical.c: New file.
55293         * lib/unictype/pr_sentence_terminal.c: New file.
55294         * lib/unictype/pr_soft_dotted.c: New file.
55295         * lib/unictype/pr_space.c: New file.
55296         * lib/unictype/pr_terminal_punctuation.c: New file.
55297         * lib/unictype/pr_test.c: New file.
55298         * lib/unictype/pr_titlecase.c: New file.
55299         * lib/unictype/pr_unassigned_code_value.c: New file.
55300         * lib/unictype/pr_unified_ideograph.c: New file.
55301         * lib/unictype/pr_uppercase.c: New file.
55302         * lib/unictype/pr_variation_selector.c: New file.
55303         * lib/unictype/pr_white_space.c: New file.
55304         * lib/unictype/pr_xid_continue.c: New file.
55305         * lib/unictype/pr_xid_start.c: New file.
55306         * lib/unictype/pr_zero_width.c: New file.
55307         * lib/unictype/scripts.c: New file.
55308         * lib/unictype/sy_c_ident.c: New file.
55309         * lib/unictype/sy_c_whitespace.c: New file.
55310         * lib/unictype/sy_java_ident.c: New file.
55311         * lib/unictype/sy_java_whitespace.c: New file.
55312
55313         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55314         Unicode 5.0.0.
55315         * lib/unictype/blocks.h: Likewise.
55316         * lib/unictype/categ_C.h: Likewise.
55317         * lib/unictype/categ_Cc.h: Likewise.
55318         * lib/unictype/categ_Cf.h: Likewise.
55319         * lib/unictype/categ_Cn.h: Likewise.
55320         * lib/unictype/categ_Co.h: Likewise.
55321         * lib/unictype/categ_Cs.h: Likewise.
55322         * lib/unictype/categ_L.h: Likewise.
55323         * lib/unictype/categ_Ll.h: Likewise.
55324         * lib/unictype/categ_Lm.h: Likewise.
55325         * lib/unictype/categ_Lo.h: Likewise.
55326         * lib/unictype/categ_Lt.h: Likewise.
55327         * lib/unictype/categ_Lu.h: Likewise.
55328         * lib/unictype/categ_M.h: Likewise.
55329         * lib/unictype/categ_Mc.h: Likewise.
55330         * lib/unictype/categ_Me.h: Likewise.
55331         * lib/unictype/categ_Mn.h: Likewise.
55332         * lib/unictype/categ_N.h: Likewise.
55333         * lib/unictype/categ_Nd.h: Likewise.
55334         * lib/unictype/categ_Nl.h: Likewise.
55335         * lib/unictype/categ_No.h: Likewise.
55336         * lib/unictype/categ_P.h: Likewise.
55337         * lib/unictype/categ_Pc.h: Likewise.
55338         * lib/unictype/categ_Pd.h: Likewise.
55339         * lib/unictype/categ_Pe.h: Likewise.
55340         * lib/unictype/categ_Pf.h: Likewise.
55341         * lib/unictype/categ_Pi.h: Likewise.
55342         * lib/unictype/categ_Po.h: Likewise.
55343         * lib/unictype/categ_Ps.h: Likewise.
55344         * lib/unictype/categ_S.h: Likewise.
55345         * lib/unictype/categ_Sc.h: Likewise.
55346         * lib/unictype/categ_Sk.h: Likewise.
55347         * lib/unictype/categ_Sm.h: Likewise.
55348         * lib/unictype/categ_So.h: Likewise.
55349         * lib/unictype/categ_Z.h: Likewise.
55350         * lib/unictype/categ_Zl.h: Likewise.
55351         * lib/unictype/categ_Zp.h: Likewise.
55352         * lib/unictype/categ_Zs.h: Likewise.
55353         * lib/unictype/categ_of.h: Likewise.
55354         * lib/unictype/combining.h: Likewise.
55355         * lib/unictype/ctype_alnum.h: Likewise.
55356         * lib/unictype/ctype_alpha.h: Likewise.
55357         * lib/unictype/ctype_blank.h: Likewise.
55358         * lib/unictype/ctype_cntrl.h: Likewise.
55359         * lib/unictype/ctype_digit.h: Likewise.
55360         * lib/unictype/ctype_graph.h: Likewise.
55361         * lib/unictype/ctype_lower.h: Likewise.
55362         * lib/unictype/ctype_print.h: Likewise.
55363         * lib/unictype/ctype_punct.h: Likewise.
55364         * lib/unictype/ctype_space.h: Likewise.
55365         * lib/unictype/ctype_upper.h: Likewise.
55366         * lib/unictype/ctype_xdigit.h: Likewise.
55367         * lib/unictype/decdigit.h: Likewise.
55368         * lib/unictype/digit.h: Likewise.
55369         * lib/unictype/mirror.h: Likewise.
55370         * lib/unictype/numeric.h: Likewise.
55371         * lib/unictype/pr_alphabetic.h: Likewise.
55372         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55373         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55374         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55375         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55376         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55377         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55378         * lib/unictype/pr_bidi_control.h: Likewise.
55379         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55380         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55381         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55382         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55383         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55384         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55385         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55386         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55387         * lib/unictype/pr_bidi_pdf.h: Likewise.
55388         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55389         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55390         * lib/unictype/pr_combining.h: Likewise.
55391         * lib/unictype/pr_composite.h: Likewise.
55392         * lib/unictype/pr_currency_symbol.h: Likewise.
55393         * lib/unictype/pr_dash.h: Likewise.
55394         * lib/unictype/pr_decimal_digit.h: Likewise.
55395         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55396         * lib/unictype/pr_deprecated.h: Likewise.
55397         * lib/unictype/pr_diacritic.h: Likewise.
55398         * lib/unictype/pr_extender.h: Likewise.
55399         * lib/unictype/pr_format_control.h: Likewise.
55400         * lib/unictype/pr_grapheme_base.h: Likewise.
55401         * lib/unictype/pr_grapheme_extend.h: Likewise.
55402         * lib/unictype/pr_grapheme_link.h: Likewise.
55403         * lib/unictype/pr_hex_digit.h: Likewise.
55404         * lib/unictype/pr_hyphen.h: Likewise.
55405         * lib/unictype/pr_id_continue.h: Likewise.
55406         * lib/unictype/pr_id_start.h: Likewise.
55407         * lib/unictype/pr_ideographic.h: Likewise.
55408         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55409         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55410         * lib/unictype/pr_ignorable_control.h: Likewise.
55411         * lib/unictype/pr_iso_control.h: Likewise.
55412         * lib/unictype/pr_join_control.h: Likewise.
55413         * lib/unictype/pr_left_of_pair.h: Likewise.
55414         * lib/unictype/pr_line_separator.h: Likewise.
55415         * lib/unictype/pr_logical_order_exception.h: Likewise.
55416         * lib/unictype/pr_lowercase.h: Likewise.
55417         * lib/unictype/pr_math.h: Likewise.
55418         * lib/unictype/pr_non_break.h: Likewise.
55419         * lib/unictype/pr_not_a_character.h: Likewise.
55420         * lib/unictype/pr_numeric.h: Likewise.
55421         * lib/unictype/pr_other_alphabetic.h: Likewise.
55422         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55423         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55424         * lib/unictype/pr_other_id_continue.h: Likewise.
55425         * lib/unictype/pr_other_id_start.h: Likewise.
55426         * lib/unictype/pr_other_lowercase.h: Likewise.
55427         * lib/unictype/pr_other_math.h: Likewise.
55428         * lib/unictype/pr_other_uppercase.h: Likewise.
55429         * lib/unictype/pr_paired_punctuation.h: Likewise.
55430         * lib/unictype/pr_paragraph_separator.h: Likewise.
55431         * lib/unictype/pr_pattern_syntax.h: Likewise.
55432         * lib/unictype/pr_pattern_white_space.h: Likewise.
55433         * lib/unictype/pr_private_use.h: Likewise.
55434         * lib/unictype/pr_punctuation.h: Likewise.
55435         * lib/unictype/pr_quotation_mark.h: Likewise.
55436         * lib/unictype/pr_radical.h: Likewise.
55437         * lib/unictype/pr_sentence_terminal.h: Likewise.
55438         * lib/unictype/pr_soft_dotted.h: Likewise.
55439         * lib/unictype/pr_space.h: Likewise.
55440         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55441         * lib/unictype/pr_titlecase.h: Likewise.
55442         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55443         * lib/unictype/pr_unified_ideograph.h: Likewise.
55444         * lib/unictype/pr_uppercase.h: Likewise.
55445         * lib/unictype/pr_variation_selector.h: Likewise.
55446         * lib/unictype/pr_white_space.h: Likewise.
55447         * lib/unictype/pr_xid_continue.h: Likewise.
55448         * lib/unictype/pr_xid_start.h: Likewise.
55449         * lib/unictype/pr_zero_width.h: Likewise.
55450         * lib/unictype/scripts.h: Likewise.
55451         * lib/unictype/scripts_byname.gperf: Likewise.
55452         * lib/unictype/sy_c_ident.h: Likewise.
55453         * lib/unictype/sy_c_whitespace.h: Likewise.
55454         * lib/unictype/sy_java_ident.h: Likewise.
55455         * lib/unictype/sy_java_whitespace.h: Likewise.
55456
55457         * lib/unictype/Makefile: New file.
55458         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55459         glibc.
55460         * lib/unictype/3level.h: New file, copied from glibc.
55461         * lib/unictype/3levelbit.h: New file.
55462
55463 2007-11-11  Bruno Haible  <bruno@clisp.org>
55464
55465         * modules/gperf: New file.
55466         * modules/iconv_open (Depends-on): Add it.
55467         (Makefile.am): Remove the GPERF definition.
55468
55469 2007-11-11  Bruno Haible  <bruno@clisp.org>
55470
55471         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55472         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55473
55474 2007-11-11  Bruno Haible  <bruno@clisp.org>
55475
55476         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55477         (usage): Remove function.
55478
55479 2007-11-11  Bruno Haible  <bruno@clisp.org>
55480
55481         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55482         gl_FUNC_CEILF_LIBS.
55483         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55484         gl_FUNC_CEIL_LIBS.
55485         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55486         gl_FUNC_CEILL_LIBS.
55487         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55488         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55489         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55490
55491 2007-11-11  Bruno Haible  <bruno@clisp.org>
55492
55493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55494         roundf were declared but do not exist on functions.
55495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55496         roundl were declared but do not exist on functions.
55497         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55498         HAVE_FLOORL_AND_CEILL, respectively.
55499         Needed for Sun C on Solaris 10.
55500
55501 2007-11-11  Bruno Haible  <bruno@clisp.org>
55502
55503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55504         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55505         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55506         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55507         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55508         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55509         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55510         HAVE_DECL_ROUNDF.
55511         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55512         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55514         of HAVE_DECL_ROUND*.
55515         * modules/math (Makefile.am): Update.
55516
55517 2007-11-10  Bruno Haible  <bruno@clisp.org>
55518
55519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55520         ptrdiff_t as m4/intl.m4.
55521
55522 2007-11-10  Jim Meyering  <meyering@redhat.com>
55523
55524         Avoid link failure for the argmatch test.
55525         * tests/test-argmatch.c (usage): Define function to avoid a link
55526         failure: argmatch_die requires a usage function.
55527
55528 2007-11-09  Bruno Haible  <bruno@clisp.org>
55529
55530         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55531         * doc/functions/vsnprintf.texi: Likewise.
55532         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55533         with a size argument < 2.
55534
55535 2007-11-09  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55538         buffer. Fixes an inefficiency introduced on 2007-11-03.
55539
55540 2007-11-09  Bruno Haible  <bruno@clisp.org>
55541
55542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55543         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55544
55545 2007-11-08  Jim Meyering  <meyering@redhat.com>
55546
55547         Change cache variable name prefix "jm_" to "gl_" everywhere.
55548         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55549         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55550         * m4/uptime.m4: s/gl_/jm_/
55551
55552 2007-11-07  Bruno Haible  <bruno@clisp.org>
55553
55554         Update to GNU gettext 0.17.
55555         * m4/intl.m4: Update to GNU gettext 0.17.
55556         * m4/po.m4: Likewise.
55557         * modules/gettext (Files): Remove m4/ulonglong.m4.
55558         (configure.ac): Require gettext infrastructure from version 0.17.
55559
55560 2007-11-06  Bruno Haible  <bruno@clisp.org>
55561
55562         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55563         symbolic values are not defined in a public header.
55564         * lib/freadable.c (freadable) [QNX]: Likewise.
55565         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55566         * lib/freading.c (freading) [QNX]: Likewise.
55567         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55568         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55569         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55570         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55571         Reported by Alain Magloire.
55572
55573         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55574
55575 2007-11-05  Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55578         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55579         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55580         Reported by Eric Blake.
55581
55582 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55583             Bruno Haible  <bruno@clisp.org>
55584
55585         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55586         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55587         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55588         (malloc): Undefine also before including <stdlib.h>.
55589         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55590         Needed on OSF/1 4.0.
55591
55592 2007-11-05  Jim Meyering  <meyering@redhat.com>
55593
55594         git-version-gen: sync from coreutils.
55595         * build-aux/git-version-gen: Add comments.
55596         Change the first '-' to '.' in the snapshot version string,
55597         e.g., 6.9-377-08144 -> 6.9.377-08144
55598         Remove first parameter.
55599         Don't declare a version "-dirty" merely because a time
55600         stamp has changed.
55601
55602 2007-11-04  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/lock.h: Protect all macro definitions containing an 'if'
55605         statement through a "do { ... } while (0)".
55606         * lib/tls.h: Likewise.
55607
55608 2007-11-04  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55611
55612 2007-11-04  Bruno Haible  <bruno@clisp.org>
55613
55614         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55615         * modules/fprintf-posix (Depends-on): Add nocrash.
55616         * modules/snprintf-posix (Depends-on): Likewise.
55617         * modules/sprintf-posix (Depends-on): Likewise.
55618         * modules/vasnprintf-posix (Depends-on): Likewise.
55619         * modules/vasprintf-posix (Depends-on): Likewise.
55620         * modules/vfprintf-posix (Depends-on): Likewise.
55621         * modules/vsnprintf-posix (Depends-on): Likewise.
55622         * modules/vsprintf-posix (Depends-on): Likewise.
55623         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55624         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55625         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55626         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55627         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55628         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55629         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55630
55631 2007-11-04  Bruno Haible  <bruno@clisp.org>
55632
55633         * modules/nocrash: New file.
55634         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55635         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55636
55637 2007-11-04  Bruno Haible  <bruno@clisp.org>
55638
55639         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55640         precision handling.
55641         * tests/test-vasprintf-posix.c (test_function): Likewise.
55642         * tests/test-snprintf-posix.h (test_function): Likewise.
55643         * tests/test-sprintf-posix.h (test_function): Likewise.
55644
55645         Fix *printf behaviour for large precisions on mingw and BeOS.
55646         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55647         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55649         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55651         gl_PRINTF_PRECISION and test its result. Invoke
55652         gl_PREREQ_VASNPRINTF_PRECISION.
55653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55660         * doc/functions/fprintf.texi: Update.
55661         * doc/functions/printf.texi: Update.
55662         * doc/functions/snprintf.texi: Update.
55663         * doc/functions/sprintf.texi: Update.
55664         * doc/functions/vfprintf.texi: Update.
55665         * doc/functions/vprintf.texi: Update.
55666         * doc/functions/vsnprintf.texi: Update.
55667         * doc/functions/vsprintf.texi: Update.
55668
55669 2007-11-04  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55672
55673 2007-11-04  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55676         Reported by Sylvain Beucler <beuc@gnu.org>.
55677
55678 2007-11-03  Bruno Haible  <bruno@clisp.org>
55679
55680         * tests/test-fprintf-posix2.sh: New file.
55681         * tests/test-fprintf-posix2.c: New file.
55682         * modules/fprintf-posix-tests (Files): Add them.
55683         (TESTS): Add test-fprintf-posix2.sh.
55684         (configure.ac): Check for getrlimit and setrlimit.
55685         (check_PROGRAMS): Add test-fprintf-posix2.
55686
55687         * tests/test-printf-posix2.sh: New file.
55688         * tests/test-printf-posix2.c: New file.
55689         * modules/printf-posix-tests (Files): Add them.
55690         (TESTS): Add test-printf-posix2.sh.
55691         (configure.ac): Check for getrlimit and setrlimit.
55692         (check_PROGRAMS): Add test-printf-posix2.
55693
55694         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55695         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55696         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55697         (decode_double): New function, copied from decode_long_double.
55698         (scale10_round_decimal_decoded): New function, extracted from
55699         scale10_round_decimal_long_double.
55700         (scale10_round_decimal_long_double): Use it.
55701         (scale10_round_decimal_double): New function.
55702         (floorlog10): New function.
55703         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55705         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55707         gl_PRINTF_ENOMEM and test its result. Invoke
55708         gl_PREREQ_VASNPRINTF_ENOMEM.
55709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55716         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55717         * modules/snprintf-posix (Depends-on): Likewise.
55718         * modules/sprintf-posix (Depends-on): Likewise.
55719         * modules/vasnprintf-posix (Depends-on): Likewise.
55720         * modules/vasprintf-posix (Depends-on): Likewise.
55721         * modules/vfprintf-posix (Depends-on): Likewise.
55722         * modules/vsnprintf-posix (Depends-on): Likewise.
55723         * modules/vsprintf-posix (Depends-on): Likewise.
55724         * doc/functions/fprintf.texi: Update.
55725         * doc/functions/printf.texi: Update.
55726         * doc/functions/snprintf.texi: Update.
55727         * doc/functions/sprintf.texi: Update.
55728         * doc/functions/vfprintf.texi: Update.
55729         * doc/functions/vprintf.texi: Update.
55730         * doc/functions/vsnprintf.texi: Update.
55731         * doc/functions/vsprintf.texi: Update.
55732
55733 2007-11-03  Bruno Haible  <bruno@clisp.org>
55734
55735         * modules/frexp-nolibm-tests: New file.
55736
55737         * modules/frexp-nolibm: New file.
55738         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55739
55740 2007-11-03  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55743         value is C99 compliant.
55744         Needed for OSF/1 5.1.
55745
55746 2007-11-03  Bruno Haible  <bruno@clisp.org>
55747
55748         Fix out-of-memory handling of vasnprintf.
55749         * lib/printf-parse.c: Include <errno.h>.
55750         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55751         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55752         is already set.
55753
55754 2007-11-02  Eric Blake  <ebb9@byu.net>
55755
55756         Fix tests on cygwin.
55757         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55758
55759 2007-11-01  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55762         warning.
55763         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55764         needed for POSIX compatibility.
55765
55766 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55767
55768         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55769         for compatibility with GNU.
55770
55771 2007-11-01  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55774         (putenv): Renamed from rpl_putenv. Change argument type from
55775         'const char *' to 'char *'.
55776         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55777         of defining putenv in config.h, just set REPLACE_PUTENV.
55778         * modules/putenv (Depends-on): Add stdlib.
55779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55780         (Include): Use <stdlib.h>.
55781         * lib/stdlib.in.h (putenv): New declaration.
55782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55783         REPLACE_PUTENV.
55784         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55785         REPLACE_PUTENV.
55786         Needed for MacOS X 10.5.0.
55787         Reported by Peter O'Gorman <peter@pogma.com>.
55788
55789 2007-11-01  Jim Meyering  <meyering@redhat.com>
55790
55791         Treat an empty date string exactly like "0".
55792         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55793         if the remaining date string (to be parsed) is empty, use "0".
55794         Reported by Mischa Molhoek and discussed in this thread:
55795         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55796
55797 2007-10-31  Bruno Haible  <bruno@clisp.org>
55798
55799         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55800         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55801         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55802         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55803         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55804         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55805
55806 2007-10-31  Bruno Haible  <bruno@clisp.org>
55807
55808         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55809         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55810         (AC_TYPE_LONG_LONG_INT): Use it.
55811         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55812         it as well.
55813         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55814         to m4/longlong.m4.
55815         * modules/stdint (Files): Remove m4/ulonglong.m4.
55816         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55817         m4/ulonglong.m4.
55818         * modules/strtoumax (Files): Likewise.
55819
55820 2007-10-30  Bruno Haible  <bruno@clisp.org>
55821
55822         * modules/xvasprintf-posix: New file.
55823         Suggested by Eric Blake.
55824
55825 2007-10-30  Bruno Haible  <bruno@clisp.org>
55826
55827         * modules/xprintf-posix-tests: New file.
55828         * tests/test-xprintf-posix.sh: New file.
55829         * tests/test-xprintf-posix.c: New file.
55830         * tests/test-xfprintf-posix.c: New file.
55831
55832         * modules/xprintf-posix: New file.
55833
55834 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55835
55836         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55837         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55838         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55839
55840 2007-10-29  Bruno Haible  <bruno@clisp.org>
55841
55842         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55843         contain the special marker '_cv_'.
55844         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55845         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55846         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55847         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55848         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55849         Reported by Ralf Wildenhues.
55850
55851 2007-10-29  Bruno Haible  <bruno@clisp.org>
55852
55853         * gnulib-tool (func_import): When --lgpl is not specified, set
55854         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55855         GPLv3.
55856         Reported by Simon Josefsson.
55857
55858 2007-10-28  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55861         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55862         HAVE_DECL_ISFINITE.
55863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55864         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55865         HAVE_DECL_ISFINITE.
55866
55867 2007-10-28  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55870         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55871
55872 2007-10-28  Bruno Haible  <bruno@clisp.org>
55873
55874         Fix link errors with Sun C 5.0 on Solaris 10.
55875         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55876         function is declared but not present in the compiler's libm.
55877         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55878         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55879         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55880         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55881         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55882         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55883         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55885         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55886         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55887         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55888         HAVE_DECL_FLOORL.
55889
55890 2007-10-28  Bruno Haible  <bruno@clisp.org>
55891
55892         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55893         gl_FUNC_FLOORL. Cache the result.
55894         (gl_FUNC_FLOORL): Use it.
55895         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55896         gl_FUNC_CEILL. Cache the result.
55897         (gl_FUNC_CEILL): Use it.
55898
55899         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55900         gl_FUNC_FLOOR. Cache the result.
55901         (gl_FUNC_FLOOR): Use it.
55902         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55903         gl_FUNC_CEIL. Cache the result.
55904         (gl_FUNC_CEIL): Use it.
55905
55906         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55907         gl_FUNC_FLOORF. Cache the result.
55908         (gl_FUNC_FLOORF): Use it.
55909         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55910         gl_FUNC_CEILF. Cache the result.
55911         (gl_FUNC_CEILF): Use it.
55912
55913 2007-10-28  Bruno Haible  <bruno@clisp.org>
55914
55915         * gnulib-tool: Allow specifying the LGPL version number through
55916         --lgpl=2 or --lgpl=3.
55917         (func_usage): Document --lgpl with argument.
55918         Handle --lgpl=... arguments.
55919         (func_import): Recognize also gl_LGPL calls with an argument. When
55920         --lgpl=2 is used and the module's license is just LGPL, report an
55921         error. Set sed_transform_lib_file according to the lgpl variable. In
55922         the generated files, use --lgpl or gl_LGPL invocations with argument,
55923         if necessary.
55924         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55925         an LGPv2+ license.
55926         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55927         gl_LGPL macro.
55928
55929 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55930             Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55933         (u16_uctomb_aux): Likewise.
55934         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55935         !HAVE_INLINE.
55936         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55937
55938 2007-10-28  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55941         Invoke AM_GETTEXT_OPTION if it exists.
55942         * modules/vasprintf: Likewise.
55943         * modules/verror: Likewise.
55944         * modules/xprintf: Likewise.
55945         * modules/xvasprintf: Likewise.
55946
55947 2007-10-27  Ben Pfaff  <blp@gnu.org>
55948
55949         * lib/math.in.h: Define isfinite macro and prototypes for
55950         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55951         implementations.
55952         * m4/math_h.m4: New substitutions for isfinite module.
55953         * lib/isfinite.c: New file.
55954         * m4/isfinite.m4: New file.
55955         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55956         * modules/isfinite: New file.
55957         * modules/isfinite-tests: New file.
55958         * tests/tests-isfinite.c: New file.
55959         * doc/functions/isfinite.texi: Mention isfinite module.
55960         * MODULES.html.sh: Mention new module.
55961
55962 2007-10-27  Ben Pfaff  <blp@gnu.org>
55963
55964         Ralf Wildenhues reported that Tru64 4.0D declares the round
55965         functions but does not have definitions.
55966         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55967         cannot be found in any library, set the output variable to
55968         "missing" instead of "".
55969         * m4/round.m4: Also use our substitute if we cannot find round in
55970         any library, even if it is declared.
55971         * m4/roundf.m4: Likewise for roundf.
55972         * m4/roundl.m4: Likewise for roundl.
55973         * lib/math.in.h: Undefine roundf, round, roundl before defining
55974         their replacements, to allow for hypothetical systems where these
55975         may be defined as macros but not available in libraries.
55976
55977 2007-10-27  Bruno Haible  <bruno@clisp.org>
55978
55979         * doc/gnulib.texi: Invoke @firstparagraphindent.
55980         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55981         changes in gnulib.
55982         (Source changes): New section.
55983
55984 2007-10-26  Bruno Haible  <bruno@clisp.org>
55985
55986         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55987         borrowed from autoconf.
55988
55989 2007-10-26  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55992         strerror returned the empty string. Needed on HP-UX 11.00.
55993
55994 2007-10-24  Micah Cowan  <micah@cowan.name>
55995
55996         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55997         * build-aux/bootstrap: Remove support for now-unnecessary option,
55998         --cvs-user, and envvars CVS_USER, CVS_RSH.
55999
56000 2007-10-24  Jim Meyering  <meyering@redhat.com>
56001
56002         Avoid diagnostics from sha1sum when there is no cached checksum.
56003         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56004         if the po.s1 file hasn't been created yet.
56005
56006         * build-aux/bootstrap: Sync from coreutils:
56007         2007-10-24  Jim Meyering  <meyering@redhat.com>
56008         Get gnulib from the git repository, not from an obsolete cvs one.
56009         * build-aux/bootstrap: Suggestion from Micah Cowan.
56010         2007-10-04  Jim Meyering  <jim@meyering.net>
56011         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56012         (update_po_files): Work also when there are no .po files in po/.
56013
56014 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56015
56016         * README: Append ".git" to git and cg examples.
56017         Problem reported by Benoit Sigoure.
56018
56019 2007-10-23  Micah Cowan  <micah@cowan.name>
56020
56021         * users.txt: Add wget.
56022
56023 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56024
56025         Fix linking of some unistdio tests on FreeBSD.
56026         * modules/unistdio/u16-vsnprintf-tests
56027         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56028         * modules/unistdio/u16-vsprintf-tests
56029         (test_u16_vsnprintf1_LDADD): Likewise.
56030         * modules/unistdio/u32-vsnprintf-tests
56031         (test_u32_vsnprintf1_LDADD): Likewise.
56032         * modules/unistdio/u32-vsprintf-tests
56033         (test_u32_vsprintf1_LDADD): Likewise.
56034         * modules/unistdio/u8-vsnprintf-tests
56035         (test_u8_vsnprintf1_LDADD): Likewise.
56036         * modules/unistdio/u8-vsprintf-tests
56037         (test_u8_vsprintf1_LDADD): Likewise.
56038         * modules/unistdio/ulc-vsnprintf-tests
56039         (test_ulc_vsnprintf1_LDADD): Likewise.
56040         * modules/unistdio/ulc-vsprintf-tests
56041         (test_ulc_vsprintf1_LDADD): Likewise.
56042
56043         Fix linking of some uniconv tests on FreeBSD.
56044         * modules/uniconv/u16-conv-from-enc-tests
56045         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56046         * modules/uniconv/u16-conv-to-enc-tests
56047         (test_u16_conv_to_enc_LDADD): Likewise.
56048         * modules/uniconv/u16-strconv-from-enc-tests
56049         (test_u16_strconv_from_enc_LDADD): Likewise.
56050         * modules/uniconv/u16-strconv-to-enc-tests
56051         (test_u16_strconv_to_enc_LDADD): Likewise.
56052         * modules/uniconv/u32-conv-from-enc-tests
56053         (test_u32_conv_from_enc_LDADD): Likewise.
56054         * modules/uniconv/u32-conv-to-enc-tests
56055         (test_u32_conv_to_enc_LDADD): Likewise.
56056         * modules/uniconv/u32-strconv-from-enc-tests
56057         (test_u32_strconv_from_enc_LDADD): Likewise.
56058         * modules/uniconv/u32-strconv-to-enc-tests
56059         (test_u32_strconv_to_enc_LDADD): Likewise.
56060         * modules/uniconv/u8-conv-from-enc-tests
56061         (test_u8_conv_from_enc_LDADD): Likewise.
56062         * modules/uniconv/u8-conv-to-enc-tests
56063         (test_u8_conv_to_enc_LDADD): Likewise.
56064         * modules/uniconv/u8-strconv-from-enc-tests
56065         (test_u8_strconv_from_enc_LDADD): Likewise.
56066         * modules/uniconv/u8-strconv-to-enc-tests
56067         (test_u8_strconv_to_enc_LDADD): Likewise.
56068
56069 2007-10-22  Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56072         size.
56073
56074 2007-10-22  Eric Blake  <ebb9@byu.net>
56075
56076         Tweak x*printf documentation.
56077         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56078         variable name and comments.
56079         Suggested by Bruno Haible.
56080
56081 2007-10-22  Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/acl.c (copy_acl): Fix file name in comment.
56084
56085 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         Fix Tru64 problem with stdbool.h.
56088         * lib/stdbool.in.h (false, true):
56089         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56090         Don't declare as an enum in this situation; it runs afoul of Tru64.
56091         Problem reported by Steven M. Schweda in
56092         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56093
56094 2007-10-22  Eric Blake  <ebb9@byu.net>
56095
56096         Also wrap vf?printf.
56097         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56098         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56099         (xvprintf, xvfprintf): New functions.
56100
56101 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56102
56103         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56104         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56105
56106         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56107         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56108
56109 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56110
56111         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56112         by Bruno Haible.
56113
56114 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56115
56116         * lib/getloadavg.c
56117         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56118         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56119
56120         * tests/test-i-ring.c: Work for C89.
56121
56122 2007-10-22  Bruno Haible  <bruno@clisp.org>
56123
56124         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56125         -1u, in preprocessor expression, so that we don't test for the bug
56126         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56128
56129 2007-10-22  Eric Blake  <ebb9@byu.net>
56130
56131         * tests/test-yesno.sh: Silence stderr during test.
56132
56133 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56134
56135         * modules/crypto/gc-camellia: New file.
56136
56137         * m4/gc-camellia.m4: New file.
56138
56139         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56140
56141         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56142
56143 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56144
56145         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56146         --help to stdout.  Reported by sms@antinode.org (Steven
56147         M. Schweda).
56148
56149 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56150
56151         * users.txt: Fix link to libksba.
56152
56153 2007-10-21  Ben Pfaff  <blp@gnu.org>
56154
56155         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56156         round.c roundf implementation that depends on floorf and ceilf to
56157         be tested unconditionally.
56158
56159 2007-10-21  Ben Pfaff  <blp@gnu.org>
56160
56161         * m4/check-libm-func.m4: Removed.
56162         * m4/check-math-lib.m4: New file.
56163         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56164         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56165         definition and lack of AC_LIBOBJ([roundf]).
56166         * m4/roundl.m4: Ditto, and similarly for roundl.
56167         * modules/round: Reference new m4 file.
56168         * modules/roundf: Ditto.
56169         * modules/roundl: Ditto.
56170         * tests/test-round2.c (main): Use ROUND instead of round.
56171         Bug report from Bruno Haible.
56172
56173 2007-10-21  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56176         context.
56177
56178 2007-10-21  Bruno Haible  <bruno@clisp.org>
56179
56180         * tests/test-wcwidth.c (main): Allow negative result for some control
56181         characters.
56182
56183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56184         Needed on OSF/1 5.1.
56185
56186 2007-10-21  Bruno Haible  <bruno@clisp.org>
56187
56188         * tests/test-floorf1.c: Include isnanf.h.
56189         (main): Use isnanf() instead of isnan().
56190         * tests/test-ceilf1.c: Include isnanf.h.
56191         (main): Use isnanf() instead of isnan().
56192         * tests/test-truncf1.c: Include isnanf.h.
56193         (main): Use isnanf() instead of isnan().
56194         * tests/test-roundf1.c: Include isnanf.h.
56195         (main): Use isnanf() instead of isnan().
56196
56197 2007-10-21  Eric Blake  <ebb9@byu.net>
56198
56199         * users.txt: Update URL for m4.
56200
56201 2007-10-21  Bruno Haible  <bruno@clisp.org>
56202
56203         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56204
56205 2007-10-21  Bruno Haible  <bruno@clisp.org>
56206
56207         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56208         Git's management files if the CVS files are not present.
56209
56210 2007-10-20  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56213         gcc-3.4.x.
56214
56215 2007-10-20  Ben Pfaff  <blp@gnu.org>
56216
56217         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56218         implementations.
56219         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56220         * lib/round.c: New file.
56221         * lib/roundf.c: New file.
56222         * lib/roundl.c: New file.
56223         * m4/round.m4: New file.
56224         * m4/roundf.m4: New file.
56225         * m4/roundl.m4: New file.
56226         * m4/check-libm-func-m4: New file.
56227         * modules/math: Replace round, roundf, roundl related @VARS@ in
56228         math.in.h.
56229         * modules/round: New file.
56230         * modules/round-tests: New file.
56231         * modules/roundf: New file.
56232         * modules/roundf-tests: New file.
56233         * modules/roundl: New file.
56234         * modules/roundl-tests: New file.
56235         * tests/test-round1.c: New file.
56236         * tests/test-round2.c: New file.
56237         * tests/test-roundf1.c: New file.
56238         * tests/test-roundf2.c: New file.
56239         * tests/test-roundl.c: New file.
56240         * doc/functions/round.texi: Mention round module.
56241         * doc/functions/roundf.texi: Mention roundf module.
56242         * doc/functions/roundl.texi: Mention roundl module.
56243         * MODULES.html.sh: Mention new modules.
56244         Thanks to Bruno Haible for suggestions.
56245
56246 2007-10-20  Jim Meyering  <meyering@redhat.com>
56247
56248         * lib/xprintf.c: Include <config.h> unconditionally.
56249
56250         Change xprintf's license to GPL.
56251         * modules/xprintf (License): s/LGPL/GPL/, since this module
56252         depends on modules (exit and exitfail) which are GPL.
56253         Suggestion from Bruno Haible.
56254
56255         xprintf fixes.
56256         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56257         Use a clearer diagnostic.
56258         Patch from Bruno Haible.
56259
56260 2007-10-20  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56263         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56265
56266 2007-10-20  Bruno Haible  <bruno@clisp.org>
56267
56268         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56269         precision in the comparison result > x - 1 or similar.
56270         * tests/test-ceilf2.c (correct_result_p): Likewise.
56271         * tests/test-truncf2.c (correct_result_p): Likewise.
56272         * tests/test-trunc2.c (correct_result_p): Likewise.
56273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56274
56275 2007-10-20  Bruno Haible  <bruno@clisp.org>
56276
56277         * modules/ceil: New file.
56278         * m4/ceil.m4: New file.
56279         * doc/functions/ceil.texi: Mention the 'ceil' module.
56280
56281 2007-10-20  Bruno Haible  <bruno@clisp.org>
56282
56283         * modules/floor: New file.
56284         * m4/floor.m4: New file.
56285         * doc/functions/floor.texi: Mention the 'floor' module.
56286
56287 2007-10-20  Bruno Haible  <bruno@clisp.org>
56288
56289         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56290         of %a.
56291         * modules/floorf-tests (Depends-on): Likewise.
56292         * modules/truncf-tests (Depends-on): Likewise.
56293         * modules/trunc-tests (Depends-on): Likewise.
56294         Reported by Ben Pfaff.
56295
56296 2007-10-19  Jim Meyering  <meyering@redhat.com>
56297
56298         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56299         Don't bother testing specific errno values.  Just test ferror.
56300
56301         New module: xprintf
56302         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56303
56304 2007-10-19  Bruno Haible  <bruno@clisp.org>
56305
56306         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56307         syntax.
56308         * modules/javaexec (Makefile.am): Likewise.
56309         * modules/relocatable-prog (Makefile.am): Likewise.
56310         Suggested by Jim Meyering.
56311
56312 2007-10-18  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56315         Reported by Jim Meyering.
56316
56317 2007-10-18  Eric Blake  <ebb9@byu.net>
56318
56319         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56320
56321 2007-10-18  Bruno Haible  <bruno@clisp.org>
56322
56323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56324         the format string into writable memory. Needed in Fortify conditions.
56325
56326 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56327             Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56330         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56331         * modules/trim (Depends-on): Add mbchar.
56332         (configure.ac): Add gl_FUNC_MBRTOWC.
56333         (Makefile.am): Augment lib_SOURCES.
56334
56335 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         Modify glob.c to use fstatat and dirfd, to simplify it.
56338         Suggested by Eric Blake.
56339         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56340         Don't include <stdbool.h>; not used.
56341         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56342         (link_exists_p): Simplify implementation, since we can now assume
56343         dirfd and fstatat.
56344         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56345
56346 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56347
56348         * gnulib-tool (func_get_dependencies): Fix sed script to
56349         match only tests.
56350
56351 2007-10-17  Bruno Haible  <bruno@clisp.org>
56352
56353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56354         allow locale names without encoding suffix.
56355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56357
56358 2007-10-16  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56361         * lib/getgroups.c (getgroups): Likewise.
56362         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56363
56364 2007-10-16  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56367         * modules/malloc-posix (License): Likewise.
56368         * modules/realloc-posix (License): Likewise.
56369         * modules/calloc-posix (License): Likewise.
56370         * modules/intprops (License): Change from GPL to LGPL, with
56371         Paul Eggert's approval.
56372
56373 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         Merge glibc changes into lib/glob.c.
56376
56377         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56378         2007-10-15 04:59:03 UTC.  Here are the changes:
56379
56380         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56381
56382         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56383
56384         * lib/glob.c: Add some branch prediction throughout.
56385
56386         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56387
56388         [BZ #5103]
56389         * lib/glob.c (glob): Recognize patterns starting \/.
56390
56391         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56392
56393         [BZ #3996]
56394         * lib/glob.c (attribute_hidden): Define if not defined.
56395         (glob): Unescape dirname, filename or username when needed and not
56396         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56397         is NULL.  Handle unescaped [ in pattern without closing ].
56398         Don't pass GLOB_CHECK down to recursive glob for directories.
56399         (__glob_pattern_type): New function.
56400         (__glob_pattern_p): Implement using __glob_pattern_type.
56401         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56402         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56403         Remove unreachable code.
56404
56405         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56406
56407         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56408         explain why there are no leaks.
56409
56410         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56411
56412         [BZ #3253]
56413         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56414         time, rather allocate increasingly bigger arrays of pointers, if
56415         possible with alloca, if too large with malloc.
56416
56417 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56420         Problem reported by H.Merijn Brand in
56421         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56422         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56423         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56424
56425 2007-10-15  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56428         with explicit rpl_ prefix.
56429         * lib/fopen.c (fopen): Likewise.
56430         * lib/freopen.c (freopen): Likewise.
56431         * lib/iconv.c (iconv): Likewise.
56432         * lib/iconv_close.c (iconv_close): Likewise.
56433
56434 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56435
56436         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56437
56438 2007-10-15  Bruno Haible  <bruno@clisp.org>
56439
56440         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56441         <stddef.h> instead of <stdlib.h> since we only need NULL.
56442         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56443
56444 2007-10-15  Bruno Haible  <bruno@clisp.org>
56445
56446         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56447         Replace paragraph talking about LIBOBJS.
56448         Reported by Colin Watson <cjwatson@debian.org>.
56449
56450 2007-10-15  Bruno Haible  <bruno@clisp.org>
56451
56452         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56453         <stdlib.h> before using NULL.
56454
56455 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56456
56457         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56458         Reported by Albert Chin <china@thewrittenword.com>.
56459
56460 2007-10-14  Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/iconv_open-utf-tests: New file.
56463         * tests/test-iconv-utf.c: New file.
56464
56465         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56466         * modules/iconv_open-utf: New file.
56467         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56468         (iconv, iconv_close): New declarations.
56469         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56470         be defined.
56471         (iconv_open): Add special handling of conversion between UTF-8 and
56472         UTF-{16,32}{BE,LE}.
56473         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56474         * lib/iconv_close.c: New file.
56475         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56476         gl_FUNC_ICONV_OPEN.
56477         (gl_FUNC_ICONV_OPEN): Use it.
56478         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56479         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56480         and REPLACE_ICONV_UTF.
56481         * modules/iconv_open (Depends-on): Add c-strcase.
56482         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56483         ICONV_CONST.
56484         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56485
56486 2007-10-13  Albert Chin  <china@thewrittenword.com>
56487             Bruno Haible  <bruno@clisp.org>
56488
56489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56490         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56491
56492 2007-10-13  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56495         defined, use the ISO C99 inline semantics.
56496         * lib/argp.h (ARGP_EI): Likewise.
56497
56498 2007-10-13  Bruno Haible  <bruno@clisp.org>
56499
56500         Handle 'inline' change in gcc 4.3.0.
56501         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56502         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56503         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56504         argp_fmtstream_point): Disable 'extern' declaration if the function
56505         definition is going to be provided inline.
56506         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56507         semantics, not the ISO C99 inline semantics.
56508         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56509         'extern' declaration if the function definition is going to be provided
56510         inline.
56511         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56512         the GNU C inline semantics, not the ISO C99 inline semantics. With
56513         GCC 4.2, avoid a warning.
56514
56515 2007-10-13  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/freading.h (freading): Enable the use of __freading for
56518         glibc >= 2.7.
56519         * lib/freading.c (freading): Likewise.
56520
56521 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56524         "warning: C99 inline functions are not supported; using GNU89".
56525
56526 2007-10-12  Bruno Haible  <bruno@clisp.org>
56527
56528         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56529         of 2.
56530         * tests/test-ceilf2.c: New file.
56531         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56532
56533         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56534         * modules/ceilf-tests: Update.
56535
56536 2007-10-12  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56539         of 2.
56540         * tests/test-floorf2.c: New file.
56541         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56542
56543         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56544         * modules/floorf-tests: Update.
56545
56546 2007-10-12  Bruno Haible  <bruno@clisp.org>
56547
56548         * tests/test-trunc2.c: New file.
56549         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56550
56551         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56552         * modules/trunc-tests: Update.
56553
56554 2007-10-12  Bruno Haible  <bruno@clisp.org>
56555
56556         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56557         of 2.
56558         * tests/test-truncf2.c: New file.
56559         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56560
56561         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56562         * modules/truncf-tests: Update.
56563
56564 2007-10-11  Eric Blake  <ebb9@byu.net>
56565
56566         Don't claim strerror is broken on Interix.
56567         * doc/functions/strerror.texi (strerror): Known broken systems are
56568         now Solaris 8, and not Interix.
56569         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56570         Interix on cross-compile.
56571         Reported by Martin Koeppe in
56572         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56573
56574 2007-10-11  Bruno Haible  <bruno@clisp.org>
56575
56576         * modules/i-ring-tests: New file.
56577         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56578         instead of assert.
56579
56580 2007-10-11  Bruno Haible  <bruno@clisp.org>
56581
56582         * modules/filenamecat-tests: New file.
56583         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56584         * lib/filenamecat.c: Remove test code.
56585
56586 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56587
56588         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56589
56590         * lib/strerror.c: Include <string.h> always, to test interface,
56591         and to remove the need for the dummy.
56592         Include intprops.h to compute width instead of doing it ourselves
56593         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56594         (strerror): Define it to return NULL if there's no system strerror.
56595         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56596         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56597         ancient pre-strerror Unix systems well any more.  Saying "unknown
56598         system error" is enough.
56599         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56600         simpler strerror.c implementation.
56601         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56602         Simplify the tests to reflect the simpler strerror implementation.
56603         * modules/strerror (Depends-on): Add intprops.
56604
56605 2007-10-09  Eric Blake  <ebb9@byu.net>
56606
56607         Silence test-fpending.
56608         * modules/fpending-tests (Files): Add wrapper script.
56609         * tests/test-fpending.sh: New file.
56610
56611 2007-10-09  Bruno Haible  <bruno@clisp.org>
56612
56613         * MODULES.html.sh (func_module): Don't create a hyperlink for
56614         function names like 'printf_frexp'.
56615         (Misc): Add crc, memxor.
56616         (Characteristics of floating types): New section.
56617         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56618         isnanf-nolibm, signbit, trunc, truncf, truncl.
56619         (Enhancements for ISO C 99 functions): New subsection Input/output.
56620         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56621         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56622         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56623         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56624         (Enhancements for POSIX:2001 functions): Add chdir-long.
56625         (File system functions): Add areadlink, chdir-safer, read-file.
56626         Remove cycle-check.
56627         (File system as inode set): New section.
56628         (Date and time): Add gethrxtime.
56629         (Multithreading): Add openmp.
56630         (Internationalization functions): Add localename.
56631         (Unicode string functions): Add unistr/u*-mbsnlen.
56632         (Support for maintaining and releasing projects): Add git-version-gen.
56633         (Lone files): Remove directories.
56634
56635 2007-10-08  Ben Pfaff  <blp@gnu.org>
56636
56637         * lib/xmalloca.h: Fix typo in comment.
56638
56639 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56640
56641         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56642         when avoiding problems with integer overflow.  Use a portable test
56643         instead.
56644
56645 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56646
56647         * modules/dummy (License): Change to LGPLv2+.
56648         * modules/float (License): Likewise
56649         * modules/realloc (License): Likewise
56650         * modules/stdlib (License): Likewise
56651
56652 2007-10-07  Bruno Haible  <bruno@clisp.org>
56653
56654         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56655         * floor.c (TWO_MANT_DIG): Likewise.
56656         * ceil.c (TWO_MANT_DIG): Likewise.
56657         Reported by Ben Pfaff.
56658
56659 2007-10-07  Bruno Haible  <bruno@clisp.org>
56660
56661         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56662         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56663         * lib/frexp.c (FUNC): Likewise.
56664         * lib/printf-frexp.h (printf_frexp): Likewise.
56665         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56666         * lib/printf-frexp.c (FUNC): Likewise.
56667         Suggested by Jim Meyering.
56668
56669 2007-10-07  Jim Meyering  <meyering@redhat.com>
56670
56671         Make xnanosleep's integer overflow test more robust.
56672         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56673         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56674
56675 2007-10-07  Bruno Haible  <bruno@clisp.org>
56676
56677         * NEWS: Mention the license change.
56678
56679         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56680         abbreviations in the modules files.
56681
56682         Change copyright notice from GPLv2+ to GPLv3+.
56683         * README: Change copyright notice.
56684         * MODULES.html.sh: Likewise.
56685         * build-aux/bootstrap.conf: Likewise.
56686         * build-aux/config.libpath: Likewise.
56687         * build-aux/csharpcomp.sh.in: Likewise.
56688         * build-aux/csharpexec.sh.in: Likewise.
56689         * build-aux/install-reloc: Likewise.
56690         * build-aux/javacomp.sh.in: Likewise.
56691         * build-aux/javaexec.sh.in: Likewise.
56692         * build-aux/ldd.sh.in: Likewise.
56693         * build-aux/reloc-ldflags: Likewise.
56694         * build-aux/relocatable.sh.in: Likewise.
56695         * build-aux/x-to-1.in: Likewise.
56696         * check-module: Likewise.
56697         * config/srclistvars.sh: Likewise.
56698         * gnulib-tool: Likewise.
56699         * lib/acl-internal.h: Likewise.
56700         * lib/acl.c: Likewise.
56701         * lib/acl.h: Likewise.
56702         * lib/acl_entries.c: Likewise.
56703         * lib/areadlink-with-size.c: Likewise.
56704         * lib/areadlink.c: Likewise.
56705         * lib/areadlink.h: Likewise.
56706         * lib/argmatch.c: Likewise.
56707         * lib/argmatch.h: Likewise.
56708         * lib/argp-ba.c: Likewise.
56709         * lib/argp-eexst.c: Likewise.
56710         * lib/argp-fmtstream.c: Likewise.
56711         * lib/argp-fmtstream.h: Likewise.
56712         * lib/argp-fs-xinl.c: Likewise.
56713         * lib/argp-help.c: Likewise.
56714         * lib/argp-namefrob.h: Likewise.
56715         * lib/argp-parse.c: Likewise.
56716         * lib/argp-pin.c: Likewise.
56717         * lib/argp-pv.c: Likewise.
56718         * lib/argp-pvh.c: Likewise.
56719         * lib/argp-xinl.c: Likewise.
56720         * lib/argp.h: Likewise.
56721         * lib/at-func.c: Likewise.
56722         * lib/atanl.c: Likewise.
56723         * lib/backupfile.c: Likewise.
56724         * lib/backupfile.h: Likewise.
56725         * lib/basename.c: Likewise.
56726         * lib/binary-io.h: Likewise.
56727         * lib/byteswap.in.h: Likewise.
56728         * lib/c-stack.c: Likewise.
56729         * lib/c-stack.h: Likewise.
56730         * lib/c-strcasestr.c: Likewise.
56731         * lib/c-strcasestr.h: Likewise.
56732         * lib/c-strstr.c: Likewise.
56733         * lib/c-strstr.h: Likewise.
56734         * lib/c-strtod.c: Likewise.
56735         * lib/calloc.c: Likewise.
56736         * lib/canon-host.c: Likewise.
56737         * lib/canon-host.h: Likewise.
56738         * lib/canonicalize-lgpl.c: Likewise.
56739         * lib/canonicalize.c: Likewise.
56740         * lib/canonicalize.h: Likewise.
56741         * lib/ceil.c: Likewise.
56742         * lib/ceilf.c: Likewise.
56743         * lib/ceill.c: Likewise.
56744         * lib/chdir-long.c: Likewise.
56745         * lib/chdir-long.h: Likewise.
56746         * lib/chdir-safer.c: Likewise.
56747         * lib/chdir-safer.h: Likewise.
56748         * lib/chown.c: Likewise.
56749         * lib/classpath.c: Likewise.
56750         * lib/classpath.h: Likewise.
56751         * lib/clean-temp.c: Likewise.
56752         * lib/clean-temp.h: Likewise.
56753         * lib/cloexec.c: Likewise.
56754         * lib/close-stream.c: Likewise.
56755         * lib/closein.c: Likewise.
56756         * lib/closein.h: Likewise.
56757         * lib/closeout.c: Likewise.
56758         * lib/closeout.h: Likewise.
56759         * lib/concat-filename.c: Likewise.
56760         * lib/copy-file.c: Likewise.
56761         * lib/copy-file.h: Likewise.
56762         * lib/count-one-bits.h: Likewise.
56763         * lib/crc.c: Likewise.
56764         * lib/crc.h: Likewise.
56765         * lib/creat-safer.c: Likewise.
56766         * lib/csharpcomp.c: Likewise.
56767         * lib/csharpcomp.h: Likewise.
56768         * lib/csharpexec.c: Likewise.
56769         * lib/csharpexec.h: Likewise.
56770         * lib/cycle-check.c: Likewise.
56771         * lib/cycle-check.h: Likewise.
56772         * lib/diacrit.c: Likewise.
56773         * lib/diacrit.h: Likewise.
56774         * lib/diffseq.h: Likewise.
56775         * lib/dirchownmod.c: Likewise.
56776         * lib/dirent.in.h: Likewise.
56777         * lib/dirfd.c: Likewise.
56778         * lib/dirfd.h: Likewise.
56779         * lib/dirname.c: Likewise.
56780         * lib/dirname.h: Likewise.
56781         * lib/dummy.c: Likewise.
56782         * lib/dup-safer.c: Likewise.
56783         * lib/dup2.c: Likewise.
56784         * lib/eealloc.h: Likewise.
56785         * lib/error.c: Likewise.
56786         * lib/error.h: Likewise.
56787         * lib/euidaccess.c: Likewise.
56788         * lib/exclude.c: Likewise.
56789         * lib/exclude.h: Likewise.
56790         * lib/execute.c: Likewise.
56791         * lib/execute.h: Likewise.
56792         * lib/exitfail.c: Likewise.
56793         * lib/exitfail.h: Likewise.
56794         * lib/expl.c: Likewise.
56795         * lib/fatal-signal.c: Likewise.
56796         * lib/fatal-signal.h: Likewise.
56797         * lib/fbufmode.c: Likewise.
56798         * lib/fbufmode.h: Likewise.
56799         * lib/fchdir.c: Likewise.
56800         * lib/fchmodat.c: Likewise.
56801         * lib/fchownat.c: Likewise.
56802         * lib/fcntl--.h: Likewise.
56803         * lib/fcntl-safer.h: Likewise.
56804         * lib/fcntl.in.h: Likewise.
56805         * lib/fd-safer.c: Likewise.
56806         * lib/fflush.c: Likewise.
56807         * lib/file-has-acl.c: Likewise.
56808         * lib/file-set.c: Likewise.
56809         * lib/file-type.c: Likewise.
56810         * lib/file-type.h: Likewise.
56811         * lib/fileblocks.c: Likewise.
56812         * lib/filemode.c: Likewise.
56813         * lib/filemode.h: Likewise.
56814         * lib/filename.h: Likewise.
56815         * lib/filenamecat.c: Likewise.
56816         * lib/filenamecat.h: Likewise.
56817         * lib/findprog.c: Likewise.
56818         * lib/findprog.h: Likewise.
56819         * lib/float.in.h: Likewise.
56820         * lib/floor.c: Likewise.
56821         * lib/floorf.c: Likewise.
56822         * lib/floorl.c: Likewise.
56823         * lib/fopen-safer.c: Likewise.
56824         * lib/fopen.c: Likewise.
56825         * lib/fpending.c: Likewise.
56826         * lib/fpending.h: Likewise.
56827         * lib/fprintf.c: Likewise.
56828         * lib/fprintftime.h: Likewise.
56829         * lib/fpucw.h: Likewise.
56830         * lib/fpurge.c: Likewise.
56831         * lib/fpurge.h: Likewise.
56832         * lib/freadable.c: Likewise.
56833         * lib/freadable.h: Likewise.
56834         * lib/freadahead.c: Likewise.
56835         * lib/freadahead.h: Likewise.
56836         * lib/freading.c: Likewise.
56837         * lib/freading.h: Likewise.
56838         * lib/free.c: Likewise.
56839         * lib/freopen.c: Likewise.
56840         * lib/frexp.c: Likewise.
56841         * lib/frexpl.c: Likewise.
56842         * lib/fseek.c: Likewise.
56843         * lib/fseterr.c: Likewise.
56844         * lib/fseterr.h: Likewise.
56845         * lib/fstatat.c: Likewise.
56846         * lib/fstrcmp.c: Likewise.
56847         * lib/fstrcmp.h: Likewise.
56848         * lib/fsusage.c: Likewise.
56849         * lib/fsusage.h: Likewise.
56850         * lib/ftell.c: Likewise.
56851         * lib/ftello.c: Likewise.
56852         * lib/fts-cycle.c: Likewise.
56853         * lib/fts.c: Likewise.
56854         * lib/fts_.h: Likewise.
56855         * lib/full-read.c: Likewise.
56856         * lib/full-read.h: Likewise.
56857         * lib/full-write.c: Likewise.
56858         * lib/full-write.h: Likewise.
56859         * lib/fwritable.c: Likewise.
56860         * lib/fwritable.h: Likewise.
56861         * lib/fwriteerror.c: Likewise.
56862         * lib/fwriteerror.h: Likewise.
56863         * lib/fwriting.c: Likewise.
56864         * lib/fwriting.h: Likewise.
56865         * lib/gcd.c: Likewise.
56866         * lib/gcd.h: Likewise.
56867         * lib/getcwd.c: Likewise.
56868         * lib/getdate.h: Likewise.
56869         * lib/getdate.y: Likewise.
56870         * lib/getdomainname.c: Likewise.
56871         * lib/getdomainname.h: Likewise.
56872         * lib/getgroups.c: Likewise.
56873         * lib/gethostname.c: Likewise.
56874         * lib/gethrxtime.c: Likewise.
56875         * lib/gethrxtime.h: Likewise.
56876         * lib/getloadavg.c: Likewise.
56877         * lib/getndelim2.c: Likewise.
56878         * lib/getndelim2.h: Likewise.
56879         * lib/getnline.c: Likewise.
56880         * lib/getnline.h: Likewise.
56881         * lib/getopt.c: Likewise.
56882         * lib/getopt.in.h: Likewise.
56883         * lib/getopt1.c: Likewise.
56884         * lib/getopt_int.h: Likewise.
56885         * lib/getpagesize.h: Likewise.
56886         * lib/getsubopt.c: Likewise.
56887         * lib/gettime.c: Likewise.
56888         * lib/getugroups.c: Likewise.
56889         * lib/getugroups.h: Likewise.
56890         * lib/getusershell.c: Likewise.
56891         * lib/gl_anyavltree_list1.h: Likewise.
56892         * lib/gl_anyavltree_list2.h: Likewise.
56893         * lib/gl_anyhash_list1.h: Likewise.
56894         * lib/gl_anyhash_list2.h: Likewise.
56895         * lib/gl_anylinked_list1.h: Likewise.
56896         * lib/gl_anylinked_list2.h: Likewise.
56897         * lib/gl_anyrbtree_list1.h: Likewise.
56898         * lib/gl_anyrbtree_list2.h: Likewise.
56899         * lib/gl_anytree_list1.h: Likewise.
56900         * lib/gl_anytree_list2.h: Likewise.
56901         * lib/gl_anytree_oset.h: Likewise.
56902         * lib/gl_anytreehash_list1.h: Likewise.
56903         * lib/gl_anytreehash_list2.h: Likewise.
56904         * lib/gl_array_list.c: Likewise.
56905         * lib/gl_array_list.h: Likewise.
56906         * lib/gl_array_oset.c: Likewise.
56907         * lib/gl_array_oset.h: Likewise.
56908         * lib/gl_avltree_list.c: Likewise.
56909         * lib/gl_avltree_list.h: Likewise.
56910         * lib/gl_avltree_oset.c: Likewise.
56911         * lib/gl_avltree_oset.h: Likewise.
56912         * lib/gl_avltreehash_list.c: Likewise.
56913         * lib/gl_avltreehash_list.h: Likewise.
56914         * lib/gl_carray_list.c: Likewise.
56915         * lib/gl_carray_list.h: Likewise.
56916         * lib/gl_linked_list.c: Likewise.
56917         * lib/gl_linked_list.h: Likewise.
56918         * lib/gl_linkedhash_list.c: Likewise.
56919         * lib/gl_linkedhash_list.h: Likewise.
56920         * lib/gl_list.c: Likewise.
56921         * lib/gl_list.h: Likewise.
56922         * lib/gl_oset.c: Likewise.
56923         * lib/gl_oset.h: Likewise.
56924         * lib/gl_rbtree_list.c: Likewise.
56925         * lib/gl_rbtree_list.h: Likewise.
56926         * lib/gl_rbtree_oset.c: Likewise.
56927         * lib/gl_rbtree_oset.h: Likewise.
56928         * lib/gl_rbtreehash_list.c: Likewise.
56929         * lib/gl_rbtreehash_list.h: Likewise.
56930         * lib/gl_sublist.c: Likewise.
56931         * lib/gl_sublist.h: Likewise.
56932         * lib/group-member.c: Likewise.
56933         * lib/group-member.h: Likewise.
56934         * lib/hard-locale.c: Likewise.
56935         * lib/hard-locale.h: Likewise.
56936         * lib/hash-pjw.c: Likewise.
56937         * lib/hash-pjw.h: Likewise.
56938         * lib/hash-triple.c: Likewise.
56939         * lib/hash.c: Likewise.
56940         * lib/hash.h: Likewise.
56941         * lib/human.c: Likewise.
56942         * lib/human.h: Likewise.
56943         * lib/i-ring.c: Likewise.
56944         * lib/i-ring.h: Likewise.
56945         * lib/idcache.c: Likewise.
56946         * lib/imaxabs.c: Likewise.
56947         * lib/imaxdiv.c: Likewise.
56948         * lib/inet_pton.c: Likewise.
56949         * lib/inet_pton.h: Likewise.
56950         * lib/intprops.h: Likewise.
56951         * lib/inttostr.c: Likewise.
56952         * lib/inttostr.h: Likewise.
56953         * lib/inttypes.in.h: Likewise.
56954         * lib/isapipe.c: Likewise.
56955         * lib/isdir.c: Likewise.
56956         * lib/isnan.c: Likewise.
56957         * lib/isnan.h: Likewise.
56958         * lib/isnanf.c: Likewise.
56959         * lib/isnanf.h: Likewise.
56960         * lib/isnanl-nolibm.h: Likewise.
56961         * lib/isnanl.c: Likewise.
56962         * lib/isnanl.h: Likewise.
56963         * lib/javacomp.c: Likewise.
56964         * lib/javacomp.h: Likewise.
56965         * lib/javaexec.c: Likewise.
56966         * lib/javaexec.h: Likewise.
56967         * lib/javaversion.c: Likewise.
56968         * lib/javaversion.h: Likewise.
56969         * lib/javaversion.java: Likewise.
56970         * lib/lbrkprop.h: Likewise.
56971         * lib/lchmod.h: Likewise.
56972         * lib/lchown.c: Likewise.
56973         * lib/ldexpl.c: Likewise.
56974         * lib/linebreak.c: Likewise.
56975         * lib/linebreak.h: Likewise.
56976         * lib/linebuffer.c: Likewise.
56977         * lib/linebuffer.h: Likewise.
56978         * lib/locale.in.h: Likewise.
56979         * lib/logl.c: Likewise.
56980         * lib/long-options.c: Likewise.
56981         * lib/long-options.h: Likewise.
56982         * lib/lstat.c: Likewise.
56983         * lib/lstat.h: Likewise.
56984         * lib/math.in.h: Likewise.
56985         * lib/mbchar.c: Likewise.
56986         * lib/mbchar.h: Likewise.
56987         * lib/mbfile.h: Likewise.
56988         * lib/mbiter.h: Likewise.
56989         * lib/mbscasecmp.c: Likewise.
56990         * lib/mbscasestr.c: Likewise.
56991         * lib/mbschr.c: Likewise.
56992         * lib/mbscspn.c: Likewise.
56993         * lib/mbslen.c: Likewise.
56994         * lib/mbsncasecmp.c: Likewise.
56995         * lib/mbsnlen.c: Likewise.
56996         * lib/mbspbrk.c: Likewise.
56997         * lib/mbspcasecmp.c: Likewise.
56998         * lib/mbsrchr.c: Likewise.
56999         * lib/mbssep.c: Likewise.
57000         * lib/mbsspn.c: Likewise.
57001         * lib/mbsstr.c: Likewise.
57002         * lib/mbstok_r.c: Likewise.
57003         * lib/mbswidth.c: Likewise.
57004         * lib/mbswidth.h: Likewise.
57005         * lib/mbuiter.h: Likewise.
57006         * lib/memcasecmp.c: Likewise.
57007         * lib/memcasecmp.h: Likewise.
57008         * lib/memchr.c: Likewise.
57009         * lib/memcmp.c: Likewise.
57010         * lib/memcoll.c: Likewise.
57011         * lib/memcoll.h: Likewise.
57012         * lib/memcpy.c: Likewise.
57013         * lib/memrchr.c: Likewise.
57014         * lib/mkancesdirs.c: Likewise.
57015         * lib/mkdir-p.c: Likewise.
57016         * lib/mkdir-p.h: Likewise.
57017         * lib/mkdir.c: Likewise.
57018         * lib/mkdirat.c: Likewise.
57019         * lib/mkdtemp.c: Likewise.
57020         * lib/mkstemp-safer.c: Likewise.
57021         * lib/mkstemp.c: Likewise.
57022         * lib/modechange.c: Likewise.
57023         * lib/modechange.h: Likewise.
57024         * lib/mountlist.c: Likewise.
57025         * lib/mountlist.h: Likewise.
57026         * lib/mpsort.c: Likewise.
57027         * lib/nanosleep.c: Likewise.
57028         * lib/obstack.c: Likewise.
57029         * lib/obstack.h: Likewise.
57030         * lib/open-safer.c: Likewise.
57031         * lib/open.c: Likewise.
57032         * lib/openat-die.c: Likewise.
57033         * lib/openat-priv.h: Likewise.
57034         * lib/openat-proc.c: Likewise.
57035         * lib/openat.c: Likewise.
57036         * lib/openat.h: Likewise.
57037         * lib/pagealign_alloc.c: Likewise.
57038         * lib/pagealign_alloc.h: Likewise.
57039         * lib/physmem.c: Likewise.
57040         * lib/physmem.h: Likewise.
57041         * lib/pipe-safer.c: Likewise.
57042         * lib/pipe.c: Likewise.
57043         * lib/pipe.h: Likewise.
57044         * lib/posixtm.c: Likewise.
57045         * lib/posixtm.h: Likewise.
57046         * lib/posixver.c: Likewise.
57047         * lib/printf-frexp.c: Likewise.
57048         * lib/printf-frexp.h: Likewise.
57049         * lib/printf-frexpl.c: Likewise.
57050         * lib/printf-frexpl.h: Likewise.
57051         * lib/printf.c: Likewise.
57052         * lib/progname.c: Likewise.
57053         * lib/progname.h: Likewise.
57054         * lib/progreloc.c: Likewise.
57055         * lib/putenv.c: Likewise.
57056         * lib/quote.c: Likewise.
57057         * lib/quote.h: Likewise.
57058         * lib/quotearg.c: Likewise.
57059         * lib/quotearg.h: Likewise.
57060         * lib/raise.c: Likewise.
57061         * lib/readline.c: Likewise.
57062         * lib/readline.h: Likewise.
57063         * lib/readlink.c: Likewise.
57064         * lib/readtokens.c: Likewise.
57065         * lib/readtokens.h: Likewise.
57066         * lib/readtokens0.c: Likewise.
57067         * lib/readtokens0.h: Likewise.
57068         * lib/readutmp.c: Likewise.
57069         * lib/readutmp.h: Likewise.
57070         * lib/realloc.c: Likewise.
57071         * lib/relocwrapper.c: Likewise.
57072         * lib/rename-dest-slash.c: Likewise.
57073         * lib/rename.c: Likewise.
57074         * lib/rmdir.c: Likewise.
57075         * lib/rpmatch.c: Likewise.
57076         * lib/safe-read.c: Likewise.
57077         * lib/safe-read.h: Likewise.
57078         * lib/safe-write.c: Likewise.
57079         * lib/safe-write.h: Likewise.
57080         * lib/same-inode.h: Likewise.
57081         * lib/same.c: Likewise.
57082         * lib/same.h: Likewise.
57083         * lib/save-cwd.c: Likewise.
57084         * lib/save-cwd.h: Likewise.
57085         * lib/savedir.c: Likewise.
57086         * lib/savedir.h: Likewise.
57087         * lib/savewd.c: Likewise.
57088         * lib/savewd.h: Likewise.
57089         * lib/search.in.h: Likewise.
57090         * lib/setenv.c: Likewise.
57091         * lib/setenv.h: Likewise.
57092         * lib/settime.c: Likewise.
57093         * lib/sh-quote.c: Likewise.
57094         * lib/sh-quote.h: Likewise.
57095         * lib/sig2str.c: Likewise.
57096         * lib/sig2str.h: Likewise.
57097         * lib/signal.in.h: Likewise.
57098         * lib/signbitd.c: Likewise.
57099         * lib/signbitf.c: Likewise.
57100         * lib/signbitl.c: Likewise.
57101         * lib/sigprocmask.c: Likewise.
57102         * lib/sincosl.c: Likewise.
57103         * lib/sleep.c: Likewise.
57104         * lib/sprintf.c: Likewise.
57105         * lib/sqrtl.c: Likewise.
57106         * lib/stat-time.h: Likewise.
57107         * lib/stdio--.h: Likewise.
57108         * lib/stdio-safer.h: Likewise.
57109         * lib/stdlib--.h: Likewise.
57110         * lib/stdlib-safer.h: Likewise.
57111         * lib/stdlib.in.h: Likewise.
57112         * lib/stpcpy.c: Likewise.
57113         * lib/stpncpy.c: Likewise.
57114         * lib/strchrnul.c: Likewise.
57115         * lib/strcspn.c: Likewise.
57116         * lib/strerror.c: Likewise.
57117         * lib/strftime.c: Likewise.
57118         * lib/strftime.h: Likewise.
57119         * lib/striconveh.c: Likewise.
57120         * lib/striconveh.h: Likewise.
57121         * lib/striconveha.c: Likewise.
57122         * lib/striconveha.h: Likewise.
57123         * lib/stripslash.c: Likewise.
57124         * lib/strnlen1.c: Likewise.
57125         * lib/strnlen1.h: Likewise.
57126         * lib/strtod.c: Likewise.
57127         * lib/strtoimax.c: Likewise.
57128         * lib/strtok_r.c: Likewise.
57129         * lib/strtol.c: Likewise.
57130         * lib/strtoll.c: Likewise.
57131         * lib/strtoul.c: Likewise.
57132         * lib/strtoull.c: Likewise.
57133         * lib/sysexits.in.h: Likewise.
57134         * lib/tempname.c: Likewise.
57135         * lib/tempname.h: Likewise.
57136         * lib/timespec.h: Likewise.
57137         * lib/tls.c: Likewise.
57138         * lib/tls.h: Likewise.
57139         * lib/tmpdir.c: Likewise.
57140         * lib/tmpdir.h: Likewise.
57141         * lib/tmpfile-safer.c: Likewise.
57142         * lib/tmpfile.c: Likewise.
57143         * lib/trigl.c: Likewise.
57144         * lib/trigl.h: Likewise.
57145         * lib/trim.c: Likewise.
57146         * lib/trim.h: Likewise.
57147         * lib/trunc.c: Likewise.
57148         * lib/truncf.c: Likewise.
57149         * lib/truncl.c: Likewise.
57150         * lib/tsearch.c: Likewise.
57151         * lib/unicodeio.c: Likewise.
57152         * lib/unicodeio.h: Likewise.
57153         * lib/unistd--.h: Likewise.
57154         * lib/unistd-safer.h: Likewise.
57155         * lib/unistdio/ulc-fprintf.c: Likewise.
57156         * lib/unistdio/ulc-vfprintf.c: Likewise.
57157         * lib/unlinkdir.c: Likewise.
57158         * lib/unlinkdir.h: Likewise.
57159         * lib/unlocked-io.h: Likewise.
57160         * lib/unsetenv.c: Likewise.
57161         * lib/userspec.c: Likewise.
57162         * lib/utime.c: Likewise.
57163         * lib/utimecmp.c: Likewise.
57164         * lib/utimecmp.h: Likewise.
57165         * lib/utimens.c: Likewise.
57166         * lib/verify.h: Likewise.
57167         * lib/verror.c: Likewise.
57168         * lib/verror.h: Likewise.
57169         * lib/version-etc-fsf.c: Likewise.
57170         * lib/version-etc.c: Likewise.
57171         * lib/version-etc.h: Likewise.
57172         * lib/vfprintf.c: Likewise.
57173         * lib/vprintf.c: Likewise.
57174         * lib/vsprintf.c: Likewise.
57175         * lib/w32spawn.h: Likewise.
57176         * lib/wait-process.c: Likewise.
57177         * lib/wait-process.h: Likewise.
57178         * lib/wcwidth.c: Likewise.
57179         * lib/write-any-file.c: Likewise.
57180         * lib/xalloc-die.c: Likewise.
57181         * lib/xalloc.h: Likewise.
57182         * lib/xasprintf.c: Likewise.
57183         * lib/xgetcwd.c: Likewise.
57184         * lib/xgetcwd.h: Likewise.
57185         * lib/xgetdomainname.c: Likewise.
57186         * lib/xgetdomainname.h: Likewise.
57187         * lib/xgethostname.c: Likewise.
57188         * lib/xmalloc.c: Likewise.
57189         * lib/xmalloca.c: Likewise.
57190         * lib/xmalloca.h: Likewise.
57191         * lib/xmemcoll.c: Likewise.
57192         * lib/xnanosleep.c: Likewise.
57193         * lib/xreadlink.c: Likewise.
57194         * lib/xreadlink.h: Likewise.
57195         * lib/xsetenv.c: Likewise.
57196         * lib/xsetenv.h: Likewise.
57197         * lib/xstriconv.c: Likewise.
57198         * lib/xstriconv.h: Likewise.
57199         * lib/xstrndup.c: Likewise.
57200         * lib/xstrndup.h: Likewise.
57201         * lib/xstrtod.c: Likewise.
57202         * lib/xstrtod.h: Likewise.
57203         * lib/xstrtol-error.c: Likewise.
57204         * lib/xstrtol.c: Likewise.
57205         * lib/xstrtol.h: Likewise.
57206         * lib/xtime.h: Likewise.
57207         * lib/xvasprintf.c: Likewise.
57208         * lib/xvasprintf.h: Likewise.
57209         * lib/yesno.c: Likewise.
57210         * lib/yesno.h: Likewise.
57211         * posix-modules: Likewise.
57212         * tests/test-alloca-opt.c: Likewise.
57213         * tests/test-arcfour.c: Likewise.
57214         * tests/test-arctwo.c: Likewise.
57215         * tests/test-argmatch.c: Likewise.
57216         * tests/test-argp-2.sh: Likewise.
57217         * tests/test-argp.c: Likewise.
57218         * tests/test-arpa_inet.c: Likewise.
57219         * tests/test-array_list.c: Likewise.
57220         * tests/test-array_oset.c: Likewise.
57221         * tests/test-atexit.c: Likewise.
57222         * tests/test-avltree_list.c: Likewise.
57223         * tests/test-avltree_oset.c: Likewise.
57224         * tests/test-avltreehash_list.c: Likewise.
57225         * tests/test-base64.c: Likewise.
57226         * tests/test-binary-io.c: Likewise.
57227         * tests/test-byteswap.c: Likewise.
57228         * tests/test-c-ctype.c: Likewise.
57229         * tests/test-c-strcasecmp.c: Likewise.
57230         * tests/test-c-strcasestr.c: Likewise.
57231         * tests/test-c-strncasecmp.c: Likewise.
57232         * tests/test-c-strstr.c: Likewise.
57233         * tests/test-canonicalize-lgpl.c: Likewise.
57234         * tests/test-canonicalize.c: Likewise.
57235         * tests/test-carray_list.c: Likewise.
57236         * tests/test-ceilf.c: Likewise.
57237         * tests/test-ceill.c: Likewise.
57238         * tests/test-count-one-bits.c: Likewise.
57239         * tests/test-crc.c: Likewise.
57240         * tests/test-dirname.c: Likewise.
57241         * tests/test-fbufmode.c: Likewise.
57242         * tests/test-fcntl.c: Likewise.
57243         * tests/test-fflush.c: Likewise.
57244         * tests/test-floorf.c: Likewise.
57245         * tests/test-floorl.c: Likewise.
57246         * tests/test-fopen.c: Likewise.
57247         * tests/test-fprintf-posix.c: Likewise.
57248         * tests/test-fprintf-posix.h: Likewise.
57249         * tests/test-fpurge.c: Likewise.
57250         * tests/test-freadable.c: Likewise.
57251         * tests/test-freadahead.c: Likewise.
57252         * tests/test-freading.c: Likewise.
57253         * tests/test-freopen.c: Likewise.
57254         * tests/test-frexp.c: Likewise.
57255         * tests/test-frexpl.c: Likewise.
57256         * tests/test-fseek.c: Likewise.
57257         * tests/test-fseeko.c: Likewise.
57258         * tests/test-fseterr.c: Likewise.
57259         * tests/test-fstrcmp.c: Likewise.
57260         * tests/test-ftell.c: Likewise.
57261         * tests/test-ftello.c: Likewise.
57262         * tests/test-fwritable.c: Likewise.
57263         * tests/test-fwriting.c: Likewise.
57264         * tests/test-getaddrinfo.c: Likewise.
57265         * tests/test-getpass.c: Likewise.
57266         * tests/test-gettimeofday.c: Likewise.
57267         * tests/test-hmac-md5.c: Likewise.
57268         * tests/test-hmac-sha1.c: Likewise.
57269         * tests/test-iconv.c: Likewise.
57270         * tests/test-iconvme.c: Likewise.
57271         * tests/test-inttypes.c: Likewise.
57272         * tests/test-isnan.c: Likewise.
57273         * tests/test-isnanf.c: Likewise.
57274         * tests/test-isnanl-nolibm.c: Likewise.
57275         * tests/test-isnanl.c: Likewise.
57276         * tests/test-isnanl.h: Likewise.
57277         * tests/test-ldexpl.c: Likewise.
57278         * tests/test-linked_list.c: Likewise.
57279         * tests/test-linkedhash_list.c: Likewise.
57280         * tests/test-locale.c: Likewise.
57281         * tests/test-localename.c: Likewise.
57282         * tests/test-lock.c: Likewise.
57283         * tests/test-lseek.c: Likewise.
57284         * tests/test-malloca.c: Likewise.
57285         * tests/test-math.c: Likewise.
57286         * tests/test-mbscasecmp.c: Likewise.
57287         * tests/test-mbscasestr1.c: Likewise.
57288         * tests/test-mbscasestr2.c: Likewise.
57289         * tests/test-mbscasestr3.c: Likewise.
57290         * tests/test-mbscasestr4.c: Likewise.
57291         * tests/test-mbschr.c: Likewise.
57292         * tests/test-mbscspn.c: Likewise.
57293         * tests/test-mbsncasecmp.c: Likewise.
57294         * tests/test-mbspbrk.c: Likewise.
57295         * tests/test-mbspcasecmp.c: Likewise.
57296         * tests/test-mbsrchr.c: Likewise.
57297         * tests/test-mbsspn.c: Likewise.
57298         * tests/test-mbsstr1.c: Likewise.
57299         * tests/test-mbsstr2.c: Likewise.
57300         * tests/test-mbsstr3.c: Likewise.
57301         * tests/test-md5.c: Likewise.
57302         * tests/test-memmem.c: Likewise.
57303         * tests/test-netinet_in.c: Likewise.
57304         * tests/test-open.c: Likewise.
57305         * tests/test-printf-frexp.c: Likewise.
57306         * tests/test-printf-frexpl.c: Likewise.
57307         * tests/test-printf-posix.c: Likewise.
57308         * tests/test-printf-posix.h: Likewise.
57309         * tests/test-rbtree_list.c: Likewise.
57310         * tests/test-rbtree_oset.c: Likewise.
57311         * tests/test-rbtreehash_list.c: Likewise.
57312         * tests/test-read-file.c: Likewise.
57313         * tests/test-rijndael.c: Likewise.
57314         * tests/test-search.c: Likewise.
57315         * tests/test-signbit.c: Likewise.
57316         * tests/test-sleep.c: Likewise.
57317         * tests/test-snprintf-posix.c: Likewise.
57318         * tests/test-snprintf-posix.h: Likewise.
57319         * tests/test-snprintf.c: Likewise.
57320         * tests/test-sprintf-posix.c: Likewise.
57321         * tests/test-sprintf-posix.h: Likewise.
57322         * tests/test-stat-time.c: Likewise.
57323         * tests/test-stdbool.c: Likewise.
57324         * tests/test-stdint.c: Likewise.
57325         * tests/test-stdio.c: Likewise.
57326         * tests/test-stdlib.c: Likewise.
57327         * tests/test-stpncpy.c: Likewise.
57328         * tests/test-strcasestr.c: Likewise.
57329         * tests/test-striconv.c: Likewise.
57330         * tests/test-striconveh.c: Likewise.
57331         * tests/test-striconveha.c: Likewise.
57332         * tests/test-string.c: Likewise.
57333         * tests/test-sys_select.c: Likewise.
57334         * tests/test-sys_socket.c: Likewise.
57335         * tests/test-sys_stat.c: Likewise.
57336         * tests/test-sys_time.c: Likewise.
57337         * tests/test-sysexits.c: Likewise.
57338         * tests/test-time.c: Likewise.
57339         * tests/test-tls.c: Likewise.
57340         * tests/test-trunc.c: Likewise.
57341         * tests/test-truncf.c: Likewise.
57342         * tests/test-truncl.c: Likewise.
57343         * tests/test-unistd.c: Likewise.
57344         * tests/test-vasnprintf-posix.c: Likewise.
57345         * tests/test-vasnprintf-posix2.c: Likewise.
57346         * tests/test-vasnprintf.c: Likewise.
57347         * tests/test-vasprintf-posix.c: Likewise.
57348         * tests/test-vasprintf.c: Likewise.
57349         * tests/test-verify.c: Likewise.
57350         * tests/test-vfprintf-posix.c: Likewise.
57351         * tests/test-vprintf-posix.c: Likewise.
57352         * tests/test-vsnprintf-posix.c: Likewise.
57353         * tests/test-vsnprintf.c: Likewise.
57354         * tests/test-vsprintf-posix.c: Likewise.
57355         * tests/test-wchar.c: Likewise.
57356         * tests/test-wctype.c: Likewise.
57357         * tests/test-wcwidth.c: Likewise.
57358         * tests/test-xstrtol.c: Likewise.
57359         * tests/test-xvasprintf.c: Likewise.
57360         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57361         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57362         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57363         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57364         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57365         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57366         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57367         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57368         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57369         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57370         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57371         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57372         * tests/uniname/test-uninames.c: Likewise.
57373         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57374         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57375         * tests/unistdio/test-u16-printf1.h: Likewise.
57376         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57377         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57378         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57379         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57380         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57381         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57382         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57383         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57384         * tests/unistdio/test-u32-printf1.h: Likewise.
57385         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57386         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57387         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57388         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57389         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57390         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57391         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57392         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57393         * tests/unistdio/test-u8-printf1.h: Likewise.
57394         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57395         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57396         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57397         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57398         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57399         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57400         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57401         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57402         * tests/unistdio/test-ulc-printf1.h: Likewise.
57403         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57404         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57405         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57406         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57407         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57408         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57409         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57410         * tests/uniwidth/test-u16-width.c: Likewise.
57411         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57412         * tests/uniwidth/test-u32-width.c: Likewise.
57413         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57414         * tests/uniwidth/test-u8-width.c: Likewise.
57415         * tests/uniwidth/test-uc_width.c: Likewise.
57416         * config/srclist-update: Likewise.
57417         (fixlicense): Update to GPLv3+.
57418
57419         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57420         * tests/test-tsearch.c: Change copyright notice.
57421
57422         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57423         * lib/c-strcaseeq.h: Change copyright notice.
57424         * lib/streq.h: Likewise.
57425         * lib/uniconv.h: Likewise.
57426         * lib/uniconv/u-conv-from-enc.h: Likewise.
57427         * lib/uniconv/u-conv-to-enc.h: Likewise.
57428         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57429         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57430         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57431         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57432         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57433         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57434         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57435         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57436         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57437         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57438         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57439         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57440         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57441         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57442         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57443         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57444         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57445         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57446         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57447         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57448         * lib/uniname.h: Likewise.
57449         * lib/uniname/uniname.c: Likewise.
57450         * lib/unistdio.h: Likewise.
57451         * lib/unistdio/u-asnprintf.h: Likewise.
57452         * lib/unistdio/u-asprintf.h: Likewise.
57453         * lib/unistdio/u-printf-args.c: Likewise.
57454         * lib/unistdio/u-printf-args.h: Likewise.
57455         * lib/unistdio/u-printf-parse.h: Likewise.
57456         * lib/unistdio/u-snprintf.h: Likewise.
57457         * lib/unistdio/u-sprintf.h: Likewise.
57458         * lib/unistdio/u-vasprintf.h: Likewise.
57459         * lib/unistdio/u-vsnprintf.h: Likewise.
57460         * lib/unistdio/u-vsprintf.h: Likewise.
57461         * lib/unistdio/u16-asnprintf.c: Likewise.
57462         * lib/unistdio/u16-asprintf.c: Likewise.
57463         * lib/unistdio/u16-printf-parse.c: Likewise.
57464         * lib/unistdio/u16-snprintf.c: Likewise.
57465         * lib/unistdio/u16-sprintf.c: Likewise.
57466         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57467         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57468         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57469         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57470         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57471         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57472         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57473         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57474         * lib/unistdio/u16-vasnprintf.c: Likewise.
57475         * lib/unistdio/u16-vasprintf.c: Likewise.
57476         * lib/unistdio/u16-vsnprintf.c: Likewise.
57477         * lib/unistdio/u16-vsprintf.c: Likewise.
57478         * lib/unistdio/u32-asnprintf.c: Likewise.
57479         * lib/unistdio/u32-asprintf.c: Likewise.
57480         * lib/unistdio/u32-printf-parse.c: Likewise.
57481         * lib/unistdio/u32-snprintf.c: Likewise.
57482         * lib/unistdio/u32-sprintf.c: Likewise.
57483         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57484         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57485         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57486         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57487         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57488         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57489         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57490         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57491         * lib/unistdio/u32-vasnprintf.c: Likewise.
57492         * lib/unistdio/u32-vasprintf.c: Likewise.
57493         * lib/unistdio/u32-vsnprintf.c: Likewise.
57494         * lib/unistdio/u32-vsprintf.c: Likewise.
57495         * lib/unistdio/u8-asnprintf.c: Likewise.
57496         * lib/unistdio/u8-asprintf.c: Likewise.
57497         * lib/unistdio/u8-printf-parse.c: Likewise.
57498         * lib/unistdio/u8-snprintf.c: Likewise.
57499         * lib/unistdio/u8-sprintf.c: Likewise.
57500         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57501         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57502         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57503         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57504         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57505         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57506         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57507         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57508         * lib/unistdio/u8-vasnprintf.c: Likewise.
57509         * lib/unistdio/u8-vasprintf.c: Likewise.
57510         * lib/unistdio/u8-vsnprintf.c: Likewise.
57511         * lib/unistdio/u8-vsprintf.c: Likewise.
57512         * lib/unistdio/ulc-asnprintf.c: Likewise.
57513         * lib/unistdio/ulc-asprintf.c: Likewise.
57514         * lib/unistdio/ulc-printf-parse.c: Likewise.
57515         * lib/unistdio/ulc-snprintf.c: Likewise.
57516         * lib/unistdio/ulc-sprintf.c: Likewise.
57517         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57518         * lib/unistdio/ulc-vasprintf.c: Likewise.
57519         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57520         * lib/unistdio/ulc-vsprintf.c: Likewise.
57521         * lib/unistr.h: Likewise.
57522         * lib/unistr/u-cpy-alloc.h: Likewise.
57523         * lib/unistr/u-cpy.h: Likewise.
57524         * lib/unistr/u-endswith.h: Likewise.
57525         * lib/unistr/u-move.h: Likewise.
57526         * lib/unistr/u-set.h: Likewise.
57527         * lib/unistr/u-startswith.h: Likewise.
57528         * lib/unistr/u-stpcpy.h: Likewise.
57529         * lib/unistr/u-stpncpy.h: Likewise.
57530         * lib/unistr/u-strcat.h: Likewise.
57531         * lib/unistr/u-strcpy.h: Likewise.
57532         * lib/unistr/u-strcspn.h: Likewise.
57533         * lib/unistr/u-strdup.h: Likewise.
57534         * lib/unistr/u-strlen.h: Likewise.
57535         * lib/unistr/u-strncat.h: Likewise.
57536         * lib/unistr/u-strncpy.h: Likewise.
57537         * lib/unistr/u-strnlen.h: Likewise.
57538         * lib/unistr/u-strpbrk.h: Likewise.
57539         * lib/unistr/u-strspn.h: Likewise.
57540         * lib/unistr/u-strstr.h: Likewise.
57541         * lib/unistr/u-strtok.h: Likewise.
57542         * lib/unistr/u16-check.c: Likewise.
57543         * lib/unistr/u16-chr.c: Likewise.
57544         * lib/unistr/u16-cmp.c: Likewise.
57545         * lib/unistr/u16-cpy-alloc.c: Likewise.
57546         * lib/unistr/u16-cpy.c: Likewise.
57547         * lib/unistr/u16-endswith.c: Likewise.
57548         * lib/unistr/u16-mblen.c: Likewise.
57549         * lib/unistr/u16-mbsnlen.c: Likewise.
57550         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57551         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57552         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57553         * lib/unistr/u16-mbtouc.c: Likewise.
57554         * lib/unistr/u16-mbtoucr.c: Likewise.
57555         * lib/unistr/u16-move.c: Likewise.
57556         * lib/unistr/u16-next.c: Likewise.
57557         * lib/unistr/u16-prev.c: Likewise.
57558         * lib/unistr/u16-set.c: Likewise.
57559         * lib/unistr/u16-startswith.c: Likewise.
57560         * lib/unistr/u16-stpcpy.c: Likewise.
57561         * lib/unistr/u16-stpncpy.c: Likewise.
57562         * lib/unistr/u16-strcat.c: Likewise.
57563         * lib/unistr/u16-strchr.c: Likewise.
57564         * lib/unistr/u16-strcmp.c: Likewise.
57565         * lib/unistr/u16-strcpy.c: Likewise.
57566         * lib/unistr/u16-strcspn.c: Likewise.
57567         * lib/unistr/u16-strdup.c: Likewise.
57568         * lib/unistr/u16-strlen.c: Likewise.
57569         * lib/unistr/u16-strmblen.c: Likewise.
57570         * lib/unistr/u16-strmbtouc.c: Likewise.
57571         * lib/unistr/u16-strncat.c: Likewise.
57572         * lib/unistr/u16-strncmp.c: Likewise.
57573         * lib/unistr/u16-strncpy.c: Likewise.
57574         * lib/unistr/u16-strnlen.c: Likewise.
57575         * lib/unistr/u16-strpbrk.c: Likewise.
57576         * lib/unistr/u16-strrchr.c: Likewise.
57577         * lib/unistr/u16-strspn.c: Likewise.
57578         * lib/unistr/u16-strstr.c: Likewise.
57579         * lib/unistr/u16-strtok.c: Likewise.
57580         * lib/unistr/u16-to-u32.c: Likewise.
57581         * lib/unistr/u16-to-u8.c: Likewise.
57582         * lib/unistr/u16-uctomb-aux.c: Likewise.
57583         * lib/unistr/u16-uctomb.c: Likewise.
57584         * lib/unistr/u32-check.c: Likewise.
57585         * lib/unistr/u32-chr.c: Likewise.
57586         * lib/unistr/u32-cmp.c: Likewise.
57587         * lib/unistr/u32-cpy-alloc.c: Likewise.
57588         * lib/unistr/u32-cpy.c: Likewise.
57589         * lib/unistr/u32-endswith.c: Likewise.
57590         * lib/unistr/u32-mblen.c: Likewise.
57591         * lib/unistr/u32-mbsnlen.c: Likewise.
57592         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57593         * lib/unistr/u32-mbtouc.c: Likewise.
57594         * lib/unistr/u32-mbtoucr.c: Likewise.
57595         * lib/unistr/u32-move.c: Likewise.
57596         * lib/unistr/u32-next.c: Likewise.
57597         * lib/unistr/u32-prev.c: Likewise.
57598         * lib/unistr/u32-set.c: Likewise.
57599         * lib/unistr/u32-startswith.c: Likewise.
57600         * lib/unistr/u32-stpcpy.c: Likewise.
57601         * lib/unistr/u32-stpncpy.c: Likewise.
57602         * lib/unistr/u32-strcat.c: Likewise.
57603         * lib/unistr/u32-strchr.c: Likewise.
57604         * lib/unistr/u32-strcmp.c: Likewise.
57605         * lib/unistr/u32-strcpy.c: Likewise.
57606         * lib/unistr/u32-strcspn.c: Likewise.
57607         * lib/unistr/u32-strdup.c: Likewise.
57608         * lib/unistr/u32-strlen.c: Likewise.
57609         * lib/unistr/u32-strmblen.c: Likewise.
57610         * lib/unistr/u32-strmbtouc.c: Likewise.
57611         * lib/unistr/u32-strncat.c: Likewise.
57612         * lib/unistr/u32-strncmp.c: Likewise.
57613         * lib/unistr/u32-strncpy.c: Likewise.
57614         * lib/unistr/u32-strnlen.c: Likewise.
57615         * lib/unistr/u32-strpbrk.c: Likewise.
57616         * lib/unistr/u32-strrchr.c: Likewise.
57617         * lib/unistr/u32-strspn.c: Likewise.
57618         * lib/unistr/u32-strstr.c: Likewise.
57619         * lib/unistr/u32-strtok.c: Likewise.
57620         * lib/unistr/u32-to-u16.c: Likewise.
57621         * lib/unistr/u32-to-u8.c: Likewise.
57622         * lib/unistr/u32-uctomb.c: Likewise.
57623         * lib/unistr/u8-check.c: Likewise.
57624         * lib/unistr/u8-chr.c: Likewise.
57625         * lib/unistr/u8-cmp.c: Likewise.
57626         * lib/unistr/u8-cpy-alloc.c: Likewise.
57627         * lib/unistr/u8-cpy.c: Likewise.
57628         * lib/unistr/u8-endswith.c: Likewise.
57629         * lib/unistr/u8-mblen.c: Likewise.
57630         * lib/unistr/u8-mbsnlen.c: Likewise.
57631         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57632         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57633         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57634         * lib/unistr/u8-mbtouc.c: Likewise.
57635         * lib/unistr/u8-mbtoucr.c: Likewise.
57636         * lib/unistr/u8-move.c: Likewise.
57637         * lib/unistr/u8-next.c: Likewise.
57638         * lib/unistr/u8-prev.c: Likewise.
57639         * lib/unistr/u8-set.c: Likewise.
57640         * lib/unistr/u8-startswith.c: Likewise.
57641         * lib/unistr/u8-stpcpy.c: Likewise.
57642         * lib/unistr/u8-stpncpy.c: Likewise.
57643         * lib/unistr/u8-strcat.c: Likewise.
57644         * lib/unistr/u8-strchr.c: Likewise.
57645         * lib/unistr/u8-strcmp.c: Likewise.
57646         * lib/unistr/u8-strcpy.c: Likewise.
57647         * lib/unistr/u8-strcspn.c: Likewise.
57648         * lib/unistr/u8-strdup.c: Likewise.
57649         * lib/unistr/u8-strlen.c: Likewise.
57650         * lib/unistr/u8-strmblen.c: Likewise.
57651         * lib/unistr/u8-strmbtouc.c: Likewise.
57652         * lib/unistr/u8-strncat.c: Likewise.
57653         * lib/unistr/u8-strncmp.c: Likewise.
57654         * lib/unistr/u8-strncpy.c: Likewise.
57655         * lib/unistr/u8-strnlen.c: Likewise.
57656         * lib/unistr/u8-strpbrk.c: Likewise.
57657         * lib/unistr/u8-strrchr.c: Likewise.
57658         * lib/unistr/u8-strspn.c: Likewise.
57659         * lib/unistr/u8-strstr.c: Likewise.
57660         * lib/unistr/u8-strtok.c: Likewise.
57661         * lib/unistr/u8-to-u16.c: Likewise.
57662         * lib/unistr/u8-to-u32.c: Likewise.
57663         * lib/unistr/u8-uctomb-aux.c: Likewise.
57664         * lib/unistr/u8-uctomb.c: Likewise.
57665         * lib/unitypes.h: Likewise.
57666         * lib/uniwidth.h: Likewise.
57667         * lib/uniwidth/cjk.h: Likewise.
57668         * lib/uniwidth/u16-strwidth.c: Likewise.
57669         * lib/uniwidth/u16-width.c: Likewise.
57670         * lib/uniwidth/u32-strwidth.c: Likewise.
57671         * lib/uniwidth/u32-width.c: Likewise.
57672         * lib/uniwidth/u8-strwidth.c: Likewise.
57673         * lib/uniwidth/u8-width.c: Likewise.
57674         * lib/uniwidth/width.c: Likewise.
57675
57676 2007-10-07  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57679         The file is still under LGPL (see modules/inttypes).
57680
57681 2007-10-06  Bruno Haible  <bruno@clisp.org>
57682
57683         * modules/trunc (Dependencies): Add 'extensions'.
57684         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57685         Reported by Ben Pfaff <blp@gnu.org>.
57686
57687 2007-10-06  Bruno Haible  <bruno@clisp.org>
57688
57689         * modules/freopen-tests: New file.
57690         * tests/test-freopen.c: New file.
57691
57692         * modules/fopen-tests: New file.
57693         * tests/test-fopen.c: New file.
57694
57695         * modules/fopen: New file.
57696         * lib/fopen.c: New file.
57697         * m4/fopen.m4: New file.
57698         * modules/freopen: New file.
57699         * lib/freopen.c: New file.
57700         * m4/freopen.m4: New file.
57701         * lib/stdio.in.h (fopen, freopen): New declarations.
57702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57703         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57704         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57705         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57706         * doc/functions/fopen.texi: Mention the 'fopen' module.
57707         * doc/functions/freopen.texi: Mention the 'freopen' module.
57708
57709 2007-10-06  Bruno Haible  <bruno@clisp.org>
57710
57711         * modules/open-tests: New file.
57712         * tests/test-open.c: New file.
57713
57714         * modules/open: New file.
57715         * lib/open.c: New file.
57716         * m4/open.m4: New file.
57717         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57718         lib/open.c does.
57719         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57720         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57721         macros.
57722         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57723         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57724         REPLACE_OPEN.
57725         * doc/functions/open.texi: Mention the 'open' module.
57726
57727 2007-10-04  Bruno Haible  <bruno@clisp.org>
57728
57729         * modules/ceill-tests: New file.
57730         * tests/test-ceill.c: New file.
57731
57732         * modules/ceill: New file.
57733         * lib/ceill.c: Replace entire file.
57734         * m4/ceill.m4: New file.
57735         * lib/math.in.h (ceill): Replace declaration.
57736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57737         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57738         * doc/functions/ceill.texi: Mention the 'ceill' module.
57739         * modules/mathl (Files): Remove lib/ceill.c.
57740         (Depends-on): Add ceill.
57741
57742 2007-10-04  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/ceilf-tests: New file.
57745         * tests/test-ceilf.c: New file.
57746
57747         * modules/ceilf: New file.
57748         * lib/ceil.c: New file.
57749         * lib/ceilf.c: New file.
57750         * m4/ceilf.m4: New file.
57751         * lib/math.in.h (ceilf): New declaration.
57752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57753         HAVE_DECL_CEILF.
57754         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57755         HAVE_DECL_CEILF.
57756         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57757
57758 2007-10-04  Bruno Haible  <bruno@clisp.org>
57759
57760         * modules/floorl-tests: New file.
57761         * tests/test-floorl.c: New file.
57762
57763         * modules/floorl: New file.
57764         * lib/floorl.c: Replace entire file.
57765         * m4/floorl.m4: New file.
57766         * lib/math.in.h (floorl): Replace declaration.
57767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57768         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57769         * doc/functions/floorl.texi: Mention the 'floorl' module.
57770         * modules/mathl (Files): Remove lib/floorl.c.
57771         (Depends-on): Add floorl.
57772
57773 2007-10-04  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/floorf-tests: New file.
57776         * tests/test-floorf.c: New file.
57777
57778         * modules/floorf: New file.
57779         * lib/floor.c: New file.
57780         * lib/floorf.c: New file.
57781         * m4/floorf.m4: New file.
57782         * lib/math.in.h (floorf): New declaration.
57783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57784         HAVE_DECL_FLOORF.
57785         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57786         HAVE_DECL_FLOORF.
57787         * doc/functions/floorf.texi: Mention the 'floorf' module.
57788
57789 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57790             Bruno Haible  <bruno@clisp.org>
57791
57792         Advertise for the Git server instead of the CVS server.
57793         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57794         repository instead of the CVS one.
57795         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57796         about all VCS systems generically.
57797         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57798
57799 2007-10-04  Bruno Haible  <bruno@clisp.org>
57800
57801         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57802         means.
57803         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57804
57805 2007-10-04  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/truncl-tests: New file.
57808         * tests/test-truncl.c: New file.
57809
57810         * modules/truncl: New file.
57811         * lib/truncl.c: New file.
57812         * m4/truncl.m4: New file.
57813         * lib/math.in.h (truncl): New declaration.
57814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57815         HAVE_DECL_TRUNCL.
57816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57817         HAVE_DECL_TRUNCL.
57818         * doc/functions/truncl.texi: Mention the 'truncl' module.
57819
57820 2007-10-04  Bruno Haible  <bruno@clisp.org>
57821
57822         * modules/truncf-tests: New file.
57823         * tests/test-truncf.c: New file.
57824
57825         * modules/truncf: New file.
57826         * lib/trunc.c: Make paramerizable through USE_* macros.
57827         * lib/truncf.c: New file.
57828         * m4/truncf.m4: New file.
57829         * lib/math.in.h (truncf): New declaration.
57830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57831         HAVE_DECL_TRUNCF.
57832         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57833         HAVE_DECL_TRUNCF.
57834         * doc/functions/truncf.texi: Mention the 'truncf' module.
57835
57836 2007-10-03  Bruno Haible  <bruno@clisp.org>
57837
57838         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57839         augmentation also for tests modules.
57840         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57841         * modules/atexit-tests (Makefile.am): Likewise.
57842         * modules/binary-io-tests (Makefile.am): Likewise.
57843         * modules/c-strcase-tests (Makefile.am): Likewise.
57844         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57845         * modules/canonicalize-tests (Makefile.am): Likewise.
57846         * modules/closein-tests (Makefile.am): Likewise.
57847         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57848         * modules/freadahead-tests (Makefile.am): Likewise.
57849         * modules/fseek-tests (Makefile.am): Likewise.
57850         * modules/fseeko-tests (Makefile.am): Likewise.
57851         * modules/ftell-tests (Makefile.am): Likewise.
57852         * modules/ftello-tests (Makefile.am): Likewise.
57853         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57854         * modules/isnanl-tests (Makefile.am): Likewise.
57855         * modules/lseek-tests (Makefile.am): Likewise.
57856         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57857         * modules/mbscasestr-tests (Makefile.am): Likewise.
57858         * modules/mbschr-tests (Makefile.am): Likewise.
57859         * modules/mbscspn-tests (Makefile.am): Likewise.
57860         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57861         * modules/mbspbrk-tests (Makefile.am): Likewise.
57862         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57863         * modules/mbsrchr-tests (Makefile.am): Likewise.
57864         * modules/mbsspn-tests (Makefile.am): Likewise.
57865         * modules/mbsstr-tests (Makefile.am): Likewise.
57866         * modules/printf-posix-tests (Makefile.am): Likewise.
57867         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57868         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57869         * modules/tsearch-tests (Makefile.am): Likewise.
57870         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57871         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57872         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57873         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57874         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57875         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57876         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57877         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57878         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57879         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57880         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57881         * modules/xstrtol-tests (Makefile.am): Likewise.
57882         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57883         * modules/yesno-tests (Makefile.am): Likewise.
57884
57885 2007-10-03  Bruno Haible  <bruno@clisp.org>
57886
57887         * modules/trunc-tests: New file.
57888         * tests/test-trunc.c: New file.
57889
57890         * modules/trunc: New file.
57891         * lib/trunc.c: New file.
57892         * m4/trunc.m4: New file.
57893         * lib/math.in.h (trunc): New declaration.
57894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57895         HAVE_DECL_TRUNC.
57896         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57897         HAVE_DECL_TRUNC.
57898         * doc/functions/trunc.texi: Mention the 'trunc' module.
57899
57900 2007-10-03  Bruno Haible  <bruno@clisp.org>
57901
57902         * tests/test-fpending.c: New file, mostly copied
57903         from coreutils/lib/t-fpending.c.
57904         * modules/fpending-tests: New file.
57905
57906 2007-10-03  Bruno Haible  <bruno@clisp.org>
57907
57908         Port the stdio extensions to QNX (untested).
57909         * lib/fseterr.c (fseterr): Add support for QNX.
57910         * lib/fbufmode.c (fbufmode): Likewise.
57911         * lib/freadable.c (freadable): Likewise.
57912         * lib/fwritable.c (fwritable): Likewise.
57913         * lib/freading.c (freading): Likewise.
57914         * lib/fwriting.c (fwriting): Likewise.
57915         * lib/freadahead.c (freadahed): Likewise.
57916         * lib/fpurge.c (fpurge): Likewise.
57917         * lib/fseeko.c (rpl_fseeko): Likewise.
57918
57919 2007-10-03  Bruno Haible  <bruno@clisp.org>
57920             Jim Meyering  <jim@meyering.net>
57921             Eric Blake  <ebb9@byu.net>
57922
57923         * doc/relocatable.texi: Use @command instead of @program.
57924
57925 2007-10-02  Jim Meyering  <jim@meyering.net>
57926
57927         Perform one more "_.h" -> ".in.h" substitution.
57928         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57929         instead of unistd_.h here, too.
57930
57931 2007-10-01  Bruno Haible  <bruno@clisp.org>
57932
57933         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57934         Needed for the alloca-opt module.
57935
57936 2007-09-30  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57939         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57940         alloca_.h.
57941         * lib/argz.in.h: Renamed from lib/argz_.h.
57942         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57943         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57944         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57945         byteswap_.h.
57946         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57947         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57948         dirent_.h.
57949         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57950         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57951         fcntl_.h.
57952         * lib/float.in.h: Renamed from lib/float_.h.
57953         * modules/float (Files, Makefile.am): Use float.in.h instead of
57954         float_.h.
57955         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57956         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57957         fnmatch_.h.
57958         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57959         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57960         getopt_.h.
57961         * lib/glob.in.h: Renamed from lib/glob_.h.
57962         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57963         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57964         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57965         iconv_.h.
57966         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57967         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57968         inttypes_.h.
57969         * lib/locale.in.h: Renamed from lib/locale_.h.
57970         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57971         locale_.h.
57972         * lib/math.in.h: Renamed from lib/math_.h.
57973         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57974         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57975         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57976         of netinet_in_.h. Add dependency.
57977         * lib/poll.in.h: Renamed from lib/poll_.h.
57978         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57979         * lib/search.in.h: Renamed from lib/search_.h.
57980         * modules/search (Files, Makefile.am): Use search.in.h instead of
57981         search_.h.
57982         * lib/signal.in.h: Renamed from lib/signal_.h.
57983         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57984         _signal.h.
57985         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57986         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57987         stdbool_.h.
57988         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57989         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57990         stdint_.h.
57991         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57992         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57993         stdio_.h.
57994         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57995         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57996         stdlib_.h.
57997         * lib/string.in.h: Renamed from lib/string_.h.
57998         * modules/string (Files, Makefile.am): Use string.in.h instead of
57999         string_.h.
58000         * doc/gnulib-tool.texi (Initial import): Update.
58001         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58002         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58003         of sys_select_.h. Add dependency.
58004         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58005         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58006         of sys_socket_.h.
58007         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58008         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58009         sys_stat_.h.
58010         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58011         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58012         sys_time_.h.
58013         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58014         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58015         sysexits_.h.
58016         * lib/time.in.h: Renamed from lib/time_.h.
58017         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58018         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58019         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58020         unistd_.h.
58021         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58022         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58023         wchar_.h.
58024         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58025         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58026         wctype_.h.
58027         * build-aux/bootstrap (slurp): Update.
58028         * lib/.cppi-disable: Update.
58029
58030 2007-09-30  Bruno Haible  <bruno@clisp.org>
58031
58032         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58033         Needed on BeOS.
58034
58035 2007-09-30  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58038
58039 2007-09-29  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58042
58043 2007-09-29  Bruno Haible  <bruno@clisp.org>
58044
58045         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58046         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58047         * build-aux/install-reloc: Compile also areadlink.c.
58048         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58049
58050 2007-09-29  Bruno Haible  <bruno@clisp.org>
58051
58052         * gnulib-tool (func_emit_initmacro_done): Indentation.
58053
58054 2007-09-29  Bruno Haible  <bruno@clisp.org>
58055
58056         * README: Add CVS checkout update instructions.
58057         Info from Bob Proulx <bob@proulx.com>.
58058
58059 2007-09-28  Eric Blake  <ebb9@byu.net>
58060
58061         Provide move-if-change.
58062         * build-aux/move-if-change: New file, based on best practice
58063         rather than any canonical upstream location.
58064
58065 2007-09-28  Jim Meyering  <jim@meyering.net>
58066
58067         Fix canonicalize loop-detection corner case.
58068         Do not attempt to stat the symlink values stored via seen_triple.
58069         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58070         on linux-2.6.18, (but not 2.6.22).
58071         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58072         triple_compare.  The former compares dev,ino,filename, while the latter
58073         would actually stat dirname(filename) when dev and ino were equal.
58074         * lib/hash-triple.c: Install <string.h>.
58075         (STREQ): Define.
58076         (triple_compare_ino_str): New function.
58077         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58078
58079 2007-09-28  Eric Blake  <ebb9@byu.net>
58080
58081         Enforce that AC_REPLACE_FUNCS files exist.
58082         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58083         override check for typos.
58084
58085         Fix test-closein on Solaris 10.
58086         * tests/test-closein.c (main): Don't assume stdin can be inherited
58087         closed on all systems.
58088         * tests/test-closein.sh: Likewise.
58089         Reported by Piotr Tarnowski.
58090
58091 2007-09-28  Jim Meyering  <jim@meyering.net>
58092
58093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58094
58095 2007-09-27  Jim Meyering  <jim@meyering.net>
58096
58097         canonicalize: Avoid a false-positive cycle failure.
58098         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58099         Sort.  Remove cycle-check.
58100         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58101         not cycle-check.h.
58102         (seen_triple): New function.
58103         (canonicalize_filename_mode): Use it instead of cycle-check.
58104         * tests/test-canonicalize.c: Add a test for this bug.
58105         * tests/test-canonicalize.sh: Set up and run the test.
58106
58107         New module, file-set, from coreutils.
58108         * modules/file-set: Define it.
58109         * lib/file-set.c, lib/file-set.h: Implement.
58110
58111         New module, hash-triple, from coreutils.
58112         * modules/hash-triple: Define it.
58113         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58114
58115 2007-09-25  Eric Blake  <ebb9@byu.net>
58116
58117         Fix strerror on Interix.
58118         * lib/string_.h (strerror): Declare replacement.
58119         * doc/functions/strerror.texi (strerror): Document the Interix
58120         shortcoming.
58121         * modules/string (Makefile.am): Support new hooks.
58122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58123         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58124         gl_FUNC_STRERROR_SEPARATE.
58125         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58126         * lib/strerror.c (rpl_strerror): Provide replacement.
58127         * modules/strerror (Depends-on): Add string.
58128         (configure.ac): Detect use of module.
58129         * tests/test-strerror.c: New file.
58130         * modules/strerror-tests: New test module.
58131         * modules/argp (Depends-on): Add strerror.
58132         * modules/error (Depends-on): Likewise.
58133         Reported by Martin Koeppe.
58134
58135 2007-09-24  Bruno Haible  <bruno@clisp.org>
58136
58137         * README: Update git instructions.
58138
58139 2007-09-24  Eric Blake  <ebb9@byu.net>
58140
58141         Revert fpending breakage from 2007-09-08.
58142         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58143         __fpending.c.
58144
58145 2007-09-24  Jim Meyering  <jim@meyering.net>
58146
58147         filenamecat.c: Add a test.
58148         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58149         showing how the function works when DIR is the empty string.
58150
58151 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58152
58153         * tests/test-canonicalize.sh: Turn on executable bit.
58154
58155 2007-09-19  Eric Blake  <ebb9@byu.net>
58156
58157         * README: Update CVS instructions.
58158
58159 2007-09-18  Bruno Haible  <bruno@clisp.org>
58160
58161         * modules/areadlink: New file.
58162         * lib/areadlink.h (areadlink): New declaration.
58163         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58164
58165 2007-09-17  Jim Meyering  <jim@meyering.net>
58166
58167         * lib/savewd.c (ESTALE) [!defined]: Define.
58168         Reported to be required on Interix by Martin Koeppe.
58169
58170 2007-09-17  Bruno Haible  <bruno@clisp.org>
58171
58172         * gnulib-tool (func_version): Use $version.
58173
58174 2007-09-16  Bruno Haible  <bruno@clisp.org>
58175
58176         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58177         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58178         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58179         Reported by Greg Schafer <gschafer@zip.com.au>.
58180
58181 2007-09-15  Bruno Haible  <bruno@clisp.org>
58182
58183         * gnulib-tool (sed): Try a little harder to make bash understand the
58184         alias.
58185         Reported by Bruce Korb <bruce.korb@gmail.com>.
58186
58187 2007-09-13  Eric Blake  <ebb9@byu.net>
58188
58189         * ChangeLog: Remove conflict markers.
58190
58191 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58192
58193         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58194         Reported by Bruno Haible <bruno@clisp.org>.
58195
58196 2007-09-12  Bruno Haible  <bruno@clisp.org>
58197
58198         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58199         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58200         is not defined.
58201
58202 2007-09-12  Eric Blake  <ebb9@byu.net>
58203
58204         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58205         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58206         Autoconf definition.
58207         * modules/euidaccess (Depends-on): Add extensions, for
58208         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58209         * modules/fnmatch (Depends-on): Likewise.
58210         * modules/getaddrinfo (Depends-on): Likewise.
58211         * modules/getdelim (Depends-on): Likewise.
58212         * modules/getline (Depends-on): Likewise.
58213         * modules/getsubopt (Depends-on): Likewise.
58214         * modules/gettext (Depends-on): Likewise.
58215         * modules/group-member (Depends-on): Likewise.
58216         * modules/mbchar (Depends-on): Likewise.
58217         * modules/memmem (Depends-on): Likewise.
58218         * modules/mempcpy (Depends-on): Likewise.
58219         * modules/memrchr (Depends-on): Likewise.
58220         * modules/pagealign_alloc (Depends-on): Likewise.
58221         * modules/readutmp (Depends-on): Likewise.
58222         * modules/stpcpy (Depends-on): Likewise.
58223         * modules/stpncpy (Depends-on): Likewise.
58224         * modules/strchrnul (Depends-on): Likewise.
58225         * modules/strndup (Depends-on): Likewise.
58226         * modules/strsep (Depends-on): Likewise.
58227         * modules/strverscmp (Depends-on): Likewise.
58228         * modules/vasprintf (Depends-on): Likewise.
58229         * modules/wcwidth (Depends-on): Likewise.
58230         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58231         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58234         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58235         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58236         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58237         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58238         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58239         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58240         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58241         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58242         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58243         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58244         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58245         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58246         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58247         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58249         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58251         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58252         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58253         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58254         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58256         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58257         so that lock.m4 can be used in gettext without extensions module.
58258
58259 2007-09-11  Bruno Haible  <bruno@clisp.org>
58260
58261         * m4/isc-posix.m4: Remove file.
58262         Suggested by Eric Blake.
58263
58264 2007-09-11  Eric Blake  <ebb9@byu.net>
58265
58266         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58267
58268 2007-09-10  Bruno Haible  <bruno@clisp.org>
58269
58270         * posix-modules: Fix typo in error message.
58271         Reported by Matt <mkraai@beckman.com>.
58272
58273 2007-09-09  Bruno Haible  <bruno@clisp.org>
58274
58275         * doc/functions/getdelim.texi: Update list of platforms lacking the
58276         function.
58277         * doc/functions/getline.texi: Likewise.
58278
58279 2007-09-09  Jim Meyering  <jim@meyering.net>
58280
58281         * lib/hash.c (hash_initialize): Detect calloc failure.
58282         Reported by Bruno Haible.
58283
58284 2007-09-09  Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58287         malloc or realloc fails.
58288
58289 2007-09-09  Bruno Haible  <bruno@clisp.org>
58290
58291         * modules/getcwd (Depends-on): Add malloc-posix.
58292         * modules/glob (Depends-on): Likewise.
58293         * modules/putenv (Depends-on): Likewise.
58294         * modules/strdup (Depends-on): Likewise.
58295         * modules/getdelim (Depends-on): Add realloc-posix.
58296         * modules/read-file (Depends-on): Likewise.
58297
58298 2007-09-09  Bruno Haible  <bruno@clisp.org>
58299
58300         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58301         (gl_FUNC_MALLOC_POSIX): Require it.
58302         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58303         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58304         * modules/realloc (Files): Add m4/malloc.m4.
58305         * modules/calloc (Files): Likewise.
58306
58307 2007-09-09  Bruno Haible  <bruno@clisp.org>
58308
58309         * modules/malloc-posix: New file.
58310         * modules/malloc (Depends-on): Add malloc-posix.
58311         * lib/malloc.c: Include errno.h.
58312         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58313         and a POSIX-compatible malloc into a single function. Set ENOMEM
58314         when returning NULL.
58315         * m4/malloc.m4: New file.
58316         * doc/functions/malloc.texi: Mention the malloc-posix module.
58317         * lib/stdlib_.h (malloc): New declaration.
58318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58319         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58320         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58321         and HAVE_MALLOC_POSIX.
58322
58323 2007-09-09  Bruno Haible  <bruno@clisp.org>
58324
58325         * modules/realloc-posix: New file.
58326         * modules/realloc (Depends-on): Add realloc-posix.
58327         * lib/realloc.c: Include errno.h.
58328         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58329         and a POSIX-compatible realloc into a single function. Set ENOMEM
58330         when returning NULL.
58331         * m4/realloc.m4: New file.
58332         * doc/functions/realloc.texi: Mention the realloc-posix module.
58333         * lib/stdlib_.h (realloc): New declaration.
58334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58335         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58336         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58337         and HAVE_REALLOC_POSIX.
58338
58339 2007-09-09  Bruno Haible  <bruno@clisp.org>
58340
58341         * modules/calloc-posix: New file.
58342         * modules/calloc (Depends-on): Add calloc-posix.
58343         * lib/calloc.c: Include errno.h.
58344         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58345         and a POSIX-compatible calloc into a single function. Set ENOMEM
58346         when returning NULL.
58347         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58348         * doc/functions/calloc.texi: Mention the calloc-posix module.
58349         * lib/stdlib_.h (calloc): New declaration.
58350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58351         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58352         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58353         and HAVE_CALLOC_POSIX.
58354
58355 2007-09-09  Bruno Haible  <bruno@clisp.org>
58356
58357         Allow for modules to show an arbitrary notice.
58358         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58359         * gnulib-tool: New option --extract-notice.
58360         (func_usage): Document it.
58361         (sed_extract_prog): Update.
58362         (func_get_notice): New function.
58363         (func_modules_notice): New function.
58364         (func_import, func_create_testdir): Invoke it.
58365         Suggested by Jim Meyering.
58366
58367 2007-09-09  Bruno Haible  <bruno@clisp.org>
58368
58369         * gnulib-tool: New options --verbose, --quiet.
58370         (func_usage): Document them.
58371         (verbose): New variable.
58372         (func_execute_command): New function.
58373         (func_import): Don't show the module list and the file list if
58374         $verbose < 0.
58375         (func_create_testdir): Likewise. Use func_execute_command.
58376         (func_create_megatestdir): Use func_execute_command.
58377
58378 2007-09-08  Bruno Haible  <bruno@clisp.org>
58379
58380         * gnulib-tool (func_import): Prefer rsync over wget when available,
58381         for fetching the PO files.
58382
58383 2007-09-08  Bruno Haible  <bruno@clisp.org>
58384
58385         * posix-modules: New file. Portions copied from gnulib-tool.
58386         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58387
58388 2007-09-08  Jim Meyering  <jim@meyering.net>
58389
58390         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58391         * lib/fpending.h: Rename from __fpending.h.
58392         * lib/fpending.c: Rename from __fpending.c.
58393         Include "fpending.h", not "__fpending.h".
58394         * lib/__fpending.h, lib/__fpending.c: Remove files.
58395         * modules/fpending (Files): Reflect new file names.
58396         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58397
58398 2007-09-08  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/inttypes-h.m4: Remove stub file.
58401
58402 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58403
58404         * doc/headers/stdint.texi: Discuss #include_next issue.
58405
58406 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58409
58410 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58411
58412         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58413         in variable name.
58414
58415 2007-09-03  Jim Meyering  <jim@meyering.net>
58416
58417         New module: git-version-gen.
58418         * modules/git-version-gen: New file.
58419
58420         Import changes from coreutils for bootstrap script.
58421
58422         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58423
58424         bootstrap: uses rsync to download the .po files
58425         * build-aux/bootstrap (po_download_command_format): New global.
58426         (download_po_files): Use rsync.
58427         (update_po_files): Don't remove .po files after download,
58428         so future rsync runs can take advantage of the copies.
58429
58430         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58431
58432         Solve the unnecessary-.po-file-regeneration problem once and for all.
58433         * build-aux/bootstrap (download_po_files): New function, renamed from
58434         get_translations.  Now, downloads, but doesn't update LINGUAS.
58435         (update_po_files): New function.
58436
58437         bootstrap: Ignore more.
58438         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58439         uniwidth to e.g., lib/.gitignore.
58440         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58441
58442         * build-aux/bootstrap: New setting: vc_ignore.
58443         (insert_sorted_if_absent): Create $file if absent.
58444         Adapt to new, possibly empty, list: $vc_ignore.
58445
58446         bootstrap: generate more ignorable names
58447         * build-aux/bootstrap (slurp): When generating ignorable names,
58448         also map .sin to .sed, .gperf to .c, and .y to .c.
58449
58450 2007-09-03  Jim Meyering  <jim@meyering.net>
58451
58452         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58453         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58454
58455 2007-09-02  Bruno Haible  <bruno@clisp.org>
58456
58457         Fix mis-recognition of 'mcs' on QNX 6.
58458         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58459         output contains the string "Mono".
58460         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58461         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58462
58463 2007-09-01  Bruno Haible  <bruno@clisp.org>
58464
58465         Fix collision between uniwidth/* and linebreak modules.
58466         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58467         u32_width): Remove declarations.
58468         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58469         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58470         streq3, streq2, streq1, streq0): Remove functions.
58471         (STREQ): Remove macro.
58472         (is_cjk_encoding): Remove function.
58473         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58474         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58475         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58476         * NEWS: Document the change.
58477
58478 2007-09-01  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/streq.h: Add double-inclusion guard.
58481
58482 2007-09-01  Karl Berry  <karl@gnu.org>
58483
58484         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58485
58486 2007-08-28  Jim Meyering  <jim@meyering.net>
58487
58488         Rename mreadlink_with_size to areadlink_with_size.
58489         * NEWS: Document the change.
58490         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58491         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58492         * lib/mreadlink.h: Rename this to...
58493         * lib/areadlink.h: ...this.
58494         * modules/mreadlink-with-size: Rename this to...
58495         * modules/areadlink-with-size: ...this.
58496         * lib/canonicalize.c: Reflect the renaming.
58497         * modules/canonicalize: Likewise.
58498
58499 2007-08-26  Bruno Haible  <bruno@clisp.org>
58500
58501         * gnulib-tool (func_import): When deciding which files to remove,
58502         consider also dangling symbolic links.
58503         Reported by Eric Blake.
58504
58505 2007-08-26  Bruno Haible  <bruno@clisp.org>
58506
58507         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58508
58509 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58510
58511         * lib/readline.c: Don't include getline.h, the prototype is now
58512         found in stdio.h.
58513
58514 2007-08-23  Jim Meyering  <jim@meyering.net>
58515
58516         Getdelim touchup.
58517         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58518         around the funlockfile call, since funlockfile never sets errno.
58519         Don't set errno upon failed realloc.
58520
58521 2007-08-22  Eric Blake  <ebb9@byu.net>
58522
58523         Getline touchups.
58524         * lib/getdelim.c (getdelim): Revert regression that required *n to
58525         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58526         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58527         getdelim, rather than whether implementation is missing.
58528         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58529         * lib/stdio_.h (getline): Also declare if replacement is
58530         required.
58531         * doc/functions/getdelim.texi: New file.
58532         * doc/functions/getline.texi: Likewise.
58533         * doc/gnulib.texi (Function Substitutes): Add new files.
58534         Reported by Bruno Haible.
58535
58536 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58537
58538         * users.txt: Add Guile.
58539
58540 2007-08-22  Eric Blake  <ebb9@byu.net>
58541
58542         * tests/test-getdelim.c (main): Use remove, not unlink.
58543         * tests/test-getline.c (main): Likewise.
58544
58545         Move getline and getdelim into stdio.h, per POSIX 200x.
58546         * modules/getline (Files): Remove getline.h.
58547         (Depends-on): Add stdio.
58548         (configure.ac): Add module indicator.
58549         * modules/getdelim (Files): Remove getdelim.h.
58550         (Depends-on): Add stdio.
58551         (configure.ac): Add module indicator.
58552         * modules/stdio (Makefile.am): Work with new indicators.
58553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58556         * lib/getdelim.h: Delete.
58557         * lib/getline.h: Delete.
58558         * lib/stdio_.h (getdelim, getline): Declare.
58559         * modules/getdelim-tests: New module.
58560         * modules/getline-tests: Likewise.
58561         * tests/test-getdelim.c: New file.
58562         * tests/test-getline.c: Likewise.
58563         * NEWS: Document the change.
58564         * lib/getline.c: Update choice of header.
58565         * lib/csharpcomp.c: Likewise.
58566         * lib/getpass.c: Likewise.
58567         * lib/javacomp.c: Likewise.
58568         * lib/javaversion.c: Likewise.
58569         * lib/yesno.c: Likewise.
58570         * lib/getdelim.c: Likewise.
58571         (getdelim): Set errno on failure, and avoid memory leak.
58572
58573 2007-08-19  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/closein (Depends-on): Add freadahead.
58576         * lib/closein.c: Include freadahead.h.
58577         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58578         is zero.
58579
58580 2007-08-19  Bruno Haible  <bruno@clisp.org>
58581
58582         * modules/freadahead-tests: New file.
58583         * tests/test-freadahead.sh: New file.
58584         * tests/test-freadahead.c: New file.
58585
58586         * modules/freadahead: New file.
58587         * lib/freadahead.h: New file.
58588         * lib/freadahead.c: New file.
58589         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58590         fbufmode, fpurge, freadable, fwritable.
58591
58592 2007-08-19  Eric Blake  <ebb9@byu.net>
58593
58594         Test yesno in combination with closein.
58595         * lib/yesno.c (yesno): Document use of stdin.
58596         * modules/yesno-tests (Files): New module.
58597         * tests/test-yesno.c (main): New file.
58598         * tests/test-yesno.sh: Likewise.
58599
58600 2007-08-19  Bruno Haible  <bruno@clisp.org>
58601
58602         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58603         * lib/fseeko.c (rpl_fseeko): Likewise.
58604         * lib/fseterr.c (fseterr): Likewise.
58605
58606 2007-08-19  Bruno Haible  <bruno@clisp.org>
58607
58608         * tests/test-lseek.c (main): Disable a test for BeOS.
58609         * doc/functions/lseek.texi: Document the BeOS bug.
58610
58611 2007-08-19  Bruno Haible  <bruno@clisp.org>
58612             Eric Blake  <ebb9@byu.net>
58613
58614         * lib/lseek.c: Include <sys/stat.h>.
58615         (rpl_lseek): Add workaround code also for Unix platforms.
58616         Needed for BeOS.
58617         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58618         * doc/functions/lseek.texi: Document BeOS definiency.
58619
58620 2007-08-18  Bruno Haible  <bruno@clisp.org>
58621
58622         * modules/fstrcmp-tests: New file.
58623         * tests/test-fstrcmp.c: New file.
58624
58625 2007-08-18  Bruno Haible  <bruno@clisp.org>
58626
58627         * modules/fstrcmp: New file, from GNU gettext with modifications.
58628         * lib/fstrcmp.h: New file, from GNU gettext.
58629         * lib/fstrcmp.c: New file, from GNU gettext.
58630         * MODULES.html.sh (String handling): Add fstrcmp.
58631
58632 2007-08-18  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58635         'bool'.
58636         (diag, compareseq): Remove const from the ctxt argument.
58637         (USE_HEURISTIC): Undefine at the end.
58638
58639 2007-08-18  Jim Meyering  <jim@meyering.net>
58640
58641         New file: lib/idcache.h
58642         * NEWS: Mention the addition.
58643         * modules/idcache (Files): Add lib/idcache.h
58644         * lib/idcache.c: Include "idcache.h".
58645         Don't include <sys/types.h>.
58646         Add a FIXME comment.
58647         Move file-scoped "static" declarations to the top.
58648         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58649
58650 2007-08-17  Bruno Haible  <bruno@clisp.org>
58651         and Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * MODULES.html.sh: Add diffseq.
58654         * modules/diffseq: New file.
58655         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58656         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58657
58658 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         Import changes from coreutils for bootstrap script.
58661
58662         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * build-aux/bootstrap (slurp): Work even in environments where
58665         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58666         current code does not slurp files whose names start with ".", and
58667         this looks like it might be a troublesome area.
58668
58669         2007-07-11  Jim Meyering  <jim@meyering.net>
58670
58671         If there's a GPL vN copyright comment, require that N == 3.
58672
58673         2007-07-08  Jim Meyering  <jim@meyering.net>
58674
58675         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58676         * build-aux/bootstrap (mam_template): Move definition out of loop.
58677
58678         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58679
58680         * build-aux/bootstrap (symlink_to_dir): Rename function from
58681         symlink_to_gnulib.  Add a directory parameter.  Update all
58682         callers.
58683         (cp_mark_as_generated): Also check for -- and link to -- files in
58684         gl/.
58685
58686         2007-07-08  Jim Meyering  <jim@meyering.net>
58687
58688         Adapt to deeper hierarchy in gnulib.
58689         * build-aux/bootstrap (symlink_to_dir): If the destination
58690         directory doesn't exist, create it. This is required at least for
58691         "lib/uniwidth/cjk.h".
58692
58693         2007-05-15  Jim Meyering  <jim@meyering.net>
58694
58695         * build-aux/bootstrap: Now that generated Makefile.am files
58696         are no longer under version control, they must be created at
58697         bootstrap time.
58698
58699 2007-08-14  Ben Pfaff  <blp@gnu.org>
58700
58701         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58702
58703 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58706         given the changes below.
58707         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58708         even on hosts that have padding bits beyond the supported 64.
58709
58710 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58711
58712         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58713         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58714         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58715         depends on it.
58716         (xstrtol_error): Remove.
58717         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58718         but with a different signature.
58719         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58720         * lib/xstrtol-error.c: Include exitfail.h.
58721         (xstrtol_fatal): New function, with a different signature from the
58722         old xstrtol_error, so that the caller need not worry about passing
58723         in an exit status, or about storage management of the option argument.
58724         (xstrtol_error): Now a static function.  Redo signature to
58725         implement xstrtol_fatal.  Output the correct number of hyphens in
58726         front of the option so that the caller need not worry about
58727         storage management.
58728         (N_): New macro.
58729         (_): Remove; not used now.
58730         * modules/xstrtol: Depend on getopt.
58731         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58732         of old STRTOL_FATAL_ERROR macro.
58733         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58734         of test program.
58735         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58736         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58737
58738 2007-08-08  Eric Blake  <ebb9@byu.net>
58739
58740         * lib/xstrtol-error.c: Add missing include.
58741
58742         Move xstrtol messages into gnulib domain, when --pobase is used.
58743         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58744         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58745         * modules/xstrtol (Files): Distribute new file.
58746         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58747         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58748         * tests/test-xstrtol.c: ...into new file.
58749         * tests/test-xstrtoul.c: Also test xstrtoul.
58750         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58751         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58752         * tests/test-xstrtol.sh: Drive the tests.
58753         * tests/test-xstrtoimax.sh: Likewise.
58754         * tests/test-xstrtoumax.sh: Likewise.
58755         * modules/xstrtol-tests: New module.
58756         * modules/xstrtoimax-tests: Likewise.
58757         * modules/xstrtoumax-tests: Likewise.
58758
58759 2007-08-08  Jim Meyering  <jim@meyering.net>
58760
58761         New function: mfile_name_concat.
58762         * lib/filenamecat.c (mfile_name_concat): New function, just like
58763         file_name_concat, but return NULL upon failure rather than exiting
58764         with a diagnostic.
58765         * lib/filenamecat.h: Declare it.
58766
58767 2007-08-07  Bruno Haible  <bruno@clisp.org>
58768
58769         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58770         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58771         warning from gcc.
58772         Reported by Eric Blake.
58773
58774 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58775
58776         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58777         * modules/crypto/arcfour (License): Likewise.
58778         * modules/crypto/des-tests (License): Likewise.
58779         * modules/crypto/gc-arctwo-tests (License): Likewise.
58780         * modules/crypto/gc-des-tests (License): Likewise.
58781         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58782         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58783         * modules/crypto/gc-md2-tests (License): Likewise.
58784         * modules/crypto/gc-md4-tests (License): Likewise.
58785         * modules/crypto/gc-md5-tests (License): Likewise.
58786         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58787         * modules/crypto/gc-rijndael-tests (License): Likewise.
58788         * modules/crypto/gc-sha1-tests (License): Likewise.
58789         * modules/crypto/gc-tests (License): Likewise.
58790         * modules/crypto/hmac-md5 (License): Likewise.
58791         * modules/crypto/hmac-sha1 (License): Likewise.
58792         * modules/crypto/md2-tests (License): Likewise.
58793         * modules/crypto/md4-tests (License): Likewise.
58794         * modules/crypto/md5 (License): Likewise.
58795         * modules/crypto/rijndael (License): Likewise.
58796         * modules/crypto/sha1 (License): Likewise.
58797         * modules/memxor (License): Likewise.
58798
58799 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58800         and Bruno Haible  <bruno@clisp.org>
58801
58802         * NEWS: Describe interface changes to human, xstrtol.
58803         * lib/human.h: Include <xstrtol.h>.
58804         (human_options): Return enum strtol_error, not int.  Remove
58805         bool arg; take int * instead.
58806         * lib/human.c: Don't include "gettext.h".
58807         (_): Remove; no longer used.
58808         Don't include <xstrtol.h>, since human.h does it.
58809         (human_options): Adjust to abovementioned interface changes.
58810         Do not report error to stderr; that's now the caller's
58811         responsibility.
58812         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58813         interface change.
58814         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58815         Str, Argument_type_string.  All uses changed.  Put " argument"
58816         in diagnostics to make them clearer.  Change wording of suffix
58817         message for clarity.
58818         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58819         Argument_type_string.
58820         (STRTOL_FATAL_WARN): Remove; no longer used.
58821         * modules/human (Depends-on): Remove gettext-h.
58822
58823 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58824
58825         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58826
58827 2007-07-31  Bruno Haible  <bruno@clisp.org>
58828
58829         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58830         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58831         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58832
58833 2007-07-31  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58836         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58837
58838 2007-07-30  Bruno Haible  <bruno@clisp.org>
58839
58840         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58841         * modules/c-ctype (License): Likewise.
58842         * modules/c-strcase (License): Likewise.
58843         * modules/check-version (License): Likewise.
58844         * modules/iconv (License): Likewise.
58845         * modules/iconv_open (License): Likewise.
58846         * modules/read-file (License): Likewise.
58847         * modules/striconv (License): Likewise.
58848         * modules/strverscmp (License): Likewise.
58849         * modules/vasprintf (License): Likewise.
58850         * modules/crypto/des (License): Likewise.
58851         * modules/crypto/gc (License): Likewise.
58852         * modules/crypto/gc-arcfour (License): Likewise.
58853         * modules/crypto/gc-arctwo (License): Likewise.
58854         * modules/crypto/gc-des (License): Likewise.
58855         * modules/crypto/gc-hmac-md5 (License): Likewise.
58856         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58857         * modules/crypto/gc-md2 (License): Likewise.
58858         * modules/crypto/gc-md4 (License): Likewise.
58859         * modules/crypto/gc-md5 (License): Likewise.
58860         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58861         * modules/crypto/gc-random (License): Likewise.
58862         * modules/crypto/gc-rijndael (License): Likewise.
58863         * modules/crypto/gc-sha1 (License): Likewise.
58864         * modules/crypto/md2 (License): Likewise.
58865         * modules/crypto/md4 (License): Likewise.
58866
58867 2007-07-30  Jim Meyering  <jim@meyering.net>
58868
58869         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58870         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58871         it has valid stat data.  This bug would cause du not to count the
58872         sizes of inaccessible directories.
58873         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58874         in <http://bugzilla.redhat.com/250077>.
58875
58876 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58877             Bruno Haible  <bruno@clisp.org>
58878
58879         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58880         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58881         #include_next, gives a diagnostic about it, but reports no error in
58882         the exit code.
58883         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58884
58885 2007-07-24  Ben Pfaff  <blp@gnu.org>
58886
58887         Improve name: "count-one-bits" is better than "popcount".
58888         * MODULES.html.sh: Update name.
58889         * lib/popcount.h: Renamed lib/count-one-bits.h.
58890         (popcount): Renamed count_one_bits.
58891         (popcountl): Renamed count_one_bits_l.
58892         (popcountll): Renamed count_one_bits_ll.
58893         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58894         * modules/popcount: Renamed module/count-one-bits.
58895         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58896         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58897
58898 2007-07-23  Ben Pfaff  <blp@gnu.org>
58899
58900         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58901         better code generation, and add U to large constants to avoid
58902         warnings, in non-GCC case.
58903         Suggested by Bruno Haible.
58904
58905 2007-07-23  Ben Pfaff  <blp@gnu.org>
58906
58907         * lib/popcount.h: Use verify_true instead of if...abort.
58908         * modules/popcount: Depend on verify module.
58909         Suggested by Jim Meyering.
58910
58911 2007-07-23  Bruno Haible  <bruno@clisp.org>
58912
58913         * gnulib-tool (func_import): Create a .cvsignore file also when the
58914         directory is not yet in CVS but the toplevel directory is. When
58915         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58916         Reported by Karl Berry.
58917
58918 2007-07-22  Ben Pfaff  <blp@gnu.org>
58919
58920         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58921         case.
58922         Suggested by Eric Blake.
58923
58924 2007-07-22  Ben Pfaff  <blp@gnu.org>
58925
58926         New module: popcount.
58927         * MODULES.html.sh: Add popcount.
58928         * modules/popcount: New file.
58929         * modules/popcount-tests: New file.
58930         * tests/test-popcount.c: New file.
58931         * lib/popcount.h: New file.
58932         * m4/popcount.m4: New file.
58933
58934 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58935
58936         * build-aux/announce-gen: Update to GPLv3.
58937
58938         * build-aux/config.guess: Update from config.
58939
58940 2007-07-21  Bruno Haible  <bruno@clisp.org>
58941
58942         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58943         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58944
58945 2007-07-20  Jim Meyering  <jim@meyering.net>
58946
58947         * check-module: Diagnose a self-dependency.
58948
58949 2007-07-19  Bruno Haible  <bruno@clisp.org>
58950
58951         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58952         empty.
58953         Reported by Eric Blake.
58954
58955 2007-07-18  Bruno Haible  <bruno@clisp.org>
58956
58957         * gnulib-tool: New options --po-base, --po-domain.
58958         (func_usage): Document them.
58959         (pobase, po_domain): New variables.
58960         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58961         DEFAULT_TEXT_DOMAIN.
58962         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58963         (func_import): Consider pobase and po_domain. Create a po/ directory.
58964         (func_create_testdir): Set pobase and po_domain to empty.
58965         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58966         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58967
58968 2007-07-18  Bruno Haible  <bruno@clisp.org>
58969
58970         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58971         EXTRA_DIST augmentation for files in build-aux/.
58972
58973 2007-07-16  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58976         * modules/getdelim (License): Likewise.
58977
58978 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58979
58980         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58981         * modules/d-type (License): Likewise.
58982         * modules/extensions (License): Likewise.
58983         * modules/fnmatch (License): Likewise.
58984         * modules/fseeko (License): Likewise.
58985         * modules/getaddrinfo (License): Likewise.
58986         * modules/getline (License): Likewise.
58987         * modules/getlogin_r (License): Likewise.
58988         * modules/getpass (License): Likewise.
58989         * modules/gettimeofday (License): Likewise.
58990         * modules/glob (License): Likewise.
58991         * modules/inet_ntop (License): Likewise.
58992         * modules/malloc (License): Likewise.
58993         * modules/malloca (License): Likewise.
58994         * modules/memmem (License): Likewise.
58995         * modules/mempcpy (License): Likewise.
58996         * modules/memset (License): Likewise.
58997         * modules/minmax (License): Likewise.
58998         * modules/mktime (License): Likewise.
58999         * modules/netinet_in (License): Likewise.
59000         * modules/pathmax (License): Likewise.
59001         * modules/poll (License): Likewise.
59002         * modules/regex (License): Likewise.
59003         * modules/snprintf (License): Likewise.
59004         * modules/stdbool (License): Likewise.
59005         * modules/stdint (License): Likewise.
59006         * modules/stdio (License): Likewise.
59007         * modules/strcase (License): Likewise.
59008         * modules/strcasestr (License): Likewise.
59009         * modules/strdup (License): Likewise.
59010         * modules/string (License): Likewise.
59011         * modules/strndup (License): Likewise.
59012         * modules/strnlen (License): Likewise.
59013         * modules/strpbrk (License): Likewise.
59014         * modules/strptime (License): Likewise.
59015         * modules/strsep (License): Likewise.
59016         * modules/sys_select (License): Likewise.
59017         * modules/sys_socket (License): Likewise.
59018         * modules/sys_stat (License): Likewise.
59019         * modules/sys_time (License): Likewise.
59020         * modules/time (License): Likewise.
59021         * modules/time_r (License): Likewise.
59022         * modules/timegm (License): Likewise.
59023         * modules/unistd (License): Likewise.
59024         * modules/vsnprintf (License): Likewise.
59025         * modules/wctype (License): Likewise.
59026
59027 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59028
59029         * modules/argz (License): LGPLv2+.
59030
59031 2007-07-15  Karl Berry  <karl@gnu.org>
59032
59033         * doc/gnulib.texi: revise node structure per new fdl.texi.
59034
59035 2007-07-14  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59038         the output file.
59039         * lib/uniname/uninames.h: Regenerated.
59040
59041 2007-07-14  Karl Berry  <karl@gnu.org>
59042
59043         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59044         omitting sectioning and index commands.
59045
59046 2007-07-13  Bruno Haible  <bruno@clisp.org>
59047
59048         New gnulib-tool option --more-symlinks.
59049         * gnulib-tool (func_usage): Document --more-symlinks.
59050         (do_copyrights): New variable.
59051         Recognize option --more-symlinks.
59052         (func_import): Don't add a copyright notice transform to
59053         sed_transform_lib_file if do_copyrights is empty.
59054
59055 2007-07-13  Bruno Haible  <bruno@clisp.org>
59056
59057         * lib/vasnprintf.c (decimal_point_char): Define also if
59058         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59059         && !NEED_PRINTF_DIRECTIVE_A.
59060         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59061         Gary V. Vaughan <gary@gnu.org>.
59062
59063 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         * lib/inttypes_.h: Undo previous change, since it was fixed
59066         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59067
59068 2007-07-13  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59071         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59072
59073 2007-07-13  Jim Meyering  <jim@meyering.net>
59074
59075         df: Don't fail for Tru64's "file-on-file mount".
59076         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59077         so we fall through and use statfs instead.  Details here:
59078         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59079         Reported by Albert Chin.
59080
59081 2007-07-13  Bruno Haible  <bruno@clisp.org>
59082
59083         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59084         * modules/configmake (License): Likewise.
59085         * modules/gettext (License): Likewise.
59086         * modules/gettext-h (License): Likewise.
59087         * modules/include_next (License): Likewise.
59088         * modules/link-warning (License): Likewise.
59089         * modules/localcharset (License): Likewise.
59090         * modules/localename (License): Likewise.
59091         * modules/lock (License): Likewise.
59092         * modules/relocatable-lib-lgpl (License): Likewise.
59093         * modules/size_max (License): Likewise.
59094         * modules/vasnprintf (License): Likewise.
59095         * modules/wchar (License): Likewise.
59096         * modules/xsize (License): Likewise.
59097
59098 2007-07-13  Bruno Haible  <bruno@clisp.org>
59099
59100         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59101         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59102
59103 2007-07-12  Bruno Haible  <bruno@clisp.org>
59104
59105         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59106         in the modules files.
59107
59108 2007-07-11  Karl Berry  <karl@gnu.org>
59109
59110         * MODULES.html.sh (func_module): use
59111          sed -e '\|^'"${includefile}"'$|d'
59112          instead of /.../d, to avoid errors on $includefile's containing /.
59113
59114 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59115
59116         * gnulib-tool (func_import): Avoid duplication of --avoid
59117         statements
59118         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59119         names to `_' in variable names.
59120
59121 2007-07-10  Eric Blake  <ebb9@byu.net>
59122
59123         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59124         * NEWS: Document this change.
59125
59126 2007-07-08  Bruno Haible  <bruno@clisp.org>
59127
59128         Update to Unicode 5.0.
59129         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59130         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59131         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59132         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59133         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59134         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59135         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59136         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59137         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59138         U+10A3F, U+1D242..U+1D244.
59139         (nonspacing_table_ind): Update.
59140         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59141         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59142
59143 2007-07-08  Bruno Haible  <bruno@clisp.org>
59144
59145         Update to Unicode 5.0.
59146         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59147         code transform. Extend the name index field of unicode_name_to_code and
59148         unicode_code_to_name from 16 to 24 bits.
59149         * lib/uniname/uniname.c (unicode_character_name,
59150         unicode_name_character): Add the range 0x12xxx to the code transform.
59151         * lib/uniname/uninames.h: Regenerated.
59152         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59153
59154 2007-07-07  Bruno Haible  <bruno@clisp.org>
59155
59156         * modules/wcwidth-tests: New file.
59157         * tests/test-wcwidth.c: New file.
59158
59159         Work around MacOS X wcwidth() bug.
59160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59161         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59162         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59163         original wcwidth in non-UTF-8 locales.
59164         * modules/wcwidth (Depends-on): Add localcharset, streq,
59165         uniwidth/width.
59166         * doc/functions/wcwidth.texi: Update.
59167
59168 2007-07-07  Bruno Haible  <bruno@clisp.org>
59169
59170         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59171         (wcwidth): New declaration.
59172         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59173         macros.
59174         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59175         here. Prepare for creating <wchar.h> unconditionally.
59176         * modules/wchar (Depends-on): Add link-warning.
59177         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59178         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59179         * lib/wcwidth.h: Remove file.
59180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59181         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59182         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59183         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59184         (Include): Replace wcwidth.h with <wchar.h>.
59185         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59186         * lib/mbchar.h: Don't include wcwidth.h.
59187         * lib/mbswidth.c: Likewise.
59188         * NEWS: Mention the change.
59189
59190 2007-07-07  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59193         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59194         definition with an external declaration.
59195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59196         defined as a function. Remove AC_C_INLINE requirement.
59197         * modules/wcwidth (Files): Add lib/wcwidth.c.
59198         (Makefile.am): Remove redundant statement.
59199
59200 2007-07-07  Bruno Haible  <bruno@clisp.org>
59201
59202         * MODULES.html.sh (Unicode string functions): Add the new modules.
59203
59204         * tests/uniwidth/test-u32-strwidth.c: New file.
59205         * modules/uniwidth/u32-strwidth-tests: New file.
59206
59207         * lib/uniwidth/u32-strwidth.c: New file.
59208         * modules/uniwidth/u32-strwidth: New file.
59209
59210         * tests/uniwidth/test-u16-strwidth.c: New file.
59211         * modules/uniwidth/u16-strwidth-tests: New file.
59212
59213         * lib/uniwidth/u16-strwidth.c: New file.
59214         * modules/uniwidth/u16-strwidth: New file.
59215
59216         * tests/uniwidth/test-u8-strwidth.c: New file.
59217         * modules/uniwidth/u8-strwidth-tests: New file.
59218
59219         * lib/uniwidth/u8-strwidth.c: New file.
59220         * modules/uniwidth/u8-strwidth: New file.
59221
59222         * tests/uniwidth/test-u32-width.c: New file.
59223         * modules/uniwidth/u32-width-tests: New file.
59224
59225         * lib/uniwidth/u32-width.c: New file.
59226         * modules/uniwidth/u32-width: New file.
59227
59228         * tests/uniwidth/test-u16-width.c: New file.
59229         * modules/uniwidth/u16-width-tests: New file.
59230
59231         * lib/uniwidth/u16-width.c: New file.
59232         * modules/uniwidth/u16-width: New file.
59233
59234         * tests/uniwidth/test-u8-width.c: New file.
59235         * modules/uniwidth/u8-width-tests: New file.
59236
59237         * lib/uniwidth/u8-width.c: New file.
59238         * modules/uniwidth/u8-width: New file.
59239
59240         * tests/uniwidth/test-uc_width.c: New file.
59241         * modules/uniwidth/width-tests: New file.
59242
59243         * lib/uniwidth/width.c: New file, from GNU libiconv.
59244         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59245         * modules/uniwidth/width: New file.
59246
59247         * lib/uniwidth.h: New file, from GNU libiconv.
59248         * modules/uniwidth/base: New file.
59249
59250 2007-07-07  Bruno Haible  <bruno@clisp.org>
59251
59252         * lib/uniname.h: New file, from GNU gettext.
59253         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59254         * lib/uniname/uninames.h: New file, from GNU gettext.
59255         * lib/uniname/uniname.c: New file, from GNU gettext.
59256         * tests/uniname/test-uninames.sh: New file.
59257         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59258         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59259         * modules/uniname/base: New file.
59260         * modules/uniname/uniname: New file.
59261         * modules/uniname/uniname-tests: New file.
59262         * MODULES.html.sh (Unicode string functions): Add the new modules.
59263
59264 2007-07-06  Bruno Haible  <bruno@clisp.org>
59265
59266         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59267
59268 2007-07-06  Bruno Haible  <bruno@clisp.org>
59269
59270         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59271         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59272         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59273         include <sys/time.h>.
59274         Reported by Eric Blake.
59275
59276 2007-07-06  Eric Blake  <ebb9@byu.net>
59277
59278         Fix testing canonicalize on cygwin.
59279         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59280         Revert patch from 2007-06-19.
59281         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59282         canonicalize module is also in use.
59283         * tests/test-canonicalize.c: New file.
59284         * tests/test-canonicalize.sh: Likewise.
59285         * modules/canonicalize-tests: Likewise.
59286
59287 2007-07-06  Jim Meyering  <jim@meyering.net>
59288
59289         * lib/getugroups.c (getugroups): Detect getgrent failure.
59290         Adjust comment to reflect reality: this function may return -1.
59291
59292 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59293
59294         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59295         the new TP address.
59296         (usage): Fix typo
59297         (gnulib_mk): New variable.
59298
59299 2007-07-05  Jim Meyering  <jim@meyering.net>
59300
59301         Don't let endgrent clobber errno, no matter how improbable.
59302         * lib/getugroups.c (getugroups): Save and restore errno around
59303         endgrent call.
59304
59305         Close the group DB even when failing with 2^31 or more members.
59306         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59307
59308 2007-07-04  Jim Meyering  <jim@meyering.net>
59309
59310         * lib/getugroups.h: New file.
59311         * lib/getugroups.c: Include "getugroups.h".
59312         Remove uses of "register" keyword.
59313         Move local variable, "cp", down into scope where used.
59314         Give "username" parameter the "const" attribute.
59315         * modules/getugroups (Files): Add lib/getugroups.h
59316
59317 2007-07-04  Karl Berry  <karl@gnu.org>
59318
59319         * MODULES.html.sh (func_all_modules): Complete rename of
59320         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59321
59322 2007-07-02  Bruno Haible  <bruno@clisp.org>
59323
59324         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59325         mode, when inttypes.h comes from gnulib.
59326         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59327
59328 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59329
59330         * NEWS: Mention lgpl module name change.
59331
59332         * modules/lgpl-2.1: Renamed from lgpl.
59333
59334         * NEWS: Mention gpl module name change.
59335
59336         * modules/gpl-3.0: New file, based on gpl-2.0.
59337
59338         * modules/gpl-2.0: Renamed from gpl.
59339
59340         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59341         doc/gpl-2.0.texi.
59342
59343 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59346         #define __STDC_LIMIT_MACROS temporarily while including
59347         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59348         Problem reported by Joel E. Denny in
59349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59350
59351 2007-07-01  Bruno Haible  <bruno@clisp.org>
59352
59353         * lib/unistdio.h: New file.
59354         * lib/unistdio/u-asnprintf.h: New file.
59355         * lib/unistdio/u-asprintf.h: New file.
59356         * lib/unistdio/u-printf-args.c: New file.
59357         * lib/unistdio/u-printf-args.h: New file.
59358         * lib/unistdio/u-printf-parse.h: New file.
59359         * lib/unistdio/u-snprintf.h: New file.
59360         * lib/unistdio/u-sprintf.h: New file.
59361         * lib/unistdio/u-vasprintf.h: New file.
59362         * lib/unistdio/u-vsnprintf.h: New file.
59363         * lib/unistdio/u-vsprintf.h: New file.
59364         * lib/unistdio/ulc-asnprintf.c: New file.
59365         * lib/unistdio/ulc-asprintf.c: New file.
59366         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59367         * lib/unistdio/ulc-printf-parse.c: New file.
59368         * lib/unistdio/ulc-snprintf.c: New file.
59369         * lib/unistdio/ulc-sprintf.c: New file.
59370         * lib/unistdio/ulc-vasnprintf.c: New file.
59371         * lib/unistdio/ulc-vasprintf.c: New file.
59372         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59373         * lib/unistdio/ulc-vsnprintf.c: New file.
59374         * lib/unistdio/ulc-vsprintf.c: New file.
59375         * lib/unistdio/u8-asnprintf.c: New file.
59376         * lib/unistdio/u8-asprintf.c: New file.
59377         * lib/unistdio/u8-printf-parse.c: New file.
59378         * lib/unistdio/u8-snprintf.c: New file.
59379         * lib/unistdio/u8-sprintf.c: New file.
59380         * lib/unistdio/u8-vasnprintf.c: New file.
59381         * lib/unistdio/u8-vasprintf.c: New file.
59382         * lib/unistdio/u8-vsnprintf.c: New file.
59383         * lib/unistdio/u8-vsprintf.c: New file.
59384         * lib/unistdio/u8-u8-asnprintf.c: New file.
59385         * lib/unistdio/u8-u8-asprintf.c: New file.
59386         * lib/unistdio/u8-u8-snprintf.c: New file.
59387         * lib/unistdio/u8-u8-sprintf.c: New file.
59388         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59389         * lib/unistdio/u8-u8-vasprintf.c: New file.
59390         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59391         * lib/unistdio/u8-u8-vsprintf.c: New file.
59392         * lib/unistdio/u16-asnprintf.c: New file.
59393         * lib/unistdio/u16-asprintf.c: New file.
59394         * lib/unistdio/u16-printf-parse.c: New file.
59395         * lib/unistdio/u16-snprintf.c: New file.
59396         * lib/unistdio/u16-sprintf.c: New file.
59397         * lib/unistdio/u16-vasnprintf.c: New file.
59398         * lib/unistdio/u16-vasprintf.c: New file.
59399         * lib/unistdio/u16-vsnprintf.c: New file.
59400         * lib/unistdio/u16-vsprintf.c: New file.
59401         * lib/unistdio/u16-u16-asnprintf.c: New file.
59402         * lib/unistdio/u16-u16-asprintf.c: New file.
59403         * lib/unistdio/u16-u16-snprintf.c: New file.
59404         * lib/unistdio/u16-u16-sprintf.c: New file.
59405         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59406         * lib/unistdio/u16-u16-vasprintf.c: New file.
59407         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59408         * lib/unistdio/u16-u16-vsprintf.c: New file.
59409         * lib/unistdio/u32-asnprintf.c: New file.
59410         * lib/unistdio/u32-asprintf.c: New file.
59411         * lib/unistdio/u32-printf-parse.c: New file.
59412         * lib/unistdio/u32-snprintf.c: New file.
59413         * lib/unistdio/u32-sprintf.c: New file.
59414         * lib/unistdio/u32-vasnprintf.c: New file.
59415         * lib/unistdio/u32-vasprintf.c: New file.
59416         * lib/unistdio/u32-vsnprintf.c: New file.
59417         * lib/unistdio/u32-vsprintf.c: New file.
59418         * lib/unistdio/u32-u32-asnprintf.c: New file.
59419         * lib/unistdio/u32-u32-asprintf.c: New file.
59420         * lib/unistdio/u32-u32-snprintf.c: New file.
59421         * lib/unistdio/u32-u32-sprintf.c: New file.
59422         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59423         * lib/unistdio/u32-u32-vasprintf.c: New file.
59424         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59425         * lib/unistdio/u32-u32-vsprintf.c: New file.
59426         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59427         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59428         * tests/unistdio/test-ulc-printf1.h: New file.
59429         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59430         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59431         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59432         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59433         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59434         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59435         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59436         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59437         * tests/unistdio/test-u8-asnprintf1.c: New file.
59438         * tests/unistdio/test-u8-asnprintf1.h: New file.
59439         * tests/unistdio/test-u8-printf1.h: New file.
59440         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59441         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59442         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59443         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59444         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59445         * tests/unistdio/test-u8-vasprintf1.c: New file.
59446         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59447         * tests/unistdio/test-u8-vsprintf1.c: New file.
59448         * tests/unistdio/test-u16-asnprintf1.c: New file.
59449         * tests/unistdio/test-u16-asnprintf1.h: New file.
59450         * tests/unistdio/test-u16-printf1.h: New file.
59451         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59452         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59453         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59454         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59455         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59456         * tests/unistdio/test-u16-vasprintf1.c: New file.
59457         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59458         * tests/unistdio/test-u16-vsprintf1.c: New file.
59459         * tests/unistdio/test-u32-asnprintf1.c: New file.
59460         * tests/unistdio/test-u32-asnprintf1.h: New file.
59461         * tests/unistdio/test-u32-printf1.h: New file.
59462         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59463         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59464         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59465         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59466         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59467         * tests/unistdio/test-u32-vasprintf1.c: New file.
59468         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59469         * tests/unistdio/test-u32-vsprintf1.c: New file.
59470         * modules/unistdio/base: New file.
59471         * modules/unistdio/u-printf-args: New file.
59472         * modules/unistdio/ulc-asnprintf: New file.
59473         * modules/unistdio/ulc-asprintf: New file.
59474         * modules/unistdio/ulc-fprintf: New file.
59475         * modules/unistdio/ulc-printf-parse: New file.
59476         * modules/unistdio/ulc-snprintf: New file.
59477         * modules/unistdio/ulc-sprintf: New file.
59478         * modules/unistdio/ulc-vasnprintf: New file.
59479         * modules/unistdio/ulc-vasprintf: New file.
59480         * modules/unistdio/ulc-vfprintf: New file.
59481         * modules/unistdio/ulc-vsnprintf: New file.
59482         * modules/unistdio/ulc-vsprintf: New file.
59483         * modules/unistdio/u8-asnprintf: New file.
59484         * modules/unistdio/u8-asprintf: New file.
59485         * modules/unistdio/u8-printf-parse: New file.
59486         * modules/unistdio/u8-snprintf: New file.
59487         * modules/unistdio/u8-sprintf: New file.
59488         * modules/unistdio/u8-vasnprintf: New file.
59489         * modules/unistdio/u8-vasprintf: New file.
59490         * modules/unistdio/u8-vsnprintf: New file.
59491         * modules/unistdio/u8-vsprintf: New file.
59492         * modules/unistdio/u8-u8-asnprintf: New file.
59493         * modules/unistdio/u8-u8-asprintf: New file.
59494         * modules/unistdio/u8-u8-snprintf: New file.
59495         * modules/unistdio/u8-u8-sprintf: New file.
59496         * modules/unistdio/u8-u8-vasnprintf: New file.
59497         * modules/unistdio/u8-u8-vasprintf: New file.
59498         * modules/unistdio/u8-u8-vsnprintf: New file.
59499         * modules/unistdio/u8-u8-vsprintf: New file.
59500         * modules/unistdio/u16-asnprintf: New file.
59501         * modules/unistdio/u16-asprintf: New file.
59502         * modules/unistdio/u16-printf-parse: New file.
59503         * modules/unistdio/u16-snprintf: New file.
59504         * modules/unistdio/u16-sprintf: New file.
59505         * modules/unistdio/u16-vasnprintf: New file.
59506         * modules/unistdio/u16-vasprintf: New file.
59507         * modules/unistdio/u16-vsnprintf: New file.
59508         * modules/unistdio/u16-vsprintf: New file.
59509         * modules/unistdio/u16-u16-asnprintf: New file.
59510         * modules/unistdio/u16-u16-asprintf: New file.
59511         * modules/unistdio/u16-u16-snprintf: New file.
59512         * modules/unistdio/u16-u16-sprintf: New file.
59513         * modules/unistdio/u16-u16-vasnprintf: New file.
59514         * modules/unistdio/u16-u16-vasprintf: New file.
59515         * modules/unistdio/u16-u16-vsnprintf: New file.
59516         * modules/unistdio/u16-u16-vsprintf: New file.
59517         * modules/unistdio/u32-asnprintf: New file.
59518         * modules/unistdio/u32-asprintf: New file.
59519         * modules/unistdio/u32-printf-parse: New file.
59520         * modules/unistdio/u32-snprintf: New file.
59521         * modules/unistdio/u32-sprintf: New file.
59522         * modules/unistdio/u32-vasnprintf: New file.
59523         * modules/unistdio/u32-vasprintf: New file.
59524         * modules/unistdio/u32-vsnprintf: New file.
59525         * modules/unistdio/u32-vsprintf: New file.
59526         * modules/unistdio/u32-u32-asnprintf: New file.
59527         * modules/unistdio/u32-u32-asprintf: New file.
59528         * modules/unistdio/u32-u32-snprintf: New file.
59529         * modules/unistdio/u32-u32-sprintf: New file.
59530         * modules/unistdio/u32-u32-vasnprintf: New file.
59531         * modules/unistdio/u32-u32-vasprintf: New file.
59532         * modules/unistdio/u32-u32-vsnprintf: New file.
59533         * modules/unistdio/u32-u32-vsprintf: New file.
59534         * modules/unistdio/ulc-asnprintf-tests: New file.
59535         * modules/unistdio/ulc-vasnprintf-tests: New file.
59536         * modules/unistdio/ulc-vasprintf-tests: New file.
59537         * modules/unistdio/ulc-vsnprintf-tests: New file.
59538         * modules/unistdio/ulc-vsprintf-tests: New file.
59539         * modules/unistdio/u8-asnprintf-tests: New file.
59540         * modules/unistdio/u8-vasnprintf-tests: New file.
59541         * modules/unistdio/u8-vasprintf-tests: New file.
59542         * modules/unistdio/u8-vsnprintf-tests: New file.
59543         * modules/unistdio/u8-vsprintf-tests: New file.
59544         * modules/unistdio/u16-asnprintf-tests: New file.
59545         * modules/unistdio/u16-vasnprintf-tests: New file.
59546         * modules/unistdio/u16-vasprintf-tests: New file.
59547         * modules/unistdio/u16-vsnprintf-tests: New file.
59548         * modules/unistdio/u16-vsprintf-tests: New file.
59549         * modules/unistdio/u32-asnprintf-tests: New file.
59550         * modules/unistdio/u32-vasnprintf-tests: New file.
59551         * modules/unistdio/u32-vasprintf-tests: New file.
59552         * modules/unistdio/u32-vsnprintf-tests: New file.
59553         * modules/unistdio/u32-vsprintf-tests: New file.
59554         * MODULES.html.sh (Unicode string functions): Add the new modules.
59555
59556 2007-07-01  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/sprintf.c (sprintf): Limit the available length estimation,
59559         to avoid address wraparound.
59560         * lib/vsprintf.c (vsprintf): Likewise.
59561         * modules/sprintf-posix (Dependencies): Add stdint.
59562         * modules/vsprintf-posix (Dependencies): Likewise.
59563
59564 2007-07-01  Bruno Haible  <bruno@clisp.org>
59565
59566         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59567         Windows PATH as well. Conservative double-quoting. Comments.
59568
59569 2007-07-01  Bruno Haible  <bruno@clisp.org>
59570             Eric Blake  <ebb9@byu.net>
59571             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59572
59573         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59574         empty components in $PATH, denoting '.'.
59575
59576 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59577
59578         * gnulib-tool: Fix indentation.
59579         (func_create_megatestdir): Likewise.
59580         Report by Bruno Haible.
59581
59582 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59583
59584         Sync from Automake.
59585         * build-aux/gnupload: Fix shell portability issues with for loops.
59586         Report by Karl Berry.
59587
59588 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59589
59590         * build-aux/maint.mk (POURL): Use translationproject.org.
59591
59592 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59593             Bruno Haible  <bruno@clisp.org>
59594
59595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59596         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59597         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59598         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59599         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59600
59601 2007-06-27  Bruno Haible  <bruno@clisp.org>
59602
59603         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59604         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59605
59606 2007-06-26  Karl Berry  <karl@gnu.org>
59607
59608         * MODULES.html.sh: remove xreadlink-with-size.
59609
59610 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59613         method that I hope also handles the double-include problem noted
59614         by Bruno Haible in
59615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59616
59617 2007-06-23  Bruno Haible  <bruno@clisp.org>
59618
59619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59620         Don't let the 'mostlyclean' target fail if the last subdirectory could
59621         not be removed.
59622         Reported by Karl Berry.
59623
59624 2007-06-23  Bruno Haible  <bruno@clisp.org>
59625
59626         * gnulib-tool (echo): Add a speedier workaround for ksh.
59627         * tests/test-echo.sh: Likewise.
59628
59629 2007-06-23  Bruno Haible  <bruno@clisp.org>
59630
59631         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59632         * tests/test-echo.sh: Likewise.
59633
59634 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59635
59636         * gnulib-tool (IFS): Initialize early, so we don't set it to
59637         empty later.
59638         (self_abspathname): Rewrite algorithm to set it, reindent.
59639         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59640         (func_create_megatestdir): Merge some sed scripts.
59641
59642 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59645         exposed by Sun Studio 11 cc on Solaris 8.
59646
59647 2007-06-22  Bruno Haible  <bruno@clisp.org>
59648
59649         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59650         backslashes.
59651         * tests/test-echo.sh: New file.
59652
59653 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59654
59655         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59656         simplify `sed_replace_build_aux' scripts, they are portable but
59657         echoing them with `echo' is not.
59658         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59659
59660 2007-06-21  Karl Berry  <karl@gnu.org>
59661
59662         * config/srclist.txt: guess we can't handle the licenses via
59663         srclist at the moment.
59664
59665 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59666
59667         * MODULES.html.sh: Add include_next.
59668         * modules/include_next: New file.
59669
59670 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59671
59672         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59673         INCLUDE_NEXT.
59674         (gl_CHECK_NEXT_HEADERS): New macro.
59675         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59676         the obsolescent gl_ABSOLUTE_HEADER.
59677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59678         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59679         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59680         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59681         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59682         * m4/math_h.m4 (gl_MATH_H): Likewise.
59683         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59684         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59685         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59686         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59687         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59688         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59689         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59694         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59695         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59696         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59697         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59698         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59699         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59700         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59701         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59702         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59703         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59704         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59705         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59706         * lib/float_.h: Likewise.
59707         * lib/inttypes_.h: Likewise.
59708         * lib/math_.h: Likewise.
59709         * lib/search_.h: Likewise.
59710         * lib/signal_.h: Likewise.
59711         * lib/stdint_.h: Likewise.
59712         * lib/stdio_.h: Likewise.
59713         * lib/stdlib_.h: Likewise.
59714         * lib/string_.h: Likewise.
59715         * lib/sys_stat_.h: Likewise.
59716         * lib/sys_time_.h: Likewise.
59717         * lib/time_.h: Likewise.
59718         * lib/unistd_.h: Likewise.
59719         * lib/wchar_.h: Likewise.
59720         * lib/wctype_.h: Likewise.
59721         * lib/dirent_.h: Likewise.
59722         * lib/iconv_.h: Likewise.
59723         * lib/locale_.h: Likewise.
59724         * lib/netinet_in_.h: Likewise.
59725         * lib/sys_select_.h: Likewise.
59726         * lib/sys_socket_.h: Likewise.
59727         * lib/sysexits_.h: Likewise.
59728         * modules/fcntl (Depends-on): Depend on include_next, not
59729         absolute_header.
59730         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59731         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59732         * modules/fchdir: Likewise.
59733         * modules/float: Likewise.
59734         * modules/iconv_open: Likewise.
59735         * modules/inttypes: Likewise.
59736         * modules/locale: Likewise.
59737         * modules/math: Likewise.
59738         * modules/netinet_in: Likewise.
59739         * modules/search: Likewise.
59740         * modules/signal: Likewise.
59741         * modules/stdint: Likewise.
59742         * modules/stdio: Likewise.
59743         * modules/stdlib: Likewise.
59744         * modules/string: Likewise.
59745         * modules/sys_select: Likewise.
59746         * modules/sys_socket: Likewise.
59747         * modules/sys_stat: Likewise.
59748         * modules/sys_time: Likewise.
59749         * modules/sysexits: Likewise.
59750         * modules/time: Likewise.
59751         * modules/unistd: Likewise.
59752         * modules/wchar: Likewise.
59753         * modules/wctype: Likewise.
59754         * modules/sys_stat: Change maintainer to "all".
59755         * modules/unistd: Likewise.
59756
59757 2007-06-20  Karl Berry  <karl@gnu.org>
59758
59759         * config/srclist.txt: track www changes in license files.
59760
59761 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59762
59763         * build-aux/bootstrap: Remove stray dot.
59764         Make sure build_aux settings are honored when linking
59765         gnulib_extra_files.
59766
59767 2007-06-19  Eric Blake  <ebb9@byu.net>
59768
59769         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59770         Allow compilation on cygwin.
59771
59772 2007-06-19  Jim Meyering  <jim@meyering.net>
59773
59774         xreadlink-with-size: Remove module.  No longer used.
59775         Ex-callers now use xreadlink or mreadlink-with-size.
59776         * modules/xreadlink-with-size: Remove module.
59777         * lib/xreadlink-with-size.c: Remove file.
59778         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59779         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59780         just before the function definition *is* accurate.
59781
59782         Eliminate one way canonicalize_filename_mode could exit.
59783         * lib/canonicalize.c (canonicalize_filename_mode):
59784         Use mreadlink_with_size, not xreadlink_with_size.
59785
59786 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         Detect porting problems to FreeBSD/arm, which has time_t wider than
59789         long int.  Original problem reported for GNU diff by Xin Li in
59790         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59791         * modules/getdate (Depends-on): Add intprops, verify.
59792         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59793         is an integer type no wider than long int.
59794
59795 2007-06-18  Jim Meyering  <jim@meyering.net>
59796
59797         New module: mreadlink-with-size.
59798         * MODULES.html.sh: Add mreadlink-with-size.
59799         * modules/mreadlink-with-size: New module
59800         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59801         not xreadlink-with-size.
59802         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59803
59804 2007-06-16  Bruno Haible  <bruno@clisp.org>
59805
59806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59807         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59808         Reported by Gary V. Vaughan <gary@gnu.org>.
59809
59810 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         Revamp lchown so that it lives in unistd.h where it belongs.
59813         * lib/lchown.h: Remove.
59814         * lib/dirchownmod.c: Don't include lib/lchown.h.
59815         * lib/fchownat.c: Likewise.
59816         * lib/openat.c: Likewise.
59817         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59818         does not follow symlinks.
59819         (EOPNOTSUPP): Define if not defined.
59820         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59821         is defined to 0.
59822         (lchown): New decl.
59823         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59824         Do not check for lchown decl.
59825         Set REPLACE_LCHOWN.
59826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59827         REPLACE_LCHOWN.
59828         * modules/chown: Make it clear it follows symlinks.
59829         * modules/lchown: Make it clear it doesn't follow symlinks.
59830         (Files): Remove lib/lchown.h
59831         (Depends-on): Add unistd.
59832         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59833         (Include): Include <unistd.h>, not "lchown.h".
59834         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59835         REPLACE_LCHOWN.
59836
59837 2007-06-15  Jim Meyering  <jim@meyering.net>
59838
59839         Change license (GPL to LGPL) of fsusage and dependents.
59840         * modules/fsusage (License): Change to LGPL.
59841         * modules/full-read (License): Likewise.
59842         * modules/full-write (License): Likewise.
59843         * modules/safe-read (License): Likewise.
59844         * modules/safe-write (License): Likewise.
59845
59846 2007-06-14  Ben Pfaff  <blp@gnu.org>
59847
59848         Missing part of allocsa -> malloca transition.
59849         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59850         gl_MALLOCA.
59851
59852 2007-06-12  Bruno Haible  <bruno@clisp.org>
59853
59854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59855         to ia64, x86_64, i386.
59856         Reported by Eric Blake.
59857
59858 2007-06-12  Bruno Haible  <bruno@clisp.org>
59859
59860         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59861         cross-compiling to x86_64.
59862
59863 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59866         glitch reported by Ralf Wildenhues in
59867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59868
59869         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59870         Vin Shelton.
59871
59872 2007-06-11  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59875         replacement string.
59876         Reported by Eric Blake.
59877
59878 2007-06-10  Bruno Haible  <bruno@clisp.org>
59879
59880         Prepare vasnprintf code for use with Unicode strings.
59881         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59882         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59883         TYPE_U32_STRING.
59884         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59885         a_u32_string variants.
59886         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59887         * lib/printf-args.c: Don't include config.h and the specification
59888         header if PRINTF_FETCHARGS is already defined.
59889         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59890         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59891         TYPE_U16_STRING, TYPE_U32_STRING.
59892         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59893         u16_directive, u16_directives, u32_directive, u32_directives): New
59894         types.
59895         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59896         New declarations.
59897         * lib/printf-parse.c: Don't include config.h and the specification
59898         header if PRINTF_PARSE is already defined. Eliminate the set of
59899         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59900         them now. Include c-ctype.h.
59901         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59902         directive and CHAR_T_ONLY_ASCII.
59903         * lib/vasnprintf.c: Don't include config.h and the specification header
59904         if VASNPRINTF is already defined.
59905         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59906         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59907         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59908         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59909         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59910         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59911         code accordingly.
59912         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59913         pad_ourselves also in this case, with the 'c' and 's' directives, and
59914         with a different notion of "width".
59915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59916
59917 2007-06-10  Bruno Haible  <bruno@clisp.org>
59918
59919         * modules/unistr/u32-mbsnlen: New file.
59920         * lib/unistr/u32-mbsnlen.c: New file.
59921
59922         * modules/unistr/u16-mbsnlen: New file.
59923         * lib/unistr/u16-mbsnlen.c: New file.
59924
59925         * modules/unistr/u8-mbsnlen: New file.
59926         * lib/unistr/u8-mbsnlen.c: New file.
59927
59928         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59929         declarations.
59930
59931 2007-06-10  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/string_.h (mbsnlen): New declaration.
59934         * lib/mbsnlen.c: New file.
59935         * m4/mbsnlen.m4: New file.
59936         * modules/mbsnlen: New file.
59937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59938         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59939         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59940
59941 2007-06-10  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59944
59945 2007-06-10  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59948         * lib/mbuiter.h: Likewise.
59949
59950 2007-06-10  Bruno Haible  <bruno@clisp.org>
59951
59952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59953         declaration.
59954
59955 2007-06-10  Karl Berry  <karl@gnu.org>
59956
59957         * config/srclist.txt: remove gettext entries, Bruno prefers
59958         to update individually.
59959
59960 2007-06-10  Bruno Haible  <bruno@clisp.org>
59961
59962         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59963         'maxlen'. Ensure only length + width bytes are allocated, not
59964         length + 1 + width.
59965
59966 2007-06-09  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59969         (CHAR_T): Remove macro.
59970         (VASNPRINTF): Update.
59971
59972 2007-06-09  Bruno Haible  <bruno@clisp.org>
59973
59974         * MODULES.html.sh (Unicode string functions): Add the new modules.
59975
59976         * modules/uniconv/u32-conv-to-enc: New file.
59977         * lib/uniconv/u32-conv-to-enc.c: New file.
59978         * modules/uniconv/u32-conv-to-enc-tests: New file.
59979         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59980
59981         * modules/uniconv/u16-conv-to-enc: New file.
59982         * lib/uniconv/u16-conv-to-enc.c: New file.
59983         * lib/uniconv/u-conv-to-enc.h: New file.
59984         * modules/uniconv/u16-conv-to-enc-tests: New file.
59985         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59986
59987         * modules/uniconv/u8-conv-to-enc: New file.
59988         * lib/uniconv/u8-conv-to-enc.c: New file.
59989         * modules/uniconv/u8-conv-to-enc-tests: New file.
59990         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59991
59992         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59993         u32_conv_to_encoding): New declarations.
59994
59995 2007-06-09  Bruno Haible  <bruno@clisp.org>
59996
59997         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59998
59999 2007-06-09  Bruno Haible  <bruno@clisp.org>
60000
60001         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60002         * modules/malloca: Renamed from modules/allocsa, updated.
60003         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60004         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60005         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60006         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60007         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60008         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60009         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60010         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60011         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60012         * modules/c-strcasestr (Depends-on): Update.
60013         * lib/c-strcasestr.c: Update.
60014         * modules/c-strstr (Depends-on): Update.
60015         * lib/c-strstr.c: Update.
60016         * modules/canonicalize-lgpl (Depends-on): Update.
60017         * lib/canonicalize-lgpl.c: Update.
60018         * modules/clean-temp (Depends-on): Update.
60019         * lib/clean-temp.c: Update.
60020         * modules/csharpcomp (Depends-on): Update.
60021         * lib/csharpcomp.c: Update.
60022         * modules/csharpexec (Depends-on): Update.
60023         * lib/csharpexec.c: Update.
60024         * modules/javacomp (Depends-on): Update.
60025         * lib/javacomp.c: Update.
60026         * modules/javaexec (Depends-on): Update.
60027         * lib/javaexec.c: Update.
60028         * modules/mbscasestr (Depends-on): Update.
60029         * lib/mbscasestr.c: Update.
60030         * modules/mbsstr (Depends-on): Update.
60031         * lib/mbsstr.c: Update.
60032         * modules/setenv (Depends-on): Update.
60033         * lib/setenv.c: Update.
60034         * modules/strcasestr (Depends-on): Update.
60035         * lib/strcasestr.c: Update.
60036         * modules/striconveha (Depends-on): Update.
60037         * lib/striconveha.c: Update.
60038         * modules/relocatable-prog-wrapper (Files): Update.
60039         * lib/relocwrapper.c: Update.
60040         * build-aux/install-reloc: Update.
60041         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60042
60043 2007-06-08  Bruno Haible  <bruno@clisp.org>
60044
60045         Port to uClibc.
60046         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60047         * lib/fpurge.c (fpurge): Likewise.
60048         * lib/freading.c (freading): Likewise.
60049         * lib/fseeko.c (rpl_fseeko): Likewise.
60050         * lib/fseterr.c (fseterr): Likewise.
60051         * lib/fwriting.c (fwriting): Likewise.
60052         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60053
60054 2007-06-08  Bruno Haible  <bruno@clisp.org>
60055
60056         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60057         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60058         * modules/gettext (Files): Add m4/intlmacosx.m4.
60059
60060 2007-06-07  Bruno Haible  <bruno@clisp.org>
60061
60062         * modules/localename-tests: New file.
60063         * tests/test-localename.c: New file.
60064
60065         New module 'localename'.
60066         * lib/localename.h: New file.
60067         * lib/localename.c: New file, from GNU gettext.
60068         * m4/localename.m4: New file.
60069         * modules/localename: New file.
60070
60071 2007-06-07  Bruno Haible  <bruno@clisp.org>
60072
60073         Work around the lack of <wchar.h> on some builds of uClibc.
60074         * doc/headers/wchar.texi: Update.
60075         * lib/wchar_.h: Include <wchar.h> only if it exists.
60076         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60077         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60078         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60079         doesn't exist.
60080         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60081         * modules/mbfile (Depends-on): Add wchar.
60082         * modules/mbiter (Depends-on): Likewise.
60083         * modules/mbuiter (Depends-on): Likewise.
60084         Reported by Simon Josefsson.
60085
60086 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60087
60088         Work around problem reported by Steven M. Schweda in
60089         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60090         Tru64 5.1B with the Compaq compiler environment installed declares
60091         an 'isblank' function but does not define it in the C library.
60092         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60093         * lib/regex_internal.h (isblank): Likewise.
60094         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60095         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60096
60097 2007-06-05  Bruno Haible  <bruno@clisp.org>
60098
60099         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60100         ia64.
60101         * modules/printf-safe: New file.
60102         * modules/fprintf-posix (Depends-on): Add printf-safe.
60103         * modules/printf-posix (Depends-on): Likewise.
60104         * modules/snprintf-posix (Depends-on): Likewise.
60105         * modules/sprintf-posix (Depends-on): Likewise.
60106         * modules/vasnprintf-posix (Depends-on): Likewise.
60107         * modules/vasprintf-posix (Depends-on): Likewise.
60108         * modules/vfprintf-posix (Depends-on): Likewise.
60109         * modules/vprintf-posix (Depends-on): Likewise.
60110         * modules/vsnprintf-posix (Depends-on): Likewise.
60111         * modules/vsprintf-posix (Depends-on): Likewise.
60112         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60113         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60114         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60115         "no" on i386, x86_64, ia64.
60116         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60117         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60118         on i386, x86_64, ia64.
60119         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60120         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60121         on i386, x86_64, ia64.
60122         * tests/test-vasnprintf-posix.c: Include float.h.
60123         (LDBL80_WORDS): New macro.
60124         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60125         on i386, x86_64, ia64.
60126         * tests/test-vasprintf-posix.c: Include float.h.
60127         (LDBL80_WORDS): New macro.
60128         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60129         on i386, x86_64, ia64.
60130         * tests/test-snprintf-posix.c: Include float.h.
60131         * tests/test-sprintf-posix.c: Likewise.
60132         * tests/test-vsnprintf-posix.c: Likewise.
60133         * tests/test-vsprintf-posix.c: Likewise.
60134
60135 2007-06-05  Bruno Haible  <bruno@clisp.org>
60136
60137         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60139         non-IEEE numbers on i386, x86_64, ia64.
60140         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60141         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60142         * tests/test-isnanl.h: Include float.h.
60143         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60144
60145 2007-06-05  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60148         also the %a / %A. Handle the %a / %A code before this extra handling.
60149
60150 2007-06-05  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60153         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60154
60155 2007-06-05  Bruno Haible  <bruno@clisp.org>
60156
60157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60158         typo in variable name.
60159
60160 2007-06-05  Eric Blake  <ebb9@byu.net>
60161
60162         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60163         Reported by Simon Josefsson.
60164
60165 2007-06-04  Bruno Haible  <bruno@clisp.org>
60166
60167         Avoid test failures on some PowerPC platforms.
60168         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60169         Define differently for PowerPC.
60170         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60171         Reported by Gary V. Vaughan <gary@gnu.org>.
60172
60173 2007-06-02  Bruno Haible  <bruno@clisp.org>
60174
60175         Fix test-stdint failure on FreeBSD/ia64.
60176         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60177         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60178         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60179         * doc/headers/stdint.texi: Update.
60180
60181 2007-06-01  Bruno Haible  <bruno@clisp.org>
60182
60183         * tests/test-binary-io.c (main): Pass a third argument to open().
60184         Reported by Gary V. Vaughan <gary@gnu.org>.
60185
60186 2007-06-01  Bruno Haible  <bruno@clisp.org>
60187
60188         * doc/functions/frexpl.texi: Update for mingw.
60189
60190 2007-06-01  Bruno Haible  <bruno@clisp.org>
60191
60192         * tests/test-lseek.c (main): Disable test of errno for invalid third
60193         argument.
60194         * doc/functions/lseek.texi: Update.
60195         Reported by Gary V. Vaughan <gary@gnu.org>.
60196
60197 2007-05-28  Bruno Haible  <bruno@clisp.org>
60198
60199         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60200
60201 2007-05-31  Eric Blake  <ebb9@byu.net>
60202
60203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60204         cross compiling.
60205
60206 2007-05-30  Eric Blake  <ebb9@byu.net>
60207         and Bruno Haible  <bruno@clisp.org>
60208
60209         Work around mingw test failures exposed by m4-1.4.9b.
60210         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60211         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60212         moment.
60213
60214 2007-05-30  Bruno Haible  <bruno@clisp.org>
60215
60216         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60217         assuming that they are closed. Needed on HP-UX 11.
60218
60219 2007-05-29  Bruno Haible  <bruno@clisp.org>
60220
60221         Fix a problem with #include_next.
60222         * lib/dirent_.h: Split the double-inclusion guard.
60223         * lib/fcntl_.h: Likewise.
60224         * lib/float_.h: Likewise.
60225         * lib/iconv_.h: Likewise.
60226         * lib/inttypes_.h: Likewise.
60227         * lib/locale_.h: Likewise.
60228         * lib/math_.h: Likewise.
60229         * lib/netinet_in_.h: Likewise.
60230         * lib/search_.h: Likewise.
60231         * lib/signal_.h: Likewise.
60232         * lib/stdint_.h: Likewise.
60233         * lib/stdio_.h: Likewise.
60234         * lib/stdlib_.h: Likewise.
60235         * lib/string_.h: Likewise.
60236         * lib/sys_select_.h: Likewise.
60237         * lib/sys_socket_.h: Likewise.
60238         * lib/sys_stat_.h: Likewise.
60239         * lib/sys_time_.h: Likewise.
60240         * lib/sysexits_.h: Likewise.
60241         * lib/time_.h: Likewise.
60242         * lib/unistd_.h: Likewise.
60243         * lib/wchar_.h: Likewise.
60244         * lib/wctype_.h: Likewise.
60245
60246 2007-05-29  Bruno Haible  <bruno@clisp.org>
60247
60248         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60249         for the moment.
60250
60251 2007-05-29  Bruno Haible  <bruno@clisp.org>
60252
60253         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60254         invocation.
60255         Reported by Eric Blake.
60256
60257 2007-05-29  Bruno Haible  <bruno@clisp.org>
60258
60259         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60260         compiling case.
60261
60262 2007-05-29  Eric Blake  <ebb9@byu.net>
60263             Bruno Haible  <bruno@clisp.org>
60264
60265         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60266         cross compiles.
60267
60268 2007-05-28  Eric Blake  <ebb9@byu.net>
60269
60270         * modules/closein-tests (test_closein_LDADD): Support test on
60271         cygwin with libtool.
60272
60273 2007-05-28  Bruno Haible  <bruno@clisp.org>
60274
60275         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60276         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60277         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60278         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60279         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60280         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60281         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60282         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60283         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60284
60285 2007-05-28  Eric Blake  <ebb9@byu.net>
60286
60287         Unconditionally include <config.h> in unit tests.
60288         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60289         * tests/test-allocsa.c, tests/test-arcfour.c,
60290         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60291         tests/test-array_list.c, tests/test-array_oset.c,
60292         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60293         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60294         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60295         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60296         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60297         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60298         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60299         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60300         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60301         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60302         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60303         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60304         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60305         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60306         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60307         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60308         test-md5.c, test-memmem.c, test-printf-posix.c,
60309         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60310         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60311         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60312         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60313         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60314         test-vasnprintf-posix2.c, test-vasnprintf.c,
60315         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60316         test-vfprintf-posix.c, test-vprintf-posix.c,
60317         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60318         test-xvasprintf.c: Likewise.
60319
60320 2007-05-28  Bruno Haible  <bruno@clisp.org>
60321
60322         * gnulib-tool (func_import): Remember the --with-tests command-line
60323         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60324         Reported by Eric Blake.
60325
60326 2007-05-28  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/ftell-tests: New file.
60329         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60330         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60331
60332         * lib/ftell.c: New file.
60333         * modules/ftell: New file.
60334         * m4/ftell.m4: New file.
60335         * doc/functions/ftell.texi: Update.
60336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60337         REPLACE_FTELL.
60338         * lib/stdio_.h (rpl_ftell): New declaration.
60339         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60340         REPLACE_FTELL.
60341
60342 2007-05-28  Eric Blake  <ebb9@byu.net>
60343
60344         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60345
60346 2007-05-28  Bruno Haible  <bruno@clisp.org>
60347
60348         * modules/fseek-tests: New file.
60349         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60350         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60351
60352         * lib/fseek.c: New file.
60353         * modules/fseek: New file.
60354         * m4/fseek.m4: New file.
60355         * doc/functions/fseek.texi: Update.
60356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60357         REPLACE_FSEEK.
60358         * lib/stdio_.h (rpl_fseek): New declaration.
60359         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60360         REPLACE_FSEEK.
60361
60362 2007-05-28  Bruno Haible  <bruno@clisp.org>
60363
60364         * lib/stdio_.h (fflush): More comments.
60365
60366 2007-05-28  Bruno Haible  <bruno@clisp.org>
60367
60368         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60369         runtime test.
60370
60371 2007-05-28  Eric Blake  <ebb9@byu.net>
60372
60373         Improve lseek module.
60374         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60375         * lib/unistd_.h (lseek): Scale back link warning message.
60376         * tests/test-lseek.c: Beef up test.
60377         * tests/test-lseek.sh: Exercise more facets of lseek.
60378         Reported by Bruno Haible.
60379
60380 2007-05-28  Bruno Haible  <bruno@clisp.org>
60381
60382         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60383         to define.
60384
60385 2007-05-27  Bruno Haible  <bruno@clisp.org>
60386
60387         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60388
60389 2007-05-27  Bruno Haible  <bruno@clisp.org>
60390
60391         * modules/openmp: New file.
60392         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60393         Noah Misch.
60394
60395 2007-05-26  Bruno Haible  <bruno@clisp.org>
60396
60397         * modules/chdir-long (Depends-on): Add fchdir.
60398         * modules/chdir-safer (Depends-on): Likewise.
60399         * modules/fts (Depends-on): Likewise.
60400         * modules/fts-lgpl (Depends-on): Likewise.
60401         * modules/openat (Depends-on): Likewise.
60402         * modules/savewd (Depends-on): Likewise.
60403
60404 2007-05-24  Eric Blake  <ebb9@byu.net>
60405
60406         Fix lseek on mingw.
60407         * modules/lseek: New module.
60408         * m4/lseek.m4: New file.
60409         * lib/lseek.c: New file.
60410         * modules/lseek-tests: New file.
60411         * tests/test-lseek.c: New file.
60412         * tests/test-lseek.sh: New file.
60413         * MODULES.html.sh: Document lseek module.
60414         * modules/fflush (Depends-on): Add lseek, fseeko.
60415         * modules/fseeko (Depends-on): Likewise.
60416         * modules/ftello (Depends-on): Likewise.
60417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60418         broken.
60419         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60420         broken.
60421         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60422         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60423         * lib/ftello.c (rpl_ftello): Likewise.
60424         * tests/test-fseeko.c (main): Test this.
60425         * tests/test-fseeko.sh: Likewise.
60426         * tests/test-ftello.c (main): Likewise.
60427         * tests/test-ftello.sh: Likewise.
60428         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60429         implies replacing fseek.
60430         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60431         HAVE_FTELLO.
60432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60433         * modules/unistd (Makefile.am): Likewise.
60434         * lib/unistd_.h (lseek): Declare a replacement.
60435         * doc/functions/lseek.texi (lseek): Document this fix.
60436         * doc/functions/fseek.texi (fseek): Likewise.
60437         * doc/functions/ftell.texi (ftell): Likewise.
60438
60439 2007-05-24  Bruno Haible  <bruno@clisp.org>
60440
60441         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60442         in the printed representation of a NaN.
60443         * tests/test-vasprintf-posix.c (test_function): Likewise.
60444         * tests/test-snprintf-posix.h (test_function): Likewise.
60445         * tests/test-sprintf-posix.h (test_function): Likewise.
60446         Reported by Eric Blake.
60447
60448 2007-05-23  Eric Blake  <ebb9@byu.net>
60449
60450         Fix fseeko/ftello on cygwin 1.5.24.
60451         * doc/functions/fseeko.texi (fseeko): Document the fix.
60452         * doc/functions/ftello.texi (ftello): Document the fix.
60453         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60454         * doc/functions/stdout.text (stdout): New file.
60455         * doc/functions/stderr.text (stderr): New file.
60456         * doc/gnulib.texi (Function Substitutes): Use new files.
60457         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60458         prior to 1.7.0.
60459         * tests/test-ftello.c (main): Likewise for ftello.
60460         * tests/test-fseeko.sh: New file.
60461         * tests/test-ftello.sh: New file.
60462         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60463         with seekable stdin.
60464         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60466         (gl_REPLACE_FSEEKO): New macro.
60467         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60468         * modules/fseeko (Files): Distribute fseeko.c.
60469         * modules/ftello (Files): Distribute ftello.c.
60470         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60471         mode.
60472         * lib/ftello.c (rpl_ftello): New file.
60473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60474         fseeko, ftello.
60475         (gl_STDIN_LARGE_OFFSET): New macro.
60476         * modules/stdio (Makefile.am): Perform the replacement.
60477         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60478
60479 2007-05-23  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60482         GNULIB_POSIXCHECK is defined.
60483
60484 2007-05-21  Bruno Haible  <bruno@clisp.org>
60485
60486         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60487         Check also the output for NaN arguments. When cross-compiling, guess
60488         no on IRIX.
60489         * lib/vasnprintf.c: Update comments.
60490         * tests/test-vasnprintf-posix.c (strisnan): New function.
60491         (test_function): Use it.
60492         * tests/test-vasprintf-posix.c (strisnan): New function.
60493         (test_function): Use it.
60494         * tests/test-snprintf-posix.h (strisnan): New function.
60495         (test_function): Use it.
60496         * tests/test-sprintf-posix.h (strisnan): New function.
60497         (test_function): Use it.
60498         Reported by Eric Blake.
60499
60500 2007-05-20  Bruno Haible  <bruno@clisp.org>
60501
60502         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60503         numbers that fails on BeOS.
60504         * doc/functions/frexpl.texi: Update.
60505
60506 2007-05-20  Jim Meyering  <jim@meyering.net>
60507
60508         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60509         forced upon us by glibc-2.6.
60510
60511 2007-05-20  Bruno Haible  <bruno@clisp.org>
60512
60513         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60514         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60515         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60516         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60517         NEED_PRINTF_INFINITE.
60518         (is_infinitel): New function.
60519         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60521         gl_PREREQ_VASNPRINTF_INFINITE.
60522         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60524         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60525         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60526         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60527         gl_PREREQ_VASNPRINTF_INFINITE.
60528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60535         * doc/functions/fprintf.texi: Update.
60536         * doc/functions/printf.texi: Update.
60537         * doc/functions/snprintf.texi: Update.
60538         * doc/functions/sprintf.texi: Update.
60539         * doc/functions/vfprintf.texi: Update.
60540         * doc/functions/vprintf.texi: Update.
60541         * doc/functions/vsnprintf.texi: Update.
60542         * doc/functions/vsprintf.texi: Update.
60543
60544 2007-05-20  Bruno Haible  <bruno@clisp.org>
60545
60546         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60547         was not found in libc.
60548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60549
60550 2007-05-20  Bruno Haible  <bruno@clisp.org>
60551
60552         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60553         printed as "-nan" instead of "nan".
60554         * tests/test-vasprintf-posix.c (test_function): Likewise.
60555         * tests/test-snprintf-posix.h (test_function): Likewise.
60556         * tests/test-sprintf-posix.h (test_function): Likewise.
60557         Needed for HP-UX 11.
60558
60559 2007-05-20  Jim Meyering  <jim@meyering.net>
60560
60561         Fix buggy test for the fchownat-deref bug.
60562         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60563         symlink required for the run-test.  Without it, this test would
60564         always declare that fchownat doesn't work, and client code would
60565         unnecessarily use the replacement function with fixed libc.
60566         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60567         Reported by Greg Schafer.
60568
60569 2007-05-19  Bruno Haible  <bruno@clisp.org>
60570
60571         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60572         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60573         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60574         Needed for IRIX 6.5 and Solaris 2.5.1.
60575
60576 2007-05-19  Bruno Haible  <bruno@clisp.org>
60577
60578         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60579         (test_function): Skip tests involving -0.0 on platforms where
60580         -0.0 = 0.0.
60581         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60582         (test_function): Skip tests involving -0.0 on platforms where
60583         -0.0 = 0.0.
60584         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60585         (test_function): Skip tests involving -0.0 on platforms where
60586         -0.0 = 0.0.
60587         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60588         (test_function): Skip tests involving -0.0 on platforms where
60589         -0.0 = 0.0.
60590         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60591         tests.
60592         * tests/test-printf-posix.h (test_function): Likewise.
60593         * tests/test-printf-posix.output: Remove all -0.0 related results.
60594         Needed for IRIX 6.5.
60595
60596 2007-05-19  Bruno Haible  <bruno@clisp.org>
60597
60598         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60599         printed as "nan0x7fffffff" instead of "nan".
60600         * tests/test-vasprintf-posix.c (test_function): Likewise.
60601         * tests/test-snprintf-posix.h (test_function): Likewise.
60602         * tests/test-sprintf-posix.h (test_function): Likewise.
60603         * tests/test-fprintf-posix.h (NaN): Remove macro.
60604         (test_function): Remove all NaN related tests.
60605         * tests/test-printf-posix.h (NaN): Remove macro.
60606         (test_function): Remove all NaN related tests.
60607         * tests/test-printf-posix.output: Remove all NaN related results.
60608         Needed for IRIX 6.5.
60609
60610 2007-05-19  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60614
60615 2007-05-19  Bruno Haible  <bruno@clisp.org>
60616
60617         * lib/float_.h: New file.
60618         * m4/float_h.m4: New file.
60619         * modules/float: New file.
60620         * modules/isnanl (Dependencies): Add float.
60621         * modules/isnanl-nolibm (Dependencies): Likewise.
60622         * modules/mathl (Dependencies): Likewise.
60623         * modules/printf-frexpl (Dependencies): Likewise.
60624         * modules/signbit (Dependencies): Likewise.
60625         * modules/vasnprintf (Dependencies): Likewise.
60626         * doc/headers/float.texi: Update.
60627
60628 2007-05-19  Jim Meyering  <jim@meyering.net>
60629
60630         * lib/utimens.c (gl_futimens): Rename from futimens,
60631         now that glibc-2.6 declares futimens.
60632         * lib/utimens.h: Likewise.
60633
60634 2007-05-19  Bruno Haible  <bruno@clisp.org>
60635
60636         Avoid test failures on mingw.
60637         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60638         * tests/test-printf-posix.sh: Likewise.
60639         * tests/test-vfprintf-posix.sh: Likewise.
60640         * tests/test-vprintf-posix.sh: Likewise.
60641
60642 2007-05-19  Bruno Haible  <bruno@clisp.org>
60643
60644         Fix *printf result for NaN, Inf, -0.0 on mingw.
60645         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60646         * lib/vasnprintf.c: Include math.h and isnan.h.
60647         (is_infinite_or_zero): New function.
60648         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60649         values in the %f, %F, %e, %E, %g, %G directives.
60650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60652         gl_PRINTF_INFINITE and test its result. Invoke
60653         gl_PREREQ_VASNPRINTF_INFINITE.
60654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60655         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60658         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60661         * doc/functions/fprintf.texi: Update.
60662         * doc/functions/printf.texi: Update.
60663         * doc/functions/snprintf.texi: Update.
60664         * doc/functions/sprintf.texi: Update.
60665         * doc/functions/vfprintf.texi: Update.
60666         * doc/functions/vprintf.texi: Update.
60667         * doc/functions/vsnprintf.texi: Update.
60668         * doc/functions/vsprintf.texi: Update.
60669
60670 2007-05-19  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60673         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60674         Instead of multiplying with 10^k, set extra_zeroes to k.
60675         (scale10_round_long_double): Remove function.
60676
60677 2007-05-18  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60680         introduced on 2007-05-06.
60681
60682 2007-05-18  Bruno Haible  <bruno@clisp.org>
60683
60684         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60685         %g directives.
60686         * tests/test-vasprintf-posix.c (test_function): Likewise.
60687         * tests/test-snprintf-posix.h (test_function): Likewise.
60688         * tests/test-sprintf-posix.h (test_function): Likewise.
60689
60690 2007-05-18  Bruno Haible  <bruno@clisp.org>
60691
60692         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60693         (strmatch): New function.
60694         (test_function): Test the %f directive on numbers of various exponents.
60695         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60696         (strmatch): New function.
60697         (test_function): Test the %f directive on numbers of various exponents.
60698         * tests/test-snprintf-posix.h (strmatch): New function.
60699         (test_function): Test the %f directive on numbers of various exponents.
60700         * tests/test-sprintf-posix.h (strmatch): New function.
60701         (test_function): Test the %f directive on numbers of various exponents.
60702         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60703         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60704         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60705         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60706
60707 2007-05-18  Bruno Haible  <bruno@clisp.org>
60708
60709         Add support for 'long double' number output.
60710         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60711         * lib/vasnprintf.c: Include math.h and float+.h.
60712         (mp_limb_t): New type.
60713         (GMP_LIMB_BITS): New macro.
60714         (mp_twolimb_t): New type.
60715         (GMP_TWOLIMB_BITS): New macro.
60716         (mpn_t): New type.
60717         (multiply, divide, convert_to_decimal, decode_long_double,
60718         scale10_round_long_double, scale10_round_decimal_long_double,
60719         floorlog10l): New functions.
60720         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60721         for the %f, %F, %e, %E, %g, %G directives.
60722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60724         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60725         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60733         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60734         * modules/snprintf-posix (Depends-on): Likewise.
60735         * modules/sprintf-posix (Depends-on): Likewise.
60736         * modules/vasnprintf-posix (Depends-on): Likewise.
60737         * modules/vasprintf-posix (Depends-on): Likewise.
60738         * modules/vfprintf-posix (Depends-on): Likewise.
60739         * modules/vsnprintf-posix (Depends-on): Likewise.
60740         * modules/vsprintf-posix (Depends-on): Likewise.
60741         * modules/vasnprintf (Files): Add lib/float+.h.
60742         * doc/functions/fprintf.texi: Update.
60743         * doc/functions/printf.texi: Update.
60744         * doc/functions/snprintf.texi: Update.
60745         * doc/functions/sprintf.texi: Update.
60746         * doc/functions/vfprintf.texi: Update.
60747         * doc/functions/vprintf.texi: Update.
60748         * doc/functions/vsnprintf.texi: Update.
60749         * doc/functions/vsprintf.texi: Update.
60750
60751 2007-05-18  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60754
60755 2007-05-18  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60758         for printing 64-bit integers. Needed for mingw.
60759
60760 2007-05-18  Bruno Haible  <bruno@clisp.org>
60761
60762         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60763         gl_FUNC_FREXPL_WORKS.
60764         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60765
60766 2007-05-18  Bruno Haible  <bruno@clisp.org>
60767
60768         * modules/frexpl-nolibm-tests: New file.
60769
60770         * modules/frexpl-nolibm: New file.
60771         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60772
60773 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60774
60775         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60776         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60777         GCC 4.2, which otherwise issues a lot of warnings.
60778         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60779         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60780         Likewise.
60781         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60782         * modules/iconv_open (iconv.h): Likewise.
60783         * modules/locale (locale.h): Likewise.
60784         * modules/netinet_in (netinet/in.h): Likewise.
60785         * modules/sys_select (sys_select.h): Likewise.
60786         * modules/sys_socket (sys/socket.h): Likewise.
60787         * modules/sys_stat (sys/stat.h): Likewise.
60788         * modules/sysexits (sysexits.h): Likewise.
60789         * modules/unistd (unistd.h): Likewise.
60790
60791 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60792
60793         * modules/closein-tests (Makefile.am): Distribute
60794         `test-closein.sh'.
60795
60796 2007-05-17  Bruno Haible  <bruno@clisp.org>
60797
60798         * tests/test-printf-posix.output: Renamed from
60799         tests/test-fprintf-posix.out.
60800         * modules/fprintf-posix-tests: Update.
60801         * modules/printf-posix-tests: Update.
60802         * modules/vfprintf-posix-tests: Update.
60803         * modules/vprintf-posix-tests: Update.
60804         * tests/test-fprintf-posix.sh: Update.
60805         * tests/test-printf-posix.sh: Update.
60806         * tests/test-vfprintf-posix.sh: Update.
60807         * tests/test-vprintf-posix.sh: Update.
60808         Reported by Ralf Wildenhues.
60809
60810 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60811
60812         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60813         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60814         GCC 4.2, which otherwise issues a lot of warnings.
60815         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60816         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60817         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60818         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60819         it should no longer be needed.
60820         * lib/string_.h: Likewise.
60821         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60822         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60823         * modules/inttypes (inttypes.h): Likewise.
60824         * modules/math (math.h): Likewise.
60825         * modules/search (search.h): Likewise.
60826         * modules/signal (signal.h): Likewise.
60827         * modules/stdint (stdint.h): Likewise.
60828         * modules/stdio (stdio.h): Likewise.
60829         * modules/stdlib (stdlib.h): Likewise.
60830         * modules/string (string.h): Likewise.
60831         * modules/sys_time (sys/time.h): Likewise.
60832         * modules/time (time.h): Likewise.
60833         * modules/wchar (wchar.h): Likewise.
60834         * modules/wctype (wtype.h): Likewise.
60835
60836 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60837
60838         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60839
60840 2007-05-13  Bruno Haible  <bruno@clisp.org>
60841
60842         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60843         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60844         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60845         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60846         (gl_PREREQ_STRTOK_R): Don't require it here.
60847
60848 2007-05-13  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60851         when used in C++ mode.
60852
60853 2007-05-12  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/linebuffer.h: Tweak doc.
60856         * lib/linebuffer.c: Likewise.
60857
60858 2007-05-12  James Youngman  <jay@gnu.org>
60859
60860         * lib/linebuffer.c (readlinebuffer_delim): New function,
60861         like readlinebuffer, but use a caller-specified delimiter.
60862         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60863         as the delimiter.
60864         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60865
60866 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60867
60868         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60869         * modules/openat (Files): Remove openat-die.c.
60870         (Depends-on): Add openat-die.
60871         * modules/openat-die: New module.
60872
60873 2007-05-06  Bruno Haible  <bruno@clisp.org>
60874
60875         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60876         Update with info about Cygwin.
60877         * doc/functions/fprintf.texi: Update.
60878         * doc/functions/printf.texi: Update.
60879         * doc/functions/snprintf.texi: Update.
60880         * doc/functions/sprintf.texi: Update.
60881         * doc/functions/vfprintf.texi: Update.
60882         * doc/functions/vprintf.texi: Update.
60883         * doc/functions/vsnprintf.texi: Update.
60884         * doc/functions/vsprintf.texi: Update.
60885         Reported by Eric Blake.
60886
60887 2007-05-06  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60890         padding ourselves for the floating-point directives.
60891         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60894         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60895         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60903         * tests/test-snprintf-posix.h (test_function): Also check the width
60904         and some flags in the %f directive.
60905         * tests/test-sprintf-posix.h (test_function): Likewise.
60906         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60907         * tests/test-vasprintf-posix.c (test_function): Likewise.
60908         * doc/functions/fprintf.texi: Update.
60909         * doc/functions/printf.texi: Update.
60910         * doc/functions/snprintf.texi: Update.
60911         * doc/functions/sprintf.texi: Update.
60912         * doc/functions/vfprintf.texi: Update.
60913         * doc/functions/vprintf.texi: Update.
60914         * doc/functions/vsnprintf.texi: Update.
60915         * doc/functions/vsprintf.texi: Update.
60916
60917 2007-05-06  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60920         pass the ' flag character to sprintf or snprintf.
60921         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60924         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60925         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60933         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60934         flag.
60935         * tests/test-sprintf-posix.h (test_function): Likewise.
60936         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60937         * tests/test-vasprintf-posix.c (test_function): Likewise.
60938         * doc/functions/fprintf.texi: Update.
60939         * doc/functions/printf.texi: Update.
60940         * doc/functions/snprintf.texi: Update.
60941         * doc/functions/sprintf.texi: Update.
60942         * doc/functions/vfprintf.texi: Update.
60943         * doc/functions/vprintf.texi: Update.
60944         * doc/functions/vsnprintf.texi: Update.
60945         * doc/functions/vsprintf.texi: Update.
60946
60947 2007-05-01  Bruno Haible  <bruno@clisp.org>
60948
60949         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60950
60951 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60954         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60955
60956 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60957
60958         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60959         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60961
60962 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60963
60964         * lib/argp-help.c (struct hol_entry): New member `ord'.
60965         (HOL_ENTRY_PTRCMP): Use ord for comparison
60966         (hol_sort): Initialize ord.
60967
60968 2007-05-01  Bruno Haible  <bruno@clisp.org>
60969
60970         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60971         Reported by Eric Blake.
60972         * doc/gnulib.texi (Function Substitutes): Update.
60973
60974 2007-05-01  Bruno Haible  <bruno@clisp.org>
60975
60976         * doc/functions.texi: Remove file, now redundant through
60977         doc/functions/*.texi.
60978
60979 2007-05-01  Bruno Haible  <bruno@clisp.org>
60980
60981         * modules/argp (Depends-on): Add sleep.
60982
60983 2007-05-01  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/sleep-tests: New file.
60986         * tests/test-sleep.c: New file.
60987
60988         * modules/sleep: New file.
60989         * lib/sleep.c: New file.
60990         * m4/sleep.m4: New file.
60991         * lib/unistd_.h (sleep): New declaration.
60992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60993         HAVE_SLEEP.
60994         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60995         * doc/functions/sleep.texi: Document the sleep module.
60996
60997 2007-05-01  Bruno Haible  <bruno@clisp.org>
60998
60999         * lib/sigprocmask.h: Remove file.
61000         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61001         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61002         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61003         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61004         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61005         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61006         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61007         HAVE_SIGSET_T as a shell variable.
61008         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61009         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61010         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61011         (Depends-on): Add signal. Remove verify.
61012         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61013         (Include): Mention <signal.h> instead of sigprocmask.h.
61014         * NEWS: Mention the change.
61015         * lib/fatal-signal.c: Don't include sigprocmask.h.
61016
61017 2007-05-01  Bruno Haible  <bruno@clisp.org>
61018
61019         * modules/signal: New file.
61020         * lib/signal_.h: New file.
61021         * m4/signal_h.m4: New file.
61022
61023 2007-05-01  Bruno Haible  <bruno@clisp.org>
61024
61025         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61026         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61027         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61028         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61029
61030 2007-05-01  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61033         configure time.
61034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61035         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61036         * modules/sys_stat (Makefile.am): Substitute their values into
61037         sys/stat.h.
61038
61039 2007-05-01  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61042         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61043         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61044
61045 2007-05-01  Bruno Haible  <bruno@clisp.org>
61046
61047         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61048         'assert' module here.
61049
61050 2007-05-01  Bruno Haible  <bruno@clisp.org>
61051
61052         * doc/functions/*.texi: New files.
61053         * doc/functions/google-ranking.txt: New file.
61054         * doc/gnulib.texi (Function Substitutes): New chapter.
61055         (ctime, inet_ntoa): Remove sections.
61056         * doc/ctime.texi: Remove file.
61057         * doc/inet_ntoa.texi: Remove file.
61058         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61059         dependencies.
61060         (%.info): New rule, specifying a --reference-limit.
61061
61062 2007-05-01  Bruno Haible  <bruno@clisp.org>
61063
61064         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61065
61066 2007-05-01  Bruno Haible  <bruno@clisp.org>
61067
61068         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61069         the portability of 'mkdir' to mingw systems.
61070
61071 2007-05-01  Bruno Haible  <bruno@clisp.org>
61072
61073         * doc/headers/google-ranking.txt: New file.
61074
61075 2007-04-30  Eric Blake  <ebb9@byu.net>
61076
61077         Prefer fseeko to fseek.
61078         * modules/getpass (Depends-on): Add fseeko.
61079         * lib/getpass.c (getpass): Use fseeko, not fseek.
61080
61081 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61082
61083         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61084         assumes the sorting is stable, while most qsort implementations
61085         are not.  Use argument addresses to ensure they never compare as
61086         equal.
61087
61088         * tests/test-argp-2.sh (usage-indent test): Fix output
61089         (func_compare): Restore diff options
61090         * tests/test-argp.c: Restore #include "progname.h"
61091
61092 2007-04-29  Bruno Haible  <bruno@clisp.org>
61093
61094         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61096         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61098         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61099         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61100         (TESTS, check_PROGRAMS): Add test-snprintf.
61101         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61102         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61103         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61104         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61105         assertions that fail on HP-UX, OSF/1, or IRIX.
61106         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61107
61108 2007-04-29  Bruno Haible  <bruno@clisp.org>
61109
61110         * MODULES.html.sh (posix_functions): Remove 'contents'.
61111
61112 2007-04-29  Karl Berry  <karl@gnu.org>
61113
61114         * config/srclist.txt (gendocs_template_min): new entry.
61115
61116 2007-04-29  Bruno Haible  <bruno@clisp.org>
61117
61118         Work around fpurge bug on BSD systems.
61119         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61120         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61121         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61122         fpurge to rpl_fpurge if the system already has this function.
61123         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61124         the case where the system already has this function. Correct invariants
61125         on BSD systems.
61126         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61127         BSD systems.
61128
61129 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61130
61131         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61132         proposed by Sven Verdoolaege.
61133
61134         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61135         options.
61136         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61137         (usage and help tests): Update
61138
61139 2007-04-29  Bruno Haible  <bruno@clisp.org>
61140
61141         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61142         Print more information in case of failure. Disable a test on BeOS.
61143
61144 2007-04-29  Bruno Haible  <bruno@clisp.org>
61145
61146         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61147         This helps debugging on systems on which no gdb is available.
61148
61149 2007-04-29  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/freading.h: Improve comments.
61152         * lib/fwriting.h: Likewise.
61153         * tests/test-freading.c (main): Don't check freading immediately after
61154         repositioning. Needed for glibc.
61155
61156 2007-04-29  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/freading.c (freading): Trivial simplification.
61159
61160 2007-04-28  Bruno Haible  <bruno@clisp.org>
61161
61162         * tests/test-fwriting.c (main): Also test the interaction between
61163         fflush and fwriting.
61164         * modules/fwriting-tests (Depends-on): Add fflush.
61165
61166         * tests/test-freading.c (main): Also test the interaction between
61167         fflush and freading.
61168         * modules/freading-tests (Depends-on): Add fflush.
61169
61170 2007-04-28  Bruno Haible  <bruno@clisp.org>
61171
61172         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61173         fseeko and ftello.
61174         Suggested by Eric Blake.
61175
61176 2007-04-28  Jim Meyering  <jim@meyering.net>
61177
61178         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61179         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61180         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61181
61182 2007-04-27  Eric Blake  <ebb9@byu.net>
61183
61184         * doc/headers/assert.texi (assert.h): Document assert module use.
61185
61186 2007-04-27  Bruno Haible  <bruno@clisp.org>
61187
61188         * doc/headers/*.texi: New files.
61189         * doc/gnulib.texi (Header File Substitutes): New chapter.
61190         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61191         dependencies.
61192         (standards.info ,standards.html, standards.dvi): Update dependencies.
61193         (mostlyclean, clean): New targets.
61194
61195 2007-04-27  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61198         * modules/sysexits (Files, Makefile.am): Update.
61199
61200         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61201         * modules/sys_socket (Files, Makefile.am): Update.
61202
61203         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61204         * modules/sys_stat (Files, Makefile.am): Update.
61205
61206 2007-04-27  Eric Blake  <ebb9@byu.net>
61207
61208         * lib/freading.h: Improve comments.
61209         * lib/fwriting.h: Likewise.
61210         * lib/fflush.c: Likewise.
61211
61212         Fix closein for mingw.
61213         * modules/closein-tests: Add tests for closein.
61214         * tests/test-closein.c: New file.
61215         * tests/test-closein.sh: Likewise.
61216         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61217         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61218
61219 2007-04-27  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61222         version is < 6.
61223         * lib/math_.h [__DECC]: Likewise.
61224         * lib/stdio_.h [__DECC]: Likewise.
61225         * lib/stdlib_.h [__DECC]: Likewise.
61226         * lib/string_.h [__DECC]: Likewise.
61227         * lib/time_.h [__DECC]: Likewise.
61228         * lib/wchar_.h [__DECC]: Likewise.
61229         * lib/wctype_.h [__DECC]: Likewise.
61230
61231 2007-04-27  Bruno Haible  <bruno@clisp.org>
61232
61233         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61234
61235 2007-04-27  Bruno Haible  <bruno@clisp.org>
61236
61237         * lib/fflush.c: Add comments.
61238         * modules/fpurge-tests (Depends-on): Add fflush.
61239         * modules/freadable-tests (Depends-on): Likewise.
61240         * modules/fwritable-tests (Depends-on): Likewise.
61241
61242 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61243
61244         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61245         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61246         Report by Bruno Haible <bruno@clisp.org>.
61247
61248 2007-04-26  Eric Blake  <ebb9@byu.net>
61249
61250         Fix fflush on mingw.
61251         * modules/fflush (Depends-on): Add freading.
61252         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61253         but unread data.
61254
61255 2007-04-26  Eric Blake  <ebb9@byu.net>
61256         and Bruno Haible  <bruno@clisp.org>
61257
61258         Implement freading and fwriting.
61259         * lib/freading.c: New file.
61260         * lib/freading.h: Likewise.
61261         * m4/freading.m4: Likewise.
61262         * modules/freading: Likewise.
61263         * modules/freading-tests: Likewise.
61264         * tests/test-freading.c: Likewise.
61265         * lib/fwriting.c: New file.
61266         * lib/fwriting.h: Likewise.
61267         * m4/fwriting.m4: Likewise.
61268         * modules/fwriting: Likewise.
61269         * modules/fwriting-tests: Likewise.
61270         * tests/test-fwriting.c: Likewise.
61271         * MODULES.html.sh (File stream based Input/Output): Mention them.
61272
61273 2007-04-26  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61276         'long' when we assume it.
61277         Suggested by Eric Blake.
61278
61279 2007-04-26  Bruno Haible  <bruno@clisp.org>
61280
61281         Ensure fseeko, ftello are declared on glibc systems.
61282         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61283         * modules/fseeko (configure.ac-early): Likewise.
61284         * modules/ftello (configure.ac-early): Likewise.
61285         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61286         AC_FUNC_FSEEKO for this.
61287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61288         (gl_CHECK_FSEEKO): Remove macro.
61289
61290 2007-04-26  Bruno Haible  <bruno@clisp.org>
61291
61292         * tests/test-fflush.c (main): Also check the ftell result after
61293         fflush and fseek/fseeko.
61294         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61295         file descriptor position cache in the stream.
61296         * lib/fseeko.c (rpl_fseeko): Likewise.
61297
61298 2007-04-26  Bruno Haible  <bruno@clisp.org>
61299
61300         * modules/fflush-tests (Depends-on): Add fseeko.
61301
61302 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61303             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61304
61305         * lib/argz_.h: ensure error_t definition is obtained in same
61306         mechanism system argz.h would have.
61307         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61308         argz facilities are known bad.  Err on the side of caution if
61309         cross-compiling.
61310
61311 2007-04-25  Eric Blake  <ebb9@byu.net>
61312
61313         * lib/fpurge.c (includes): Use stdlib.h for free.
61314         * tests/test-fflush.c (main): Also test fflush-fseeko.
61315
61316 2007-04-25  Bruno Haible  <bruno@clisp.org>
61317
61318         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61319         * lib/fseeko.c: New file.
61320         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61321         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61322         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61323         gl_FUNC_FSEEKO.
61324         (gl_FUNC_FSEEKO): Invoke it.
61325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61326         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61327         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61328
61329 2007-04-25  Bruno Haible  <bruno@clisp.org>
61330
61331         * modules/fflush (Depends-on): Add ftello.
61332
61333 2007-04-25  Bruno Haible  <bruno@clisp.org>
61334
61335         * modules/ftello-tests: New file.
61336         * tests/test-ftello.c: New file.
61337
61338         * modules/ftello: New file.
61339         * m4/ftello.m4: New file.
61340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61341         HAVE_FTELLO.
61342         * lib/stdio_.h (ftello): New declaration.
61343         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61344         HAVE_FTELLO.
61345
61346 2007-04-25  Bruno Haible  <bruno@clisp.org>
61347
61348         * modules/fseeko-tests: New file.
61349         * tests/test-fseeko.c: New file.
61350
61351         * modules/fseeko: New file.
61352         * m4/fseeko.m4: New file.
61353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61354         HAVE_FSEEKO.
61355         * lib/stdio_.h (fseeko): New declaration.
61356         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61357         HAVE_FSEEKO.
61358
61359 2007-04-25  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61362
61363 2007-04-25  Bruno Haible  <bruno@clisp.org>
61364
61365         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61366         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61367         * tests/test-unistd.c: Likewise.
61368         * tests/test-fcntl.c: Likewise.
61369
61370 2007-04-23  Eric Blake  <ebb9@byu.net>
61371
61372         * lib/fflush.c: Fix missing include.
61373         Reported by Bruno Haible.
61374
61375 2007-04-23  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61378         Reported by Eric Blake.
61379
61380 2007-04-23  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61383
61384 2007-04-23  Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61387
61388 2007-04-23  Bruno Haible  <bruno@clisp.org>
61389
61390         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61391         Needed on HP-UX 11.
61392
61393 2007-04-16  Eric Blake  <ebb9@byu.net>
61394
61395         Make fflush rely on fpurge.
61396         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61397         open coding all variants.
61398         * modules/fflush (Depends-on): Add fpurge and unistd.
61399         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61400         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61401
61402         Fix --with-tests compilation on cygwin.
61403         * modules/argmatch-tests (Makefile.am): List gnulib library first
61404         in LDADD.
61405         * modules/argp-tests (Makefile.am): Likewise.
61406         * modules/array-list-tests (Makefile.am): Likewise.
61407         * modules/array-oset-tests (Makefile.am): Likewise.
61408         * modules/avltree-list-tests (Makefile.am): Likewise.
61409         * modules/avltree-oset-tests (Makefile.am): Likewise.
61410         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61411         * modules/carray-list-tests (Makefile.am): Likewise.
61412         * modules/dirname-tests (Makefile.am): Likewise.
61413         * modules/frexp-tests (Makefile.am): Likewise.
61414         * modules/isnanl-tests (Makefile.am): Likewise.
61415         * modules/linked-list-tests (Makefile.am): Likewise.
61416         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61417         * modules/lock-tests (Makefile.am): Likewise.
61418         * modules/rbtree-list-tests (Makefile.am): Likewise.
61419         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61420         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61421         * modules/tls-tests (Makefile.am): Likewise.
61422         * modules/tsearch-tests (Makefile.am): Likewise.
61423         * modules/xvasprintf-tests (Makefile.am): Likewise.
61424
61425         Fix fpurge for cygwin.
61426         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61427         value.
61428         * modules/fpurge-tests (Depends-on): Clean up trash.
61429
61430 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61431
61432         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61433
61434         * m4/autobuild.m4: Re-indent.
61435
61436 2007-04-13  Bruno Haible  <bruno@clisp.org>
61437
61438         * modules/fpurge-tests: New file.
61439         * tests/test-fpurge.c: New file.
61440
61441         * modules/fpurge: New file.
61442         * lib/fpurge.h: New file.
61443         * lib/fpurge.c: New file.
61444         * m4/fpurge.m4: New file.
61445
61446 2007-04-13  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/fbufmode-tests: New file.
61449         * tests/test-fbufmode.c: New file.
61450
61451         * modules/fbufmode: New file.
61452         * lib/fbufmode.h: New file.
61453         * lib/fbufmode.c: New file.
61454         * m4/fbufmode.m4: New file.
61455
61456 2007-04-13  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/fwritable-tests: New file.
61459         * tests/test-fwritable.c: New file.
61460
61461         * modules/fwritable: New file.
61462         * lib/fwritable.h: New file.
61463         * lib/fwritable.c: New file.
61464         * m4/fwritable.m4: New file.
61465
61466 2007-04-13  Bruno Haible  <bruno@clisp.org>
61467
61468         * modules/freadable-tests: New file.
61469         * tests/test-freadable.c: New file.
61470
61471         * modules/freadable: New file.
61472         * lib/freadable.h: New file.
61473         * lib/freadable.c: New file.
61474         * m4/freadable.m4: New file.
61475
61476 2007-04-13  Bruno Haible  <bruno@clisp.org>
61477
61478         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61479         MOSTLYCLEANFILES.
61480
61481 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61484         gzip bootstrap.conf to avoid dragging in i18n machinery.
61485         (gnulib_tool_option): Use it.
61486
61487 2007-04-13  Bruno Haible  <bruno@clisp.org>
61488
61489         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61490         %F directives.
61491         * tests/test-vasprintf-posix.c (test_function): Likewise.
61492         * tests/test-snprintf-posix.h (test_function): Likewise.
61493         * tests/test-sprintf-posix.h (test_function): Likewise.
61494         * tests/test-fprintf-posix.h (test_function): Likewise.
61495         * tests/test-printf-posix.h (test_function): Likewise.
61496         * tests/test-fprintf-posix.out: Likewise.
61497
61498 2007-04-13  Bruno Haible  <bruno@clisp.org>
61499
61500         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61501         * modules/tls-tests (configure.ac): Likewise.
61502         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61503
61504 2007-04-13  Bruno Haible  <bruno@clisp.org>
61505
61506         * lib/tls.c (glthread_tls_get): Fix return type.
61507         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61508
61509 2007-04-12  Eric Blake  <ebb9@byu.net>
61510
61511         * modules/gettime (Depends-on): Remove gettime.
61512         Reported by Dmitry V. Levin.
61513
61514 2007-04-12  Bruno Haible  <bruno@clisp.org>
61515
61516         * modules/fflush (Include): Mention <stdio.h>.
61517         * modules/strtoimax (Include): Mention <inttypes.h>.
61518         * modules/strtoumax (Include): Likewise.
61519
61520 2007-04-12  Eric Blake  <ebb9@byu.net>
61521
61522         * .cvsignore: New file.
61523         * .gitignore: Likewise.
61524
61525 2007-04-12  Bruno Haible  <bruno@clisp.org>
61526
61527         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61528         not before, since $(LDADD) often contains libgnu.a.
61529         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61530         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61531         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61532         Needed on Cygwin.
61533
61534 2007-04-12  Eric Blake  <ebb9@byu.net>
61535
61536         Work around glibc's failure to flush stdin on fclose.
61537         * lib/closein.c (close_stdin): Flush stdin before closing.
61538
61539         Work around glibc's failure to reset seekable stdin on exit.
61540         * modules/closein: New module.
61541         * lib/closein.c: New file.
61542         * lib/closein.h: Likewise.
61543         * m4/closein.m4: Likewise.
61544         * MODULES.html.sh (File stream based Input/Output): Document it.
61545
61546 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61547
61548         * gnulib-tool: Rename generated 'autobuild' script to
61549         'do-autobuild' in --create-megatestdir output.
61550
61551         * doc/gnulib.texi (Build robot for gnulib): Fix.
61552
61553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61554
61555         * modules/sysexits (Depends-on): Add absolute-header.
61556
61557 2007-04-12  Eric Blake  <ebb9@byu.net>
61558
61559         No need to preserve errno on success.
61560         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61561         Reported by Bruno Haible.
61562
61563 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61564
61565         * MODULES.html.sh (Support for maintaining and releasing
61566         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61567
61568 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61569
61570         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61571
61572 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61573
61574         * modules/autobuild: New module.
61575
61576         * m4/autobuild.m4: New file.
61577
61578 2007-04-11  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61581         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61591         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61592         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61594         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61595         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61597         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61598         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
61609
61610 2007-04-11  Bruno Haible  <bruno@clisp.org>
61611
61612         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61613
61614 2007-04-10  Bruno Haible  <bruno@clisp.org>
61615
61616         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61617         for NaN and Infinity. Needed on FreeBSD 6.1.
61618         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61619         regarding results for "%010a" of Infinity and NaN.
61620         * tests/test-vasprintf-posix.c (test_function): Likewise.
61621         * tests/test-snprintf-posix.h (test_function): Likewise.
61622         * tests/test-sprintf-posix.h (test_function): Likewise.
61623         * tests/test-fprintf-posix.h (test_function): Likewise.
61624         * tests/test-printf-posix.h (test_function): Likewise.
61625         * tests/test-fprintf-posix.out: Likewise.
61626
61627 2007-04-10  Bruno Haible  <bruno@clisp.org>
61628
61629         * modules/locale-tests: New file.
61630         * tests/test-locale.c: New file.
61631
61632         * modules/locale: New file.
61633         * lib/locale_.h: New file.
61634         * m4/locale_h.m4: New file.
61635
61636 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61637             Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61640         be determined, test for availability of the copysignf, copysign,
61641         copysignl functions.
61642         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61643         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61644         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61645
61646 2007-04-09  Eric Blake  <ebb9@byu.net>
61647
61648         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61649         * modules/stdio (Makefile.am): Support fflush.
61650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61651         * modules/fflush: New file.
61652         * lib/fflush.c: Likewise.
61653         * m4/fflush.m4: Likewise.
61654         * modules/fflush-tests: New test.
61655         * tests/test-fflush.c: Likewise.
61656         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61657
61658 2007-04-06  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61661         (VASNPRINTF): Use signbit for faster determination whether to print a
61662         minus sign.
61663         * modules/vasnprintf (Files): Remove lib/float+.h.
61664         * modules/fprintf-posix (Depends-on): Add signbit.
61665         * modules/snprintf-posix (Depends-on): Likewise.
61666         * modules/sprintf-posix (Depends-on): Likewise.
61667         * modules/vasnprintf-posix (Depends-on): Likewise.
61668         * modules/vasprintf-posix (Depends-on): Likewise.
61669         * modules/vfprintf-posix (Depends-on): Likewise.
61670         * modules/vsnprintf-posix (Depends-on): Likewise.
61671         * modules/vsprintf-posix (Depends-on): Likewise.
61672
61673 2007-04-06  Bruno Haible  <bruno@clisp.org>
61674
61675         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61676         * tests/test-frexpl.c (main): Likewise.
61677         * tests/test-ldexpl.c (main): Likewise.
61678         * modules/frexp-tests (Depends-on): Add signbit.
61679         * modules/frexpl-tests (Depdends-on): Likewise.
61680         * modules/ldexpl-tests (Depdends-on): Likewise.
61681
61682 2007-04-06  Bruno Haible  <bruno@clisp.org>
61683
61684         * modules/signbit-tests: New file.
61685         * tests/test-signbit.c: New file.
61686
61687         * modules/signbit: New file.
61688         * lib/signbitf.c: New file.
61689         * lib/signbitd.c: New file.
61690         * lib/signbitl.c: New file.
61691         * m4/signbit.m4: New file.
61692         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61693         (signbit): New macro.
61694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61695         REPLACE_SIGNBIT.
61696         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61697         REPLACE_FREXPL into math.h.
61698
61699 2007-04-06  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/isnanf-nolibm-tests: New file.
61702         * tests/test-isnanf.c: New file.
61703
61704         * modules/isnanf-nolibm: New file.
61705         * lib/isnanf.h: New file.
61706         * lib/isnanf.c: New file.
61707         * lib/isnan.c: Consider the USE_FLOAT macro.
61708         * m4/isnanf.m4: New file.
61709
61710 2007-04-06  Bruno Haible  <bruno@clisp.org>
61711
61712         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61713         (Link): New section.
61714
61715         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61716
61717 2007-04-06  Bruno Haible  <bruno@clisp.org>
61718
61719         Assume the 'long double' type.
61720         * m4/longdouble.m4: Remove file.
61721         * config/srclist.txt: Don't mention longdouble.m4.
61722         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61723         * lib/float+.h: Likewise.
61724         * lib/frexp.c: Likewise.
61725         * lib/printf-args.h: Likewise.
61726         * lib/printf-args.c: Likewise.
61727         * lib/printf-frexp.c: Likewise.
61728         * lib/printf-parse.c: Likewise.
61729         * lib/vasnprintf.c: Likewise.
61730         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61731         * m4/intl.m4: Likewise.
61732         * m4/isnanl.m4: Likewise.
61733         * m4/printf.m4: Likewise.
61734         * m4/printf-frexpl.m4: Likewise.
61735         * m4/vasnprintf.m4: Likewise.
61736         * modules/allocsa (Files): Remove m4/longdouble.m4.
61737         * modules/gettext (Files): Likewise.
61738         * modules/relocatable-prog-wrapper (Files): Likewise.
61739         * modules/vasnprintf (Files): Likewise.
61740         * modules/isnanl (Files): Likewise.
61741         (Include): Simplify.
61742         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61743         (Include): Simplify.
61744         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61745         (Include): Simplify.
61746         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61747         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61748         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61749         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61750         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61751         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61752         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61753         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61754         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61755         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61756         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61757         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61758         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61759         * tests/test-isnanl.c: Likewise.
61760         * tests/test-snprintf-posix.h: Likewise.
61761         * tests/test-sprintf-posix.h: Likewise.
61762         * tests/test-vasnprintf-posix.c: Likewise.
61763         * tests/test-vasnprintf-posix2.c: Likewise.
61764         * tests/test-vasprintf-posix.c: Likewise.
61765
61766 2007-04-06  Bruno Haible  <bruno@clisp.org>
61767
61768         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61769         * lib/math_.h [__DECC]: Include the overridden include file through
61770         #include_next, outside the double-inclusion guard.
61771         * lib/stdio_.h [__DECC]: Likewise.
61772         * lib/stdlib_.h [__DECC]: Likewise.
61773         * lib/string_.h [__DECC]: Likewise.
61774         * lib/time_.h [__DECC]: Likewise.
61775         * lib/wchar_.h [__DECC]: Likewise.
61776         * lib/wctype_.h [__DECC]: Likewise.
61777         * lib/inttypes_.h [__DECC]: Likewise.
61778         Reported by Albert Chin <china@thewrittenword.com> in
61779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61780
61781 2007-04-04  Eric Blake  <ebb9@byu.net>
61782
61783         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61784         1.5.x.
61785
61786 2007-04-04  Bruno Haible  <bruno@clisp.org>
61787
61788         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61789         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61790
61791 2007-04-04  Bruno Haible  <bruno@clisp.org>
61792
61793         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61794         results for "%010a" of Infinity and NaN.
61795         * tests/test-vasprintf-posix.c (test_function): Likewise.
61796         * tests/test-snprintf-posix.h (test_function): Likewise.
61797         * tests/test-sprintf-posix.h (test_function): Likewise.
61798         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61799         * tests/test-printf-posix.h (test_function): Likewise.
61800         * tests/test-fprintf-posix.out: Update.
61801         Needed for FreeBSD 6.1.
61802
61803 2007-04-04  Bruno Haible  <bruno@clisp.org>
61804
61805         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61806         directly used by the gnulib modules nor by gnulib-tool.
61807
61808 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         * DEPENDENCIES: Give overall description of version dependency
61811         desirability.  Use more-typical names for apps.
61812         Add shell, coreutils, diffutils, grep, tar, gzip.
61813
61814 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61815
61816         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61817
61818 2007-04-04  Karl Berry  <karl@gnu.org>
61819
61820         * MODULES.html.sh (func_module): missing '.
61821
61822 2007-04-03  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/argmatch-tests (Makefile.am): New variable
61825         test_argmatch_LDADD.
61826         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61827         * modules/array-list-tests (Makefile.am): New variable
61828         test_array_list_LDADD.
61829         * modules/array-oset-tests (Makefile.am): New variable
61830         test_array_oset_LDADD.
61831         * modules/avltree-list-tests (Makefile.am): New variable
61832         test_avltree_list_LDADD.
61833         * modules/avltree-oset-tests (Makefile.am): New variable
61834         test_avltree_oset_LDADD.
61835         * modules/avltreehash-list-tests (Makefile.am): New variable
61836         test_avltreehash_list_LDADD.
61837         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61838         test_canonicalize_lgpl_LDADD.
61839         * modules/carray-list-tests (Makefile.am): New variable
61840         test_carray_list_LDADD.
61841         * modules/dirname-tests (Makefile.am): New variable
61842         test_dirname_LDADD.
61843         * modules/linked-list-tests (Makefile.am): New variable
61844         test_linked_list_LDADD.
61845         * modules/linkedhash-list-tests (Makefile.am): New variable
61846         test_linkedhash_list_LDADD.
61847         * modules/rbtree-list-tests (Makefile.am): New variable
61848         test_rbtree_list_LDADD.
61849         * modules/rbtree-oset-tests (Makefile.am): New variable
61850         test_rbtree_oset_LDADD.
61851         * modules/rbtreehash-list-tests (Makefile.am): New variable
61852         test_rbtreehash_list_LDADD.
61853         * modules/xvasprintf-tests (Makefile.am): New variable
61854         test_xvasprintf_LDADD.
61855         Reported by Eric Blake.
61856
61857 2007-04-03  Eric Blake  <ebb9@byu.net>
61858
61859         * DEPENDENCIES: Weaken m4 requirements.
61860
61861 2007-04-03  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61864         * modules/isnanl-tests (configure.ac): Likewise.
61865
61866 2007-04-03  Ben Pfaff  <blp@gnu.org>
61867
61868         * modules/iconv_open: Add $(srcdir)/ to source directory
61869         references in Makefile fragments that call gperf, to fix VPATH
61870         builds.
61871
61872 2007-04-03  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61875         * lib/ldexpl.c: Undo last change.
61876
61877 2007-04-03  Bruno Haible  <bruno@clisp.org>
61878
61879         * modules/printf-frexpl (Depends-on): Undo last change.
61880         (Files): Add m4/ldexpl.m4.
61881
61882 2007-04-03  Bruno Haible  <bruno@clisp.org>
61883
61884         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61885         * modules/isnanl (Link): New section.
61886
61887         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61888         * modules/frexp (Link): New section.
61889
61890         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61891         * modules/frexpl (Link): New section.
61892
61893         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61894         * modules/ldexpl (Link): New section.
61895
61896 2007-04-03  Bruno Haible  <bruno@clisp.org>
61897
61898         * modules/TEMPLATE-EXTENDED: New file.
61899         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61900
61901 2007-04-03  Bruno Haible  <bruno@clisp.org>
61902
61903         * DEPENDENCIES: New file.
61904         Suggested by Simon Josefsson.
61905
61906 2007-04-03  Bruno Haible  <bruno@clisp.org>
61907
61908         * doc/gnulib.texi: Escape @.
61909
61910 2007-04-03  James Youngman  <jay@gnu.org>
61911         and Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61914         birthtime on all systems that have birthtime, not just those which
61915         use st_birthtimensec rather than st_birthtim.  Putting zero in
61916         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61917         that the birth time is not available for files on an NFS mount.
61918
61919 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61920
61921         * modules/memxor: Move back from crypto/, suggested by Bruno.
61922         * modules/crypto/hmac-sha1: Fix memxor dependency.
61923
61924         * modules/crypto/gc: Moved from ../.
61925
61926 2007-04-02  Eric Blake  <ebb9@byu.net>
61927
61928         * lib/ldexpl.c (includes): Avoid libm.
61929
61930         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61931
61932 2007-04-02  Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61935         on IRIX.
61936
61937 2007-04-02  Bruno Haible  <bruno@clisp.org>
61938
61939         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61940         x86 or x86_64 platforms running MacOS X.
61941         Reported by Ryan Schmidt <@ryandesign.com>.
61942
61943 2007-04-02  Bruno Haible  <bruno@clisp.org>
61944
61945         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61946         i386.
61947
61948 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61949
61950         * modules/crypto/arcfour: Moved from ../.
61951         * modules/crypto/arcfour-tests: Moved from ../.
61952         * modules/crypto/arctwo: Moved from ../.
61953         * modules/crypto/arctwo-tests: Moved from ../.
61954         * modules/crypto/des: Moved from ../.
61955         * modules/crypto/des-tests: Moved from ../.
61956         * modules/crypto/gc-arcfour: Moved from ../.
61957         * modules/crypto/gc-arcfour-tests: Moved from ../.
61958         * modules/crypto/gc-arctwo: Moved from ../.
61959         * modules/crypto/gc-arctwo-tests: Moved from ../.
61960         * modules/crypto/gc-des: Moved from ../.
61961         * modules/crypto/gc-des-tests: Moved from ../.
61962         * modules/crypto/gc-hmac-md5: Moved from ../.
61963         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61964         * modules/crypto/gc-hmac-sha1: Moved from ../.
61965         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61966         * modules/crypto/gc-md2: Moved from ../.
61967         * modules/crypto/gc-md2-tests: Moved from ../.
61968         * modules/crypto/gc-md4: Moved from ../.
61969         * modules/crypto/gc-md4-tests: Moved from ../.
61970         * modules/crypto/gc-md5: Moved from ../.
61971         * modules/crypto/gc-md5-tests: Moved from ../.
61972         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61973         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61974         * modules/crypto/gc-random: Moved from ../.
61975         * modules/crypto/gc-rijndael: Moved from ../.
61976         * modules/crypto/gc-rijndael-tests: Moved from ../.
61977         * modules/crypto/gc-sha1: Moved from ../.
61978         * modules/crypto/gc-sha1-tests: Moved from ../.
61979         * modules/crypto/gc-tests: Moved from ../.
61980         * modules/crypto/hmac-md5: Moved from ../.
61981         * modules/crypto/hmac-md5-tests: Moved from ../.
61982         * modules/crypto/hmac-sha1: Moved from ../.
61983         * modules/crypto/hmac-sha1-tests: Moved from ../.
61984         * modules/crypto/md2: Moved from ../.
61985         * modules/crypto/md2-tests: Moved from ../.
61986         * modules/crypto/md4: Moved from ../.
61987         * modules/crypto/md4-tests: Moved from ../.
61988         * modules/crypto/md5: Moved from ../.
61989         * modules/crypto/md5-tests: Moved from ../.
61990         * modules/crypto/memxor: Moved from ../.
61991         * modules/crypto/rijndael: Moved from ../.
61992         * modules/crypto/rijndael-tests: Moved from ../.
61993         * modules/crypto/sha1: Moved from ../.
61994
61995 2007-03-30  James Youngman  <jay@gnu.org>
61996
61997         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61998         rename() to change the ctime of a file (because ctime is unaffected
61999         by rename on jfs2 on AIX 5.1).
62000         (main): Start by doing cleanup, in case a previous run failed leaving
62001         test files behind.
62002
62003 2007-03-31  Bruno Haible  <bruno@clisp.org>
62004
62005         Support old proprietary implementations of iconv.
62006         * modules/iconv_open: New file.
62007         * lib/iconv_.h: New file.
62008         * m4/iconv_h.m4: New file.
62009         * lib/iconv_open.c: New file.
62010         * lib/iconv_open-aix.gperf: New file.
62011         * lib/iconv_open-hpux.gperf: New file.
62012         * lib/iconv_open-irix.gperf: New file.
62013         * lib/iconv_open-osf.gperf: New file.
62014         * m4/iconv_open.m4: New file.
62015         * modules/linebreak (Depends-on): Add iconv_open.
62016         * modules/striconv (Depends-on): Likewise.
62017         * modules/striconveh (Depends-on): Likewise.
62018         * modules/unicodeio (Depends-on): Likewise.
62019         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62020         (iconv_t)(-1).
62021         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62022         conversion if cd is (iconv_t)(-1).
62023         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62024         is not possible.
62025
62026 2007-03-31  Bruno Haible  <bruno@clisp.org>
62027
62028         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62029         work on Solaris either. Protect also second use of "autodetect_jp".
62030
62031 2007-03-31  Bruno Haible  <bruno@clisp.org>
62032
62033         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62034         the function is not present.
62035
62036 2007-03-31  Bruno Haible  <bruno@clisp.org>
62037
62038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62039         the function is not present.
62040
62041 2007-03-31  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62044         a bug in HP-UX iconv_open().
62045
62046 2007-03-31  Bruno Haible  <bruno@clisp.org>
62047
62048         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62049         (Mathematics <math.h>): New section, add fpieee.
62050         (Input/output <stdio.h>): Add fseterr.
62051         (Mathematics <math.h>): New section, add printf-frexp.
62052         (Container data structures): Add sublist.
62053         (Core language properties): Add fpucw, inline.
62054         (Functions for greatest-width integer types <inttypes.h>): Add
62055         imaxabs, imaxdiv, inttypes.
62056         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62057         isnanl-nolibm, ldexp.
62058         (Mathematics <math.h>): New section, add printf-frexpl.
62059         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62060         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62061         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62062         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62063         (Unicode string functions): Add unistr/u*-mbtoucr.
62064         (Java): Add javacomp-script, javaexec-script.
62065         (C#): Add csharpcomp-script, csharpexec-script.
62066         (Support for building libraries and executables): Add havelib,
62067         relocatable-*.
62068         (Support for maintaining and releasing projects): Renamed from
62069         'Support for maintaining and release projects'. Add announce-gen.
62070
62071 2007-03-31  Bruno Haible  <bruno@clisp.org>
62072
62073         * README: Talk primarily about git.
62074         (git and CVS): Renamed from CVS.
62075         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62076         gnulib is available through git.
62077         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62078
62079 2007-03-30  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62082         * lib/poll_.h: Likewise.
62083         * lib/stat_.h: Likewise.
62084         * lib/sys_time_.h: Likewise.
62085         * lib/sysexit_.h: Likewise.
62086         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62087         * lib/stdbool_.h: Likewise.
62088         * lib/byteswap_.h: Add double-inclusion guard.
62089
62090 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62091
62092         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62093
62094 2007-03-30  Karl Berry  <karl@gnu.org>
62095
62096         * config/srclist-update: double space after USA in the license
62097         substitution, since that's how it's usually (?) written.
62098
62099 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62102         reported by Bruno Haible.
62103
62104 2007-03-29  Bruno Haible  <bruno@clisp.org>
62105
62106         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62107         a bug in AIX iconv().
62108
62109 2007-03-29  Bruno Haible  <bruno@clisp.org>
62110
62111         * modules/ldexpl-tests: New file.
62112         * tests/test-ldexpl.c: New file.
62113
62114 2007-03-29  Bruno Haible  <bruno@clisp.org>
62115
62116         * lib/ldexpl.c: Include fpucw.h.
62117         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62118         multiplication.
62119         * modules/ldexpl (Depends-on): Add fpucw.
62120
62121 2007-03-29  Bruno Haible  <bruno@clisp.org>
62122
62123         * modules/ldexpl: New file.
62124         * m4/ldexpl.m4: New file.
62125         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62126         set.
62127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62128         REPLACE_LDEXPL.
62129         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62130         REPLACE_LDEXPL.
62131         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62132         gl_FUNC_LDEXPL_WORKS.
62133         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62134         * modules/mathl (Files): Remove lib/ldexpl.c.
62135         (Depends-on): Add ldexpl.
62136
62137 2007-03-29  Bruno Haible  <bruno@clisp.org>
62138
62139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62140
62141 2007-03-29  Bruno Haible  <bruno@clisp.org>
62142
62143         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62144         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62145         and possibly also HP-UX.
62146         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62147         work on AIX, IRIX, HP-UX, OSF/1.
62148         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62149         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62150         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62151         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62152         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62153         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62154
62155 2007-03-29  Bruno Haible  <bruno@clisp.org>
62156
62157         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62158
62159 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62160
62161         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62162         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62163
62164 2007-03-29  Eric Blake  <ebb9@byu.net>
62165
62166         * lib/acl-internal.h: Remove redundant include.
62167         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62168         Cygwin when a file is locked.
62169
62170 2007-03-29  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62173         file.
62174         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62175
62176 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62179         try to remove a parent directory if the child couldn't be removed
62180         (except for the first rmdir, which could fail because the child
62181         doesn't exist).  Problem reported by Jeff Blaine in
62182         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62183
62184 2007-03-28  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/striconveh.c (utf8conv_carefully): New function.
62187         (mem_cd_iconveh_internal): Invoke it.
62188
62189 2007-03-28  Bruno Haible  <bruno@clisp.org>
62190
62191         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62192         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62193         input.
62194         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62195         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62196         unistr/u8-uctomb.
62197
62198 2007-03-28  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/unistr/u8-mbtoucr: New file.
62201         * lib/unistr/u8-mbtoucr.c: New file.
62202         * modules/unistr/u16-mbtoucr: New file.
62203         * lib/unistr/u16-mbtoucr.c: New file.
62204         * modules/unistr/u16-mbtoucr: New file.
62205         * lib/unistr/u16-mbtoucr.c: New file.
62206         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62207
62208 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62209             Bruno Haible  <bruno@clisp.org>
62210
62211         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62212         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62213         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62214
62215         * m4/stdio_h.m4: Add stubs for vasprintf too.
62216
62217         * modules/stdio: Support vasprintf in sed command.
62218
62219         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62220         vasprintf.h.  Add stdio module indicator.
62221
62222         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62223         vasprintf.h.
62224
62225         * lib/vasprintf.h: File removed.
62226
62227         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62228         * lib/vasprintf.c: Ditto.
62229         * lib/xvasprintf.c: Ditto.
62230         * tests/test-vasprintf-posix.c: Ditto.
62231         * tests/test-vasprintf.c: Ditto.
62232
62233 2007-03-27  Bruno Haible  <bruno@clisp.org>
62234
62235         Make vasnprintf multithread-safe.
62236         * lib/vasnprintf.c (decimal_point_char): New function.
62237         (VASNPRINTF): Use it.
62238         Suggested by Simon Josefsson.
62239
62240 2007-03-27  Eric Blake  <ebb9@byu.net>
62241
62242         Support sub-second birthtime on cygwin.
62243         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62244         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62245         (get_stat_birthtime): Also work with st_birthtim.
62246
62247 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62250         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62251         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62252         (get_stat_birthtime_ns): Simplify compile-time tests.
62253         (get_stat_birthtime): Change the API to look like
62254         get_stat_mtime etc., except return a negative tv_nsec on error.
62255         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62256         Don't check for "spare" fields.
62257         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62258         or for struct stat.st_birthtime, as these tests aren't used.
62259         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62260
62261 2007-03-27  Bruno Haible  <bruno@clisp.org>
62262
62263         * lib/stat-time.h: Include <sys/stat.h>.
62264
62265 2007-03-27  James Youngman  <jay@gnu.org>
62266
62267         * lib/stat-time.h (get_stat_birthtime): New function for
62268           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62269         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62270           and its variants.
62271         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62272         * modules/stat-time-test: New file.
62273         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62274
62275 2007-03-26  Bruno Haible  <bruno@clisp.org>
62276
62277         Better support of signalling NaNs.
62278         * lib/atanl.c: Include isnanl.h.
62279         (atanl): Perform test for NaN at the beginning of the function and
62280         through a call to isnanl.
62281         * lib/cosl.c: Include isnanl.h.
62282         (cosl): Perform test for NaN at the beginning of the function and
62283         through a call to isnanl.
62284         * lib/ldexpl.c: Include isnanl.h.
62285         (ldexpl): Perform test for NaN through a call to isnanl.
62286         * lib/logl.c: Include isnanl.h.
62287         (logl): Perform test for NaN at the beginning of the function and
62288         through a call to isnanl.
62289         * lib/sinl.c: Include isnanl.h.
62290         (sinl): Perform test for NaN at the beginning of the function and
62291         through a call to isnanl.
62292         * lib/sqrtl.c: Include isnanl.h.
62293         (sqrtl): Perform test for NaN at the beginning of the function and
62294         through a call to isnanl.
62295         * lib/tanl.c: Include isnanl.h.
62296         (tanl): Perform test for NaN at the beginning of the function and
62297         through a call to isnanl.
62298         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62299         * modules/mathl (Depends-on): Add isnanl.
62300
62301 2007-03-26  Eric Blake  <ebb9@byu.net>
62302
62303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62304         regression in logic sense of previous patch.
62305
62306 2007-03-26  Bruno Haible  <bruno@clisp.org>
62307
62308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62309         unportable shell command "if ! ...".
62310         Reported by Ralf Wildenhues.
62311
62312 2007-03-25  Bruno Haible  <bruno@clisp.org>
62313
62314         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62315         <sysexits.h> file, and only add EX_CONFIG.
62316         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62317         absolute file name and whether it is sufficient. Substitute also
62318         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62319         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62320         ABSOLUTE_SYSEXITS_H into sysexits.h.
62321
62322 2007-03-25  Bruno Haible  <bruno@clisp.org>
62323
62324         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62325         hints is NULL.
62326
62327 2007-03-25  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62330         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62331
62332 2007-03-25  Bruno Haible  <bruno@clisp.org>
62333
62334         * lib/vasnprintf.c: Include langinfo.h.
62335         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62336         multithread-safe.
62337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62346         Reported by Simon Josefsson.
62347
62348 2007-03-25  Bruno Haible  <bruno@clisp.org>
62349
62350         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62351         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62352         * modules/vasnprintf (Depends-on): Add stdint.
62353
62354 2007-03-25  Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/fpieee: New file.
62357         * m4/fpieee.m4: New file.
62358         * modules/isnan-nolibm (Depends-on): Add fpieee.
62359         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62360         * modules/isnanl (Depends-on): Add fpieee.
62361
62362 2007-03-25  Bruno Haible  <bruno@clisp.org>
62363
62364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62365
62366 2007-03-25  Bruno Haible  <bruno@clisp.org>
62367
62368         Avoid test failures on IRIX 6.5.
62369         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62370         (main): Use it.
62371         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62372         macros.
62373         (main): Use them.
62374
62375 2007-03-25  Bruno Haible  <bruno@clisp.org>
62376
62377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62378         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62379         exists but doesn't work.
62380         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62381         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62383         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62384         math.h.
62385
62386 2007-03-25  Bruno Haible  <bruno@clisp.org>
62387
62388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62389         returns inf. Needed on IRIX 6.5.
62390
62391 2007-03-25  Bruno Haible  <bruno@clisp.org>
62392
62393         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62394         (main): Use isnanl instead of x != x idiom.
62395         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62396
62397         * tests/test-frexp.c: Include isnan.h.
62398         (main): Use isnan instead of x != x idiom.
62399         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62400
62401 2007-03-25  Bruno Haible  <bruno@clisp.org>
62402
62403         * tests/test-frexp.c (NaN): New function/macro.
62404         (main): Use it instead of 0.0 / 0.0.
62405         * tests/test-isnan.c (NaN): New function/macro.
62406         (main): Use it instead of 0.0 / 0.0.
62407         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62408         (test_function): Use it instead of 0.0 / 0.0.
62409         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62410         (test_function): Use it instead of 0.0 / 0.0.
62411         * tests/test-snprintf-posix.h (NaN): New function/macro.
62412         (test_function): Use it instead of 0.0 / 0.0.
62413         * tests/test-sprintf-posix.h (NaN): New function/macro.
62414         (test_function): Use it instead of 0.0 / 0.0.
62415         * tests/test-fprintf-posix.h (NaN): New function/macro.
62416         (test_function): Use it instead of 0.0 / 0.0.
62417         * tests/test-printf-posix.h (NaN): New function/macro.
62418         (test_function): Use it instead of 0.0 / 0.0.
62419
62420         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62421
62422 2007-03-25  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62425
62426 2007-03-25  Bruno Haible  <bruno@clisp.org>
62427
62428         * lib/regexec.c (merge_state_with_log): Make static.
62429
62430 2007-03-25  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/trigl.c (kernel_rem_pio2): Make static.
62433
62434 2007-03-25  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/sincosl.c (sincosl_table): Make static.
62437
62438 2007-03-25  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62441         if the compiler does not support C99.
62442
62443 2007-03-25  Bruno Haible  <bruno@clisp.org>
62444
62445         * modules/time (Makefile.am): Ensure all rule action lines start with a
62446         tab.
62447
62448 2007-03-24  Bruno Haible  <bruno@clisp.org>
62449
62450         * modules/tsearch-tests: New file.
62451         * tests/test-tsearch.sh: New file.
62452         * tests/test-tsearch.c: New file, mostly copied from glibc.
62453
62454         * modules/search-tests: New file.
62455         * tests/test-search.c: New file.
62456
62457         * modules/search: New file.
62458         * lib/search_.h: New file, incorporating lib/tsearch.h.
62459         * m4/search_h.m4: New file.
62460         * lib/tsearch.h: Remove file.
62461         * lib/tsearch.c: Include search.h instead of tsearch.h.
62462         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62463         HAVE_TSEARCH.
62464         * modules/tsearch (Files): Remove lib/tsearch.h.
62465         (Depends-on): Add search.
62466         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62467         (Include): Change tsearch.h into search.h.
62468
62469 2007-03-24  Bruno Haible  <bruno@clisp.org>
62470
62471         * modules/fpucw: New file.
62472         * lib/fpucw.h: New file.
62473         * lib/frexp.c: Include fpucw.h.
62474         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62475         (FUNC): Use them.
62476         * lib/printf-frexp.c: Include fpucw.h.
62477         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62478         (FUNC): Use them.
62479         * lib/vasnprintf.c: Include fpucw.h.
62480         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62481         'long double' calculations.
62482         * tests/test-frexpl.c: Include fpucw.h.
62483         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62484         * tests/test-printf-frexpl.c: Include fpucw.h.
62485         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62486         * modules/frexpl (Depends-on): Add fpucw.
62487         * modules/printf-frexpl (Depends-on): Likewise.
62488         * modules/fprintf-posix (Depends-on): Likewise.
62489         * modules/snprintf-posix (Depends-on): Likewise.
62490         * modules/sprintf-posix (Depends-on): Likewise.
62491         * modules/vasnprintf-posix (Depends-on): Likewise.
62492         * modules/vasprintf-posix (Depends-on): Likewise.
62493         * modules/vfprintf-posix (Depends-on): Likewise.
62494         * modules/vsnprintf-posix (Depends-on): Likewise.
62495         * modules/vsprintf-posix (Depends-on): Likewise.
62496         * modules/frexpl-tests (Depends-on): Likewise.
62497         * modules/printf-frexpl-tests (Depends-on): Likewise.
62498
62499 2007-03-24  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/float+.h: New file.
62502         * lib/isnan.c: Include float+.h.
62503         (SIZE): New macro.
62504         (FUNC): Compare only SIZE bytes of the value.
62505         * lib/vasnprintf.c: Include float+.h.
62506         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62507         SIZEOF_LDBL or SIZEOF_DBL bytes.
62508         * modules/isnan-nolibm (Files): Add lib/float+.h.
62509         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62510         * modules/isnanl (Files): Add lib/float+.h.
62511         * modules/vasnprintf (Files): Add lib/float+.h.
62512
62513 2007-03-24  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62516         include isnanl-nolibm.h.
62517
62518 2007-03-24  Bruno Haible  <bruno@clisp.org>
62519
62520         * tests/test-read-file.c (main): Don't produce spurious output for
62521         expected situations. Make the test fail if it encountered unexpected
62522         results.
62523
62524 2007-03-24  Bruno Haible  <bruno@clisp.org>
62525
62526         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62527         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62528
62529 2007-03-24  Bruno Haible  <bruno@clisp.org>
62530
62531         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62532
62533 2007-03-24  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62536         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62537
62538         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62539         * modules/utf8-ucs4: Turn into a symbolic link to module
62540         unistr/u8-mbtouc.
62541
62542         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62543         utf8-ucs4-unsafe.
62544         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62545         unistr/u8-mbtouc-unsafe.
62546
62547         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62548         * modules/utf16-ucs4: Turn into a symbolic link to module
62549         unistr/u16-mbtouc.
62550
62551         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62552         utf16-ucs4-unsafe.
62553         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62554         unistr/u16-mbtouc-unsafe.
62555
62556         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62557         * modules/ucs4-utf8: Turn into a symbolic link to module
62558         unistr/u8-ubtomb.
62559
62560         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62561         * modules/ucs4-utf16: Turn into a symbolic link to module
62562         unistr/u16-ubtomb.
62563
62564 2007-03-24  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62567         Enable the function only if HAVE_INLINE.
62568         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62569         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62570         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62571         Enable the function only if HAVE_INLINE.
62572         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62573         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62574         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62575         Enable the function only if HAVE_INLINE.
62576         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62577         Enable the function only if HAVE_INLINE.
62578         * modules/utf8-ucs4: Update.
62579         * modules/utf8-ucs4-unsafe: Update.
62580         * modules/utf16-ucs4: Update.
62581         * modules/utf16-ucs4-unsafe: Update.
62582         * modules/ucs4-utf8: Update.
62583         * modules/ucs4-utf16: Update.
62584
62585 2007-03-24  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/utf8-ucs4.h: Remove file.
62588         * lib/utf8-ucs4-unsafe.h: Remove file.
62589         * lib/utf16-ucs4.h: Remove file.
62590         * lib/utf16-ucs4-unsafe.h: Remove file.
62591         * lib/ucs4-utf8.h: Remove file.
62592         * lib/ucs4-utf16.h: Remove file.
62593         * lib/unistr.h: Include their previous contents.
62594         * m4/utf-ucs4.m4: Remove file.
62595         * m4/ucs4-utf.m4: Remove file.
62596         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62597         (Depends-on): Add unistr/base.
62598         (configure.ac): Remove gl_UTF_UCS4.
62599         (Makefile.am): Update.
62600         (Include): Change to unistr.h.
62601         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62602         (Depends-on): Add unistr/base.
62603         (configure.ac): Remove gl_UTF_UCS4.
62604         (Makefile.am): Update.
62605         (Include): Change to unistr.h.
62606         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62607         (Depends-on): Add unistr/base.
62608         (configure.ac): Remove gl_UTF_UCS4.
62609         (Makefile.am): Update.
62610         (Include): Change to unistr.h.
62611         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62617         (Depends-on): Add unistr/base.
62618         (configure.ac): Remove gl_UCS4_UTF.
62619         (Makefile.am): Update.
62620         (Include): Change to unistr.h.
62621         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62622         (Depends-on): Add unistr/base.
62623         (configure.ac): Remove gl_UCS4_UTF.
62624         (Makefile.am): Update.
62625         (Include): Change to unistr.h.
62626         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62627         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62628         utf8-ucs4-unsafe.h.
62629         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62630         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62631         utf16-ucs4-unsafe.h.
62632         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62633         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62634         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62635         * lib/unistr/u8-strchr.c: Likewise.
62636         * lib/unistr/u8-strrchr.c: Likewise.
62637         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62638         * lib/unistr/u16-strchr.c: Likewise.
62639         * lib/unistr/u16-strrchr.c: Likewise.
62640         * lib/striconveh.c: Update.
62641         * lib/linebreak.c: Update.
62642
62643 2007-03-24  Bruno Haible  <bruno@clisp.org>
62644
62645         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62646         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62647
62648 2007-03-22  Bruno Haible  <bruno@clisp.org>
62649
62650         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62651
62652 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * MODULES.html.sh (File system functions): New module write-any-file.
62655         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62656         * m4/write-any-file.m4: New files.
62657
62658 2007-03-23  Eric Blake  <ebb9@byu.net>
62659
62660         * gnulib-tool: Rearrange space-tab sequences, since some editors
62661         like to eat them.
62662
62663 2007-03-23  Eric Blake  <ebb9@byu.net>
62664
62665         * lib/version-etc.c (version_etc_va): Update license wording to
62666         be more concise.  Recommended by Richard Stallman.
62667
62668 2007-03-22  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/poll.c (MSG_PEEK): New fallback definition.
62671
62672 2007-03-22  Bruno Haible  <bruno@clisp.org>
62673
62674         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62675         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62676         (main): Update.
62677         Fixes a compilation error on BeOS.
62678
62679 2007-03-22  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/frexpl-tests: New file.
62682         * tests/test-frexpl.c: New file.
62683
62684         * modules/frexpl: New file.
62685         * m4/frexpl.m4: New file.
62686         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62687         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62689         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62690         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62691         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62692
62693 2007-03-22  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/frexpl.c: Share code with lib/frexp.c.
62696         * modules/mathl (Files): Add lib/frexp.c.
62697         (Depends-on): Add isnanl-nolibm.
62698
62699 2007-03-22  Bruno Haible  <bruno@clisp.org>
62700
62701         * modules/printf-frexp (Files): Add m4/frexp.m4.
62702         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62703         only if the found frexp function actually works.
62704
62705 2007-03-22  Bruno Haible  <bruno@clisp.org>
62706
62707         * lib/frexp.c: Remove older implementation that uses divisions.
62708
62709 2007-03-21  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/frexp-tests: New file.
62712         * tests/test-frexp.c: New file.
62713
62714         * modules/frexp: New file.
62715         * lib/frexp.c: New file.
62716         * m4/frexp.m4: New file.
62717         * lib/math_.h (frexp): New declaration.
62718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62719         REPLACE_FREXP.
62720         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62721
62722 2007-03-21  Bruno Haible  <bruno@clisp.org>
62723
62724         * modules/isnanl-tests: New file.
62725         * tests/test-isnanl.c: New file.
62726
62727         * modules/isnanl: New file.
62728         * lib/isnanl.h: New file.
62729         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62730         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62731         gl_FUNC_ISNANL_WORKS.
62732         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62733         New macros.
62734
62735 2007-03-21  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62738         lib/isnanl.h.
62739         (Include): Update.
62740         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62741         * lib/vasnprintf.c: Update.
62742         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62743         tests/test-isnanl.h, remove tests/test-isnanl.c.
62744         (Makefile.am): Update.
62745         * tests/test-isnanl-nolibm.c: New file.
62746         * tests/test-isnanl.h: New file.
62747         * tests/test-isnanl.c: Remove file.
62748
62749 2007-03-21  Jim Meyering  <jim@meyering.net>
62750
62751         When trying to open ".", treat ESTALE like EACCES.
62752         * lib/savewd.c (savewd_save): Resort to forking not just upon
62753         failure with EACCES, but also when errno is ESTALE.
62754
62755 2007-03-20  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62758         Needed on AIX 5.1. Reported by Matthew Woehlke.
62759
62760 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         Suggestions by Bruno Haible:
62763         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62764         our own.
62765         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62766         * modules/acl (Depends-on): Add gettext.
62767
62768 2007-03-19  Bruno Haible  <bruno@clisp.org>
62769
62770         * modules/iconvme: Remove file.
62771         * lib/iconvme.h: Remove file.
62772         * lib/iconvme.c: Remove file.
62773         * m4/iconvme.m4: Remove file.
62774
62775 2007-03-19  Bruno Haible  <bruno@clisp.org>
62776
62777         * doc/relocatable-maint.texi: Break long shell script line.
62778         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62779
62780 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62783         handle file_has_acl.
62784         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62785         * lib/acl.c: Move header inclusions and related macro defns into
62786         lib/acl-internal.h.
62787         (S_ISLNK): Remove defn, since that's now done for us.
62788         (file_has_acl): Move to lib/file-has-acl.c.
62789         Call acl_trivial if available.  This is the crucial part of the fix.
62790         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62791         shared within the library.  Rewrite a bit, partly to make it compatible
62792         with the GNU coding style.
62793         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62794         Remove unnecessary double-quotes.
62795         Don't test for acl_to_text; the build will catch that.
62796         Replace acl_entries if it doesn't exist and it is needed.
62797         Check for -lsec and acl_trivial (as used on Solaris 10).
62798         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62799         lib/file-has-acl.c.
62800         (Depends-on): Add sys_stat, for S_ISLNK.
62801
62802 2007-03-19  Ben Pfaff  <blp@gnu.org>
62803
62804         * doc/gnulib.texi: Fix typos.
62805         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62806
62807 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62810         If size is zero here, buf must be zero.
62811
62812 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62813
62814         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62815         <bruno@clisp.org>.
62816
62817 2007-03-18  Bruno Haible  <bruno@clisp.org>
62818
62819         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62820         Suggested by Eric Blake.
62821
62822 2007-03-18  Ben Pfaff  <blp@gnu.org>
62823
62824         * doc/relocatable.texi: Recommend using as prefix a directory
62825         that does not exist and will never be created.  Based on
62826         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62827         and others.
62828
62829 2007-03-17  Bruno Haible  <bruno@clisp.org>
62830
62831         * lib/fchownat.c: Include lchown.h.
62832
62833 2007-03-17  Bruno Haible  <bruno@clisp.org>
62834
62835         Fix endless loop when the given allocated size was > INT_MAX.
62836         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62837         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62838         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62839         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62840         * lib/sprintf.c (sprintf): Likewise.
62841
62842 2007-03-17  Bruno Haible  <bruno@clisp.org>
62843
62844         * tests/test-argp-2.sh (func_compare): Output a context diff.
62845
62846 2007-03-17  Bruno Haible  <bruno@clisp.org>
62847
62848         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62849         locale's decimal-point character.
62850
62851 2007-03-17  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62854         before comparing it. Needed because on some platforms (e.g. x86) a
62855         'long double' occupies less bytes than sizeof (long double).
62856
62857 2007-03-17  Bruno Haible  <bruno@clisp.org>
62858
62859         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62860         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62861         * tests/test-getaddrinfo.c (simple): Likewise.
62862         * tests/test-read-file.c (main): Likewise.
62863
62864 2007-03-17  Bruno Haible  <bruno@clisp.org>
62865
62866         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62867
62868 2007-03-17  Bruno Haible  <bruno@clisp.org>
62869
62870         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62871         unused variable.
62872
62873 2007-03-17  Bruno Haible  <bruno@clisp.org>
62874
62875         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62876         * tests/test-c-strncasecmp.c: Likewise.
62877
62878 2007-03-17  Bruno Haible  <bruno@clisp.org>
62879
62880         * modules/stdlib (Depends-on): Add unistd.
62881         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62882         Needed for MacOS X 10.3.
62883
62884 2007-03-17  Bruno Haible  <bruno@clisp.org>
62885
62886         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62887
62888 2007-03-17  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62891
62892 2007-03-17  Bruno Haible  <bruno@clisp.org>
62893
62894         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62895         to reflect files copied from gnulib (with or without modifications).
62896         Suggested by Jim Meyering.
62897
62898 2007-03-17  Eric Blake  <ebb9@byu.net>
62899
62900         * NEWS: Document stdlib change from 2007-02-18.
62901
62902 2007-03-17  Jim Meyering  <jim@meyering.net>
62903
62904         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62905         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62906         someone uses a name containing shell meta-characters.
62907         Reported by Alfred M. Szmidt.
62908
62909         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62910
62911 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62912
62913         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62914         and copy gettext configuration files only if configure.ac contains
62915         a use of AM_GNU_GETTEXT_VERSION.
62916
62917 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62918
62919         * build-aux/bootstrap (gnulib_name): New variable.
62920         (gnulib_tool_options): Use it.
62921
62922 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62923
62924         * tests/test-des.c: Use new namespace.
62925
62926 2007-03-15  Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62929         Reported by James Youngman <jay@gnu.org>.
62930
62931 2007-03-15  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62934         declared prototype. Needed with cc on OSF/1 5.1.
62935
62936 2007-03-15  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62939         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62940         (struct gl_list_implementation): Add dispose_fn argument to the
62941         'create_empty', 'create' methods.
62942         (struct gl_list_impl_base): Add field 'dispose_fn'.
62943         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62944         argument.
62945         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62946         dispose_fn argument.
62947         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62948         dispose_fn on the dropped values.
62949         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62950         dispose_fn argument.
62951         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62952         dropped values.
62953         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62954         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62955         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62956         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62957         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62958         argument.
62959         (gl_tree_list_free): Call dispose_fn on the dropped values.
62960         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62961         the dropped values.
62962         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62963         Add dispose_fn argument.
62964         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62965         Call dispose_fn on the dropped values.
62966         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62967         Add dispose_fn argument.
62968         (gl_sublist_create): Initialize the 'dispose_fn' field.
62969         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62970         * tests/test-array_list.c (main): Update.
62971         * tests/test-carray_list.c (main): Update.
62972         * tests/test-avltree_list.c (main): Update.
62973         * tests/test-rbtree_list.c (main): Update.
62974         * tests/test-avltreehash_list.c (main): Update.
62975         * tests/test-rbtreehash_list.c (main): Update.
62976         * tests/test-linked_list.c (main): Update.
62977         * tests/test-linkedhash_list.c (main): Update.
62978         * tests/test-array_oset.c (main): Update.
62979
62980 2007-03-15  Bruno Haible  <bruno@clisp.org>
62981
62982         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62983         (gl_oset_create_empty): Add dispose_fn argument.
62984         (struct gl_oset_implementation): Add dispose_fn argument to
62985         'create_empty' method.
62986         (struct gl_oset_impl_base): Add dispose_fn field.
62987         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62988         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62989         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62990         values.
62991         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62992         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62993         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62994         dropped value.
62995         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62996         dropped value.
62997         * tests/test-array_oset.c (main): Update.
62998         * tests/test-avltree_oset.c (main): Update.
62999         * tests/test-rbtree_oset.c (main): Update.
63000         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63001
63002 2007-03-13  Bruno Haible  <bruno@clisp.org>
63003
63004         * tests/test-stdbool.c (i): Update after last patch.
63005
63006 2007-03-12  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63009         the iswprint macro. Needed on Solaris 2.5.1.
63010
63011 2007-03-12  Bruno Haible  <bruno@clisp.org>
63012
63013         * tests/test-printf-frexp.c (main): Declare x as volatile.
63014
63015 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63016
63017         * doc/gnulib.texi (Build robot for gnulib): New section.
63018
63019 2007-03-12  Jim Meyering  <jim@meyering.net>
63020
63021         * build-aux/bootstrap: New file.
63022         * build-aux/bootstrap.conf: New file, from coreutils.
63023
63024 2007-03-11  Bruno Haible  <bruno@clisp.org>
63025
63026         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63027
63028 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63029
63030         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63031         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63032         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63033
63034 2007-03-11  Bruno Haible  <bruno@clisp.org>
63035
63036         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63037         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63038
63039 2007-03-11  Bruno Haible  <bruno@clisp.org>
63040
63041         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63042         formula. Needed for SunPRO C 5.0.
63043
63044 2007-03-11  Bruno Haible  <bruno@clisp.org>
63045
63046         * modules/long-options (Depends-on): Add getopt.
63047
63048 2007-03-11  Bruno Haible  <bruno@clisp.org>
63049
63050         * modules/modechange (Depends-on): Add stdbool.
63051
63052 2007-03-11  Bruno Haible  <bruno@clisp.org>
63053
63054         * modules/i-ring (Depends-on): Add stdbool.
63055
63056 2007-03-11  Bruno Haible  <bruno@clisp.org>
63057
63058         * modules/gc-des (Depends-on): Add stdbool.
63059
63060 2007-03-11  Bruno Haible  <bruno@clisp.org>
63061
63062         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63063
63064 2007-03-11  Bruno Haible  <bruno@clisp.org>
63065
63066         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63067
63068 2007-03-11  Bruno Haible  <bruno@clisp.org>
63069
63070         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63071
63072 2007-03-11  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/vasnprintf.c (sprintf): Undefine.
63075
63076 2007-03-11  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63079         initializers in SunPRO C and Compaq C compilers.
63080
63081 2007-03-11  Bruno Haible  <bruno@clisp.org>
63082
63083         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63084         decrementing code ANSI C compliant.
63085
63086 2007-03-11  Bruno Haible  <bruno@clisp.org>
63087
63088         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63089         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63090
63091 2007-03-11  Bruno Haible  <bruno@clisp.org>
63092
63093         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63094         <stdbool.h> substitute doesn't pass.
63095
63096 2007-03-11  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63099
63100 2007-03-11  Bruno Haible  <bruno@clisp.org>
63101
63102         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63103         script, for submission to autobuild.josefsson.org.
63104
63105 2007-03-10  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/canonicalize-lgpl-tests: New file.
63108         * tests/test-canonicalize-lgpl.sh: New file.
63109         * tests/test-canonicalize-lgpl.c: New file.
63110
63111         * modules/c-strcase-tests: New file.
63112         * tests/test-c-strcase.sh: New file.
63113         * tests/test-c-strcasecmp.c: New file.
63114         * tests/test-c-strncasecmp.c: New file.
63115
63116         * modules/atexit-tests: New file.
63117         * tests/test-atexit.sh: New file.
63118         * tests/test-atexit.c: New file.
63119
63120 2007-03-10  Bruno Haible  <bruno@clisp.org>
63121
63122         * tests/test-binary-io.sh: Use temporary filenames that are not so
63123         likely to clash with those of other tests (in a parallel make).
63124         * tests/test-binary-io.c: Likewise.
63125
63126 2007-03-10  Bruno Haible  <bruno@clisp.org>
63127
63128         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63129         fallback; use #error instead.
63130         Suggested by Simon Josefsson.
63131
63132 2007-03-10  Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63135         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63136         first and the last.
63137
63138 2007-03-10  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63141
63142 2007-03-10  Bruno Haible  <bruno@clisp.org>
63143
63144         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63145         "make distcheck".
63146         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63147         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63148         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63149
63150 2007-03-10  Bruno Haible  <bruno@clisp.org>
63151
63152         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63153         variable.
63154         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63155         variable.
63156
63157 2007-03-09  Eric Blake  <ebb9@byu.net>
63158         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63159
63160         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63161         types are not being provided by gnulib.
63162         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63163         types are supported.
63164
63165 2007-03-10  Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/stdio_.h (__attribute__): New macro.
63168         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63169         vsprintf): Specify __attribute__ __format__ for GCC.
63170         Suggested by Eric Blake.
63171
63172 2007-03-09  Bruno Haible  <bruno@clisp.org>
63173
63174         * modules/printf-posix-tests: New file.
63175         * tests/test-printf-posix.sh: New file.
63176         * tests/test-printf-posix.c: New file.
63177
63178         * modules/printf-posix: New file.
63179         * lib/printf.c: New file.
63180         * m4/printf-posix-rpl.m4: New file.
63181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63182         REPLACE_PRINTF.
63183         * lib/stdio_.h (printf): New declaration.
63184         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63185         ____strfmon____): New macros.
63186         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63187         REPLACE_PRINTF.
63188
63189 2007-03-09  Bruno Haible  <bruno@clisp.org>
63190
63191         * tests/test-vasnprintf-posix2.sh: New file.
63192         * tests/test-vasnprintf-posix2.c: New file.
63193         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63194         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63195         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63196
63197         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63198         a locale dependent decimal point, rather than always '.'.
63199
63200 2007-03-09  Eric Blake  <ebb9@byu.net>
63201
63202         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63203         spite of platforms like Tandem/NSK that define it to -1.
63204
63205 2007-03-08  Bruno Haible  <bruno@clisp.org>
63206
63207         * modules/vprintf-posix-tests: New file.
63208         * tests/test-vprintf-posix.sh: New file.
63209         * tests/test-vprintf-posix.c: New file.
63210         * tests/test-printf-posix.h: New file.
63211
63212         * modules/vprintf-posix: New file.
63213         * lib/vprintf.c: New file.
63214         * m4/vprintf-posix.m4: New file.
63215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63216         REPLACE_VPRINTF.
63217         * lib/stdio_.h (vprintf): New declaration.
63218         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63219         REPLACE_VPRINTF.
63220
63221 2007-03-08  Bruno Haible  <bruno@clisp.org>
63222
63223         * modules/fprintf-posix-tests: New file.
63224         * tests/test-fprintf-posix.sh: New file.
63225         * tests/test-fprintf-posix.c: New file.
63226
63227         * modules/fprintf-posix: New file.
63228         * lib/fprintf.c: New file.
63229         * m4/fprintf-posix.m4: New file.
63230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63231         REPLACE_FPRINTF.
63232         * lib/stdio_.h (fprintf): New declaration.
63233         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63234         REPLACE_FPRINTF.
63235
63236 2007-03-08  Bruno Haible  <bruno@clisp.org>
63237
63238         * modules/vfprintf-posix-tests: New file.
63239         * tests/test-vfprintf-posix.sh: New file.
63240         * tests/test-vfprintf-posix.c: New file.
63241         * tests/test-fprintf-posix.h: New file.
63242         * tests/test-fprintf-posix.out: New file.
63243
63244         * modules/vfprintf-posix: New file.
63245         * lib/vfprintf.c: New file.
63246         * m4/vfprintf-posix.m4: New file.
63247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63248         REPLACE_VFPRINTF.
63249         * lib/stdio_.h (vfprintf): New declaration.
63250         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63251         REPLACE_VFPRINTF.
63252
63253 2007-03-08  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63256
63257 2007-03-08  Bruno Haible  <bruno@clisp.org>
63258
63259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63260         instead of 'expr' invocations.
63261         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63262         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63266         Suggested by Paul Eggert.
63267
63268 2007-03-08  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/fseterr-tests: New file.
63271         * tests/test-fseterr.c: New file.
63272
63273         * modules/fseterr: New file.
63274         * lib/fseterr.h: New file.
63275         * lib/fseterr.c: New file.
63276
63277 2007-03-08  Bruno Haible  <bruno@clisp.org>
63278
63279         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63280         * lib/getopt_.h: Likewise.
63281         * lib/mbswidth.h: Likewise.
63282         * lib/setenv.h: Likewise.
63283         * lib/vasnprintf.h: Likewise.
63284         * lib/vasprintf.h: Likewise.
63285         * lib/verror.h: Likewise.
63286         * lib/xsetenv.h: Likewise.
63287         * lib/xvasprintf.h: Likewise.
63288
63289 2007-03-08  Jim Meyering  <jim@meyering.net>
63290
63291         * users.txt: Add parted.
63292
63293         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63294
63295 2007-03-07  Bruno Haible  <bruno@clisp.org>
63296
63297         * m4/printf.m4: Make the shell script snippets copy&pastable.
63298
63299 2007-03-02  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/netinet_in_.h: New file.
63302         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63303         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63304         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63305         (Depends-on): Add absolute-header.
63306         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63307         into netinet/in.h.
63308
63309 2007-03-03  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/sys_select_.h: New file.
63312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63313         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63314         * modules/sys_select (Files): Add lib/sys_select_.h.
63315         (Depends-on): Add absolute-header.
63316         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63317         into sys/select.h.
63318
63319 2007-03-02  Bruno Haible  <bruno@clisp.org>
63320
63321         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63322         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63323         values.
63324         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63325         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63326         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63327         * modules/sys_socket (Depends-on): Add absolute-header.
63328         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63329         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63330         (Include): Remove requirement of inclusion of <sys/types.h>.
63331
63332 2007-03-02  Bruno Haible  <bruno@clisp.org>
63333
63334         * lib/byteswap_.h (bswap_32): Fix formula.
63335
63336 2007-03-06  Bruno Haible  <bruno@clisp.org>
63337
63338         * modules/sprintf-posix-tests: New file.
63339         * tests/test-sprintf-posix.c: New file.
63340
63341         * modules/sprintf-posix: New file.
63342         * lib/sprintf.c: New file.
63343         * m4/sprintf-posix.m4: New file.
63344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63345         REPLACE_SPRINTF.
63346         * lib/stdio_.h (sprintf): New declaration.
63347         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63348         REPLACE_SPRINTF.
63349
63350 2007-03-06  Bruno Haible  <bruno@clisp.org>
63351
63352         * modules/vsprintf-posix-tests: New file.
63353         * tests/test-vsprintf-posix.c: New file.
63354         * tests/test-sprintf-posix.h: New file.
63355
63356         * modules/vsprintf-posix: New file.
63357         * lib/vsprintf.c: New file.
63358         * m4/vsprintf-posix.m4: New file.
63359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63360         REPLACE_VSPRINTF.
63361         * lib/stdio_.h (vsprintf): New declaration.
63362         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63363         REPLACE_VSPRINTF.
63364
63365 2007-03-06  Bruno Haible  <bruno@clisp.org>
63366
63367         * modules/vsnprintf (Depend-on): Remove minmax.
63368
63369 2007-03-06  Bruno Haible  <bruno@clisp.org>
63370
63371         * modules/snprintf-posix-tests: New file.
63372         * tests/test-snprintf-posix.c: New file.
63373
63374         * modules/snprintf-posix: New file.
63375         * m4/snprintf-posix.m4: New file.
63376         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63377         gl_FUNC_SNPRINTF.
63378         (gl_FUNC_SNPRINTF): Invoke it.
63379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63380         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63381         is set.
63382         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63383
63384 2007-03-06  Bruno Haible  <bruno@clisp.org>
63385
63386         * modules/vsnprintf-posix-tests: New file.
63387         * tests/test-vsnprintf-posix.c: New file.
63388         * tests/test-snprintf-posix.h: New file.
63389
63390         * modules/vsnprintf-posix: New file.
63391         * m4/vsnprintf-posix.m4: New file.
63392         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63393         gl_FUNC_VSNPRINTF.
63394         (gl_FUNC_VSNPRINTF): Invoke it.
63395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63396         * lib/stdio_.h (vsnprintf): Define as a replacement if
63397         REPLACE_VSNPRINTF is set.
63398         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63399
63400 2007-03-06  Bruno Haible  <bruno@clisp.org>
63401
63402         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63404
63405 2007-03-06  Bruno Haible  <bruno@clisp.org>
63406
63407         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63408         (asinl): Declare also if HAVE_DECL_ASINL is set.
63409         (atanl): Declare also if HAVE_DECL_ATANL is set.
63410         (ceill): Declare also if HAVE_DECL_CEILL is set.
63411         (cosl): Declare also if HAVE_DECL_COSL is set.
63412         (expl): Declare also if HAVE_DECL_EXPL is set.
63413         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63414         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63415         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63416         (logl): Declare also if HAVE_DECL_LOGL is set.
63417         (sinl): Declare also if HAVE_DECL_SINL is set.
63418         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63419         (tanl): Declare also if HAVE_DECL_TANL is set.
63420         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63423         declaration of frexpl, ldexpl.
63424         * modules/printf-frexpl (Depends-on): Add math.
63425         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63426
63427 2007-03-05  Bruno Haible  <bruno@clisp.org>
63428
63429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63430         frexpl and ldexpl are declared.
63431         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63432
63433 2007-03-05  Bruno Haible  <bruno@clisp.org>
63434
63435         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63436         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63437
63438 2007-03-05  Bruno Haible  <bruno@clisp.org>
63439
63440         * lib/stdio_.h: Include <stddef.h>.
63441
63442 2007-03-05  Bruno Haible  <bruno@clisp.org>
63443
63444         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63445
63446 2007-03-05  Bruno Haible  <bruno@clisp.org>
63447
63448         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63449         NetBSD 4, from Ralf Wildenhues.
63450
63451 2007-03-04  Bruno Haible  <bruno@clisp.org>
63452
63453         * lib/vasprintf.h: Update #if logic for the case when the functions
63454         exist but are overridden.
63455
63456 2007-03-04  Bruno Haible  <bruno@clisp.org>
63457
63458         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63459         implementations: glibc-2.4 and MacOS X 10.3.
63460         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63461         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63462         * tests/test-vasprintf-posix.c (test_function): Likewise.
63463
63464 2007-03-04  Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/vasprintf-posix-tests: New file.
63467         * tests/test-vasprintf-posix.c: New file.
63468
63469         * modules/vasprintf-posix: New file.
63470         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63471         defined.
63472         * m4/vasprintf-posix.m4: New file.
63473         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63474         gl_FUNC_VASPRINTF.
63475         (gl_FUNC_VASPRINTF): Invoke it.
63476         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63477         here.
63478         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63479
63480 2007-03-04  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63483         REPLACE_GETTIMEOFDAY.
63484         * modules/sys_time (Makefile.am): Likewise.
63485         * m4/sys_time_h.m4: Likewise.
63486         * m4/gettimeofday.m4: Likewise.
63487
63488 2007-03-04  Bruno Haible  <bruno@clisp.org>
63489
63490         * modules/vasnprintf-posix-tests: New file.
63491         * tests/test-vasnprintf-posix.c: New file.
63492
63493         * modules/vasnprintf-posix: New file.
63494         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63495         printf-frexpl.h.
63496         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63497         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63498         REPLACE_VASNPRINTF is defined.
63499         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63500         gl_FUNC_VASNPRINTF.
63501         (gl_FUNC_VASNPRINTF): Invoke it.
63502         * m4/vasnprintf-posix.m4: New file.
63503         * m4/printf.m4: New file.
63504
63505 2007-03-04  Bruno Haible  <bruno@clisp.org>
63506
63507         Compile progreloc.c only if --enable-relocatable is specified.
63508         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63509         if --enable-relocatable was specified.
63510         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63511         lib_SOURCES.
63512
63513 2007-03-04  Jim Meyering  <jim@meyering.net>
63514
63515         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63516         Use it consistently, rather than enumerating errno constants.
63517
63518 2007-03-04  Bruno Haible  <bruno@clisp.org>
63519
63520         * modules/xvasprintf-tests: New file.
63521         * tests/test-xvasprintf.c: New file.
63522
63523         * modules/vasprintf-tests: New file.
63524         * tests/test-vasprintf.c: New file.
63525
63526         * modules/vasnprintf-tests: New file.
63527         * tests/test-vasnprintf.c: New file.
63528
63529         * modules/vsnprintf-tests: New file.
63530         * tests/test-vsnprintf.c: New file.
63531
63532         * modules/snprintf-tests: New file.
63533         * tests/test-snprintf.c: New file.
63534
63535 2007-03-04  Bruno Haible  <bruno@clisp.org>
63536
63537         Compile relocatable.c only if --enable-relocatable is specified.
63538         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63539         gl_RELOCATABLE_LIBRARY.
63540         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63541         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63542         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63543         gl_RELOCATABLE_LIBRARY.
63544         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63545         (Makefile.am): Remove lib_SOURCES.
63546         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63547         gl_RELOCATABLE_LIBRARY.
63548         (Makefile.am): Remove lib_SOURCES.
63549         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63550         always.
63551         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63552         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63553
63554 2007-03-04  Bruno Haible  <bruno@clisp.org>
63555
63556         * modules/argmatch-tests: New file.
63557         * tests/test-argmatch.c: New file.
63558
63559         * tests/test-allocsa.c (main): Halve the number of loop runs.
63560
63561         * modules/alloca-opt-tests: New file.
63562         * tests/test-alloca-opt.c: New file.
63563
63564 2007-03-04  Jim Meyering  <jim@meyering.net>
63565
63566         Work around difference between Linux ACLs and Solaris 10 ZFS.
63567         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63568         for EINVAL.
63569
63570 2007-03-03  Bruno Haible  <bruno@clisp.org>
63571
63572         * modules/relocatable-prog (Depends-on): Add back progreloc's
63573         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63574
63575 2007-03-03  Bruno Haible  <bruno@clisp.org>
63576
63577         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63578         * modules/relocatable-lib: New file.
63579
63580 2007-03-03  Bruno Haible  <bruno@clisp.org>
63581
63582         * modules/relocatable-prog: Renamed from modules/relocatable.
63583         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63584
63585 2007-03-03  Bruno Haible  <bruno@clisp.org>
63586
63587         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63588         m4/relocatable-lib.m4.
63589         (Depends-on): Remove 'relocatable'.
63590         (configure.ac): Add gl_RELOCATABLE_NOP.
63591
63592 2007-03-03  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/relocatable-prog-wrapper: New file.
63595         * modules/relocatable (Depends-on): Add it. Remove all other
63596         dependencies except progname.
63597         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63598
63599         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63600         (gl_FUNC_STRERROR): Nop.
63601         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63602
63603         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63604         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63605
63606         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63607         (gl_FUNC_READLINK): Update.
63608
63609         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63610
63611 2007-03-03  Bruno Haible  <bruno@clisp.org>
63612
63613         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63614         * modules/xreadlink (Depends-on): Add unistd.
63615         * modules/xreadlink-with-size (Depends-on): Likewise.
63616
63617 2007-03-03  Bruno Haible  <bruno@clisp.org>
63618
63619         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63620         extracted from gt_FUNC_SETENV.
63621         (gt_FUNC_SETENV): Remove macro.
63622         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63623         remove gt_FUNC_SETENV.
63624
63625 2007-03-03  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63628         ENABLE_RELOCATABLE here.
63629         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63630
63631 2007-03-03  Bruno Haible  <bruno@clisp.org>
63632
63633         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63634         * tests/test-rbtreehash_list.c: Include progname.h.
63635         (main): Call set_program_name.
63636
63637         * modules/rbtree-oset-tests (Depends-on): Add progname.
63638         * tests/test-rbtree_oset.c: Include progname.h.
63639         (main): Call set_program_name.
63640
63641         * modules/rbtree-list-tests (Depends-on): Add progname.
63642         * tests/test-rbtree_list.c: Include progname.h.
63643         (main): Call set_program_name.
63644
63645         * modules/linked-list-tests (Depends-on): Add progname.
63646         * tests/test-linked_list.c: Include progname.h.
63647         (main): Call set_program_name.
63648
63649 2007-03-03  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63652         All uses of __restrict changed to _Restrict_.
63653         * lib/glob_.h (__restrict): Remove macro.
63654
63655 2007-03-02  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/gettext (configure.ac): Require gettext infrastructure
63658         from version 0.16.1.
63659
63660 2007-03-02  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/linkedhash-list-tests (Depends-on): Add progname.
63663         * tests/test-linkedhash_list.c: Include progname.h.
63664         (main): Call set_program_name.
63665
63666         * modules/carray-list-tests (Depends-on): Add progname.
63667         * tests/test-carray_list.c: Include progname.h.
63668         (main): Call set_program_name.
63669
63670         * modules/avltreehash-list-tests (Depends-on): Add progname.
63671         * tests/test-avltreehash_list.c: Include progname.h.
63672         (main): Call set_program_name.
63673
63674         * modules/avltree-oset-tests (Depends-on): Add progname.
63675         * tests/test-avltree_oset.c: Include progname.h.
63676         (main): Call set_program_name.
63677
63678         * modules/avltree-list-tests (Depends-on): Add progname.
63679         * tests/test-avltree_list.c: Include progname.h.
63680         (main): Call set_program_name.
63681
63682         * modules/array-oset-tests (Depends-on): Add progname.
63683         * tests/test-array_oset.c: Include progname.h.
63684         (main): Call set_program_name.
63685
63686         * modules/array-list-tests (Depends-on): Add progname.
63687         * tests/test-array_list.c: Include progname.h.
63688         (main): Call set_program_name.
63689
63690         * modules/argp-tests (Depends-on): Add progname.
63691         * tests/test-argp.c: Include argp.h first. Include progname.h.
63692         (main): Call set_program_name.
63693
63694 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63695
63696         * doc/gnulib-tool.texi (Initial import): Reword description of
63697         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63698         limited effect even if defined after the first system include.
63699
63700 2007-03-01  Bruno Haible  <bruno@clisp.org>
63701
63702         * build-aux/config.libpath: Update to libtool-1.5.22.
63703         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63704
63705 2007-03-01  Bruno Haible  <bruno@clisp.org>
63706
63707         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63708         foo_CFLAGS.
63709         Reported by Ralf Wildenhues.
63710
63711 2007-03-01  Bruno Haible  <bruno@clisp.org>
63712
63713         * build-aux/install-reloc: Remove object files left over by some
63714         compilers.
63715         Reported by Ralf Wildenhues.
63716
63717 2007-03-01  Bruno Haible  <bruno@clisp.org>
63718
63719         * build-aux/install-reloc: Break long lines.
63720
63721 2007-03-01  Bruno Haible  <bruno@clisp.org>
63722
63723         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63724         Reported by Ralf Wildenhues.
63725
63726 2007-03-01  Bruno Haible  <bruno@clisp.org>
63727
63728         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63729         include ordering constraints.
63730
63731 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63735         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63736         as another example.
63737         * lib/time_.h: Fix misspelling.
63738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63739         Require gl_HEADER_TIME_H_DEFAULTS.
63740         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63741         * m4/time_r.m4 (gl_TIME_R): Likewise.
63742         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63743
63744 2007-03-01  Bruno Haible  <bruno@clisp.org>
63745
63746         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63747         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63748
63749 2007-03-01  Jim Meyering  <jim@meyering.net>
63750
63751         * modules/xreadlink (Maintainer): Add my name.
63752         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63753
63754 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63755             Bruno Haible  <bruno@clisp.org>
63756
63757         * build-aux/install-reloc: Compile also c-ctype.c.
63758         * build-aux/relocatable.sh.in: New file.
63759         * doc/relocatable.texi: New file.
63760         * doc/relocatable-maint.texi: New file.
63761         * doc/gnulib.texi: Include relocatable-maint.texi.
63762         * lib/progreloc.c: Include unistd.h unconditionally.
63763         * lib/relocwrapper.c: Include unistd.h unconditionally.
63764         Include c-ctype.h.
63765         (add_dotbin): Use c_tolower.
63766         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63767         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63768         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63769         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63770         to m4/relocatable-lib.m4.
63771         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63772         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63773         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63774         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63775         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63776         * modules/relocatable: New file.
63777         * modules/relocatable-lib: New file.
63778         * modules/relocatable-script: New file.
63779
63780 2007-02-28  Bruno Haible  <bruno@clisp.org>
63781
63782         Import --enable-relocatable infrastructure.
63783         * build-aux/config.libpath: New file, from GNU gettext.
63784         * build-aux/install-reloc: New file, from GNU gettext.
63785         * build-aux/reloc-ldflags: New file, from GNU gettext.
63786         * lib/relocatable.h: New file, from GNU gettext.
63787         * lib/relocatable.c: New file, from GNU gettext.
63788         * lib/relocwrapper.c: New file, from GNU gettext.
63789         * m4/relocatable.m4: New file, from GNU gettext.
63790
63791 2007-02-28  Bruno Haible  <bruno@clisp.org>
63792
63793         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63794
63795         * modules/xreadlink: New file, from GNU gettext with modifications.
63796         * lib/xreadlink.c: New file, from GNU gettext.
63797         * lib/xreadlink.h: Add comments.
63798         (xreadlink): New declaration.
63799
63800         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63801         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63802         lib/xreadlink-with-size.c.
63803         (configure.ac): Remove gl_XREADLINK invocation.
63804         (Makefile.am): Augment lib_SOURCES.
63805         * m4/xreadlink.m4: Remove file.
63806         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63807         (xreadlink_with_size): Renamed from xreadink.
63808         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63809         * modules/canonicalize (Depends-on): Replace xreadlink with
63810         xreadlink-with-size.
63811         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63812
63813 2007-02-25  Jim Meyering  <jim@meyering.net>
63814
63815         * build-aux/announce-gen: When complaining about excess arguments,
63816         list them.
63817
63818 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63819
63820         * README: Document signed integer overflow situation more
63821         accurately.
63822
63823 2007-02-25  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63826         'a' or 'A' conversion.
63827
63828 2007-02-25  Bruno Haible  <bruno@clisp.org>
63829
63830         * modules/filename: Renamed from modules/pathname.
63831         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63832         lib/concatpath.c with lib/concat-filename.c.
63833         (Makefile.am): Update.
63834         (Include): Replace pathname.h with filename.h.
63835         * lib/filename.h: Renamed from lib/pathname.h.
63836         (concatenated_filename): Renamed from concatenated_pathname.
63837         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63838         (concatenated_filename): Renamed from concatenated_pathname.
63839         * lib/findprog.c: Include filename.h instead of pathname.h.
63840         (find_in_path): Update.
63841         * lib/javacomp.c: Include filename.h instead of pathname.h.
63842         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63843         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63844         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63845         is_oldgcj_14_13_usable, is_javac_usable): Update.
63846         * lib/javaexec.c: Include filename.h instead of pathname.h.
63847         (execute_java_class): Update.
63848         * modules/findprog: Update.
63849         * modules/javacomp: Update.
63850         * modules/javaexec: Update.
63851         * MODULES.html.sh (File system functions): Add 'filename', remove
63852         'pathname'.
63853
63854 2007-02-25  Bruno Haible  <bruno@clisp.org>
63855
63856         * modules/printf-frexpl-tests: New file.
63857         * tests/test-printf-frexpl.c: New file.
63858
63859         * modules/printf-frexpl: New file.
63860         * lib/printf-frexpl.h: New file.
63861         * lib/printf-frexpl.c: New file.
63862         * m4/printf-frexpl.m4: New file.
63863
63864 2007-02-25  Bruno Haible  <bruno@clisp.org>
63865
63866         * modules/printf-frexp-tests: New file.
63867         * tests/test-printf-frexp.c: New file.
63868
63869         * modules/printf-frexp: New file.
63870         * lib/printf-frexp.h: New file.
63871         * lib/printf-frexp.c: New file.
63872         * m4/printf-frexp.m4: New file.
63873
63874 2007-02-25  Bruno Haible  <bruno@clisp.org>
63875
63876         Assume automake >= 1.10 for the tests.
63877         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63878         * modules/arctwo-tests: Likewise.
63879         * modules/argp-tests: Likewise.
63880         * modules/avltree-list-tests: Likewise.
63881         * modules/avltree-oset-tests: Likewise.
63882         * modules/avltreehash-list-tests: Likewise.
63883         * modules/carray-list-tests: Likewise.
63884         * modules/crc-tests: Likewise.
63885         * modules/des-tests: Likewise.
63886         * modules/gc-arcfour-tests: Likewise.
63887         * modules/gc-arctwo-tests: Likewise.
63888         * modules/gc-des-tests: Likewise.
63889         * modules/gc-hmac-md5-tests: Likewise.
63890         * modules/gc-hmac-sha1-tests: Likewise.
63891         * modules/gc-md2-tests: Likewise.
63892         * modules/gc-md4-tests: Likewise.
63893         * modules/gc-md5-tests: Likewise.
63894         * modules/gc-pbkdf2-sha1-tests: Likewise.
63895         * modules/gc-rijndael-tests: Likewise.
63896         * modules/gc-sha1-tests: Likewise.
63897         * modules/gc-tests: Likewise.
63898         * modules/getaddrinfo-tests: Likewise.
63899         * modules/hmac-md5-tests: Likewise.
63900         * modules/hmac-sha1-tests: Likewise.
63901         * modules/linked-list-tests: Likewise.
63902         * modules/linkedhash-list-tests: Likewise.
63903         * modules/lock-tests: Likewise.
63904         * modules/md2-tests: Likewise.
63905         * modules/md4-tests: Likewise.
63906         * modules/md5-tests: Likewise.
63907         * modules/rbtree-list-tests: Likewise.
63908         * modules/rbtree-oset-tests: Likewise.
63909         * modules/rbtreehash-list-tests: Likewise.
63910         * modules/read-file-tests: Likewise.
63911         * modules/rijndael-tests: Likewise.
63912         * modules/stdint-tests: Likewise.
63913         * modules/tls-tests: Likewise.
63914
63915 2007-02-24  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63918         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63919         function; instead check whether isnan with a double argument links.
63920         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63921         function; instead check whether isnan with a 'long double' argument
63922         links.
63923         Reported by Eric Blake <ebb9@byu.net>.
63924
63925 2007-02-24  Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63928         defined.
63929         * lib/isnanl.c: Remove all code. Just include isnan.c.
63930         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63931
63932 2007-02-25  Jim Meyering  <jim@meyering.net>
63933
63934         Avoid conflicting types for 'unsetenv' on FreeBSD.
63935         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63936         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63937         in stdlib.h.
63938
63939 2007-02-24  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/isnanl-nolibm-tests: New file.
63942         * tests/test-isnanl.c: New file.
63943
63944         * modules/isnanl-nolibm: New file.
63945         * lib/isnanl.h: New file.
63946         * lib/isnanl.c: New file.
63947         * m4/isnanl.m4: New file.
63948
63949 2007-02-24  Bruno Haible  <bruno@clisp.org>
63950
63951         * modules/isnan-nolibm-tests: New file.
63952         * tests/test-isnan.c: New file.
63953
63954         * modules/isnan-nolibm: New file.
63955         * lib/isnan.h: New file.
63956         * lib/isnan.c: New file.
63957         * m4/isnan.m4: New file.
63958
63959 2007-02-24  Bruno Haible  <bruno@clisp.org>
63960
63961         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63962         assume that an exponent fits in 20 bits.
63963
63964 2007-02-24  Jim Meyering  <jim@meyering.net>
63965
63966         * m4/regex.m4: Update the description of the configure-time option,
63967         --without-included-regex, to state accurately what the defaults are,
63968         and perhaps to give people an idea why using this option is risky.
63969
63970 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63973         loops on small arguments.  This attempts to avoid the problem
63974         Bruno Haible reported for AIX 4.3.2 in
63975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63976
63977 2007-02-23  Bruno Haible  <bruno@clisp.org>
63978
63979         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63980         Needed for help2man.
63981
63982 2007-02-23  Karl Berry  <karl@gnu.org>
63983
63984         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63985         exists, foo.h should be cvs-ignored, not committed.
63986
63987 2007-02-23  Eric Blake  <ebb9@byu.net>
63988
63989         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63990         * lib/stat-time.h (includes): Likewise.
63991         * lib/utimecmp.c (includes): Likewise.
63992         * lib/utimens.h (includes): Likewise.
63993         * lib/getdate.y (includes): Also include "timespec.h" for use
63994         internal to the module.
63995         * modules/utimens (Depends-on): Revert yesterday's patch.
63996         * modules/nanosleep (Depends-on): Add missing dependency.
63997
63998 2007-02-22  Bruno Haible  <bruno@clisp.org>
63999
64000         * lib/glob.c: Don't include getlogin_r.h.
64001
64002 2007-02-22  Jim Meyering  <jim@meyering.net>
64003
64004         * modules/utimens (Depends-on): Add timespec, required for
64005         utimens.h's inclusion of timespec.h.
64006
64007 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64010         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64011         Schwab in
64012         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64013         I'll try to think of a better way to fix the Solaris problem.
64014
64015         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64016         like glibc; on Solaris 10, it fails with errno == EINVAL.
64017         POSIX says the behavior is unspecified if the first argument is NULL,
64018         so play it safe and never pass NULL to the system getcwd.
64019
64020 2007-02-21  Jim Meyering  <jim@meyering.net>
64021
64022         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64023         of gettimeofday.  It would conflict with the one now always
64024         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64025         an IRIX 6.5 build failure.
64026
64027 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         Minor fixups to port to Solaris 10 with Sun C 5.8.
64030         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64031         * modules/getcwd (Depends-on): Add dirfd.
64032         * lib/putenv.c (putenv): #undef it.
64033         (rpl_putenv): New decl.
64034         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64035
64036 2007-02-20  Bruno Haible  <bruno@clisp.org>
64037
64038         * modules/stdio-tests: New file.
64039         * tests/test-stdio.c: New file.
64040
64041         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64042         (Depends-on): Add stdio.
64043         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64044         (Include): Use <stdio.h> instead of vsnprintf.h.
64045         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64046         HAVE_DECL_VSNPRINTF.
64047         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64048
64049         * modules/snprintf (Files): Remove lib/snprintf.h.
64050         (Depends-on): Add stdio.
64051         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64052         (Include): Use <stdio.h> instead of snprintf.h.
64053         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64054         HAVE_DECL_SNPRINTF.
64055         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64056         * lib/getaddrinfo.c: Likewise.
64057
64058         * modules/stdio: New file.
64059         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64060         * lib/snprintf.h: Remove file.
64061         * lib/vsnprintf.h: Remove file.
64062         * lib/.cppi-disable: Remove snprintf.h.
64063         * m4/stdio_h.m4: New file.
64064         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64065
64066 2007-02-20  Jim Meyering  <jim@meyering.net>
64067
64068         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64069         used by e.g., mingw.  From Bruno Haible.
64070
64071 2007-02-19  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64074         warnings.
64075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64076
64077 2007-02-19  Bruno Haible  <bruno@clisp.org>
64078
64079         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64080         from mingw users.
64081
64082 2007-02-19  Bruno Haible  <bruno@clisp.org>
64083
64084         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64085         warnings.
64086         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64087
64088 2007-02-19  Jim Meyering  <jim@meyering.net>
64089
64090         Don't use FD after a successful "fdopendir (fd)".
64091         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64092         Reset it by calling dirfd on the just-obtained DIR*.
64093
64094         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64095         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64096
64097 2007-02-18  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/readlink.c: Include <unistd.h>.
64100         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64101         HAVE_READLINK.
64102         * modules/readlink (Depends-on): Add unistd.
64103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64104         (Include): Add <unistd.h>.
64105
64106         * lib/getlogin_r.h: Remove file.
64107         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64108         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64109         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64110         HAVE_DECL_GETLOGIN_R.
64111         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64113         (Include): Use <unistd.h> instead of getlogin_r.h.
64114
64115         * lib/getcwd.h: Remove file.
64116         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64117         * lib/xgetcwd.c: Likewise.
64118         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64119         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64120         * modules/getcwd (Files): Remove lib/getcwd.h.
64121         (Depends-on): Add unistd.
64122         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64123         (Include): Use <unistd.h> instad of getcwd.h.
64124
64125         * lib/ftruncate.c: Include <unistd.h> first.
64126         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64127         Set HAVE_FTRUNCATE.
64128         * modules/ftruncate (Depends-on): Add unistd.
64129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64130
64131         * lib/fchdir.c: Include <unistd.h> first.
64132         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64134         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64135         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64136         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64137
64138         * lib/dup2.c: Include <unistd.h> first.
64139         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64140         HAVE_DUP2.
64141         * modules/dup2 (Depends-on): Add unistd.
64142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64143
64144         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64145         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64146         REPLACE_CHOWN. Don't define chown as a macro here.
64147         * modules/chown (Depends-on): Add unistd.
64148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64149
64150         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64151         Add definition for GL_LINK_WARNING.
64152         (chown, dup2): New declarations.
64153         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64154         link warning.
64155         (ftruncate): New declaration.
64156         (getcwd): New declaration, taken from old getcwd.h.
64157         (getlogin_r): New declaration, taken from old getlogin_r.h.
64158         (readlink): New declaration.
64159         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64160         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64161         (gl_PREREQ_UNISTD): Remove macro.
64162         (gl_UNISTD_MODULE_INDICATOR): New macro.
64163         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64164         many new variables. Don't set UNISTD_H.
64165         * modules/unistd (Description): Change.
64166         (Depends-on): Add link-warning.
64167         (configure.ac): Update.
64168         (Makefile.am): Create unistd.h always. Substitute many new variables
64169         into it.
64170
64171 2007-02-18  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64174         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64175         HAVE_GETSUBOPT.
64176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64177         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64178         * lib/getsubopt.h: Remove file.
64179         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64180         (Depends-on): Add stdlib.
64181         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64182         (Includes): Use <stdlib.h> instead of getsubopt.h.
64183         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64184         Set HAVE_GETSUBOPT.
64185         * lib/getsubopt.c: Don't include getsubopt.h.
64186
64187 2007-02-18  Bruno Haible  <bruno@clisp.org>
64188
64189         * modules/fchdir (Depends-on): Add dup2.
64190
64191 2007-02-18  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/stdlib_.h: Handle glibc's special invocation convention
64194         specially.
64195
64196 2007-02-18  Bruno Haible  <bruno@clisp.org>
64197
64198         * modules/stdlib-tests: New file.
64199         * tests/test-stdlib.c: New file.
64200
64201         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64202         (Depends-on): Add stdlib.
64203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64204         (Includes): Use <stdlib.h> instead of mkstemp.h.
64205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64206         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64207         * lib/mkstemp.c: Don't include mkstemp.h.
64208         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64209         * lib/stdlib--.h: Don't include mkstemp.h.
64210
64211         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64212         (Depends-on): Add stdlib.
64213         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64214         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64215         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64216         HAVE_MKDTEMP.
64217         * lib/mkdtemp.c: Don't include mkdtemp.h.
64218         * lib/clean-temp.c: Don't include mkdtemp.h.
64219
64220         * modules/exit (Files): Remove lib/exit.h.
64221         (Depends-on): Add stdlib.
64222         (Makefile.am): Remove lib_SOURCES.
64223         (Include): Use <stdlib.h> instead of exit.h.
64224         * lib/argmatch.c: Don't include exit.h.
64225         * lib/execute.c: Likewise.
64226         * lib/pagealign_alloc.c: Likewise.
64227         * lib/pipe.c: Likewise.
64228         * lib/wait-process.c: Likewise.
64229         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64230         * lib/exitfail.c: Likewise.
64231         * lib/savewd.c: Likewise.
64232         * lib/xsetenv.c: Likewise.
64233
64234         * modules/stdlib: New file.
64235         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64236         and extra comments about mkstemp().
64237         * lib/exit.h: Remove file.
64238         * lib/mkdtemp.h: Remove file.
64239         * lib/mkstemp.h: Remove file.
64240         * m4/stdlib_h.m4: New file.
64241         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64242
64243 2007-02-18  Bruno Haible  <bruno@clisp.org>
64244
64245         * modules/math-tests: New file.
64246         * tests/test-math.c: New file.
64247
64248         * modules/math: New file.
64249         * modules/mathl (Files): Remove lib/mathl.h.
64250         (Depends-on): Add math.
64251         (Makefile.am): Don't mention mathl.h.
64252         (Include): Use <math.h> instead of mathl.h.
64253         * lib/math_.h: New file.
64254         * lib/mathl.h: Remove file.
64255         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64256         mathl.h.
64257         * lib/asinl.c: Likewise.
64258         * lib/atanl.c: Likewise.
64259         * lib/ceill.c: Likewise.
64260         * lib/cosl.c: Likewise.
64261         * lib/expl.c: Likewise.
64262         * lib/floorl.c: Likewise.
64263         * lib/frexpl.c: Likewise.
64264         * lib/ldexpl.c: Likewise.
64265         * lib/logl.c: Likewise.
64266         * lib/sincosl.c: Likewise.
64267         * lib/sinl.c: Likewise.
64268         * lib/sqrtl.c: Likewise.
64269         * lib/tanl.c: Likewise.
64270         * lib/trigl.c: Likewise.
64271         * m4/math_h.m4: New file.
64272         * MODULES.html.sh (Mathematics): Add math.
64273
64274 2007-02-17  Bruno Haible  <bruno@clisp.org>
64275
64276         * modules/wctype-tests: New file.
64277         * tests/test-wctype.c: New file.
64278
64279         * modules/wchar-tests: New file.
64280         * tests/test-wchar.c: New file.
64281
64282         * modules/unistd-tests: New file.
64283         * tests/test-unistd.c: New file.
64284
64285         * modules/time-tests: New file.
64286         * tests/test-time.c: New file.
64287
64288         * modules/sysexits-tests: New file.
64289         * tests/test-sysexits.c: New file.
64290
64291         * modules/sys_time-tests: New file.
64292         * tests/test-sys_time.c: New file.
64293
64294         * modules/sys_stat-tests: New file.
64295         * tests/test-sys_stat.c: New file.
64296
64297         * modules/sys_socket-tests: New file.
64298         * tests/test-sys_socket.c: New file.
64299
64300         * modules/sys_select-tests: New file.
64301         * tests/test-sys_select.c: New file.
64302
64303         * modules/string-tests: New file.
64304         * tests/test-string.c: New file.
64305
64306         * modules/stdbool-tests: New file.
64307         * tests/test-stdbool.c: New file.
64308
64309         * modules/netinet_in-tests: New file.
64310         * tests/test-netinet_in.c: New file.
64311
64312         * modules/inttypes-tests: New file.
64313         * tests/test-inttypes.c: New file.
64314
64315         * modules/fcntl-tests: New file.
64316         * tests/test-fcntl.c: New file.
64317
64318         * modules/byteswap-tests: New file.
64319         * tests/test-byteswap.c: New file.
64320
64321         * modules/arpa_inet-tests: New file.
64322         * tests/test-arpa_inet.c: New file.
64323
64324 2007-02-17  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64327         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64328         if the corresponding module is not enabled. Emit link warnings if
64329         the function is used nevertheless.
64330         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64331         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64332         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64333         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64334         * modules/inttypes (Depends-on): Add link-warning.
64335         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64336         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64337         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64338         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64339         * modules/imaxdiv (configure.ac): Likewise.
64340         * modules/strtoimax (configure.ac): Likewise.
64341         * modules/strtoumax (configure.ac): Likewise.
64342
64343 2007-02-17  Bruno Haible  <bruno@clisp.org>
64344
64345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64346         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64347         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64348         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64349
64350 2007-02-17  Bruno Haible  <bruno@clisp.org>
64351
64352         * modules/link-warning: New file.
64353         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64354         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64355         * modules/string (Depends-on): Add link-warning.
64356         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64357         string.h.
64358         * MODULES.html.sh (Support for building libraries and executables): Add
64359         link-warning.
64360
64361 2007-02-17  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64364         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64365         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64366         long lines.
64367
64368 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64369             Bruno Haible  <bruno@clisp.org>
64370
64371         * modules/tmpfile: New file.
64372         * lib/tmpfile.c: New file.
64373         * m4/tmpfile.m4: New file.
64374         * MODULES.html.sh (func_all_modules): New section "Input/output".
64375
64376 2007-02-15  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64379         (supports_delete_on_close): New function.
64380         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64381
64382 2007-02-14  Bruno Haible  <bruno@clisp.org>
64383
64384         * modules/mbspcasecmp-tests: New file.
64385         * tests/test-mbspcasecmp.sh: New file.
64386         * tests/test-mbspcasecmp.c: New file.
64387
64388         New module mbspcasecmp.
64389         * modules/mbspcasecmp: New file.
64390         * lib/mbspcasecmp.c: New file.
64391         * lib/string_.h (strncasecmp): Change warning message.
64392         (mbspcasecmp): New declaration.
64393         * m4/mbspcasecmp.m4: New file.
64394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64395         GNULIB_MBSPCASECMP.
64396         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64397         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64398
64399 2007-02-14  Bruno Haible  <bruno@clisp.org>
64400
64401         * modules/mbsncasecmp-tests: New file.
64402         * tests/test-mbsncasecmp.sh: New file.
64403         * tests/test-mbsncasecmp.c: New file.
64404
64405         New module mbsncasecmp.
64406         * modules/mbsncasecmp: New file.
64407         * lib/mbsncasecmp.c: New file.
64408         * lib/string_.h (mbsncasecmp): New declaration.
64409         * m4/mbsncasecmp.m4: New file.
64410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64411         GNULIB_MBSNCASECMP.
64412         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64413         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64414
64415 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64418         Verify that it doesn't overlap with our flags.
64419         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64420         do not have the desired effect in multibyte locales; instead, use
64421         mbscasecmp.
64422         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64423         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64424         we don't require GNU fnmatch ourselves (if our users require it, they
64425         should do so explicitly).
64426
64427         Fix regex code so it doesn't rely on strcasecmp.
64428         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64429         Otherwise, include gnulib's langinfo.h.
64430         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64431         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64432         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64433         * modules/regex (FILES): Remove m4/codeset.m4.
64434         (Depends-on): Add localcharset.  Remove strcase.
64435
64436 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64437
64438         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64439         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64440
64441 2007-02-13  Bruno Haible  <bruno@clisp.org>
64442
64443         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64445
64446 2007-02-12  Bruno Haible  <bruno@clisp.org>
64447
64448         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64449         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64450         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64451         time warning rather than a link error.
64452
64453 2007-02-12  Bruno Haible  <bruno@clisp.org>
64454
64455         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64456         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64457         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64458
64459 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64460
64461         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64462         args, not 2.
64463
64464 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64465
64466         New module 'time', so that apps can include <time.h> as per
64467         POSIX and GNU instead of separate include files like time_r.h
64468         and timegm.h.  This implementation tries out a simpler approach
64469         for replacing decls in standard include files (as compared to
64470         the string module), somewhat as an experiment.
64471
64472         * config/srclist.txt: Comment out mktime.c for now.
64473         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64474         since it doesn't apply any more.  Use generic wording instead.
64475         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64476         'time'.
64477         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64478         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64479         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64480         Don't include <sys/types.h>; no longer needed since we assume C89.
64481         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64482         * lib/strftime.c: Likewise.
64483         * lib/time_r.c: Likewise.
64484         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64485         * lib/nanosleep.c: Include <time.h> first, to check interface.
64486         * lib/strptime.c: Likewise.
64487         * lib/time_r.c: Likewise.
64488         * lib/timegm.c: Likewise.
64489         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64490         needed.
64491         * lib/timegm.c: Don't include timegm.h; no longer needed.
64492         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64493         time.h now handles any problems in that area.
64494         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64495         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64496         that time.h defines struct timespec.
64497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64498         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64499         handles that.
64500         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64501         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64502         needed.  Set REPLACE_LOCALTIME.
64503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64504         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64505         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64506         nanosleep; time_h.m4 now does that.  Don't require
64507         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64508         module handles this now.
64509         * modules/getdate (Depends-on): Remove timespec.  Add time.
64510         * modules/nanosleep (Depends-on): Likewise.
64511         * modules/stat-time (Depends-on): Likewise.
64512         * modules/nanosleep (Include): Include time.h, not timespec.h.
64513         * modules/strptime (Files): Remove lib/strptime.h.
64514         (Depends-on): Add extensions, time.
64515         (Include): Include time.h, not strptime.h.
64516         * modules/time_r (Files): Remove lib/time_r.h.
64517         (Depends-on): Add time.
64518         (Include): Include time.h, not time_r.h.
64519         * modules/timegm: Likewise.
64520         * modules/timespec (Description): Now does timespec-related decls
64521         of our own, instead of struct timespec itself.
64522         (Depends-on): Add time; remove extensions.
64523         (Maintainer): Add self.
64524         * modules/utimecmp (Depends-on): Add time; remove timespec.
64525         * modules/utimens (Depends-on): Likewise.
64526         * modules/xnanosleep (Depends-on): Likewise.
64527
64528 2007-02-11  Bruno Haible  <bruno@clisp.org>
64529
64530         * lib/c-strstr.c: Include allocsa.h.
64531         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64532         * lib/c-strcasestr.c: Include allocsa.h.
64533         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64534         * lib/strcasestr.c: Include allocsa.h.
64535         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64536         * lib/mbsstr.c: Include allocsa.h.
64537         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64538         allocsa/freesa instead of malloc/free.
64539         * lib/mbscasestr.c: Include allocsa.h.
64540         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64541         allocsa/freesa instead of malloc/free.
64542         * modules/c-strstr (Depends-on): Add allocsa.
64543         * modules/c-strcasestr (Depends-on): Likewise.
64544         * modules/strcasestr (Depends-on): Likewise.
64545         * modules/mbsstr (Depends-on): Likewise.
64546         * modules/mbscasestr (Depends-on): Likewise.
64547
64548 2007-02-11  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64551
64552         * modules/mbsspn-tests: New file.
64553         * tests/test-mbsspn.sh: New file.
64554         * tests/test-mbsspn.c: New file.
64555
64556 2007-02-11  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64559
64560         * modules/mbspbrk-tests: New file.
64561         * tests/test-mbspbrk.sh: New file.
64562         * tests/test-mbspbrk.c: New file.
64563
64564 2007-02-11  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64567         unneeded cast.
64568
64569         * modules/mbscspn-tests: New file.
64570         * tests/test-mbscspn.sh: New file.
64571         * tests/test-mbscspn.c: New file.
64572
64573 2007-02-11  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/mbscasecmp-tests: New file.
64576         * tests/test-mbscasecmp.sh: New file.
64577         * tests/test-mbscasecmp.c: New file.
64578
64579 2007-02-11  Bruno Haible  <bruno@clisp.org>
64580
64581         Ensure O(n) worst-case complexity of mbscasestr.
64582         * lib/mbscasestr.c: Include stdbool.h.
64583         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64584         functions.
64585         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64586         the bookkeeping indicates that it's worth it.
64587         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64588
64589         * modules/mbscasestr-tests: New file.
64590         * tests/test-mbscasestr1.c: New file.
64591         * tests/test-mbscasestr2.sh: New file.
64592         * tests/test-mbscasestr2.c: New file.
64593         * tests/test-mbscasestr3.sh: New file.
64594         * tests/test-mbscasestr3.c: New file.
64595         * tests/test-mbscasestr4.sh: New file.
64596         * tests/test-mbscasestr4.c: New file.
64597         * m4/locale-tr.m4: New file.
64598
64599 2007-02-11  Bruno Haible  <bruno@clisp.org>
64600
64601         Ensure O(n) worst-case complexity of mbsstr.
64602         * lib/mbsstr.c: Include stdbool.h.
64603         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64604         functions.
64605         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64606         bookkeeping indicates that it's worth it.
64607         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64608
64609         * modules/mbsstr-tests: New file.
64610         * tests/test-mbsstr1.c: New file.
64611         * tests/test-mbsstr2.sh: New file.
64612         * tests/test-mbsstr2.c: New file.
64613         * tests/test-mbsstr3.sh: New file.
64614         * tests/test-mbsstr3.c: New file.
64615         * m4/locale-fr.m4: New file.
64616
64617 2007-02-11  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/mbsrchr.c (mbsrchr): Fix bug.
64620
64621         * modules/mbsrchr-tests: New file.
64622         * tests/test-mbsrchr.sh: New file.
64623         * tests/test-mbsrchr.c: New file.
64624
64625 2007-02-11  Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/mbschr.c (mbschr): Fix bug.
64628
64629         * modules/mbschr-tests: New file.
64630         * tests/test-mbschr.sh: New file.
64631         * tests/test-mbschr.c: New file.
64632         * m4/locale-zh.m4: New file.
64633
64634 2007-02-11  Bruno Haible  <bruno@clisp.org>
64635
64636         Support for copying multibyte string iterators.
64637         * lib/mbiter.h: Include <string.h>.
64638         (mbiter_multi_copy): New function.
64639         (mbi_copy): New macro.
64640         * lib/mbuiter.h: Include <string.h>.
64641         (mbuiter_multi_copy): New function.
64642         (mbui_copy): New macro.
64643
64644 2007-02-11  Bruno Haible  <bruno@clisp.org>
64645
64646         New module mbslen.
64647         * modules/mbslen: New file.
64648         * lib/mbslen.c: New file.
64649         * lib/string_.h (mbslen): New declaration.
64650         * m4/mbslen.m4: New file.
64651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64652         GNULIB_MBSLEN.
64653         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64654         * MODULES.html.sh (Internationalization functions): Add mbslen.
64655
64656 2007-02-11  Bruno Haible  <bruno@clisp.org>
64657
64658         Ensure O(n) worst-case complexity of strcasestr substitute.
64659         * lib/strcasestr.c: Include stdbool.h.
64660         (knuth_morris_pratt): New function.
64661         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64662         bookkeeping indicates that it's worth it.
64663         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64664
64665         * modules/strcasestr-tests: New file.
64666         * tests/test-strcasestr.c: New file.
64667
64668 2007-02-11  Bruno Haible  <bruno@clisp.org>
64669
64670         Ensure O(n) worst-case complexity of c_strcasestr.
64671         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64672         (knuth_morris_pratt): New function.
64673         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64674         the bookkeeping indicates that it's worth it.
64675         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64676
64677         * modules/c-strcasestr-tests: New file.
64678         * tests/test-c-strcasestr.c: New file.
64679
64680 2007-02-11  Bruno Haible  <bruno@clisp.org>
64681
64682         Ensure O(n) worst-case complexity of c_strstr.
64683         * lib/c-strstr.c: Include stdbool.h, string.h.
64684         (knuth_morris_pratt): New function.
64685         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64686         bookkeeping indicates that it's worth it.
64687         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64688
64689         * lib/c-strstr.c: Complete rewrite for maintainability.
64690
64691         * modules/c-strstr-tests: New file.
64692         * tests/test-c-strstr.c: New file.
64693
64694 2007-02-11  Bruno Haible  <bruno@clisp.org>
64695
64696         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64697         5.2.1 and earlier, whereby \055 was treated just like the range
64698         delimiter '-'.
64699         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64700
64701 2007-02-08  Bruno Haible  <bruno@clisp.org>
64702
64703         * modules/regex (Depends-on): Add stdbool.
64704         Reported by Dalibor Topic <robilad@kaffe.org>.
64705
64706 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64707
64708         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64709         Prefer returning from main to exiting from it.
64710         Remove unnecessary parens after sizeof.
64711
64712 2007-02-05  Bruno Haible  <bruno@clisp.org>
64713
64714         New module mbssep.
64715         * modules/mbssep: New file.
64716         * lib/mbssep.c: New file.
64717         * lib/string_.h (strsep): Add a conditional link warning.
64718         (mbssep): New declaration.
64719         * m4/mbssep.m4: New file.
64720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64721         GNULIB_MBSSEP.
64722         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64723         * MODULES.html.sh (Internationalization functions): Add mbssep.
64724
64725 2007-02-05  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64728         Optimize search in case of 1 delimiter.
64729
64730 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64731
64732         * lib/acl.h: Include sys/types.h before sys/acl.h.
64733
64734 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64735
64736         Merge upstream fix for glibc bugzilla #3957:
64737
64738         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64739
64740         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64741         bit for RE_HAT_LISTS_NOT_NEWLINE.
64742         (build_charclass_op): Remove bogus comment.
64743
64744 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64745
64746         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64747
64748 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64751         * lib/memmem.c [!defined _LIBC]: Include config.h.
64752
64753 2007-02-04  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64756         warning message.
64757
64758 2007-02-04  Bruno Haible  <bruno@clisp.org>
64759
64760         New module mbstok_r.
64761         * modules/mbstok_r: New file.
64762         * lib/mbstok_r.c: New file.
64763         * lib/string_.h (strtok_r): Change argument names to match the
64764         comments. Add a conditional link warning.
64765         (mbstok_r): New declaration.
64766         * m4/mbstok_r.m4: New file.
64767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64768         GNULIB_MBSTOK_R.
64769         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64770         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64771
64772 2007-02-04  Bruno Haible  <bruno@clisp.org>
64773
64774         New module mbsspn.
64775         * modules/mbsspn: New file.
64776         * lib/mbsspn.c: New file.
64777         * lib/string_.h (strspn): Add a conditional link warning.
64778         (mbsspn): New declaration.
64779         * m4/mbsspn.m4: New file.
64780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64781         GNULIB_MBSSPN.
64782         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64783         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64784
64785 2007-02-04  Bruno Haible  <bruno@clisp.org>
64786
64787         New module mbspbrk.
64788         * modules/mbspbrk: New file.
64789         * lib/mbspbrk.c: New file.
64790         * lib/string_.h (strpbrk): Add a conditional link warning.
64791         (mbspbrk): New declaration.
64792         * m4/mbspbrk.m4: New file.
64793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64794         GNULIB_MBSPBRK.
64795         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64796         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64797
64798 2007-02-04  Bruno Haible  <bruno@clisp.org>
64799
64800         New module mbscspn.
64801         * modules/mbscspn: New file.
64802         * lib/mbscspn.c: New file.
64803         * lib/string_.h (strcspn): Add a conditional link warning.
64804         (mbscspn): New declaration.
64805         * m4/mbscspn.m4: New file.
64806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64807         GNULIB_MBSCSPN.
64808         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64809         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64810
64811 2007-02-04  Bruno Haible  <bruno@clisp.org>
64812
64813         New module mbscasestr, reduced goal of strcasestr.
64814         * modules/mbscasestr: New file.
64815         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64816         (mbscasestr): Renamed from strcasestr.
64817         * lib/strcasestr.c: Don't include mbuiter.h.
64818         (strcasestr): Remove support for multibyte locales.
64819         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64820         Change the conditional link warning.
64821         (mbscasestr): New declaration.
64822         * m4/mbscasestr.m4: New file.
64823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64824         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64825         REPLACE_STRCASESTR.
64826         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64828         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64829         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64830         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64831         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64832         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64833         (Depends-on): Remove mbuiter.
64834         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64835
64836 2007-02-04  Bruno Haible  <bruno@clisp.org>
64837
64838         Simplify handling of strncasecmp.
64839         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64840         the conditional link warning.
64841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64842         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64843         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64844         * modules/strcase (configure.ac): Don't invoke
64845         gl_STRING_MODULE_INDICATOR.
64846         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64847
64848 2007-02-04  Bruno Haible  <bruno@clisp.org>
64849
64850         New module mbscasecmp, reduced goal of strcasecmp.
64851         * modules/mbscasecmp: New file.
64852         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64853         (mbscasecmp): Renamed from strcasecmp.
64854         * lib/strcasecmp.c: Don't include mbuiter.h.
64855         (strcasecmp): Remove support for multibyte locales.
64856         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64857         Change the conditional link warning.
64858         (mbscasecmp): New declaration.
64859         * m4/mbscasecmp.m4: New file.
64860         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64861         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64862         REPLACE_STRCASECMP.
64863         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64865         GNULIB_MBSCASECMP.
64866         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64867         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64868         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64869         (Depends-on): Remove mbuiter.
64870         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64871
64872 2007-02-04  Bruno Haible  <bruno@clisp.org>
64873
64874         New module mbsstr. Remove module strstr.
64875         * modules/mbsstr: New file.
64876         * modules/strstr: Remove file.
64877         * lib/mbsstr.c: Renamed from lib/strstr.c.
64878         (mbsstr): Renamed from strstr.
64879         * lib/string_.h (strstr): Remove declaration. Change the conditional
64880         link warning.
64881         (mbsstr): New declaration.
64882         * m4/mbsstr.m4: New file.
64883         * m4/strstr.m4: Remove file.
64884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64885         REPLACE_STRSTR.
64886         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64887         Don't initialize GNULIB_STRSTR.
64888         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64889         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64890         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64891         (Support for systems lacking ANSI C 89): Remove strstr.
64892
64893 2007-02-04  Bruno Haible  <bruno@clisp.org>
64894
64895         New module mbsrchr.
64896         * modules/mbsrchr: New file.
64897         * lib/mbsrchr.c: New file.
64898         * lib/string_.h (strrchr): Add a conditional link warning.
64899         (mbsrchr): New declaration.
64900         * m4/mbsrchr.m4: New file.
64901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64902         GNULIB_MBSRCHR.
64903         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64904         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64905
64906 2007-02-04  Bruno Haible  <bruno@clisp.org>
64907
64908         New module mbschr.
64909         * modules/mbschr: New file.
64910         * lib/mbschr.c: New file.
64911         * lib/string_.h (strchr): Add a conditional link warning.
64912         (mbschr): New declaration.
64913         * m4/mbschr.m4: New file.
64914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64915         GNULIB_MBSCHR.
64916         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64917         * MODULES.html.sh (Internationalization functions): Add mbschr.
64918
64919 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64922
64923         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64924
64925 2007-02-04  Bruno Haible  <bruno@clisp.org>
64926
64927         New module description section 'configure.ac-early'.
64928         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64929         (func_get_autoconf_early_snippet): New function.
64930         (func_import, func_create_testdir): Use it. Remove special cases for
64931         modules 'extensions' and 'lock'.
64932         * modules/extensions (configure.ac-early): Require
64933         gl_USE_SYSTEM_EXTENSIONS.
64934         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64935
64936 2007-02-04  Bruno Haible  <bruno@clisp.org>
64937
64938         Make use of gcj-4.3's -fsource and -ftarget option.
64939         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64940         and if so try the options -fsource and -ftarget.
64941         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64942         source_version, ftarget_option, target_version arguments.
64943         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64944         (is_envjavac_oldgcj_14_14_usable): Renamed from
64945         is_envjavac_gcj_14_14_usable.
64946         (is_envjavac_oldgcj_14_13_usable): Renamed from
64947         is_envjavac_gcj_14_13_usable.
64948         (is_gcj_present): Update.
64949         (is_gcj_43, is_gcj43_usable): New functions.
64950         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64951         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64952         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64953         try the options -fsource and -ftarget.
64954
64955 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64958         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64959         larger value.
64960
64961 2007-02-03  Jim Meyering  <jim@meyering.net>
64962
64963         Give tools a better chance to allocate space for very large buffers.
64964         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64965
64966         Make pwd and readlink work also when run with an unreadable parent dir
64967         on systems with openat support.
64968         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64969         provided getcwd function, even when we have openat support.
64970         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64971
64972 2007-02-02  Bruno Haible  <bruno@clisp.org>
64973
64974         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64975         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64976         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64977         portability problems if one of these functions is only used on specific
64978         platforms.
64979         Reported by Paul Eggert.
64980
64981 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64984         is causing more trouble than it's curing.
64985         * lib/regex_internal.h (__mempcpy): Remove.
64986         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64987         (and make the code a tad smaller to boot).
64988         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64989
64990 2007-02-02  Jim Meyering  <jim@meyering.net>
64991
64992         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64993         section, not in the Makefile.am: one.
64994
64995 2007-02-02  Eric Blake  <ebb9@byu.net>
64996
64997         * lib/strchrnul.c: Always include config.h first.
64998
64999         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65000         gnulib strstr is not necessary here.
65001
65002 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65003
65004         * m4/socklen.m4: Fix typo.
65005
65006 2007-02-02  Eric Blake  <ebb9@byu.net>
65007
65008         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65009         * modules/netinet_in (Makefile.am): Likewise.
65010
65011 2007-02-01  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/string_.h (GL_LINK_WARNING): New macro.
65014         (strcasecmp, strstr, strcasestr): If provided by the system,
65015         conditionally define as a macro that leads to a warning instead of to
65016         an error.
65017         (strncasecmp): Conditionally define as a macro that leads to a warning.
65018
65019 2007-02-01  Karl Berry  <karl@gnu.org>
65020
65021         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65022
65023 2007-02-01  Bruno Haible  <bruno@clisp.org>
65024
65025         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65026         renamings.
65027
65028 2007-02-01  Eric Blake  <ebb9@byu.net>
65029
65030         * modules/regex (Depends-on): Revert dependence on mempcpy.
65031         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65032         module's definition of mempcpy.
65033         Reported by Paul Eggert.
65034
65035 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65036
65037         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65038         the symbol XYZ before redefining it.  This fixes a problem with
65039         programs that don't use XYZ, when compiled on systems that define
65040         XYZ to something else.
65041
65042 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65045         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65046         writeable to group or other and (2) is intended to have a special
65047         mode bit that is set or cleared.  In such a case, the directory
65048         should be neither group- nor other-writeable until the special
65049         mode bits are right.
65050
65051 2007-01-31  Eric Blake  <ebb9@byu.net>
65052
65053         * modules/mountlist (Depends-on): Add strstr.
65054
65055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65056         bug.
65057         * modules/string (Makefile.am): Remove redundant replacement.
65058         * modules/regex (Depends-on): Add mempcpy.
65059
65060 2007-01-31  Bruno Haible  <bruno@clisp.org>
65061
65062         New module description field 'Link'.
65063         * gnulib-tool (func_usage): Document --extract-link-directive.
65064         (sed_extract_prog): Recognize 'Link' directive.
65065         (func_get_link_directive): New function.
65066         (func_import): Show summary of link directives.
65067         Handle --extract-link-directive option.
65068         * modules/acl (Link): New section.
65069         * modules/clock-time (Link): New section.
65070         * modules/euidaccess (Link): New section.
65071         * modules/gettext (Link): New section.
65072         * modules/iconv (Link): New section.
65073         * modules/lock (Link): New section.
65074         * modules/nanosleep (Link): New section.
65075         * modules/readline (Link): New section.
65076
65077 2007-01-27  Bruno Haible  <bruno@clisp.org>
65078
65079         Enforce the use of gnulib modules for unportable <string.h> functions.
65080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65081         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65082         (gl_HEADER_STRING_H_BODY): Require it.
65083         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65084         the symbol XYZ to one that gives a link error.
65085         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65086         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65087         * modules/mempcpy (configure.ac): Likewise.
65088         * modules/memrchr (configure.ac): Likewise.
65089         * modules/stpcpy (configure.ac): Likewise.
65090         * modules/stpncpy (configure.ac): Likewise.
65091         * modules/strcase (configure.ac): Likewise.
65092         * modules/strcasestr (configure.ac): Likewise.
65093         * modules/strchrnul (configure.ac): Likewise.
65094         * modules/strdup (configure.ac): Likewise.
65095         * modules/strndup (configure.ac): Likewise.
65096         * modules/strnlen (configure.ac): Likewise.
65097         * modules/strpbrk (configure.ac): Likewise.
65098         * modules/strsep (configure.ac): Likewise.
65099         * modules/strstr (configure.ac): Likewise.
65100         * modules/strtok_r (configure.ac): Likewise.
65101
65102 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65103
65104         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65105
65106 2007-01-30  Jim Meyering  <jim@meyering.net>
65107
65108         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65109
65110 2007-01-29  Bruno Haible  <bruno@clisp.org>
65111
65112         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65113         * lib/execute.c: Likewise.
65114         * lib/pipe.c: Likewise.
65115         * lib/printf-args.h: Likewise.
65116         * lib/printf-args.c: Likewise.
65117         * lib/printf-parse.c: Likewise.
65118         * lib/vasnprintf.c: Likewise.
65119
65120 2007-01-29  Eric Blake  <ebb9@byu.net>
65121
65122         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65123         declaration.
65124
65125 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * lib/strptime.h (strptime): Use 'restrict' for args where
65128         POSIX requires this.
65129         * lib/strptime.c (strptime): Likewise.
65130         Change license notice from LGPL to GPL, since gnulib-tool will
65131         change this as needed.
65132         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65133         defined.
65134         Include "strptime.h" first, to check interface.
65135         Do not #undef _LIBC and _NL_CURRENT.
65136         Do not include <stdlib.h>; no longer needed.
65137         Include "time_r.h" and declare ptime_locale_status
65138         only if _LIBC is not defined.
65139         (__P): Remove unused macro.
65140         (match_string): Bring back glibc version, but use it only if _LIBC
65141         is defined.
65142         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65143         Remove unnecessary assertion and abort() call.
65144         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65145         * m4/strptime.m4: Fix serial number comment.
65146         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65147         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65148         (Depends-on): Add time_r.
65149
65150 2007-01-29  Bruno Haible  <bruno@clisp.org>
65151
65152         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65153         strptime.
65154         * modules/strptime (Depends-on): Add stdbool.
65155         * lib/strptime.h: Include <time.h> always. Add comments.
65156
65157 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65158
65159         * modules/strptime: New file.
65160         * lib/strptime.h: New file.
65161         * lib/strptime.c: New file.
65162         * m4/strptime.m4: New file.
65163
65164 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * MODULES.html.sh: New module mpsort.
65167         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65168
65169         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65170         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65172         All uses changed.
65173         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65174         All uses changed.
65175         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65176         to _Restrict_.
65177         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65178         the parameter matches the prototype.
65179
65180 2007-01-28  Jim Meyering  <jim@meyering.net>
65181
65182         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65183         sys/time.h here, reverting that part of the previous patch:
65184         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65185
65186 2007-01-28  Bruno Haible  <bruno@clisp.org>
65187
65188         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65189         value of $(SYS_TIME_H).
65190         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65191         remove it conditionally, too. [added by Jim Meyering]
65192         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65194         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65195         GETTIMEOFDAY_REPLACEMENT to 1.
65196
65197 2007-01-28  Bruno Haible  <bruno@clisp.org>
65198
65199         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65200         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65202         Set UNISTD_H instead of UNISTD_H2.
65203         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65204
65205 2007-01-28  Bruno Haible  <bruno@clisp.org>
65206
65207         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65208         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65209
65210 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65211
65212         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65213         (func_create_testdir): Ensure C locale for `grep' and `tr'
65214         character ranges.
65215         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65216         ACLOCAL_AMFLAGS parsing state machine.
65217
65218 2007-01-27  Bruno Haible  <bruno@clisp.org>
65219
65220         * modules/unistr/base: Update.
65221
65222 2007-01-27  Bruno Haible  <bruno@clisp.org>
65223
65224         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65225         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65226         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65227         modules/unistr/u32-mbtouc.
65228         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65229         * lib/unistr.h: Update.
65230         * lib/linebreak.c: Update.
65231         * modules/unistr/u32-mbtouc: Renamed from
65232         modules/unistr/u32-mbtouc-safe.
65233         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65234         * lib/unistr.h: Update.
65235         * lib/unistr/u32-to-u8.c: Update.
65236         * lib/unistr/u32-to-u16.c: Update.
65237
65238 2007-01-27  Bruno Haible  <bruno@clisp.org>
65239
65240         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65241         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65242         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65243         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65244         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65245         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65246         modules/unistr/u16-mbtouc.
65247         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65248         * lib/unistr.h: Update.
65249         * lib/linebreak.c: Update.
65250         * modules/linebreak: Update.
65251         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65252         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65253         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65254         * modules/unistr/u16-mbtouc: Renamed from
65255         modules/unistr/u16-mbtouc-safe.
65256         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65257         * lib/unistr.h: Update.
65258         * lib/unistr/u16-to-u8.c: Update.
65259         * modules/unistr/u16-to-u8: Update.
65260         * lib/unistr/u16-to-u32.c: Update.
65261         * modules/unistr/u16-to-u32: Update.
65262
65263 2007-01-27  Bruno Haible  <bruno@clisp.org>
65264
65265         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65266         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65267         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65268         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65269         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65270         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65271         modules/unistr/u8-mbtouc.
65272         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65273         * lib/unistr.h: Update.
65274         * lib/striconveh.c: Update.
65275         * modules/striconveh: Update.
65276         * lib/linebreak.c: Update.
65277         * modules/linebreak: Update.
65278         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65279         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65280         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65281         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65282         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65283         * lib/unistr.h: Update.
65284         * lib/striconveh.c: Update.
65285         * modules/striconveh: Update.
65286         * lib/unistr/u8-to-u16.c: Update.
65287         * modules/unistr/u8-to-u16: Update.
65288         * lib/unistr/u8-to-u32.c: Update.
65289         * modules/unistr/u8-to-u32: Update.
65290
65291 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65292
65293         Sync from Libtool.
65294         * lib/argz.c: Do not include strings.h nor memory.h, include
65295         string.h unconditionally.  Patch by Simon Josefsson.
65296
65297 2007-01-27  Bruno Haible  <bruno@clisp.org>
65298
65299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65300         from gl_HEADER_STRING_H_BODY.
65301         (gl_HEADER_STRING_H_BODY): Require it.
65302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65303         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65304         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65305         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65306         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65307         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65309         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65310         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65311         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65313         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65314         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65315         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65316         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65317
65318 2007-01-27  Bruno Haible  <bruno@clisp.org>
65319
65320         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65321         check_PROGRAMS into noinst_PROGRAMS.
65322         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65323         check_PROGRAMS in this case.
65324         (func_import): Set for_test to false.
65325         (func_create_testdir): Set for_test to true.
65326
65327 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65328             Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65331         (Depends-on): Add string.
65332         (Includes): Use <string.h> instead of strcasestr.h.
65333         * modules/string (Makefile.am): Also substitute the value of
65334         REPLACE_STRCASESTR.
65335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65336         assume strcasestr is declared in <string.h> not <strings.h>. Also
65337         set REPLACE_STRCASESTR.
65338         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65339         REPLACE_STRCASESTR.
65340         * lib/strcasestr.h: Remove file.
65341         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65342         * lib/string_.h (strcasestr): New declaration.
65343
65344 2007-01-27  Bruno Haible  <bruno@clisp.org>
65345
65346         * lib/string_.h: Use 'extern'.
65347
65348 2007-01-27  Jim Meyering  <jim@meyering.net>
65349
65350         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65351         of set-but-not-used local, "q".
65352
65353         * lib/mempcpy.c: Include <config.h> before <string.h>.
65354         This fixes a compilation error on HP-UX, due to the system's
65355         "restrict"-using mempcpy prototype.
65356
65357 2007-01-26  Bruno Haible  <bruno@clisp.org>
65358
65359         Small optimization.
65360         * lib/javacomp.c: Include c-strstr.h.
65361          (is_envjavac_gcj): Use c_strstr instead of strstr.
65362         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65363
65364 2007-01-26  Bruno Haible  <bruno@clisp.org>
65365
65366         * MODULES.html.sh (Unicode string functions): Add the new modules.
65367
65368         * modules/uniconv/u32-strconv-to-locale: New file.
65369         * lib/uniconv/u32-strconv-to-locale.c: New file.
65370
65371         * modules/uniconv/u16-strconv-to-locale: New file.
65372         * lib/uniconv/u16-strconv-to-locale.c: New file.
65373
65374         * modules/uniconv/u8-strconv-to-locale: New file.
65375         * lib/uniconv/u8-strconv-to-locale.c: New file.
65376
65377         * modules/uniconv/u32-strconv-from-locale: New file.
65378         * lib/uniconv/u32-strconv-from-locale.c: New file.
65379
65380         * modules/uniconv/u16-strconv-from-locale: New file.
65381         * lib/uniconv/u16-strconv-from-locale.c: New file.
65382
65383         * modules/uniconv/u8-strconv-from-locale: New file.
65384         * lib/uniconv/u8-strconv-from-locale.c: New file.
65385
65386         * modules/uniconv/u32-strconv-to-enc: New file.
65387         * lib/uniconv/u32-strconv-to-enc.c: New file.
65388         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65389         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65390
65391         * modules/uniconv/u16-strconv-to-enc: New file.
65392         * lib/uniconv/u16-strconv-to-enc.c: New file.
65393         * lib/uniconv/u-strconv-to-enc.h: New file.
65394         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65395         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65396
65397         * modules/uniconv/u8-strconv-to-enc: New file.
65398         * lib/uniconv/u8-strconv-to-enc.c: New file.
65399         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65400         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65401
65402         * modules/uniconv/u32-strconv-from-enc: New file.
65403         * lib/uniconv/u32-strconv-from-enc.c: New file.
65404         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65405         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65406
65407         * modules/uniconv/u16-strconv-from-enc: New file.
65408         * lib/uniconv/u16-strconv-from-enc.c: New file.
65409         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65410         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65411
65412         * modules/uniconv/u8-strconv-from-enc: New file.
65413         * lib/uniconv/u8-strconv-from-enc.c: New file.
65414         * lib/uniconv/u-strconv-from-enc.h: New file.
65415         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65416         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65417
65418         * modules/uniconv/u32-conv-from-enc: New file.
65419         * lib/uniconv/u32-conv-from-enc.c: New file.
65420         * modules/uniconv/u32-conv-from-enc-tests: New file.
65421         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65422
65423         * modules/uniconv/u16-conv-from-enc: New file.
65424         * lib/uniconv/u16-conv-from-enc.c: New file.
65425         * lib/uniconv/u-conv-from-enc.h: New file.
65426         * modules/uniconv/u16-conv-from-enc-tests: New file.
65427         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65428
65429         * modules/uniconv/u8-conv-from-enc: New file.
65430         * lib/uniconv/u8-conv-from-enc.c: New file.
65431         * modules/uniconv/u8-conv-from-enc-tests: New file.
65432         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65433
65434         * modules/uniconv/base: New file.
65435         * lib/uniconv.h: New file.
65436
65437 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * doc/gnulib-tool.texi (Initial import): Update to match current
65440         behavior with strdup module.
65441         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65442         * lib/memmem.h: Remove; all uses removed.  This is now done
65443         by <string.h>.
65444         * lib/mempcpy.h: Likewise.
65445         * lib/memrchr.h: Likewise.
65446         * lib/stpcpy.h: Likewise.
65447         * lib/stpncpy.h: Likewise.
65448         * lib/strcase.h: Likewise.
65449         * lib/strchrnul.h: Likewise.
65450         * lib/strdup.h: Likewise.
65451         * lib/strndup.h: Likewise.
65452         * lib/strnlen.h: Likewise.
65453         * lib/strpbrk.h: Likewise.
65454         * lib/strsep.h: Likewise.
65455         * lib/strstr.h: Likewise.
65456         * lib/strtok_r.h: Likewise.
65457         * lib/string_.h: New file.
65458         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65459         Rely on <string.h> instead.
65460         * lib/canon-host.c: Likewise.
65461         * lib/chdir-long.c: Likewise.
65462         * lib/concatpath.c: Likewise.
65463         * lib/exclude.c: Likewise.
65464         * lib/fchdir.c: Likewise.
65465         * lib/getaddrinfo.c: Likewise.
65466         * lib/getcwd.c: Likewise.
65467         * lib/getsubopt.c: Likewise.
65468         * lib/glob.c: Likewise.
65469         * lib/hard-locale.c: Likewise.
65470         * lib/iconvme.c: Likewise.
65471         * lib/javacomp.c: Likewise.
65472         * lib/mempcpy.c: Likewise.
65473         * lib/memrchr.c: Likewise.
65474         * lib/regex_internal.h: Likewise.
65475         * lib/stpncpy.c: Likewise.
65476         * lib/strcasecmp.c: Likewise.
65477         * lib/strchrnul.c: Likewise.
65478         * lib/strdup.c: Likewise.
65479         * lib/striconv.c: Likewise.
65480         * lib/striconveh.c: Likewise.
65481         * lib/striconveha.c: Likewise.
65482         * lib/strncasecmp.c: Likewise.
65483         * lib/strndup.c: Likewise.
65484         * lib/strnlen.c: Likewise.
65485         * lib/strsep.c: Likewise.
65486         * lib/strstr.c: Likewise.
65487         * lib/strtok_r.c: Likewise.
65488         * lib/userspec.c: Likewise.
65489         * lib/w32spawn.h: Likewise.
65490         * lib/xstrndup.c: Likewise.
65491         * lib/mountlist.c (strstr): Remove decl.
65492         * m4/string_h.m4: New file.
65493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65494         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65495         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65496         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65497         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65498         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65499         Set REPLACE_STRCASECMP if necessary.
65500         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65501         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65502         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65503         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65504         HAVE_DECL_STRDUP if necessary.
65505         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65506         since gl_FUNC_STRNDUP does that now.
65507         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65508         Check for decl here...
65509         (gl_PREREQ_STRNLEN): ... not here.
65510         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65511         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65512         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65513         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65514         necessary.
65515         * modules/string: New file.
65516         * modules/memmem (Files): Remove special-purpose include file.
65517         (Depends-on): Add string.
65518         (Include): Include <string.h>, not the removed file.
65519         * modules/mempcpy: Likewise.
65520         * modules/memrchr: Likewise.
65521         * modules/stpcpy: Likewise.
65522         * modules/stpncpy: Likewise.
65523         * modules/strcase: Likewise.
65524         * modules/strchrnul: Likewise.
65525         * modules/strdup: Likewise.
65526         * modules/strndup: Likewise.
65527         * modules/strnlen: Likewise.
65528         * modules/strpbrk: Likewise.
65529         * modules/strsep: Likewise.
65530         * modules/strstr: Likewise.
65531         * modules/strtok_r: Likewise.
65532         * tests/test-dirname.c: Don't include "strdup.h", since
65533         <string.h> now suffices.
65534         * tests/test-memmem.c: Don't include "memmem.h", since
65535         <string.h> now suffices.
65536
65537 2007-01-25  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65540         *resultp is 0.
65541
65542         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65543         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65544         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65545         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65546
65547         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65548         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65549         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65550         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65551         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65552         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65553
65554 2007-01-24  Bruno Haible  <bruno@clisp.org>
65555
65556         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65557         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65558         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65559         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65560         gl_FUNC_FTS_CORE.
65561         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65562         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65563         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65564         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65565         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65566         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65567         gl_FUNC_FCHOWNAT.
65568         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65569         gl_FUNC_STRFTIME.
65570         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65571         Reported by Ralf Wildenhues.
65572
65573 2007-01-24  Bruno Haible  <bruno@clisp.org>
65574
65575         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65576         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65577         gl_GETADDRINFO.
65578         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65579         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65580         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65581
65582 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65585         Don't use 'exit'; just return from 'main'.
65586         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65587
65588         * lib/fnmatch_.h: Readjust white space and comments to match
65589         glibc, to avoid spurious diffs.
65590
65591 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65594         2004-12-01 change by Jakub Jelinek, since this code won't compile
65595         if !LIBC.  Problem reported by Bob Proulx.
65596
65597 2007-01-23  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/striconveh.c: Include c-strcaseeq.h.
65600         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65601         * modules/striconveh (Depends-on): Add c-strcaseeq.
65602
65603 2007-01-23  Bruno Haible  <bruno@clisp.org>
65604
65605         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65606
65607         * modules/c-strcaseeq: New file.
65608         * lib/c-strcaseeq.h: New file.
65609
65610         * modules/streq: New file.
65611         * lib/streq.h: New file.
65612
65613 2007-01-23  Bruno Haible  <bruno@clisp.org>
65614
65615         * modules/striconveha-tests: New file.
65616         * tests/test-striconveha.c: New file.
65617
65618         * lib/striconveha.h: Include <stdbool.h>.
65619         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65620         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65621         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65622         (mem_iconveha): New function.
65623         (str_iconveha_notranslit): Renamed from str_iconveha.
65624         (str_iconveha): New function.
65625         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65626         c-strcase.
65627
65628 2007-01-23  Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65631         encodings without forgiving before trying any encoding with handler.
65632         (str_iconveha): Try all encodings without forgiving before trying any
65633         encoding with handler.
65634
65635 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         Import the following changes from libc.
65638
65639         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65640
65641         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65642
65643         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65644
65645         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65646         normal_bracket label.
65647
65648         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65649
65650         [BZ #361]
65651         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65652         to normal_bracket after fetching the next character.
65653
65654 2007-01-22  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65657         argument.
65658         * lib/striconveh.c (iconv_carefully_1): New function.
65659         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65660         argument.
65661         (str_cd_iconveh): Update.
65662         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65663         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65664         * tests/test-striconveh.c (MAGIC): New macro.
65665         (new_offsets): New function.
65666         (main): Test call with and without offsets.
65667
65668 2007-01-22  Bruno Haible  <bruno@clisp.org>
65669
65670         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65671         * modules/sys_select (Makefile.am): Likewise.
65672         * modules/sys_socket (Makefile.am): Likewise.
65673         * modules/sys_time (Makefile.am): Likewise.
65674
65675 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * modules/gettimeofday (License): Change from GPL to LGPL, since
65678         gettimeofday is a library function.
65679
65680 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65681
65682         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65683
65684 2007-01-21  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65687
65688 2007-01-21  Bruno Haible  <bruno@clisp.org>
65689
65690         * modules/striconveha: New file.
65691         * lib/striconveha.h: New file.
65692         * lib/striconveha.c: New file.
65693         * MODULES.html.sh (Internationalization functions): Add striconveha.
65694         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65695         string.
65696         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65697
65698 2007-01-21  Bruno Haible  <bruno@clisp.org>
65699
65700         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65701         * lib/striconveh.c (str_iconveh): Likewise.
65702
65703 2007-01-21  Bruno Haible  <bruno@clisp.org>
65704
65705         * lib/striconveh.h (mem_iconveh): New declaration.
65706         * lib/striconveh.c (mem_iconveh): New function.
65707         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65708
65709 2007-01-21  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65712
65713         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65714         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65715         original result buffer.
65716         (str_cd_iconveh): Update.
65717         * tests/test-striconveh.c (main): Update.
65718
65719         * lib/striconv.h (mem_cd_iconv): Change specification.
65720         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65721         result buffer.
65722         (str_cd_iconv): Update.
65723         * tests/test-striconv.c (main): Update.
65724
65725 2007-01-21  Bruno Haible  <bruno@clisp.org>
65726
65727         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65728
65729 2007-01-20  Jim Meyering  <jim@meyering.net>
65730
65731         * lib/userspec.c (parse_with_separator): If a user or group string
65732         starts with "+", skip the corresponding name-to-ID look-up, since
65733         such a look-up must fail: user and group names may not include "+".
65734
65735 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65738         since we now assume the sys_time module.
65739         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65740         check for sys/time.h; no longer needed.
65741         * modules/poll (Depends-on): Depend on sys_time.
65742
65743 2007-01-18  Bruno Haible  <bruno@clisp.org>
65744
65745         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65747
65748         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65749         gettimeofday.
65750
65751         * tests/test-gettimeofday.c: Include <time.h>.
65752         (dummy): Remove variable.
65753
65754         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65755         gl_HEADER_SYS_TIME_H.
65756         (gl_HEADER_SYS_TIME_H): New macro.
65757
65758         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65759         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65761         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65762         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65763         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65764         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65765         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65766         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65767         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65768         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65769
65770         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65771         last change; it caused a compilation error when cross-compiling to
65772         Cygwin.
65773
65774 2007-01-18  Jim Meyering  <jim@meyering.net>
65775
65776         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65777         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65778         than the race-prone "test -d sys || mkdir sys".
65779         (configure.ac): Use AC_PROG_MKDIR_P.
65780         * modules/sys_select: Likewise.
65781         * modules/sys_socket: Likewise.
65782         * modules/sys_time: Likewise.
65783
65784 2007-01-18  Eric Blake  <ebb9@byu.net>
65785
65786         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65787         replace gettimeofday.
65788         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65789         name, to avoid infinite recursion.
65790
65791 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65794         module sys_time.
65795         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65796         assume timespec.h defines struct timeval.
65797         * lib/settime.c: Likewise.
65798         * lib/utimens.c: Likewise.
65799         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65800         since we now assume the gettimeofday module.
65801         * lib/tempname.c (__gen_tempname): Likewise.
65802         * lib/gettimeofday.h: Remove.
65803         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65804         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65805         Include <time.h>, for 'time()'.
65806         (localtime_buffer_addr): Also use this workaround if
65807         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65808         to simplify the uses.  All uses changed.
65809         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65810         that #undef is inside {}, and 'const' follows type name consistently.
65811         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65812         (gettimeofday): Do not use the maximum possible value for
65813         tv->tv_usec, since that might break usages other than ls.c.
65814         Instead, we'll leave ls.c alone.  This undoes today's patch
65815         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65816         we've never observed the problem but might as well keep the
65817         canary.
65818         * lib/nanosleep.c: Include timespec.h first, for interface check.
65819         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65820         now assume the sys_time module.
65821         * lib/tempname.c: Likewise.
65822         * lib/timespec.h: Likewise.
65823         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65824         needed.
65825         * lib/strftime.c: Likewise.
65826         * lib/timespec.h: Likewise.
65827         * lib/posixtm.c: Include posixtm.h first, for interface check.
65828         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65829         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65830         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65831         * lib/sys_time_.h: New file.
65832         * lib/timespec.h (struct timespec): Use long int, not long.
65833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65834         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65835         Remove obsolescent call to AC_HEADER_TIME.
65836         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65837         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65838         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65839         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65840         Likewise.
65841         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65842         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65843         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65844         into the sys_time module.  Check for gettimeofday just once.
65845         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65846         for gettimeofday signature to just check the signature.  Merely
65847         compile it, since linking doesn't test signature.  Improve test for
65848         whether gettimeofday.o is actually needed.
65849         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65850         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65851         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65852         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65853         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65854         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65855         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65856         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65857         than worrying about sys/time.h.
65858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65859         Don't bother worrying about TIME_WITH_SYS_TIME.
65860         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65861         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65862         * m4/sys_time_h.m4: New file.
65863         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65864         Don't include sys/time.h.  Return from main rather than exiting.
65865         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65866         all uses changed.
65867         * modules/gethrxtime (Depends-on): Add sys_time.
65868         * modules/gettime (Depends-on): Likewise.
65869         * modules/gettimeofday (Depends-on): Likewise.
65870         * modules/nanosleep (Depends-on): Likewise.
65871         * modules/settime (Depends-on): Likewise.
65872         * modules/tempname (Depends-on): Likewise.
65873         * modules/utimens (Depends-on): Likewise.
65874         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65875         (Include): Change back to <sys/time.h>.
65876         (Maintainer): Add self.
65877         * modules/sys_time: New file.
65878         * modules/tempname (Depends-on): Add gettimeofday.
65879         * tests/test-gettimeofday.c: Include <sys/time.h>
65880         rather than gettimeofday.h.
65881
65882 2007-01-17  Bruno Haible  <bruno@clisp.org>
65883
65884         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65885         the license default to GPL.
65886         (func_create_testdir): Don't complain if a module is LGPL and its
65887         tests module depends on GPLed modules.
65888
65889 2007-01-17  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/gettimeofday.c (gettimeofday): Add code for the case
65892         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65893         maximum possible value for tv->tv_usec, rather than the minimum one.
65894
65895 2005-10-08  Martin Lambers  <marlam@marlam.de>
65896 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65897 2007-01-16  Bruno Haible  <bruno@clisp.org>
65898
65899         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65900         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65901         gl_FUNC_GETTIMEOFDAY.
65902         (Include): Add gettimeofday.h.
65903         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65904         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65905         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65906         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65907         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65908         * lib/gettimeofday.h: New file.
65909         * lib/gettimeofday.c: Include <sys/timeb.h>.
65910         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65911         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65912         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65913         fall back on time().
65914
65915         * tests/test-gettimeofday.c: New file.
65916         * modules/gettimeofday-tests: New file.
65917
65918 2007-01-16  Eric Blake  <ebb9@byu.net>
65919
65920         * modules/fnmatch (Depends-on): Depend on wchar.
65921         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65922         * m4/fnmatch.m4: Likewise.
65923         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65924         * m4/mbchar.m4: Likewise.
65925         * modules/mbswidth (Depends-on): Depend on wchar.
65926         * lib/mbswidth.c: Assume <wchar.h>.
65927         * m4/mbswidth.m4: Likewise.
65928         * modules/quotearg (Depends-on): Depend on wchar.
65929         * lib/quotearg.c: Assume <wchar.h>.
65930         * m4/quotearg.m4: Likewise.
65931         * modules/regex (Depends-on): Depend on wchar.
65932         * lib/regex_internal.h: Assume <wchar.h>.
65933         * m4/regex.m4: Likewise.
65934         * modules/stdint (Depends-on): Depend on wchar.
65935         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65936         * m4/stdint.m4: Likewise.
65937         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65938         * modules/strftime (Depends-on): Depend on wchar.
65939         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65940         * modules/strtol (Depends-on): Depend on wchar.
65941         * lib/strtol.c: Assume <wchar.h>.
65942         * modules/wcwidth (Depends-on): Depend on wchar.
65943         * lib/wcwidth.h: Assume <wchar.h>.
65944         * m4/wcwidth.m4: Likewise.
65945
65946 2007-01-16  Bruno Haible  <bruno@clisp.org>
65947
65948         * modules/csharpexec-script: New, created from...
65949         * modules/csharpexec: ... this.
65950
65951 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65952
65953         * modules/javaexec-script: New, created from...
65954         * modules/javaexec: ... this.
65955
65956 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65957
65958         * modules/poll (Dependencies): Add sys_select.
65959
65960 2007-01-15  Jim Meyering  <jim@meyering.net>
65961
65962         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65963         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65964         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65965         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65966
65967 2007-01-15  Bruno Haible  <bruno@clisp.org>
65968
65969         * modules/striconveh: New file.
65970         * lib/striconveh.h: New file.
65971         * lib/striconveh.c: New file.
65972         * MODULES.html.sh (Internationalization functions): Add striconveh.
65973
65974         * modules/striconveh-tests: New file.
65975         * tests/test-striconveh.c: New file.
65976
65977 2007-01-15  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65980         not from GNU libiconv or GNU libc.
65981
65982 2007-01-15  Bruno Haible  <bruno@clisp.org>
65983
65984         * doc/gnulib-intro.texi (Copyright): Explain the different license
65985         terms for module descriptions, autoconf macros, tests, documentation.
65986
65987 2007-01-14  Bruno Haible  <bruno@clisp.org>
65988
65989         * modules/striconv-tests: New file.
65990         * tests/test-striconv.c: New file.
65991
65992 2007-01-14  Bruno Haible  <bruno@clisp.org>
65993
65994         * modules/iconv-tests: New file.
65995         * tests/test-iconv.c: New file.
65996
65997 2007-01-14  Bruno Haible  <bruno@clisp.org>
65998
65999         * gnulib-tool (func_get_license): For test modules, use the license of
66000         the main module.
66001
66002 2007-01-14  Bruno Haible  <bruno@clisp.org>
66003
66004         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66005         if iconv is found to exist.
66006
66007 2007-01-14  Bruno Haible  <bruno@clisp.org>
66008
66009         * modules/c-ctype-tests: New file.
66010         * tests/test-c-ctype.c: New file.
66011
66012 2007-01-14  Bruno Haible  <bruno@clisp.org>
66013
66014         * modules/binary-io-tests: New file.
66015         * tests/test-binary-io.sh: New file.
66016         * tests/test-binary-io.c: New file.
66017
66018 2007-01-14  Bruno Haible  <bruno@clisp.org>
66019
66020         * modules/array-oset-tests: New file.
66021         * tests/test-array_oset.c: New file.
66022
66023 2007-01-14  Bruno Haible  <bruno@clisp.org>
66024
66025         * modules/array-list-tests: New file.
66026         * tests/test-array_list.c: New file.
66027
66028 2007-01-14  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66031         and make.
66032         Reported by Simon Josefsson in
66033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66034
66035 2007-01-14  Bruno Haible  <bruno@clisp.org>
66036
66037         * modules/allocsa-tests: New file.
66038         * tests/test-allocsa.c: New file.
66039
66040 2007-01-14  Bruno Haible  <bruno@clisp.org>
66041
66042         * modules/fchdir (Depends-on): Add absolute-header.
66043         * modules/unistd (Depends-on): Likewise.
66044
66045 2006-12-30  Bruno Haible  <bruno@clisp.org>
66046
66047         * modules/fchdir: New file.
66048         * modules/unistd (Files): Add lib/unistd_.h.
66049         (Makefile.am): Generate unistd.h from unistd_.h.
66050         * lib/fchdir.c: New file.
66051         * lib/dirent_.h: New file.
66052         * lib/unistd_.h: New file.
66053         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66054         * m4/fchdir.m4: New file.
66055         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66056         (gl_HEADER_UNISTD): Invoke it.
66057         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66058         function.
66059         * lib/backupfile.c (opendir, closedir): Undefine.
66060         * lib/chown.c (open, close): Undefine.
66061         * lib/clean-temp.c (open, close): Undefine.
66062         * lib/copy-file.c (open, close): Undefine.
66063         * lib/execute.c (open, close): Undefine.
66064         * lib/fsusage.c (open, close): Undefine.
66065         * lib/gc-gnulib.c (open, close): Undefine.
66066         * lib/getcwd.c (opendir, closedir): Undefine.
66067         * lib/glob.c (opendir, closedir): Undefine.
66068         * lib/javacomp.c (open, close): Undefine.
66069         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66070         * lib/openat-proc.c (open, close): Undefine.
66071         * lib/pagealign_alloc.c (open, close): Undefine.
66072         * lib/pipe.c (open, close): Undefine.
66073         * lib/progreloc.c (open, close): Undefine.
66074         * lib/savedir.c (opendir, closedir): Undefine.
66075         * lib/utime.c (open, close): Undefine.
66076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66077
66078 2007-01-10  Bruno Haible  <bruno@clisp.org>
66079
66080         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66081
66082 2007-01-12  Eric Blake  <ebb9@byu.net>
66083
66084         Provide a robust <wchar.h>.  Further simplifications are now
66085         possible in other modules, but not included here.
66086         * modules/wchar: New module.
66087         * m4/wchar.m4: New file.
66088         * lib/wchar_.h: Likewise.
66089         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66090         of the new module.
66091         * MODULES.html.sh (Extended multibyte and wide character utilities):
66092         New section.
66093
66094 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66095
66096         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66097         to a reasonable default for memory allocation.
66098         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66099         file system that reports garbage st_size values for symlinks.
66100         Problem reported by Liyang Hu.
66101
66102 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66103
66104         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66105         Emacs .#* auto-save files).
66106
66107 2007-01-11  Bruno Haible  <bruno@clisp.org>
66108
66109         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66110         directory.
66111
66112 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         Use @...@ consistently in lib/wctype_.h.
66115         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66116         on it being set to 1 or 0.
66117         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66118         go back to AC_SUBSTing it.
66119         * modules/wctype (Makefile.am): Undo previous change.
66120
66121 2007-01-10  Eric Blake  <ebb9@byu.net>
66122
66123         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66124         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66125         * modules/wctype (Makefile.am): Likewise.
66126         Reported by Chris McGuire.
66127
66128 2007-01-10  Jim Meyering  <jim@meyering.net>
66129
66130         fts.c: a small readability/maintainability improvement
66131         * lib/fts.c (fts_read): Make this code slightly more readable and
66132         maintainable by hoisting the "sp->fts_cur = p" assignments to
66133         immediately follow the statements that set P.  Derived from
66134         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66135
66136 2007-01-10  Eric Blake  <ebb9@byu.net>
66137
66138         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66139         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66141         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66142         Reported by Chris McGuire.
66143
66144 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66145
66146         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66147         in sed script.
66148
66149 2007-01-09  Bruno Haible  <bruno@clisp.org>
66150
66151         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66152         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66153         variables.
66154         (func_module): Use them.
66155
66156 2007-01-09  Bruno Haible  <bruno@clisp.org>
66157
66158         * modules/unistr/base: New file.
66159         * lib/unistr.h: New file.
66160
66161         * modules/unistr/u8-to-u16: New file.
66162         * lib/unistr/u8-to-u16.c: New file.
66163
66164         * modules/unistr/u8-to-u32: New file.
66165         * lib/unistr/u8-to-u32.c: New file.
66166
66167         * modules/unistr/u16-to-u8: New file.
66168         * lib/unistr/u16-to-u8.c: New file.
66169
66170         * modules/unistr/u16-to-u32: New file.
66171         * lib/unistr/u16-to-u32.c: New file.
66172
66173         * modules/unistr/u32-to-u8: New file.
66174         * lib/unistr/u32-to-u8.c: New file.
66175
66176         * modules/unistr/u32-to-u16: New file.
66177         * lib/unistr/u32-to-u16.c: New file.
66178
66179         * modules/unistr/u8-check: New file.
66180         * modules/unistr/u16-check: New file.
66181         * modules/unistr/u32-check: New file.
66182         * lib/unistr/u8-check.c: New file.
66183         * lib/unistr/u16-check.c: New file.
66184         * lib/unistr/u32-check.c: New file.
66185
66186         * modules/unistr/u8-chr: New file.
66187         * modules/unistr/u16-chr: New file.
66188         * modules/unistr/u32-chr: New file.
66189         * lib/unistr/u8-chr.c: New file.
66190         * lib/unistr/u16-chr.c: New file.
66191         * lib/unistr/u32-chr.c: New file.
66192
66193         * modules/unistr/u8-cmp: New file.
66194         * modules/unistr/u16-cmp: New file.
66195         * modules/unistr/u32-cmp: New file.
66196         * lib/unistr/u8-cmp.c: New file.
66197         * lib/unistr/u16-cmp.c: New file.
66198         * lib/unistr/u32-cmp.c: New file.
66199
66200         * modules/unistr/u8-cpy: New file.
66201         * modules/unistr/u16-cpy: New file.
66202         * modules/unistr/u32-cpy: New file.
66203         * lib/unistr/u8-cpy.c: New file.
66204         * lib/unistr/u16-cpy.c: New file.
66205         * lib/unistr/u32-cpy.c: New file.
66206         * lib/unistr/u-cpy.h: New file.
66207
66208         * modules/unistr/u8-cpy-alloc: New file.
66209         * modules/unistr/u16-cpy-alloc: New file.
66210         * modules/unistr/u32-cpy-alloc: New file.
66211         * lib/unistr/u8-cpy-alloc.c: New file.
66212         * lib/unistr/u16-cpy-alloc.c: New file.
66213         * lib/unistr/u32-cpy-alloc.c: New file.
66214         * lib/unistr/u-cpy-alloc.h: New file.
66215
66216         * modules/unistr/u8-endswith: New file.
66217         * modules/unistr/u16-endswith: New file.
66218         * modules/unistr/u32-endswith: New file.
66219         * lib/unistr/u8-endswith.c: New file.
66220         * lib/unistr/u16-endswith.c: New file.
66221         * lib/unistr/u32-endswith.c: New file.
66222         * lib/unistr/u-endswith.h: New file.
66223
66224         * modules/unistr/u8-mblen: New file.
66225         * modules/unistr/u16-mblen: New file.
66226         * modules/unistr/u32-mblen: New file.
66227         * lib/unistr/u8-mblen.c: New file.
66228         * lib/unistr/u16-mblen.c: New file.
66229         * lib/unistr/u32-mblen.c: New file.
66230
66231         * modules/unistr/u8-mbtouc: New file.
66232         * modules/unistr/u16-mbtouc: New file.
66233         * modules/unistr/u32-mbtouc: New file.
66234         * lib/unistr/u8-mbtouc.c: New file.
66235         * lib/unistr/u16-mbtouc.c: New file.
66236         * lib/unistr/u32-mbtouc.c: New file.
66237
66238         * modules/unistr/u8-mbtouc-safe: New file.
66239         * modules/unistr/u16-mbtouc-safe: New file.
66240         * modules/unistr/u32-mbtouc-safe: New file.
66241         * lib/unistr/u8-mbtouc-safe.c: New file.
66242         * lib/unistr/u16-mbtouc-safe.c: New file.
66243         * lib/unistr/u32-mbtouc-safe.c: New file.
66244
66245         * modules/unistr/u8-move: New file.
66246         * modules/unistr/u16-move: New file.
66247         * modules/unistr/u32-move: New file.
66248         * lib/unistr/u8-move.c: New file.
66249         * lib/unistr/u16-move.c: New file.
66250         * lib/unistr/u32-move.c: New file.
66251         * lib/unistr/u-move.h: New file.
66252
66253         * modules/unistr/u8-next: New file.
66254         * modules/unistr/u16-next: New file.
66255         * modules/unistr/u32-next: New file.
66256         * lib/unistr/u8-next.c: New file.
66257         * lib/unistr/u16-next.c: New file.
66258         * lib/unistr/u32-next.c: New file.
66259
66260         * modules/unistr/u8-prev: New file.
66261         * modules/unistr/u16-prev: New file.
66262         * modules/unistr/u32-prev: New file.
66263         * lib/unistr/u8-prev.c: New file.
66264         * lib/unistr/u16-prev.c: New file.
66265         * lib/unistr/u32-prev.c: New file.
66266
66267         * modules/unistr/u8-set: New file.
66268         * modules/unistr/u16-set: New file.
66269         * modules/unistr/u32-set: New file.
66270         * lib/unistr/u8-set.c: New file.
66271         * lib/unistr/u16-set.c: New file.
66272         * lib/unistr/u32-set.c: New file.
66273         * lib/unistr/u-set.h: New file.
66274
66275         * modules/unistr/u8-startswith: New file.
66276         * modules/unistr/u16-startswith: New file.
66277         * modules/unistr/u32-startswith: New file.
66278         * lib/unistr/u8-startswith.c: New file.
66279         * lib/unistr/u16-startswith.c: New file.
66280         * lib/unistr/u32-startswith.c: New file.
66281         * lib/unistr/u-startswith.h: New file.
66282
66283         * modules/unistr/u8-stpcpy: New file.
66284         * modules/unistr/u16-stpcpy: New file.
66285         * modules/unistr/u32-stpcpy: New file.
66286         * lib/unistr/u8-stpcpy.c: New file.
66287         * lib/unistr/u16-stpcpy.c: New file.
66288         * lib/unistr/u32-stpcpy.c: New file.
66289         * lib/unistr/u-stpcpy.h: New file.
66290
66291         * modules/unistr/u8-stpncpy: New file.
66292         * modules/unistr/u16-stpncpy: New file.
66293         * modules/unistr/u32-stpncpy: New file.
66294         * lib/unistr/u8-stpncpy.c: New file.
66295         * lib/unistr/u16-stpncpy.c: New file.
66296         * lib/unistr/u32-stpncpy.c: New file.
66297         * lib/unistr/u-stpncpy.h: New file.
66298
66299         * modules/unistr/u8-strcat: New file.
66300         * modules/unistr/u16-strcat: New file.
66301         * modules/unistr/u32-strcat: New file.
66302         * lib/unistr/u8-strcat.c: New file.
66303         * lib/unistr/u16-strcat.c: New file.
66304         * lib/unistr/u32-strcat.c: New file.
66305         * lib/unistr/u-strcat.h: New file.
66306
66307         * modules/unistr/u8-strchr: New file.
66308         * modules/unistr/u16-strchr: New file.
66309         * modules/unistr/u32-strchr: New file.
66310         * lib/unistr/u8-strchr.c: New file.
66311         * lib/unistr/u16-strchr.c: New file.
66312         * lib/unistr/u32-strchr.c: New file.
66313
66314         * modules/unistr/u8-strcmp: New file.
66315         * modules/unistr/u16-strcmp: New file.
66316         * modules/unistr/u32-strcmp: New file.
66317         * lib/unistr/u8-strcmp.c: New file.
66318         * lib/unistr/u16-strcmp.c: New file.
66319         * lib/unistr/u32-strcmp.c: New file.
66320
66321         * modules/unistr/u8-strcpy: New file.
66322         * modules/unistr/u16-strcpy: New file.
66323         * modules/unistr/u32-strcpy: New file.
66324         * lib/unistr/u8-strcpy.c: New file.
66325         * lib/unistr/u16-strcpy.c: New file.
66326         * lib/unistr/u32-strcpy.c: New file.
66327         * lib/unistr/u-strcpy.h: New file.
66328
66329         * modules/unistr/u8-strcspn: New file.
66330         * modules/unistr/u16-strcspn: New file.
66331         * modules/unistr/u32-strcspn: New file.
66332         * lib/unistr/u8-strcspn.c: New file.
66333         * lib/unistr/u16-strcspn.c: New file.
66334         * lib/unistr/u32-strcspn.c: New file.
66335         * lib/unistr/u-strcspn.h: New file.
66336
66337         * modules/unistr/u8-strdup: New file.
66338         * modules/unistr/u16-strdup: New file.
66339         * modules/unistr/u32-strdup: New file.
66340         * lib/unistr/u8-strdup.c: New file.
66341         * lib/unistr/u16-strdup.c: New file.
66342         * lib/unistr/u32-strdup.c: New file.
66343         * lib/unistr/u-strdup.h: New file.
66344
66345         * modules/unistr/u8-strlen: New file.
66346         * modules/unistr/u16-strlen: New file.
66347         * modules/unistr/u32-strlen: New file.
66348         * lib/unistr/u8-strlen.c: New file.
66349         * lib/unistr/u16-strlen.c: New file.
66350         * lib/unistr/u32-strlen.c: New file.
66351         * lib/unistr/u-strlen.h: New file.
66352
66353         * modules/unistr/u8-strmblen: New file.
66354         * modules/unistr/u16-strmblen: New file.
66355         * modules/unistr/u32-strmblen: New file.
66356         * lib/unistr/u8-strmblen.c: New file.
66357         * lib/unistr/u16-strmblen.c: New file.
66358         * lib/unistr/u32-strmblen.c: New file.
66359
66360         * modules/unistr/u8-strmbtouc: New file.
66361         * modules/unistr/u16-strmbtouc: New file.
66362         * modules/unistr/u32-strmbtouc: New file.
66363         * lib/unistr/u8-strmbtouc.c: New file.
66364         * lib/unistr/u16-strmbtouc.c: New file.
66365         * lib/unistr/u32-strmbtouc.c: New file.
66366
66367         * modules/unistr/u8-strncat: New file.
66368         * modules/unistr/u16-strncat: New file.
66369         * modules/unistr/u32-strncat: New file.
66370         * lib/unistr/u8-strncat.c: New file.
66371         * lib/unistr/u16-strncat.c: New file.
66372         * lib/unistr/u32-strncat.c: New file.
66373         * lib/unistr/u-strncat.h: New file.
66374
66375         * modules/unistr/u8-strncmp: New file.
66376         * modules/unistr/u16-strncmp: New file.
66377         * modules/unistr/u32-strncmp: New file.
66378         * lib/unistr/u8-strncmp.c: New file.
66379         * lib/unistr/u16-strncmp.c: New file.
66380         * lib/unistr/u32-strncmp.c: New file.
66381
66382         * modules/unistr/u8-strncpy: New file.
66383         * modules/unistr/u16-strncpy: New file.
66384         * modules/unistr/u32-strncpy: New file.
66385         * lib/unistr/u8-strncpy.c: New file.
66386         * lib/unistr/u16-strncpy.c: New file.
66387         * lib/unistr/u32-strncpy.c: New file.
66388         * lib/unistr/u-strncpy.h: New file.
66389
66390         * modules/unistr/u8-strnlen: New file.
66391         * modules/unistr/u16-strnlen: New file.
66392         * modules/unistr/u32-strnlen: New file.
66393         * lib/unistr/u8-strnlen.c: New file.
66394         * lib/unistr/u16-strnlen.c: New file.
66395         * lib/unistr/u32-strnlen.c: New file.
66396         * lib/unistr/u-strnlen.h: New file.
66397
66398         * modules/unistr/u8-strpbrk: New file.
66399         * modules/unistr/u16-strpbrk: New file.
66400         * modules/unistr/u32-strpbrk: New file.
66401         * lib/unistr/u8-strpbrk.c: New file.
66402         * lib/unistr/u16-strpbrk.c: New file.
66403         * lib/unistr/u32-strpbrk.c: New file.
66404         * lib/unistr/u-strpbrk.h: New file.
66405
66406         * modules/unistr/u8-strrchr: New file.
66407         * modules/unistr/u16-strrchr: New file.
66408         * modules/unistr/u32-strrchr: New file.
66409         * lib/unistr/u8-strrchr.c: New file.
66410         * lib/unistr/u16-strrchr.c: New file.
66411         * lib/unistr/u32-strrchr.c: New file.
66412
66413         * modules/unistr/u8-strspn: New file.
66414         * modules/unistr/u16-strspn: New file.
66415         * modules/unistr/u32-strspn: New file.
66416         * lib/unistr/u8-strspn.c: New file.
66417         * lib/unistr/u16-strspn.c: New file.
66418         * lib/unistr/u32-strspn.c: New file.
66419         * lib/unistr/u-strspn.h: New file.
66420
66421         * modules/unistr/u8-strstr: New file.
66422         * modules/unistr/u16-strstr: New file.
66423         * modules/unistr/u32-strstr: New file.
66424         * lib/unistr/u8-strstr.c: New file.
66425         * lib/unistr/u16-strstr.c: New file.
66426         * lib/unistr/u32-strstr.c: New file.
66427         * lib/unistr/u-strstr.h: New file.
66428
66429         * modules/unistr/u8-strtok: New file.
66430         * modules/unistr/u16-strtok: New file.
66431         * modules/unistr/u32-strtok: New file.
66432         * lib/unistr/u8-strtok.c: New file.
66433         * lib/unistr/u16-strtok.c: New file.
66434         * lib/unistr/u32-strtok.c: New file.
66435         * lib/unistr/u-strtok.h: New file.
66436
66437         * modules/unistr/u8-uctomb: New file.
66438         * modules/unistr/u16-uctomb: New file.
66439         * modules/unistr/u32-uctomb: New file.
66440         * lib/unistr/u8-uctomb.c: New file.
66441         * lib/unistr/u16-uctomb.c: New file.
66442         * lib/unistr/u32-uctomb.c: New file.
66443
66444         * MODULES.html.sh (Unicode string functions): Add the new modules.
66445
66446 2007-01-08  Bruno Haible  <bruno@clisp.org>
66447
66448         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66449         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66450         subdirectories.
66451
66452 2007-01-08  Karl Berry  <karl@gnu.org>
66453
66454         * doc/error.texi: mention that main() fns must set program_name
66455         when progname is used.
66456
66457 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66460         WCTYPE_H is empty, for the benefit of builds from non-distclean
66461         directories.  Problem reported by Eric Blake in
66462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66463
66464 2007-01-08  Bruno Haible  <bruno@clisp.org>
66465
66466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66467         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66468         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66469         PROVIDE_CANONICALIZE_FILENAME_MODE.
66470         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66471
66472 2007-01-08  Bruno Haible  <bruno@clisp.org>
66473
66474         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66475         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66476         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66477         * lib/fts.c: Likewise.
66478         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66479
66480 2006-12-25  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/utf8-ucs4-safe: New file.
66483         * lib/utf8-ucs4-safe.h: New file.
66484         * lib/unistr/utf8-ucs4-safe.c: New file.
66485
66486         * modules/utf16-ucs4-safe: New file.
66487         * lib/utf16-ucs4-safe.h: New file.
66488         * lib/unistr/utf16-ucs4-safe.c: New file.
66489
66490         * MODULES.html.sh (Unicode string functions): Add the new modules.
66491
66492 2007-01-08  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66495         (Depends-on): Add unitypes.
66496         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66497         (u8_mbtouc_aux): Move out to separate file.
66498         (u8_mbtouc): Use ucs4_t, uint8_t types.
66499         * lib/unistr/utf8-ucs4.c: New file.
66500
66501         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66502         (Depends-on): Add unitypes.
66503         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66504         (u16_mbtouc_aux): Move out to separate file.
66505         (u16_mbtouc): Use ucs4_t, uint16_t types.
66506         * lib/unistr/utf16-ucs4.c: New file.
66507
66508         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66509         (Depends-on): Add unitypes.
66510         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66511         (u8_uctomb_aux): Move out to separate file.
66512         (u8_uctomb): Use ucs4_t, uint8_t types.
66513         * lib/unistr/ucs4-utf8.c: New file.
66514
66515         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66516         (Depends-on): Add unitypes.
66517         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66518         (u16_uctomb_aux): Move out to separate file.
66519         (u16_uctomb): Use ucs4_t, uint16_t types.
66520         * lib/unistr/ucs4-utf16.c: New file.
66521
66522 2006-12-25  Bruno Haible  <bruno@clisp.org>
66523
66524         * modules/unitypes: New file.
66525         * lib/unitypes.h: New file.
66526         * MODULES.html.sh (func_all_modules): New section "Unicode string
66527         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66528         this section. Add unitypes.
66529
66530 2007-01-08  Bruno Haible  <bruno@clisp.org>
66531
66532         Avoid variable names that conflict with those from libtool.
66533         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66534         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66535         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66536         library_names_spec to acl_library_names_spec, hardcode_* to
66537         acl_hardcode_*.
66538         Reported by Ralf Wildenhues.
66539
66540 2007-01-08  Bruno Haible  <bruno@clisp.org>
66541
66542         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66543         definition.
66544         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66545         definition.
66546         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66547         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66548         definition.
66549         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66550         definition.
66551         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66552         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66553         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66554         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66555         definition.
66556         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66557         definition.
66558         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66559         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66560         GC_USE_<algorithm>.
66561         * lib/gc-libgcrypt.c: Likewise.
66562         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66563         * modules/gc-arctwo (configure.ac): Likewise.
66564         * modules/gc-des (configure.ac): Likewise.
66565         * modules/gc-hmac-md5 (configure.ac): Likewise.
66566         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66567         * modules/gc-md2 (configure.ac): Likewise.
66568         * modules/gc-md4 (configure.ac): Likewise.
66569         * modules/gc-md5 (configure.ac): Likewise.
66570         * modules/gc-random (configure.ac): Likewise.
66571         * modules/gc-rijndael (configure.ac): Likewise.
66572         * modules/gc-sha1 (configure.ac): Likewise.
66573
66574 2007-01-08  Bruno Haible  <bruno@clisp.org>
66575
66576         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66577         macro definition.
66578         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66579         definition.
66580         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66581         definition.
66582         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66583         * modules/fcntl-safer (configure.ac): Likewise.
66584         * modules/fopen-safer (configure.ac): Likewise.
66585         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66586         GNULIB_FWRITEERROR macro definition.
66587
66588 2007-01-08  Bruno Haible  <bruno@clisp.org>
66589
66590         * m4/gnulib-common.m4: New file.
66591         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66592         (func_get_filelist): Add m4/gnulib-common.m4.
66593
66594 2007-01-08  Bruno Haible  <bruno@clisp.org>
66595
66596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66597         command.
66598
66599 2007-01-08  Jim Meyering  <jim@meyering.net>
66600
66601         Use a more robust test for a "can't happen" condition.
66602         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66603         narrowed the st_size value.  Presuming the "can't happen" condition
66604         is true, that narrowing could conceivably convert an invalid st_size
66605         value into a valid one.  Instead, use a change based on Matthew
66606         Woehlke's original patch.
66607
66608         Slight readability improvement: use an assert-like macro
66609         in place of literal "abort ()" uses.
66610         * lib/fts.c (fts_assert): Define.
66611         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66612         Use this macro instead of a bare 'abort'.
66613
66614 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66615
66616         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66617         simply work around them.
66618         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66619         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66620         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66621         declaring.
66622         Don't bother to define as macros, since the standard doesn't require it.
66623         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66624         longer worry about IRIX 5.3.
66625         (HAVE_WCTYPE_CTMP_BUG): Remove.
66626
66627 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66628
66629         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66630         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66631         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66632         Problems reported by Georg Schwarz for IRIX 5.3.
66633
66634         * gnulib-tool (autoconf_minversion): Take the maximum version number
66635         found, not the minimum.  Problem reported by James Youngman.
66636
66637 2007-01-03  Karl Berry  <karl@gnu.org>
66638
66639         * doc/error.texi: new file, explaining interaction with progname.
66640         * doc/gnulib.texi: include it.  Update copyright.
66641
66642 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66643
66644         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66645         AC_CANONICAL_HOST, to improve autobuild outputs.
66646
66647 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66648             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66649
66650         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66651         sockets, server sockets, and other file descriptors.  Count errors
66652         to compute the return value.  Reorder the code a bit to be easier
66653         to follow.  Don't set event bits that were not requested (except
66654         POLLERR and POLLHUP).
66655
66656 2007-01-01  Bruno Haible  <bruno@clisp.org>
66657
66658         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66659
66660 2007-01-03  Jim Meyering  <jim@meyering.net>
66661
66662         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66663
66664 2007-01-02  Bruno Haible  <bruno@clisp.org>
66665
66666         * modules/settime (Include): Require timespec.h.
66667         * modules/nanosleep (Include): Likewise.
66668
66669 2007-01-01  Bruno Haible  <bruno@clisp.org>
66670
66671         * gnulib-tool (func_emit_copyright_notice): Bump year.
66672         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66673
66674 2007-01-01  Bruno Haible  <bruno@clisp.org>
66675
66676         Improve support for OpenBSD.
66677         * build-aux/config.rpath (libname_spec): Export.
66678         (library_names_spec): New variable. Export.
66679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66680         library_names_spec from the config.rpath output. Locate shared library
66681         through the name pattern in library_names_spec.
66682
66683 2007-01-01  Eric Blake  <ebb9@byu.net>
66684
66685         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66686
66687 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66690         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66691         assume the C locale, and avoid an "eval" that could cause trouble.
66692         Problem with SORT reported by Bob Proulx.
66693
66694         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66695         Define.  Trivial patch from Henning Nielsen Lund, originally
66696         sent to bug-grep@gnu.org today.
66697
66698 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66699
66700         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66701         struct stat.  Problem reported by Henning Nielsen Lund.
66702         * lib/acl.c: Include acl.h first, to check interface.  Don't
66703         bother to include sys/types.h and sys/stat.h again.
66704
66705 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         Import the following change from libc; problem reported by
66708         Sven Verdoolaege.
66709
66710         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66711
66712         [BZ #1373]
66713         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66714
66715 2006-12-28  Jim Meyering  <jim@meyering.net>
66716
66717         * build-aux/announce-gen: Do not assume that the package
66718         builds any of tar.gz, tar.bz2, and .xdelta files.
66719         Suggestion from Simon Josefsson.
66720
66721 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66722
66723         * modules/announce-gen: New file.
66724
66725 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66726
66727         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66728         handles its gotchas now.
66729         * lib/mbswidth.c: Likewise.
66730         * lib/wcwidth.h: Likewise.
66731         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66732         and iswcntrl; the wctype module does this stuff now.
66733         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66735         * modules/mbchar (Depends-on): Add wctype.
66736         * modules/mbswidth (Depends-on): Likewise.
66737         * modules/wcwidth (Depends-on): Likewise.
66738
66739 2006-12-27  Eric Blake  <ebb9@byu.net>
66740
66741         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66742         module uses more than what <wctype.h> is required to provide.
66743
66744 2006-12-26  Eric Blake  <ebb9@byu.net>
66745
66746         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66747
66748 2006-12-26  Eric Blake  <ebb9@byu.net>
66749
66750         * modules/absolute-header: New module.
66751         * modules/fcntl (Depends-on): Depend on it.
66752         * modules/inttypes (Depends-on): Likewise.
66753         * modules/stdint (Depends-on): Likewise.
66754         * modules/sys_stat (Depends-on): Likewise.
66755         * modules/wctype (Depends-on): Likewise.
66756         * MODULES.html.sh (Support for building libraries and
66757         executables): Document it.
66758
66759 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66760
66761         * gnulib-tool (SED): Remove, undoing previous change.
66762         The problem was that it broke coreutils on Solaris, because
66763         "sed --posix" leaked into a makefile.
66764         (sed): New alias, if 'alias' and GNU sed.
66765
66766 2006-12-24  Jim Meyering  <jim@meyering.net>
66767
66768         Work around an fchownat bug in glibc-2.4:
66769         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66770         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66771         in spite of the -P option.
66772         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66773         New macros.
66774         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66775         * modules/openat (Files): Add lib/fchownat.c.
66776         * lib/openat.c (fchownat): Don't define here.  Move to...
66777         * lib/fchownat.c: ...this new file.
66778
66779 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         Fix bug reported by Bruno Haible in
66782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66783         where quotearg.c didn't compile on Mac OS X 10.2 because it
66784         lacks <wchar.h> and wint_t.
66785         * lib/wctype_.h (__wctype_wint_t): New type.
66786         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66787         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66788         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66789         Arg is now of type __wctype_wint_t, not wint_t.
66790         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66791         substitute HAVE_WINT_T.
66792         * modules/wctype (Files): Add m4/wint_t.m4.
66793         (wctype.h): Substitute HAVE_WINT_T.
66794
66795 2006-12-23  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66798
66799 2006-12-23  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66802         S_ISLNK.
66803         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66804         mingw.
66805
66806 2006-12-22  Bruno Haible  <bruno@clisp.org>
66807
66808         * lib/copy-file.c: Include acl.h.
66809         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66810         Close the file descriptors only after being done with copy_acl.
66811         * modules/copy-file (Depends-on): Add acl.
66812
66813 2006-12-22  Bruno Haible  <bruno@clisp.org>
66814
66815         * gnulib-tool (SED): New variable.
66816         Use $SED instead of sed everywhere.
66817
66818 2006-12-22  Bruno Haible  <bruno@clisp.org>
66819
66820         * modules/no-c++: New file.
66821         * m4/no-c++.m4: New file.
66822         * MODULES.html.sh (Support for building libraries and executables):
66823         Add no-c++.
66824
66825 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66828         Include <limits.h>, and use its INT_MAX to rewrite the
66829         j loop so that it does not overflow 'int'.  Problem reported by
66830         Ralf Wildenhues in
66831         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66832         Play it safe by shifting left by 1 rather than multiplying by 2,
66833         as GCC is less likely to optimize this away when the value
66834         is signed (when it assumes overflow leads to undefined behavior).
66835         Also, don't assume time_t uses two's complement.
66836
66837 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * MODULES.html.sh: New module wctype.
66840         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66841         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66842         <wctype.h>, since the new wctype module should fix this.
66843         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66844         the wctype module should arrange for it.
66845         * lib/regex_internal.h: Likewise.
66846         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66847         since the wctype module should handle this now.
66848         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66849         * modules/fnmatch (Depends-on): Add wctype.
66850         * modules/quotearg (Depends-on): Likewise.
66851         * modules/regex (Depends-on): Likewise.
66852
66853 2006-12-19  Bruno Haible  <bruno@clisp.org>
66854
66855         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66856         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66857
66858 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66859
66860         * modules/savewd (Depends-on): Fix dependency on fcntl.
66861
66862 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66865         conforms to C99, rather than relying on the user's environment
66866         setting of STDINT_H.
66867
66868 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66869         and Eric Blake  <ebb9@byu.net>
66870
66871         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66872         This is more consistent with the other defines here.
66873         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66874         Port to z/OS.  Problem reported by Paul Gilmartin.
66875         Change local vars to use gl_ prefix rather than ac_.
66876         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66877         with other defines.
66878         * modules/double-slash-root: New module.
66879         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66880         (Depends-on): Add double-slash-root.
66881         * MODULES.html.sh (File system functions): Mention new module.
66882
66883 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66886         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66887         This is for the benefit of gzip, which doesn't do i18n.
66888
66889 2006-12-12  Jim Meyering  <jim@meyering.net>
66890
66891         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66892         Reported by Andreas Schwab <schwab@suse.de>.
66893
66894 2006-12-12  Bruno Haible  <bruno@clisp.org>
66895
66896         Merge these changes.
66897         2006-09-05  Bruno Haible  <bruno@clisp.org>
66898         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66899         iconv_alloc succeeded.
66900         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66901         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66902         test for " && dest " at the end - dest is always != NULL there. Call
66903         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66904         with 2xNULL arguments, also to flush the state storage. Handle the
66905         IRIX iconv behaviour. Realloc the final result, to throw away unused
66906         memory.
66907
66908 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66911         and fchmodat unconditionally, since glibc 2.4 has them.
66912         Problem reported by Arkadiusz Miskiewicz.
66913
66914 2006-12-10  Bruno Haible  <bruno@clisp.org>
66915
66916         * gnulib-tool (func_import): Show the include files only for those
66917         modules that are copied and specified.
66918         Reported by Karl Berry.
66919
66920 2006-12-08  Jim Meyering  <jim@meyering.net>
66921
66922         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66923         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66924
66925         * build-aux/announce-gen: Add two new options, both optional:
66926         --bootstrap-tools=TOOL_LIST
66927               a comma-separated list of tools, e.g.,
66928               autoconf,automake,bison,gnulib
66929         --gnulib-snapshot-date=DATE
66930               if gnulib is in the bootstrap tool list,
66931               then report this as the snapshot date.
66932               If not specified, use the current date/time.
66933               If you specify a date here, be sure it's UTC.
66934
66935 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66936
66937         * tests/test-argp-2.sh: Fix test to match actual output.
66938         (func_compare): Fix sed script to be portable.
66939
66940 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66943         workaround for this case.  It is not autoconfigured now; offhand
66944         it's hard to see how to autoconfigure it.
66945
66946 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66947
66948         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66949         a directory that is about to be chowned.  Such a directory's
66950         initial file permissions should permit the owner only and this
66951         should not be changed until after the chown, since the group and
66952         other bits would be incorrect if they granted permission before
66953         the chown.
66954
66955         Fix porting problem for iswctype reported by Georg Schwarz in:
66956         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66957         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66958         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66960         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66961
66962 2006-12-03  Jim Meyering  <jim@meyering.net>
66963
66964         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66965         p->fts_statp may not yet be defined.
66966         (fts_read): Instead, set it in the caller, once p->fts_statp is
66967         sure to be defined, and corresponds to a top-level directory.
66968         This bug made du -x fail.  Here's the coreutils test case:
66969         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66970         Reported by Mike Frysinger.
66971
66972 2006-12-01  Jim Meyering  <jim@meyering.net>
66973
66974         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66975         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66976         Reported by Simon Josefsson.
66977
66978 2006-11-30  Jim Meyering  <jim@meyering.net>
66979
66980         * m4/warning.m4: Use the all-permissive copyright notice
66981         recommended by RMS (rather than LGPL).
66982         * m4/vararrays.m4: Likewise.
66983         * m4/flexmember.m4: Likewise.
66984
66985 2006-11-29  Bruno Haible  <bruno@clisp.org>
66986
66987         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66988         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66989         using +=.
66990         Reported by Simon Josefsson <simon@josefsson.org>.
66991
66992 2006-11-28  James Youngman <jay@gnu.org>
66993
66994         * README: Advise users that they might find the bug-gnulib@gnu.org
66995         and autotools-announce@gnu.org mailing lists useful.
66996
66997 2006-11-28  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/ptrdiff_max.m4: Remove file.
67000
67001 2006-11-21  Bruno Haible  <bruno@clisp.org>
67002
67003         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67004         _AC_COMPUTE_INT.
67005         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67006         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67007         _AC_COMPUTE_INT.
67008         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67009         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67010         _AC_COMPUTE_INT.
67011         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67012
67013 2006-11-28  Jim Meyering  <jim@meyering.net>
67014
67015         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67016         warning from "gcc -Wshadow" about shadowing the builtin.
67017
67018 2006-11-27  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67021         _AC_COMPUTE_INT.
67022         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67023
67024 2006-11-27  Bruno Haible  <bruno@clisp.org>
67025             Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67028
67029 2006-11-26  Bruno Haible  <bruno@clisp.org>
67030
67031         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67032         noinst_LTLIBRARIES.
67033
67034 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67035             Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67038         if compiling with "gcc -ansi".
67039
67040 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         Fix some incompatibilities with gcc -ansi -pedantic.
67043         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67044         if compiling pedantically with GCC, unless it's C99 or later.
67045         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67046         it mishandles gcc -ansi -pedantic as well.
67047         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67048         if gcc -pedantic.
67049         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67050         initializers for struct if -pedantic, unless it's C99 or later.
67051
67052 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67053
67054         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67055         Don't close an fd more than once. Identical atimes indicate
67056         success, not failure.
67057
67058 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67059
67060         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67061
67062 2006-11-23  Jim Meyering  <jim@meyering.net>
67063
67064         * build-aux/announce-gen: New file.  From coreutils.
67065
67066 2006-11-22  Jim Meyering  <jim@meyering.net>
67067
67068         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67069         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67070         (fts_read): Use a temporary to narrow the overused st_size member
67071         before using it in a switch statement.  Reported by Matthew Woehlke.
67072
67073         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67074         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67075
67076 2006-11-20  Bruno Haible  <bruno@clisp.org>
67077
67078         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67079         changequote instead of pairs of brackets.
67080         Reported by Andreas Schwab <schwab@suse.de>.
67081
67082 2006-11-21  Jim Meyering  <jim@meyering.net>
67083
67084         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67085         so as to remain compatible with older compilers.
67086         Patch from Michael Deutschmann.
67087
67088 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * MODULES.html.sh (File system functions): Add openat.
67091
67092         * lib/openat.h (rpl_fstatat): New macro, if
67093         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67094         (fstatat): Define to rpl_fstatat under the same conditions,
67095         unless COMPILING_FSTATAT.
67096         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67097         seems to have the bug.
67098         * lib/fstatat.c: New file.
67099         * modules/openat (Files): Add it.
67100
67101 2006-11-20  Bruno Haible  <bruno@clisp.org>
67102
67103         * Makefile: New file.
67104
67105 2006-11-20  Jim Meyering  <jim@meyering.net>
67106
67107         The beginnings of syntax-related checks for gnulib.
67108         * lib/Makefile: New file.
67109         * lib/t-idcache: New script.  Ensure that the two halves of
67110         idcache.c stay in sync.
67111
67112         * lib/idcache.c: Adjust comments in user- and group- portions to
67113         be more accurate, and to be consistent with one another.
67114
67115 2006-11-20  Jim Meyering  <jim@meyering.net>
67116
67117         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67118         continue using the flexible array member (thus, this module performs
67119         half as many malloc calls), with the addition that...
67120         (getgroup, getuser): Consistently record a non-match via an empty
67121         "name" string, and map an empty string match to a NULL return value.
67122         * modules/idcache (Depends-on): Re-add flexmember.
67123
67124         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67125         (getuidbyname, getgroup, getgidbyname): Likewise.
67126
67127         Use cleaner syntax: NULL rather than 0.
67128         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67129
67130 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67133         It mishandled the case where the group was missing.
67134         Problem reported by Greg Schafer.
67135         * modules/idcache: Likewise.
67136
67137 2006-11-18  Jim Meyering  <jim@meyering.net>
67138
67139         * check-module (%exempt_header): Add exception for some
67140         conditionally-included headers.
67141
67142         * modules/i-ring (Depends-on): Add verify.
67143         (License): Change to LGPL.
67144
67145 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67148         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67149         and inttostr.h.  Use snprintf rather than uinttostr, so that
67150         LGPLed code doesn't depend on GPLed.
67151
67152 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         * modules/inline (License): Change from GPL to LGPL.
67155
67156 2006-11-17  Jim Meyering  <jim@meyering.net>
67157
67158         * modules/d-type (License): Switch to LGPL.
67159
67160 2006-11-15  Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67163
67164 2006-11-15  Eric Blake  <ebb9@byu.net>
67165
67166         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67167         the module dependency.
67168
67169 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67170             Bruno Haible  <bruno@clisp.org>
67171
67172         * gnulib-tool (func_create_testdir): Add license consistency check.
67173
67174 2006-11-15  Eric Blake  <ebb9@byu.net>
67175
67176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67177         random "(cached)" in configure output.
67178
67179 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67180
67181         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67182         test for conforming inttypes.h is both announced and cached.
67183
67184         * MODULES.html.sh (seen_modules, seen_files): New variables.
67185         (func_module): Rewrite to use a few less gnulib-tool and sed
67186         invocations.  Avoid a couple of quadratic algorithms for ...
67187         (missed_modules, missed_files): ... these, with ...
67188         (func_append, func_tmpdir): ... these new functions, from
67189         gnulib-tool.  Analogously, install traps for cleanup.
67190
67191         * tests/test-gc.c (main): Remove unused variables.
67192         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67193
67194 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * modules/inttostr (License): Change to LGPL.
67197
67198 2006-11-14  Eric Blake  <ebb9@byu.net>
67199
67200         * modules/tempname (License): Change to LGPL.
67201
67202 2006-11-14  Eric Blake  <ebb9@byu.net>
67203
67204         * doc/functions.texi (Function Portability): *printf functions on
67205         Cygwin now understand all POSIX size specifiers.
67206
67207 2006-11-14  Bruno Haible  <bruno@clisp.org>
67208
67209         * modules/c-ctype (License): Change to LGPL.
67210
67211 2006-11-12  Bruno Haible  <bruno@clisp.org>
67212
67213         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67214         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67215         for GNOME libraries, for which the include files are installed in
67216         subdirectories of $prefix/include.
67217
67218 2006-11-12  Bruno Haible  <bruno@clisp.org>
67219
67220         * m4/lib-link.m4: Require at least autoconf-2.54.
67221         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67222         name to underscores for the --with option.
67223
67224 2006-11-13  Bruno Haible  <bruno@clisp.org>
67225
67226         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67227         the tests directory.
67228         Reported by Ralf Wildenhues.
67229
67230 2006-11-13  Bruno Haible  <bruno@clisp.org>
67231
67232         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67233         (func_emit_initmacro_end): Undo the override here.
67234         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67235         Works around the famous automake error in coreutils.
67236
67237 2006-11-13  Eric Blake  <ebb9@byu.net>
67238
67239         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67240         element, not its node.
67241
67242 2006-11-12  Bruno Haible  <bruno@clisp.org>
67243
67244         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67245         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67246
67247 2006-11-12  Bruno Haible  <bruno@clisp.org>
67248
67249         * gnulib-tool: New option --local-symlink.
67250         (func_usage): Document it.
67251         (lsymbolic): New variable.
67252         (func_import, func_create_testdir): If --symlink was not specified,
67253         test whether --local-symlink was specified and the file comes from
67254         the local_gnulib_dir.
67255
67256 2006-11-12  Bruno Haible  <bruno@clisp.org>
67257
67258         * gnulib-tool (func_ln): New function.
67259         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67260
67261 2006-11-12  Bruno Haible  <bruno@clisp.org>
67262
67263         Finish support for source files in subdirectories.
67264         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67265         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67266         AUTOMAKE_OPTIONS.
67267         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67268
67269 2006-11-12  Bruno Haible  <bruno@clisp.org>
67270
67271         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67272         EXTRA_lib_SOURCES augmentation.
67273         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67274
67275 2006-11-12  Jim Meyering  <jim@meyering.net>
67276
67277         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67278         file descriptors.  This also averts a failure on systems with
67279         native openat support when a traversed directory lacks "x" access.
67280         * lib/fts_.h: Include "i-ring.h"
67281         (struct FTS) [fts_fd_ring]: New member.
67282         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67283         (FCHDIR): Add parentheses.
67284         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67285         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67286         When descending, rather than simply closing the previous
67287         fts_cwd_fd value, push that file descriptor onto the ring.
67288         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67289         (fts_open): Initialize the new fd_ring member.
67290         (fts_close): Clear the ring.
67291         (fts_safe_changedir): When possible, use our new fd_ring to skip
67292         the diropen and fstat and dev/ino comparison that would normally
67293         accompany a virtual `chdir ("..")'.
67294
67295         * modules/fts (Depends-on): Add i-ring.
67296         * modules/i-ring: New module.
67297         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67298         * m4/i-ring.m4: New file.
67299
67300 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67301
67302         * gnulib-tool (func_create_testdir): Fix replacement of
67303         `build-aux' in configure.ac.  Run autotools in gltests
67304         subdirectory.
67305         (func_create_testdir, func_create_megatestdir, test): There is
67306         no need for '--force' in most autotool invocations in a new
67307         tree.  Actually fail the whole test if any of the tools, or the
67308         configure or make stages fail.
67309
67310         Sync from Automake.
67311         * build-aux/gnupload: Revert last change.  Add pointer to upload
67312         instructions of the GNU Maintenance Instructions.
67313         Suggestion by Karl Berry.
67314
67315 2006-11-10  Jim Meyering  <jim@meyering.net>
67316
67317         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67318
67319 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67322         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67323         (bind_textdomain_codeset) [! ENABLE_NLS]:
67324         Evaluate all the arguments.  That way, callers get compatible behavior
67325         if the arguments have side effects.  Also, it avoids some GCC
67326         diagnostics in some cases; Joel E. Denny reported problems when Bison
67327         was configured with --enable-gcc-warnigs.
67328
67329 2006-11-10  Jim Meyering  <jim@meyering.net>
67330
67331         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67332         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67333         account.
67334
67335 2006-11-10  Jim Meyering  <jim@meyering.net>
67336
67337         * modules/inline: New file/module.
67338         * modules/xalloc (Files): Remove m4/inline.m4.
67339         (Depends-on): Add inline, instead.
67340         * modules/oset: Likewise.
67341         * modules/list: Likewise.
67342
67343 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67346         Problem reported by Matthew Woehlke.
67347
67348 2006-11-09  Bruno Haible  <bruno@clisp.org>
67349
67350         * lib/tempname.c (gen_tempname): Remove variant that invokes
67351         __gen_tempname.
67352         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67353         __gen_tempname.
67354
67355 2006-11-08  Bruno Haible  <bruno@clisp.org>
67356
67357         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67358         to 'yes' instead of 'cross-compiling'.
67359
67360 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * lib/quotearg.h (quotearg_free): New decl.
67363         * lib/quotearg.c (quotearg_free): New function.
67364         (slot0, nslots, slotvec0, slotvec):
67365         Now file-scope so that quotearg_free can get at them.
67366
67367 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67368
67369         Sync from Automake.
67370         * build-aux/gnupload: Add missing 'gnu' to example URL.
67371         Report by Karl Berry.
67372
67373 2006-11-08  Bruno Haible  <bruno@clisp.org>
67374
67375         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67376         Suggested by Paul Eggert.
67377
67378 2006-11-08  Jim Meyering  <jim@meyering.net>
67379
67380         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67381         It's already included if !_LIBC.
67382         (fts_safe_changedir): Add a comment.
67383
67384 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67387         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67388         Matthew Woehlke.
67389
67390         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67391         definitions up, to avoid colliding with change below.
67392         (static_inline) [HAVE_INLINE]: New macro.
67393         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67394         Provide extern decls when !HAVE_INLINE.  Do not define unless
67395         static_inline is defined, either by us or by xmalloc.c.  Use
67396         static_inline rather than static inline.
67397         (XCALLOC): Optimize sizeof(T) = 1 case.
67398         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67399
67400 2006-11-07  Bruno Haible  <bruno@clisp.org>
67401
67402         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67403         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67404         AC_C_INLINE.
67405         * modules/xalloc (Files): Add m4/inline.m4.
67406
67407 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67408
67409         * README: Fix typo.
67410         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67411         (Miscellanous Notes): ...from this.
67412
67413 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67416         Mention that offsetof should be used instead of sizeof.
67417         From Bruno Haible.
67418
67419 2006-11-07  Bruno Haible  <bruno@clisp.org>
67420
67421         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67422
67423 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67424
67425         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67426         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67427         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67428         (gl_tree_add_before, gl_tree_add_after):
67429         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67430         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67431         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67432         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67433         (gl_linked_add_after, gl_linked_add_at): Likewise.
67434         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67435         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67436         (gl_tree_add_before, gl_tree_add_after): Likewise.
67437         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67438         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67439         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67440
67441 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67442
67443         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67444
67445 2006-11-06  Bruno Haible  <bruno@clisp.org>
67446
67447         * m4/inline.m4: New file.
67448         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67449         * modules/list (Files): Add m4/inline.m4.
67450         * modules/oset (Files): Likewise.
67451
67452 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * lib/idcache.c: Include <stddef.h>, for offsetof.
67455         (struct userid.name): Change from char * to a flexible array member.
67456         All uses changed.
67457         * modules/idcache (Depends-on): Add flexmember.
67458
67459         * MODULES.html.sh (Core language properties): New module flexmember.
67460         * modules/flexmember, m4/flexmember.m4: New files.
67461
67462         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67463         inline functions that are identical with the old xnmalloc_inline,
67464         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67465         that we can avoid some unnecessary integer multiplications and
67466         divisions in the common case where the element size is known at
67467         compile time.
67468         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67469         needed.
67470         (xnboundedmalloc): Remove.
67471         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67472         arguments, for consistency with rest of this header.
67473         (xcharalloc): Rewrite using XNMALLOC.
67474         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67475         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67476         versions have been moved to lib/xalloc.h and renamed to be the
67477         non-*_inline versions.
67478         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67479         and xnrealloc functions, since those functions are now inline and
67480         now call us.
67481         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67482         renaming described above.
67483         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67484         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67485         captures the dependency in AC_C_INLINE.
67486
67487         New module canonicalize-lgpl, proposed by Charles Wilson in
67488         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67489         with a few small changes afterwards.
67490         * MODULES.html.sh (File system functions): New module
67491         canonicalize-lgpl.
67492         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67493         and canonicalize_file_name.
67494         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67495         * modules/canonicalize-lgpl: New files.
67496
67497 2006-11-05  Bruno Haible  <bruno@clisp.org>
67498
67499         * gnulib-tool (func_import, func_create_testdir): Create directories
67500         also for files in subdirectories of lib/.
67501
67502 2006-11-05  Bruno Haible  <bruno@clisp.org>
67503
67504         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67505         ANSI C compliant.
67506
67507 2006-11-03  Bruno Haible  <bruno@clisp.org>
67508
67509         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67510         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67511         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67512         (xnboundedmalloc): New inline function.
67513         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67514         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67515         xmalloc.
67516         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67517         xmalloc.
67518         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67519         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67520         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67521         xmalloc.
67522         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67523         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67524         xmalloc.
67525         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67526         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67527         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67528         xmalloc.
67529         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67530         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67531         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67532         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67533         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67534         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67535         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67536
67537 2006-11-03  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/c-ctype.h [C++]: Define functions without name mangling.
67540         * lib/fwriteerror.h [C++]: Likewise.
67541         * lib/gcd.h [C++]: Likewise.
67542         * lib/linebreak.h [C++]: Likewise.
67543
67544 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67547         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67548         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67549         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67550         Check for functions and headers just once.
67551         Check for declaration of canonicalize_file_name.
67552         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67553
67554 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67555
67556         * gnulib-tool (func_import): Fix typo in actioncmd.
67557
67558 2006-11-02  Bruno Haible  <bruno@clisp.org>
67559
67560         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67561         newline sequence in the Makefile.am snippet as a space, like "make"
67562         does.
67563         Reported by Roger Persson <perrog@gmail.com>.
67564
67565 2006-11-01  Bruno Haible  <bruno@clisp.org>
67566
67567         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67568         already declared in <string.h>.
67569         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67570
67571 2006-11-01  Bruno Haible  <bruno@clisp.org>
67572
67573         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67574         * lib/strcase.h: Include <string.h>.
67575         (strcasecmp): Define to rpl_strcasecmp here.
67576
67577 2006-11-01  Bruno Haible  <bruno@clisp.org>
67578
67579         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67580
67581 2006-11-01  Eric Blake  <ebb9@byu.net>
67582
67583         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67584
67585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67586
67587 2006-10-29  Bruno Haible  <bruno@clisp.org>
67588
67589         Make it compile in C++ mode.
67590         * lib/full-write.c (full_rw): Add a cast.
67591
67592 2006-11-01  Bruno Haible  <bruno@clisp.org>
67593
67594         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67595         be POSIX compliant.
67596         Reported by Roger Persson <perrog@gmail.com>.
67597
67598 2006-11-01  Eric Blake  <ebb9@byu.net>
67599
67600         * lib/getopt_.h: Fix comments.
67601
67602 2006-10-31  Eric Blake  <ebb9@byu.net>
67603
67604         * modules/tmpdir (Depends-on): Add sys_stat.
67605         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67606         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67607         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67608         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67609         tempname.
67610
67611 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         Avoid some C++ diagnostics reported by Bruno Haible.
67614         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67615         xmalloc.
67616         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67617         (struct slotvec): Move to top level.
67618         (quotearg_n_options): Rewrite to avoid xmalloc.
67619         * lib/xalloc.h (xcharalloc): New function.
67620         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67621         [defined __cplusplus]: Add function template that provides result
67622         type propagation.  This part of the change is from Bruno Haible.
67623
67624 2006-10-29  Bruno Haible  <bruno@clisp.org>
67625
67626         Make it compile in C++ mode.
67627         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67628         * lib/strnlen1.c (strnlen1): Cast memchr result.
67629         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67630         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67631         (create_temp_dir): Rename local variable 'template'.
67632         (compile_csharp_using_sscli): Add cast.
67633         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67634         * lib/findprog.c (find_in_path): Likewise.
67635         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67636         * lib/wait-process.c (register_slave_subprocess): Likewise.
67637
67638 2006-10-22  Bruno Haible  <bruno@clisp.org>
67639
67640         * modules/tsearch: New file.
67641         * lib/tsearch.h: New file.
67642         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67643         * m4/tsearch.m4: New file.
67644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67645
67646 2006-10-29  Eric Blake  <ebb9@byu.net>
67647
67648         * lib/arcfour.c: Assume config.h.
67649         * lib/arctwo.c: Likewise.
67650         * lib/base64.c: Likewise.
67651         * lib/check-version.c: Likewise.
67652         * lib/crc.c: Likewise.
67653         * lib/des.c: Likewise.
67654         * lib/gc-gnulib.c: Likewise.
67655         * lib/gc-libgcrypt.c: Likewise.
67656         * lib/gc-pbkdf2-sha1.c: Likewise.
67657         * lib/getaddrinfo.c: Likewise.
67658         * lib/getdelim.c: Likewise.
67659         * lib/getline.c: Likewise.
67660         * lib/hmac-md5.c: Likewise.
67661         * lib/hmac-sha1.c: Likewise.
67662         * lib/iconvme.c: Likewise.
67663         * lib/md2.c: Likewise.
67664         * lib/md4.c: Likewise.
67665         * lib/memxor.c: Likewise.
67666         * lib/read-file.c: Likewise.
67667         * lib/readline.c: Likewise.
67668         * lib/rijndael-alg-fst.c: Likewise.
67669         * lib/rijndael-api-fst.c: Likewise.
67670         * lib/xgetdomainname.c: Likewise.
67671
67672 2006-10-28  Eric Blake  <ebb9@byu.net>
67673
67674         * lib/xstrndup.c: Assume config.h.
67675
67676 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67679         stat-macros.h is now for our own macros, whereas stat_h is for
67680         macros in the <sys/stat.h> name space.
67681         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67682         (STAT_MACROS_H): Remove.
67683         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67684         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67685         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67686         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67687         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67688         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67689         Move these macros to ...
67690         * lib/stat_.h: here.  Don't include stat-macros.h.
67691         * lib/canonicalize.c: Don't include stat-macros.h.
67692         * lib/chown.c: Likewise.
67693         * lib/euidaccess.c: Likewise.
67694         * lib/file-type.c: Likewise.
67695         * lib/filemode.c: Likewise.
67696         * lib/glob.c: Likewise.
67697         * lib/isapipe.c: Likewise.
67698         * lib/lchown.c: Likewise.
67699         * lib/lstat.c: Likewise.
67700         * lib/mkdir-p.c: Likewise.
67701         * lib/rmdir.c: Likewise.
67702         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67703         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67704         unless mkdir isn't declared, to speed up 'configure'.
67705         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67706         would define all the S_* symbols.
67707         * modules/canonicalize (Depends-on):
67708         Depend on sys_stat, not stat-macros.
67709         * modules/chown: Likewise.
67710         * modules/euidaccess: Likewise.
67711         * modules/filemode: Likewise.
67712         * modules/file-type: Likewise.
67713         * modules/glob: Likewise.
67714         * modules/isapipe: Likewise.
67715         * modules/lchown: Likewise.
67716         * modules/lstat: Likewise.
67717         * modules/mkancesdirs: Likewise.
67718         * modules/rmdir: Likewise.
67719         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67720         * modules/modechange: Likewise.
67721         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67722         (configure.ac): Remove gl_STAT_MACROS.
67723         * modules/sys_stat (Depends-on): Remove stat-macros.
67724
67725 2006-10-27  Bruno Haible  <bruno@clisp.org>
67726
67727         * m4/signed.m4: Remove file.
67728         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67729         invocation.
67730         * modules/vasnprintf (Files): Remove m4/signed.m4.
67731
67732 2006-10-27  Bruno Haible  <bruno@clisp.org>
67733
67734         Update to GNU gettext 0.16.
67735         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67736         m4/inttypes-h.m4, m4/signed.m4.
67737         * m4/gettext.m4: Update to GNU gettext 0.16.
67738         * m4/intl.m4: New file, from GNU gettext.
67739         * m4/intldir.m4: New file, from GNU gettext.
67740         * config/srclist.txt: Update
67741
67742 2006-10-27  Eric Blake  <ebb9@byu.net>
67743
67744         * MODULES.html.sh: Document tempname.
67745         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67746         dependencies.
67747         (Files): Move lib/tempname.c...
67748         * modules/tempname: ...to this new module.
67749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67750         (gl_PREREQ_TEMPNAME): Move...
67751         * m4/tempname.m4: ...to this new file.
67752         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67753         * modules/sys_stat (Depends-on): Add stat-macros.
67754         * lib/stat_.h (includes): Pick up stat macros.
67755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67756         if stat macros are broken.
67757         * lib/tempname.c (includes): No need to include "stat-macros.h".
67758         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67759         (direxists, __path_search) [!_LIBC]: Don't compile these in
67760         gnulib; the tmpdir module covers that.
67761         * lib/tempname.h: New file.
67762
67763 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * COPYING: Explain how gnulib-tool converts licence headers.
67766         Almost all wording by Eric Blake.
67767
67768 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * lib/mbchar.h (is_basic_table): Make read-only.
67771         * lib/mbchar.c (is_basic_table): Likewise.
67772         Reported by John Darrington.
67773
67774 2006-10-25  Bruno Haible  <bruno@clisp.org>
67775
67776         * lib/progname.h (set_program_name): Undefine before defining.
67777
67778 2006-10-25  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67781         false for non-gcc C++ compilers.
67782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67783
67784 2006-10-24  Bruno Haible  <bruno@clisp.org>
67785
67786         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67787         iconv implementations like Irix iconv.
67788
67789 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * modules/vararrays: New file.
67792         * m4/vararrays.m4: New file, taken from diffutils.
67793         * MODULES.html.sh: New module vararrays.
67794
67795 2006-10-24  Karl Berry  <karl@gnu.org>
67796
67797         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67798         Don't call GNU Unix.
67799
67800 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67801
67802         * users.txt: Add Libtool.
67803
67804         Sync from Libtool:
67805
67806         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67807
67808         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67809         to gnulib's policy of including config.h unconditionally.
67810
67811 2006-10-24  Bruno Haible  <bruno@clisp.org>
67812
67813         * modules/wcwidth (Files): Add m4/wint_t.m4.
67814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67815         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67816
67817 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67820         to pacify GCC with some -W flags enabled.  Problem reported by
67821         Bruno Haible.
67822
67823 2006-10-24  Jim Meyering  <jim@meyering.net>
67824
67825         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67826         Reported by Karl Berry.
67827
67828 2006-10-23  Bruno Haible  <bruno@clisp.org>
67829
67830         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67831
67832 2006-10-24  Bruno Haible  <bruno@clisp.org>
67833
67834         * lib/gl_list.h: Use C comment style, not C++ comment style.
67835
67836 2006-10-23  Eric Blake  <ebb9@byu.net>
67837
67838         * lib/getaddrinfo.c (includes): Add missing include.
67839
67840 2006-10-23  Bruno Haible  <bruno@clisp.org>
67841             Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         Ability to rename obstack_free.
67844         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67845         obstack_free.
67846         (obstack_free): Invoke the __obstack_free macro.
67847         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67848
67849 2006-10-23  Bruno Haible  <bruno@clisp.org>
67850             Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67853         __argc, __argv from the declaration. (They are defined as macros on
67854         mingw.)
67855
67856 2006-10-22  Bruno Haible  <bruno@clisp.org>
67857
67858         * doc/gnulib-intro.texi: New file.
67859         * doc/gnulib.texi: Include it.
67860
67861 2006-10-21  Bruno Haible  <bruno@clisp.org>
67862
67863         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67864         "Introduction", "Miscellanous Notes", "Particular Modules".
67865
67866 2006-10-21  Bruno Haible  <bruno@clisp.org>
67867
67868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67869         Change mostlyclean-local rule to avoid sh syntax error from bash
67870         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67871
67872 2006-10-23  Jim Meyering  <jim@meyering.net>
67873
67874         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67875         in place of snprintf.
67876
67877         * modules/inttostr (Files): Add lib/uinttostr.c.
67878         * lib/uinttostr.c (inttostr): New file/function.
67879         * lib/inttostr.h (uinttostr): Declare.
67880         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67881         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67882         Add uinttostr.
67883         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67884
67885 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         * lib/canonicalize.c (ELOOP): Define if not already defined.
67888         Problem reported by Bruno Haible in
67889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67890
67891 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67894         Problem reported by Perry Smith and Ville Laurikari.
67895
67896         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67897         uses.
67898
67899 2006-10-19  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67902         for mingw.
67903
67904 2006-10-19  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67907         Needed for mingw.
67908
67909 2006-10-19  Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67912
67913 2006-10-19  Bruno Haible  <bruno@clisp.org>
67914
67915         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67916         it.
67917
67918 2006-10-19  Bruno Haible  <bruno@clisp.org>
67919
67920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67921         invocation.
67922
67923 2006-10-19  Bruno Haible  <bruno@clisp.org>
67924
67925         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67926         mountlist by default.
67927
67928 2006-10-16  Bruno Haible  <bruno@clisp.org>
67929
67930         * lib/c-strstr.c: Include c-strstr.h.
67931
67932 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67933
67934         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67935         in a slash.
67936
67937 2006-10-18  Bruno Haible  <bruno@clisp.org>
67938
67939         * lib/lock.h [C++]: Wrap definitions in extern "C".
67940
67941 2006-10-18  Bruno Haible  <bruno@clisp.org>
67942
67943         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67944         gl_LIBOBJS list.
67945
67946 2006-10-18  Bruno Haible  <bruno@clisp.org>
67947
67948         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67949
67950 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         * lib/xstrtol.h: Include gettext.h.
67953         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67954         Problem reported by Eric Blake.
67955         * modules/xstrtol (Depends-on): Add gettext-h.
67956
67957 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67958
67959         * lib/strftime.c (advance): New macro.
67960         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67961         incomplete type, so you can't add 0 to it.  Problem and patch
67962         reported by Eelco Dolstra for dietlibc.
67963
67964 2006-10-18  Jim Meyering  <jim@meyering.net>
67965
67966         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67967         type for a local, and rename it: s/up/user_proc/.
67968
67969 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67970
67971         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67972         READ_UTMP_USER_PROCESS.
67973         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67974
67975 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67978         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67979
67980 2006-10-17  Eric Blake  <ebb9@byu.net>
67981
67982         * lib/sigprocmask.c (sigprocmask): Fix typo.
67983
67984         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67985
67986         * modules/clean-temp (Makefile.am): Don't add to make output...
67987         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67988         config.h.
67989
67990 2006-10-17  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67993         differently if DEFAULT_TEXT_DOMAIN is set.
67994
67995 2006-10-16  Bruno Haible  <bruno@clisp.org>
67996
67997         * lib/clean-temp.c: Include fwriteerror.h.
67998
67999 2006-10-16  Bruno Haible  <bruno@clisp.org>
68000
68001         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68002
68003 2006-10-16  Bruno Haible  <bruno@clisp.org>
68004
68005         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68006         * lib/sigprocmask.h: Include <sys/types.h>.
68007         (sigset_t): Use the system's definition if present.
68008
68009 2006-10-17  Eric Blake  <ebb9@byu.net>
68010
68011         * lib/xvasprintf.c (includes): Assume config.h.
68012         * lib/xasprintf.c (includes): Likewise.
68013
68014 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68017         at least as wide as intmax_t.
68018
68019 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68020
68021         (Imported from Automake.)
68022         * build-aux/gnupload: Update to version 1.1 of directive file.
68023
68024 2006-10-16  Eric Blake  <ebb9@byu.net>
68025
68026         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68027         match Automake 1.10a.
68028
68029 2006-10-14  Bruno Haible  <bruno@clisp.org>
68030
68031         * modules/sigprocmask: New file.
68032         * lib/sigprocmask.h: New file.
68033         * lib/sigprocmask.c: New file.
68034         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68035         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68036         request sigprocmask.o.
68037         (gl_PREREQ_SIGPROCMASK): New macro.
68038         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68039         (Depends-on): Add sigprocmask.
68040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68041         gt_SIGNALBLOCKING. Test for 'raise' only once.
68042         * lib/fatal-signal.c: Include sigprocmask.h.
68043         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68044         unblock_fatal_signals): Define always.
68045         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68046         sigprocmask.
68047
68048 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         Sync from Automake.
68051         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68052         which incorrectly sets the mode of an existing destination
68053         directory.  In some cases the unpatched install-sh could do the
68054         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68055         system.  We hope this is rare in practice, but it's clearly worth
68056         fixing.  Problem reported by Alex Unleashed in
68057         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68058         Also, don't bother to check for -m bugs unless we're using -m;
68059         suggested by Stepan Kasal.
68060
68061 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68062
68063         Sync from Automake.
68064         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68065         `-c' flag, so they appear at the same position as in %FASTDEP%
68066         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68067         which ignores unknown options only after the first non-option.
68068         Bug report against M4 by Nelson H. F. Beebe.
68069
68070 2006-10-13  Jim Meyering  <jim@meyering.net>
68071
68072         Fix a bug in yesterday's change.
68073         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68074         p->fts_statp->st_dev would be used uninitialized.
68075         Ensures that we always call fts_stat on the very first entry.
68076         Miklos Szeredi reported that find -xdev stopped working.
68077
68078 2006-10-12  Bruno Haible  <bruno@clisp.org>
68079
68080         * gnulib-tool (func_get_automake_snippet): Append an automatically
68081         computed EXTRA_DIST augmentation.
68082         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68083         * modules/alloca-opt (Makefile.am): Likewise.
68084         * modules/allocsa (Makefile.am): Likewise.
68085         * modules/arcfour (Makefile.am): Likewise.
68086         * modules/arctwo (Makefile.am): Likewise.
68087         * modules/argmatch (Makefile.am): Likewise.
68088         * modules/argz (Makefile.am): Likewise.
68089         * modules/atexit (Makefile.am): Likewise.
68090         * modules/backupfile (Makefile.am): Likewise.
68091         * modules/byteswap (Makefile.am): Likewise.
68092         * modules/c-strtod (Makefile.am): Likewise.
68093         * modules/c-strtold (Makefile.am): Likewise.
68094         * modules/calloc (Makefile.am): Likewise.
68095         * modules/canon-host (Makefile.am): Likewise.
68096         * modules/canonicalize (Makefile.am): Likewise.
68097         * modules/chdir-long (Makefile.am): Likewise.
68098         * modules/chdir-safer (Makefile.am): Likewise.
68099         * modules/check-version (Makefile.am): Likewise.
68100         * modules/chown (Makefile.am): Likewise.
68101         * modules/cloexec (Makefile.am): Likewise.
68102         * modules/close-stream (Makefile.am): Likewise.
68103         * modules/closeout (Makefile.am): Likewise.
68104         * modules/crc (Makefile.am): Likewise.
68105         * modules/csharpexec (Makefile.am): Likewise.
68106         * modules/cycle-check (Makefile.am): Likewise.
68107         * modules/des (Makefile.am): Likewise.
68108         * modules/dev-ino (Makefile.am): Likewise.
68109         * modules/dirfd (Makefile.am): Likewise.
68110         * modules/dirname (Makefile.am): Likewise.
68111         * modules/dup2 (Makefile.am): Likewise.
68112         * modules/eealloc (Makefile.am): Likewise.
68113         * modules/error (Makefile.am): Likewise.
68114         * modules/euidaccess (Makefile.am): Likewise.
68115         * modules/exclude (Makefile.am): Likewise.
68116         * modules/exitfail (Makefile.am): Likewise.
68117         * modules/fcntl-safer (Makefile.am): Likewise.
68118         * modules/fcntl (Makefile.am): Likewise.
68119         * modules/file-type (Makefile.am): Likewise.
68120         * modules/fileblocks (Makefile.am): Likewise.
68121         * modules/filemode (Makefile.am): Likewise.
68122         * modules/filenamecat (Makefile.am): Likewise.
68123         * modules/fnmatch (Makefile.am): Likewise.
68124         * modules/fopen-safer (Makefile.am): Likewise.
68125         * modules/fpending (Makefile.am): Likewise.
68126         * modules/fprintftime (Makefile.am): Likewise.
68127         * modules/free (Makefile.am): Likewise.
68128         * modules/fsusage (Makefile.am): Likewise.
68129         * modules/ftruncate (Makefile.am): Likewise.
68130         * modules/fts (Makefile.am): Likewise.
68131         * modules/gc-arcfour (Makefile.am): Likewise.
68132         * modules/gc-des (Makefile.am): Likewise.
68133         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68134         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68135         * modules/gc-md4 (Makefile.am): Likewise.
68136         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68137         * modules/gc-sha1 (Makefile.am): Likewise.
68138         * modules/gc (Makefile.am): Likewise.
68139         * modules/getaddrinfo (Makefile.am): Likewise.
68140         * modules/getcwd (Makefile.am): Likewise.
68141         * modules/getdelim (Makefile.am): Likewise.
68142         * modules/getdomainname (Makefile.am): Likewise.
68143         * modules/getgroups (Makefile.am): Likewise.
68144         * modules/gethostname (Makefile.am): Likewise.
68145         * modules/gethrxtime (Makefile.am): Likewise.
68146         * modules/getline (Makefile.am): Likewise.
68147         * modules/getloadavg (Makefile.am): Likewise.
68148         * modules/getlogin_r (Makefile.am): Likewise.
68149         * modules/getndelim2 (Makefile.am): Likewise.
68150         * modules/getopt (Makefile.am): Likewise.
68151         * modules/getpagesize (Makefile.am): Likewise.
68152         * modules/getpass-gnu (Makefile.am): Likewise.
68153         * modules/getpass (Makefile.am): Likewise.
68154         * modules/getsubopt (Makefile.am): Likewise.
68155         * modules/gettime (Makefile.am): Likewise.
68156         * modules/gettimeofday (Makefile.am): Likewise.
68157         * modules/getugroups (Makefile.am): Likewise.
68158         * modules/getusershell (Makefile.am): Likewise.
68159         * modules/glob (Makefile.am): Likewise.
68160         * modules/group-member (Makefile.am): Likewise.
68161         * modules/hard-locale (Makefile.am): Likewise.
68162         * modules/hash (Makefile.am): Likewise.
68163         * modules/hmac-md5 (Makefile.am): Likewise.
68164         * modules/hmac-sha1 (Makefile.am): Likewise.
68165         * modules/human (Makefile.am): Likewise.
68166         * modules/idcache (Makefile.am): Likewise.
68167         * modules/imaxabs (Makefile.am): Likewise.
68168         * modules/imaxdiv (Makefile.am): Likewise.
68169         * modules/inet_ntop (Makefile.am): Likewise.
68170         * modules/inet_pton (Makefile.am): Likewise.
68171         * modules/intprops (Makefile.am): Likewise.
68172         * modules/inttostr (Makefile.am): Likewise.
68173         * modules/inttypes (Makefile.am): Likewise.
68174         * modules/isapipe (Makefile.am): Likewise.
68175         * modules/javaversion (Makefile.am): Likewise.
68176         * modules/lchmod (Makefile.am): Likewise.
68177         * modules/lchown (Makefile.am): Likewise.
68178         * modules/localcharset (Makefile.am): Likewise.
68179         * modules/long-options (Makefile.am): Likewise.
68180         * modules/lstat (Makefile.am): Likewise.
68181         * modules/malloc (Makefile.am): Likewise.
68182         * modules/mathl (Makefile.am): Likewise.
68183         * modules/mbchar (Makefile.am): Likewise.
68184         * modules/md2 (Makefile.am): Likewise.
68185         * modules/md4 (Makefile.am): Likewise.
68186         * modules/md5 (Makefile.am): Likewise.
68187         * modules/memcasecmp (Makefile.am): Likewise.
68188         * modules/memchr (Makefile.am): Likewise.
68189         * modules/memcmp (Makefile.am): Likewise.
68190         * modules/memcoll (Makefile.am): Likewise.
68191         * modules/memcpy (Makefile.am): Likewise.
68192         * modules/memmem (Makefile.am): Likewise.
68193         * modules/memmove (Makefile.am): Likewise.
68194         * modules/mempcpy (Makefile.am): Likewise.
68195         * modules/memrchr (Makefile.am): Likewise.
68196         * modules/memset (Makefile.am): Likewise.
68197         * modules/memxor (Makefile.am): Likewise.
68198         * modules/mkancesdirs (Makefile.am): Likewise.
68199         * modules/mkdir-p (Makefile.am): Likewise.
68200         * modules/mkdir (Makefile.am): Likewise.
68201         * modules/mkdtemp (Makefile.am): Likewise.
68202         * modules/mkstemp (Makefile.am): Likewise.
68203         * modules/mktime (Makefile.am): Likewise.
68204         * modules/modechange (Makefile.am): Likewise.
68205         * modules/mountlist (Makefile.am): Likewise.
68206         * modules/nanosleep (Makefile.am): Likewise.
68207         * modules/obstack (Makefile.am): Likewise.
68208         * modules/openat (Makefile.am): Likewise.
68209         * modules/pagealign_alloc (Makefile.am): Likewise.
68210         * modules/pathmax (Makefile.am): Likewise.
68211         * modules/physmem (Makefile.am): Likewise.
68212         * modules/poll (Makefile.am): Likewise.
68213         * modules/posixtm (Makefile.am): Likewise.
68214         * modules/posixver (Makefile.am): Likewise.
68215         * modules/putenv (Makefile.am): Likewise.
68216         * modules/quote (Makefile.am): Likewise.
68217         * modules/quotearg (Makefile.am): Likewise.
68218         * modules/raise (Makefile.am): Likewise.
68219         * modules/read-file (Makefile.am): Likewise.
68220         * modules/readline (Makefile.am): Likewise.
68221         * modules/readlink (Makefile.am): Likewise.
68222         * modules/readtokens (Makefile.am): Likewise.
68223         * modules/readutmp (Makefile.am): Likewise.
68224         * modules/realloc (Makefile.am): Likewise.
68225         * modules/regex (Makefile.am): Likewise.
68226         * modules/rename-dest-slash (Makefile.am): Likewise.
68227         * modules/rename (Makefile.am): Likewise.
68228         * modules/rijndael (Makefile.am): Likewise.
68229         * modules/rmdir (Makefile.am): Likewise.
68230         * modules/rpmatch (Makefile.am): Likewise.
68231         * modules/safe-read (Makefile.am): Likewise.
68232         * modules/safe-write (Makefile.am): Likewise.
68233         * modules/same-inode (Makefile.am): Likewise.
68234         * modules/same (Makefile.am): Likewise.
68235         * modules/save-cwd (Makefile.am): Likewise.
68236         * modules/savedir (Makefile.am): Likewise.
68237         * modules/setenv (Makefile.am): Likewise.
68238         * modules/settime (Makefile.am): Likewise.
68239         * modules/sha1 (Makefile.am): Likewise.
68240         * modules/sig2str (Makefile.am): Likewise.
68241         * modules/snprintf (Makefile.am): Likewise.
68242         * modules/stat-macros (Makefile.am): Likewise.
68243         * modules/stat-time (Makefile.am): Likewise.
68244         * modules/stdbool (Makefile.am): Likewise.
68245         * modules/stdint (Makefile.am): Likewise.
68246         * modules/stdlib-safer (Makefile.am): Likewise.
68247         * modules/stpcpy (Makefile.am): Likewise.
68248         * modules/stpncpy (Makefile.am): Likewise.
68249         * modules/strcase (Makefile.am): Likewise.
68250         * modules/strcasestr (Makefile.am): Likewise.
68251         * modules/strchrnul (Makefile.am): Likewise.
68252         * modules/strcspn (Makefile.am): Likewise.
68253         * modules/strdup (Makefile.am): Likewise.
68254         * modules/strerror (Makefile.am): Likewise.
68255         * modules/strftime (Makefile.am): Likewise.
68256         * modules/strndup (Makefile.am): Likewise.
68257         * modules/strnlen (Makefile.am): Likewise.
68258         * modules/strpbrk (Makefile.am): Likewise.
68259         * modules/strsep (Makefile.am): Likewise.
68260         * modules/strstr (Makefile.am): Likewise.
68261         * modules/strtod (Makefile.am): Likewise.
68262         * modules/strtoimax (Makefile.am): Likewise.
68263         * modules/strtok_r (Makefile.am): Likewise.
68264         * modules/strtol (Makefile.am): Likewise.
68265         * modules/strtoll (Makefile.am): Likewise.
68266         * modules/strtoul (Makefile.am): Likewise.
68267         * modules/strtoull (Makefile.am): Likewise.
68268         * modules/strtoumax (Makefile.am): Likewise.
68269         * modules/strverscmp (Makefile.am): Likewise.
68270         * modules/sys_socket (Makefile.am): Likewise.
68271         * modules/sys_stat (Makefile.am): Likewise.
68272         * modules/sysexits (Makefile.am): Likewise.
68273         * modules/time_r (Makefile.am): Likewise.
68274         * modules/timegm (Makefile.am): Likewise.
68275         * modules/timespec (Makefile.am): Likewise.
68276         * modules/tmpfile-safer (Makefile.am): Likewise.
68277         * modules/trim (Makefile.am): Likewise.
68278         * modules/unistd-safer (Makefile.am): Likewise.
68279         * modules/unlinkdir (Makefile.am): Likewise.
68280         * modules/unlocked-io (Makefile.am): Likewise.
68281         * modules/userspec (Makefile.am): Likewise.
68282         * modules/utime (Makefile.am): Likewise.
68283         * modules/utimecmp (Makefile.am): Likewise.
68284         * modules/utimens (Makefile.am): Likewise.
68285         * modules/vasnprintf (Makefile.am): Likewise.
68286         * modules/vasprintf (Makefile.am): Likewise.
68287         * modules/vsnprintf (Makefile.am): Likewise.
68288         * modules/xalloc (Makefile.am): Likewise.
68289         * modules/xgetcwd (Makefile.am): Likewise.
68290         * modules/xnanosleep (Makefile.am): Likewise.
68291         * modules/xreadlink (Makefile.am): Likewise.
68292         * modules/xstrtod (Makefile.am): Likewise.
68293         * modules/xstrtol (Makefile.am): Likewise.
68294         * modules/xstrtold (Makefile.am): Likewise.
68295         * modules/yesno (Makefile.am): Likewise.
68296         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68297
68298 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68299
68300         * modules/error (Makefile.am): Distribute files through
68301         EXTRA_DIST, not lib_SOURCES.
68302
68303 2006-10-12  Eric Blake  <ebb9@byu.net>
68304
68305         * modules/error (Makefile.am): Distribute files in /lib.
68306         * modules/obstack (Makefile.am): Likewise.
68307
68308 2006-10-12  Bruno Haible  <bruno@clisp.org>
68309
68310         * modules/acl (Makefile.am): Distribute all files in lib/ through
68311         EXTRA_DIST.
68312         * modules/arcfour (Makefile.am): Likewise.
68313         * modules/arctwo (Makefile.am): Likewise.
68314         * modules/argmatch (Makefile.am): Likewise.
68315         * modules/argz (Makefile.am): Likewise.
68316         * modules/atexit (Makefile.am): Likewise.
68317         * modules/backupfile (Makefile.am): Likewise.
68318         * modules/c-strtod (Makefile.am): Likewise.
68319         * modules/c-strtold (Makefile.am): Likewise.
68320         * modules/calloc (Makefile.am): Likewise.
68321         * modules/canon-host (Makefile.am): Likewise.
68322         * modules/canonicalize (Makefile.am): Likewise.
68323         * modules/chdir-long (Makefile.am): Likewise.
68324         * modules/chdir-safer (Makefile.am): Likewise.
68325         * modules/check-version (Makefile.am): Likewise.
68326         * modules/chown (Makefile.am): Likewise.
68327         * modules/cloexec (Makefile.am): Likewise.
68328         * modules/close-stream (Makefile.am): Likewise.
68329         * modules/closeout (Makefile.am): Likewise.
68330         * modules/crc (Makefile.am): Likewise.
68331         * modules/cycle-check (Makefile.am): Likewise.
68332         * modules/des (Makefile.am): Likewise.
68333         * modules/dirfd (Makefile.am): Likewise.
68334         * modules/dirname (Makefile.am): Likewise.
68335         * modules/dup2 (Makefile.am): Likewise.
68336         * modules/euidaccess (Makefile.am): Likewise.
68337         * modules/exclude (Makefile.am): Likewise.
68338         * modules/exitfail (Makefile.am): Likewise.
68339         * modules/fcntl-safer (Makefile.am): Likewise.
68340         * modules/file-type (Makefile.am): Likewise.
68341         * modules/fileblocks (Makefile.am): Likewise.
68342         * modules/filemode (Makefile.am): Likewise.
68343         * modules/filenamecat (Makefile.am): Likewise.
68344         * modules/fnmatch (Makefile.am): Likewise.
68345         * modules/fopen-safer (Makefile.am): Likewise.
68346         * modules/fpending (Makefile.am): Likewise.
68347         * modules/fprintftime (Makefile.am): Likewise.
68348         * modules/free (Makefile.am): Likewise.
68349         * modules/fsusage (Makefile.am): Likewise.
68350         * modules/ftruncate (Makefile.am): Likewise.
68351         * modules/fts (Makefile.am): Likewise.
68352         * modules/gc (Makefile.am): Likewise.
68353         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68354         * modules/getaddrinfo (Makefile.am): Likewise.
68355         * modules/getcwd (Makefile.am): Likewise.
68356         * modules/getdelim (Makefile.am): Likewise.
68357         * modules/getdomainname (Makefile.am): Likewise.
68358         * modules/getgroups (Makefile.am): Likewise.
68359         * modules/gethostname (Makefile.am): Likewise.
68360         * modules/gethrxtime (Makefile.am): Likewise.
68361         * modules/getline (Makefile.am): Likewise.
68362         * modules/getloadavg (Makefile.am): Likewise.
68363         * modules/getlogin_r (Makefile.am): Likewise.
68364         * modules/getopt (Makefile.am): Likewise.
68365         * modules/getpass (Makefile.am): Likewise.
68366         * modules/getpass-gnu (Makefile.am): Likewise.
68367         * modules/getsubopt (Makefile.am): Likewise.
68368         * modules/gettime (Makefile.am): Likewise.
68369         * modules/gettimeofday (Makefile.am): Likewise.
68370         * modules/getugroups (Makefile.am): Likewise.
68371         * modules/getusershell (Makefile.am): Likewise.
68372         * modules/glob (Makefile.am): Likewise.
68373         * modules/group-member (Makefile.am): Likewise.
68374         * modules/hard-locale (Makefile.am): Likewise.
68375         * modules/hash (Makefile.am): Likewise.
68376         * modules/hmac-md5 (Makefile.am): Likewise.
68377         * modules/hmac-sha1 (Makefile.am): Likewise.
68378         * modules/human (Makefile.am): Likewise.
68379         * modules/idcache (Makefile.am): Likewise.
68380         * modules/imaxabs (Makefile.am): Likewise.
68381         * modules/imaxdiv (Makefile.am): Likewise.
68382         * modules/inet_ntop (Makefile.am): Likewise.
68383         * modules/inet_pton (Makefile.am): Likewise.
68384         * modules/inttostr (Makefile.am): Likewise.
68385         * modules/isapipe (Makefile.am): Likewise.
68386         * modules/lchown (Makefile.am): Likewise.
68387         * modules/long-options (Makefile.am): Likewise.
68388         * modules/lstat (Makefile.am): Likewise.
68389         * modules/malloc (Makefile.am): Likewise.
68390         * modules/mathl (Makefile.am): Likewise.
68391         * modules/mbchar (Makefile.am): Likewise.
68392         * modules/md2 (Makefile.am): Likewise.
68393         * modules/md4 (Makefile.am): Likewise.
68394         * modules/md5 (Makefile.am): Likewise.
68395         * modules/memcasecmp (Makefile.am): Likewise.
68396         * modules/memchr (Makefile.am): Likewise.
68397         * modules/memcmp (Makefile.am): Likewise.
68398         * modules/memcoll (Makefile.am): Likewise.
68399         * modules/memcpy (Makefile.am): Likewise.
68400         * modules/memmem (Makefile.am): Likewise.
68401         * modules/memmove (Makefile.am): Likewise.
68402         * modules/mempcpy (Makefile.am): Likewise.
68403         * modules/memrchr (Makefile.am): Likewise.
68404         * modules/memset (Makefile.am): Likewise.
68405         * modules/memxor (Makefile.am): Likewise.
68406         * modules/mkancesdirs (Makefile.am): Likewise.
68407         * modules/mkdir (Makefile.am): Likewise.
68408         * modules/mkdir-p (Makefile.am): Likewise.
68409         * modules/mkdtemp (Makefile.am): Likewise.
68410         * modules/mkstemp (Makefile.am): Likewise.
68411         * modules/mktime (Makefile.am): Likewise.
68412         * modules/modechange (Makefile.am): Likewise.
68413         * modules/mountlist (Makefile.am): Likewise.
68414         * modules/nanosleep (Makefile.am): Likewise.
68415         * modules/openat (Makefile.am): Likewise.
68416         * modules/pagealign_alloc (Makefile.am): Likewise.
68417         * modules/physmem (Makefile.am): Likewise.
68418         * modules/poll (Makefile.am): Likewise.
68419         * modules/posixtm (Makefile.am): Likewise.
68420         * modules/posixver (Makefile.am): Likewise.
68421         * modules/putenv (Makefile.am): Likewise.
68422         * modules/quote (Makefile.am): Likewise.
68423         * modules/quotearg (Makefile.am): Likewise.
68424         * modules/raise (Makefile.am): Likewise.
68425         * modules/read-file (Makefile.am): Likewise.
68426         * modules/readline (Makefile.am): Likewise.
68427         * modules/readlink (Makefile.am): Likewise.
68428         * modules/readtokens (Makefile.am): Likewise.
68429         * modules/readutmp (Makefile.am): Likewise.
68430         * modules/realloc (Makefile.am): Likewise.
68431         * modules/regex (Makefile.am): Likewise.
68432         * modules/rename (Makefile.am): Likewise.
68433         * modules/rename-dest-slash (Makefile.am): Likewise.
68434         * modules/rijndael (Makefile.am): Likewise.
68435         * modules/rmdir (Makefile.am): Likewise.
68436         * modules/rpmatch (Makefile.am): Likewise.
68437         * modules/safe-read (Makefile.am): Likewise.
68438         * modules/safe-write (Makefile.am): Likewise.
68439         * modules/same (Makefile.am): Likewise.
68440         * modules/save-cwd (Makefile.am): Likewise.
68441         * modules/savedir (Makefile.am): Likewise.
68442         * modules/setenv (Makefile.am): Likewise.
68443         * modules/settime (Makefile.am): Likewise.
68444         * modules/sha1 (Makefile.am): Likewise.
68445         * modules/sig2str (Makefile.am): Likewise.
68446         * modules/snprintf (Makefile.am): Likewise.
68447         * modules/stdlib-safer (Makefile.am): Likewise.
68448         * modules/stpcpy (Makefile.am): Likewise.
68449         * modules/stpncpy (Makefile.am): Likewise.
68450         * modules/strcase (Makefile.am): Likewise.
68451         * modules/strcasestr (Makefile.am): Likewise.
68452         * modules/strchrnul (Makefile.am): Likewise.
68453         * modules/strcspn (Makefile.am): Likewise.
68454         * modules/strdup (Makefile.am): Likewise.
68455         * modules/strerror (Makefile.am): Likewise.
68456         * modules/strftime (Makefile.am): Likewise.
68457         * modules/strndup (Makefile.am): Likewise.
68458         * modules/strnlen (Makefile.am): Likewise.
68459         * modules/strpbrk (Makefile.am): Likewise.
68460         * modules/strsep (Makefile.am): Likewise.
68461         * modules/strstr (Makefile.am): Likewise.
68462         * modules/strtod (Makefile.am): Likewise.
68463         * modules/strtoimax (Makefile.am): Likewise.
68464         * modules/strtok_r (Makefile.am): Likewise.
68465         * modules/strtol (Makefile.am): Likewise.
68466         * modules/strtoll (Makefile.am): Likewise.
68467         * modules/strtoul (Makefile.am): Likewise.
68468         * modules/strtoull (Makefile.am): Likewise.
68469         * modules/strtoumax (Makefile.am): Likewise.
68470         * modules/strverscmp (Makefile.am): Likewise.
68471         * modules/time_r (Makefile.am): Likewise.
68472         * modules/timegm (Makefile.am): Likewise.
68473         * modules/tmpfile-safer (Makefile.am): Likewise.
68474         * modules/unistd-safer (Makefile.am): Likewise.
68475         * modules/unlinkdir (Makefile.am): Likewise.
68476         * modules/userspec (Makefile.am): Likewise.
68477         * modules/utime (Makefile.am): Likewise.
68478         * modules/utimecmp (Makefile.am): Likewise.
68479         * modules/utimens (Makefile.am): Likewise.
68480         * modules/vasnprintf (Makefile.am): Likewise.
68481         * modules/vasprintf (Makefile.am): Likewise.
68482         * modules/vsnprintf (Makefile.am): Likewise.
68483         * modules/xalloc (Makefile.am): Likewise.
68484         * modules/xgetcwd (Makefile.am): Likewise.
68485         * modules/xnanosleep (Makefile.am): Likewise.
68486         * modules/xreadlink (Makefile.am): Likewise.
68487         * modules/xstrtod (Makefile.am): Likewise.
68488         * modules/xstrtol (Makefile.am): Likewise.
68489         * modules/xstrtold (Makefile.am): Likewise.
68490         * modules/yesno (Makefile.am): Likewise.
68491
68492 2006-10-12  Jim Meyering  <jim@meyering.net>
68493
68494         * m4/getloadavg.m4: Revert the change below.
68495
68496         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68497         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68498         fail with a symlink, which is what coreutils' ./bootstrap now
68499         creates by default.
68500
68501 2006-10-12  Bruno Haible  <bruno@clisp.org>
68502
68503         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68504         mingw.
68505         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68506         MSVC and mingw explicitly.
68507
68508 2006-10-11  Simon Josefsson  <jas@extundo.com>
68509             Bruno Haible  <bruno@clisp.org>
68510
68511         Add support for multiple gnulib-tool invocations in the scope of a
68512         single configure.ac file.
68513         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68514         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68515         with the same contents as the _LIBADD variable.
68516         (func_emit_initmacro_start, func_emit_initmacro_end,
68517         func_emit_initmacro_done): New functions.
68518         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68519         gl_LIBOBJS and gl_LTLIBOBJS.
68520
68521 2006-10-11  Bruno Haible  <bruno@clisp.org>
68522
68523         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68524         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68525         autoreconf. Instead, invoke autopoint explicitly but move back the
68526         *.m4 files from gnulib.
68527
68528 2006-10-11  Bruno Haible  <bruno@clisp.org>
68529
68530         * gnulib-tool (func_usage): Make module names after --create-testdir
68531         optional.
68532         (func_create_testdir): If no module was specified, use nearly all
68533         modules.
68534
68535 2006-10-12  Jim Meyering  <jim@meyering.net>
68536
68537         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68538         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68539         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68540         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68541         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68542         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68543         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68544         (fts_set_stat_required): New function.
68545         (fts_open): Defer the calls to fts_stat, if possible or requested.
68546         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68547         into fts_stat itself.
68548         (fts_read): Perform any required (deferred) fts_stat call.
68549         (fts_build): Likewise, for the directory we're about to open and read.
68550         In the readdir loop, carefully decide whether each entry will require
68551         an eventual call to fts_stat, using dirent.d_type info if available.
68552         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68553         a command line argument into this function.  Update all callers.
68554         Map a return value of FTS_DOT to FTS_D for a command line argument.
68555         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68556         Thanks to Miklos Szeredi for his tenacity and for the initial
68557         bug report about "find" failing on a FUSE-based file system.
68558
68559         * lib/fts.c (fts_open): Use consistent indentation.
68560
68561 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68564         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68565         reported by Jim Meyering.  All uses of cache variables renamed
68566         to match Autoconf's.
68567         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68568         the other one.
68569
68570         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68571         Fix misspelling in diagnostic.
68572
68573 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68576         defined.  Problem reported by Matthew Woehlke.
68577
68578         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68579         Add support for Tandem NonStop R series.
68580         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68581         Use new macro.
68582
68583         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68584         (has_trailing_slash): Omit size arg; all callers changed.
68585         Omit 'inline', since it doesn't help performance and we'd
68586         need to configure it.
68587         Don't count //, ///, etc. as having a trailing slash.
68588         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68589         (rpl_rename_dest_slash): On failure, use rename's errno rather
68590         than (in some cases) an incorrect or junk errno.
68591         Simplify code by removing need to compute length; this does
68592         cause it to make two passes instead of one over the file name,
68593         but it's worth it.
68594
68595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68596         change, since Autoconf's version may no longer be appropriate now
68597         that we are using CVS Autoconf's version.  Add support for Tandem.
68598
68599 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68600             Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68603         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68604         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68605         gl_AC_TYPE_LONG_LONG.
68606
68607         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68608         instead of HAVE_LONG_LONG.
68609         * lib/printf-args.c (printf_fetchargs): Likewise.
68610         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68611         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68613         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68614         gl_AC_TYPE_LONG_LONG.
68615
68616 2006-10-11  Bruno Haible  <bruno@clisp.org>
68617
68618         * m4/longlong.m4: Add comments.
68619         * m4/ulonglong.m4: Likewise.
68620
68621 2006-10-10  Bruno Haible  <bruno@clisp.org>
68622
68623         Make it possible to #define stpcpy, strdup to aliases.
68624         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68625         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68626
68627 2006-10-10  Bruno Haible  <bruno@clisp.org>
68628
68629         Make it possible to #define gcd to an alias.
68630         * lib/gcd.c: Include config.h.
68631
68632 2006-10-10  Bruno Haible  <bruno@clisp.org>
68633
68634         Make it possible to #define c_isascii to an alias.
68635         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68636         defined. Undefine the macros before defining them, to avoid gcc
68637         warnings.
68638         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68639         define NO_C_CTYPE_MACROS early.
68640
68641 2006-10-10  Bruno Haible  <bruno@clisp.org>
68642
68643         Make it possible to #define set_program_name to an alias.
68644         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68645         ENABLE_RELOCATABLE early.
68646
68647 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68650         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68651         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68652         More generally, don't assume that 64-bit signed int is available
68653         if unsigned int is, and vice versa.
68654         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68655         unsigned symbols, not on their signed counterparts.
68656         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68657         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68658         (UINT64_C, UINTMAX_C):
68659         Likewise.
68660         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68661         unsigned counterparts.
68662         (Have_long_long, Unsigned): New macros.
68663         (Int): Renamed from INT.
68664         (strtoimax): Use the new macros.
68665         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68666         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68667         * modules/inttypes (inttypes.h): Substitute
68668         HAVE_UNSIGNED_LONG_LONG_INT.
68669         * modules/stdint (stdint.h): Likewise.
68670         (Files): Add m4/ulonglong.m4.
68671
68672 2006-10-10  Bruno Haible  <bruno@clisp.org>
68673
68674         Fix a gcc -Wshadow warning.
68675         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68676         to 'bucket'.
68677         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68678         gl_linked_indexof_from_to): Likewise.
68679         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68680         Likewise.
68681         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68682         Likewise.
68683         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68684         Reported by Eric Blake.
68685
68686 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68687
68688         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68689         for NetBSD.  Problem reported by Bruno Haible.
68690
68691 2006-10-09  Jim Meyering  <jim@meyering.net>
68692
68693         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68694         Patch from Bruno Haible.
68695
68696 2006-10-09  Jim Meyering  <jim@meyering.net>
68697
68698         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68699         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68700         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68701
68702 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         Don't include <config.h> twice; this doesn't work in some cases,
68705         e.g., when config.h has "#define intmax_t long long int" and
68706         we include <config.h>, <inttypes.h>, <config.h> in that order.
68707         Problem reported by Matthew Woehlke in:
68708         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68709         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68710         * lib/fts-cycle.c: Don't include config.h.
68711         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68712         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68713         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68714         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68715         inttypes.h.
68716         * lib/xstrtoumax.c: Likewise.
68717         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68718         __strtol and the like, so that this module is more like its siblings.
68719         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68720         Remove; no longer needed now that we assume gnulib inttypes.h.
68721
68722 2006-10-08  Bruno Haible  <bruno@clisp.org>
68723
68724         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68725         option.
68726
68727 2006-10-07  Jim Meyering  <jim@meyering.net>
68728
68729         * modules/inttypes (inttypes.h): Revert what seems to have been
68730         an inadvertent part of today's change: use "|", not "/" in the
68731         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68732
68733 2006-10-07  Bruno Haible  <bruno@clisp.org>
68734
68735         * modules/sublist: New file.
68736
68737 2006-10-07  Bruno Haible  <bruno@clisp.org>
68738
68739         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68740         * modules/argz (argz.h): Likewise.
68741         * modules/arpa_inet (arpa/inet.h): Likewise.
68742         * modules/byteswap (byteswap.h): Likewise.
68743         * modules/configmake (configmake.h): Likewise.
68744         * modules/fcntl (fcntl.h): Likewise.
68745         * modules/fnmatch (fnmatch.h): Likewise.
68746         * modules/getopt (getopt.h): Likewise.
68747         * modules/glob (glob.h): Likewise.
68748         * modules/inttypes (inttypes.h): Likewise.
68749         * modules/netinet_in (netinet/in.h): Likewise.
68750         * modules/poll (poll.h): Likewise.
68751         * modules/stdbool (stdbool.h): Likewise.
68752         * modules/stdint (stdint.h): Likewise.
68753         * modules/sys_select (sys/select.h): Likewise.
68754         * modules/sys_socket (sys/socket.h): Likewise.
68755         * modules/sys_stat (sys/stat.h): Likewise.
68756         * modules/sysexits (sysexits.h): Likewise.
68757         * modules/unistd (unistd.h): Likewise.
68758         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68759         Add a "DO NOT EDIT" comment to the generated file.
68760         (func_import): Likewise for gnulib-comp.m4.
68761
68762 2006-10-07  Bruno Haible  <bruno@clisp.org>
68763
68764         * lib/gl_sublist.h: New file.
68765         * lib/gl_sublist.c: New file.
68766
68767 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68768
68769         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68770         name (relative to the original working directory) and the file
68771         name component (relative to the temporary working directory).  All
68772         callers changed.
68773         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68774         * lib/mkdir-p.c (make_dir_parents): Likewise.
68775         * lib/mkdir-p.h (make_dir_parents): Likewise.
68776
68777 2006-10-06  Eric Blake  <ebb9@byu.net>
68778
68779         Define several macros for use by the clean-temp module.
68780         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68781         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68782         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68783
68784         * lib/clean-temp.h (close_stream_temp): New declaration.
68785         * lib/clean-temp.c (includes): Pull in headers according to what
68786         other modules are in use.
68787         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68788
68789 2006-10-06  Bruno Haible  <bruno@clisp.org>
68790
68791         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68792         instead of fopen, fwriteerror.
68793
68794 2006-10-06  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68797         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68798         int.
68799         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68800         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68801         Return an error indicator.
68802         Suggested by Eric Blake.
68803
68804 2006-10-06  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68807         Reported by Eric Blake.
68808
68809 2006-10-06  Bruno Haible  <bruno@clisp.org>
68810
68811         * modules/closeout (Description): Mention stderr too.
68812
68813 2006-10-06  Bruno Haible  <bruno@clisp.org>
68814         and Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * lib/closeout.c (close_stdout): Also close stderr.
68817         * lib/closeout.h: Update comment.
68818
68819 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68822         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68823         * lib/dirchownmod.c: Include lchown.h.
68824         * lib/lchown.c: Don't include files that lchown.h now includes.
68825         Don't declare chown, since lchown.h now does that.
68826         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68827         (lchown): Define to rpl_chown if lchown is declared but
68828         does not exist.  Declare using a prototype if lchown is not
68829         declared.  Add a copyright notice.
68830         * lib/mkstemp.h: Include <unistd.h>.
68831         * lib/openat.c: Include lchown.h.
68832
68833         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68834         we now test for that separately.
68835         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68836         rather than O_NOFOLLOW, when testing whether it's possible to
68837         avoid a race condition reliably.
68838         * lib/savewd.c (savewd_chdir): Likewise.
68839
68840         Remove macros that are no longer needed now that stdint.h is
68841         reliable.
68842         * lib/fsusage.c (UINTMAX_MAX): Remove.
68843         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68844         * lib/utimecmp.c (SIZE_MAX): Remove.
68845
68846         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68847
68848         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68849         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68850         O_NOATIME works.
68851
68852 2006-10-05  Bruno Haible  <bruno@clisp.org>
68853
68854         * lib/gl_list.h (gl_sortedlist_search_from_to,
68855         gl_sortedlist_indexof_from_to): New declarations.
68856         (gl_list_implementation): New fields sortedlist_search_from_to,
68857         sortedlist_indexof_from_to.
68858         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68859         inline functions.
68860         * lib/gl_list.c (gl_sortedlist_search_from_to,
68861         gl_sortedlist_indexof_from_to): New functions.
68862         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68863         function.
68864         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68865         (gl_array_sortedlist_search_from_to): New function.
68866         (gl_array_list_implementation): Update.
68867         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68868         function.
68869         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68870         (gl_carray_sortedlist_search_from_to): New function.
68871         (gl_carray_list_implementation): Update.
68872         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68873         gl_linked_sortedlist_indexof_from_to): New functions.
68874         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68875         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68876         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68877         gl_tree_sortedlist_indexof_from_to): New functions.
68878         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68879         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68880         Update.
68881         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68882         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68883         Update.
68884
68885 2006-10-05  Bruno Haible  <bruno@clisp.org>
68886
68887         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68888         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68889         (struct gl_list_implementation): Add fields search_from_to,
68890         indexof_from_to. Remove fields search, indexof.
68891         (gl_list_search): Use the search_from_to method.
68892         (gl_list_search_from, gl_list_search_from_to): New functions.
68893         (gl_list_indexof): Use the indexof_from_to method.
68894         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68895         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68896         (gl_list_search_from, gl_list_search_from_to): New functions.
68897         (gl_list_indexof): Use the indexof_from_to method.
68898         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68899         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68900         gl_array_indexof. Add start_index, end_index arguments.
68901         (gl_array_search_from_to): Renamed from gl_array_search. Add
68902         start_index, end_index arguments.
68903         (gl_array_remove, gl_array_list_implementation): Update.
68904         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68905         gl_carray_indexof. Add start_index, end_index arguments.
68906         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68907         start_index, end_index arguments.
68908         (gl_carray_remove, gl_carray_list_implementation): Update.
68909         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68910         gl_linked_search. Add start_index, end_index arguments.
68911         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68912         start_index, end_index arguments.
68913         (gl_linked_remove): Update.
68914         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68915         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68916         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68917         field to 'size_t'.
68918         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68919         gl_tree_search. Add start_index, end_index arguments.
68920         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68921         start_index, end_index arguments.
68922         (gl_tree_remove): Update.
68923         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68924         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68925         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68926         function.
68927         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68928         gl_tree_search. Add start_index, end_index arguments.
68929         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68930         start_index, end_index arguments.
68931         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68932         Update.
68933         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68934
68935 2006-10-05  Bruno Haible  <bruno@clisp.org>
68936
68937         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68938
68939         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68940         fwriteerror_temp): New declarations.
68941         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68942         (descriptors): New variable.
68943         (cleanup): First, close the descriptors.
68944         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68945         fclose_temp, fwriteerror_temp): New functions.
68946
68947 2006-10-04  Jim Meyering  <jim@meyering.net>
68948
68949         * lib/fts.c (fts_open): Tiny comment change.
68950
68951 2006-10-04  Bruno Haible  <bruno@clisp.org>
68952
68953         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68954         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68955         gl_LOCK_BODY.
68956         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68957         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68958         gl_LOCK_EARLY_BODY.
68959         (gl_LOCK): Require gl_LOCK_BODY.
68960
68961 2006-10-04  Bruno Haible  <bruno@clisp.org>
68962
68963         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68964         (gl_oset_search_atleast): New declaration.
68965         (struct gl_oset_implementation): Add field 'search_atleast'.
68966         (gl_oset_search_atleast): New inline function.
68967         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68968         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68969         (gl_array_oset_implementation): Update.
68970         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68971         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68972         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68973
68974 2006-10-04  Bruno Haible  <bruno@clisp.org>
68975
68976         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68977
68978 2006-10-03  Bruno Haible  <bruno@clisp.org>
68979
68980         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68981         from gl_avltreehash_list_implementation.
68982
68983 2006-10-03  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/gl_oset.c (gl_oset_add): Fix return type.
68986
68987 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68988
68989         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68990
68991 2006-10-02  Eric Blake  <ebb9@byu.net>
68992
68993         * modules/strnlen (Depends-on): Add extensions.
68994
68995 2006-10-02  Eric Blake  <ebb9@byu.net>
68996
68997         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68998         definition in 2.60+.
68999
69000 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69001
69002         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69003         checks.
69004
69005 2006-10-02  Bruno Haible  <bruno@clisp.org>
69006
69007         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69008         to the AUTOMAKE_OPTIONS.
69009         Reported by Jim Meyering.
69010
69011 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69012
69013         Work around bug in Solaris 10 /proc file system:
69014         /proc/self/fd/NNN/.. isn't the parent directory of
69015         the directory whose file descriptor is NNN.  This needs to
69016         be worked around at run time, not compile time, since a
69017         program might be built on Solaris 8, where things work, and
69018         run on Solaris 10.
69019         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69020         to use the following interface instead:
69021         (OPENAT_BUFFER_SIZE): New macro.
69022         (openat_proc_name): New function.
69023         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69024         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69025         Likewise.
69026         * lib/openat-proc.c: New file.
69027         * modules/openat (Files): Add lib/openat-proc.c.
69028         (Depends-on): Add same-inode, stdbool.
69029         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69030
69031 2006-09-29  Bruno Haible  <bruno@clisp.org>
69032
69033         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69034         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69035         argument. Set stdout_closed before testing for ferror, not after.
69036         (fwriteerror, fwriteerror_no_ebadf): New functions.
69037
69038 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69039
69040         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69041
69042 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69043
69044         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69045         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69046
69047 2006-09-28  Jim Meyering  <jim@meyering.net>
69048
69049         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69050         Include <unistd.h>.
69051
69052 2006-09-28  Bruno Haible  <bruno@clisp.org>
69053
69054         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69055         * modules/linkedhash-list (Depends-on): Likewise.
69056         * modules/rbtreehash-list (Depends-on): Likewise.
69057
69058 2006-09-28  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/strndup.h: Simplify the redefinition of strndup.
69061         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69062         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69063
69064 2006-09-28  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69067         * lib/gl_linkedhash_list.c: Likewise.
69068         * lib/gl_rbtreehash_list.c: Likewise.
69069
69070 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69073         getaddrinfo.
69074
69075         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69076         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69077         it causes <stdio_ext.h> to cause a compile-time error.
69078         Problem reported by Nelson H. F. Beebe.
69079         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69080         of HAVE_DECL___PENDING.
69081
69082         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69083         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69084         declaration.
69085
69086 2006-09-27  Jim Meyering  <jim@meyering.net>
69087
69088         This file could end up with a definition for a function
69089         named __strndup, rather than rpl_strndup on a system with
69090         incomplete weak_alias support.
69091         * lib/strndup.c (strndup): Rename from __strndup.
69092         Remove #defines that used to map __strndup to strndup.
69093         Don't use K&R prototypes.
69094         Remove LIBC-related code, since this file is not sync'd with glibc.
69095         * lib/strndup.h: Revamp, accordingly.
69096         * m4/strndup.m4: Modernize.
69097
69098 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * modules/savewd (Depends-on): Add 'raise'.
69101         * lib/savewd.c: Include <signal.h>, for 'raise'.
69102
69103 2006-09-26  Jim Meyering  <jim@meyering.net>
69104
69105         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69106         when we detect Darwin 8.7.0's acl_get_file bug.
69107         Rearrange to perform the new (below) run-test while $LIBS
69108         contains any acl-related library.  Set USE_ACL at the end.
69109         (gl_ACL_GET_FILE): New function.
69110
69111 2006-09-26  Eric Blake  <ebb9@byu.net>
69112
69113         * lib/verror.c: Include <config.h> unconditionally.
69114
69115 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * modules/clock-time (Maintainer): Add self.
69118         * modules/getlogin_r (Depends-on): Add extensions.
69119
69120 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69121
69122         * modules/clock-time: New module.
69123         * modules/nanosleep (Depends-on): Add clock-time.
69124         * modules/gethrxtime (Depends-on): Likewise.
69125         * modules/gettime (Depends-on): Likewise.
69126         * modules/settime (Depends-on): Likewise.
69127
69128         * modules/fts-lgpl: Depend on openat.
69129         * modules/mkancesdirs: Depend on savewd.
69130         * modules/mkdir-p: Likewise.
69131
69132 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69133
69134         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69135
69136         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69137         `gl_have_arbitrary_file_name_length_limit' to
69138         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69139         actually works between configure runs.
69140
69141 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69142             Bruno Haible  <bruno@clisp.org>
69143
69144         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69145
69146 2006-09-25  Jim Meyering  <jim@meyering.net>
69147
69148         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69149         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69150
69151 2006-09-25  Eric Blake  <ebb9@byu.net>
69152
69153         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69154         exec's in 2006-09-18 patch when shuffling fds.
69155
69156 2006-09-25  Bruno Haible  <bruno@clisp.org>
69157
69158         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69159         Reported by Jim Meyering.
69160
69161 2006-09-24  Jim Meyering  <jim@meyering.net>
69162
69163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69164         compare a pointer against a literal "0".  That caused failures with
69165         at least HP-UX's hpcc.
69166
69167 2006-09-22  Simon Josefsson  <jas@extundo.com>
69168
69169         * modules/gc-sha1:
69170         * modules/gc-md4:
69171         * modules/gc-hmac-sha1:
69172         * modules/gc-hmac-md5:
69173         * modules/gc-des:
69174         * modules/gc-arcfour: Distribute more files.
69175
69176 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69177
69178         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69179         (gl_linked_iterator_from_to): Initialize struct completely.
69180         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69181         (gl_tree_iterator_from_to): Likewise
69182         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69183         * lib/gl_array_list.c [lint] (gl_array_iterator)
69184         (gl_array_iterator_from_to): Likewise.
69185         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69186         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69187         (gl_carray_iterator_from_to): Likewise.
69188
69189         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69190         * lib/md4.c (md4_process_block): Remove unused variable.
69191         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69192         parentheses for clarity.
69193
69194 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69195
69196         * modules/bison-i18n (Depends-on): Add gettext.
69197
69198 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69199
69200         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69201         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69202         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69203         also add missing comma that caused broken test.
69204         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69205         stdlib.h, for `abort'.
69206         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69207         variables.
69208         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69209         include unistd.h if present, for `rmdir'.
69210         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69211         variables.
69212         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69213         in the process include standard headers for prototypes.
69214         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69215         gets declared on GNU/Linux.
69216         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69217         unistd.h, for `rmdir'.
69218         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69219
69220         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69221         always true.
69222         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69223
69224         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69225
69226 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69227
69228         * gnulib-tool (func_version): Create output all at once.  This
69229         may help avoid triggering unnecessary SIGPIPEs, and at any
69230         rate it doesn't hurt.
69231
69232 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69233             Bruno Haible  <bruno@clisp.org>
69234
69235         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69236         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69237         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69238
69239         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69240         (gl_FUNC_VASPRINTF): Invoke it.
69241
69242 2006-09-22  Bruno Haible  <bruno@clisp.org>
69243
69244         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69245         getloadavg.c as first argument.
69246
69247 2006-09-22  Bruno Haible  <bruno@clisp.org>
69248
69249         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69250         at the beginning of the gl_INIT macro.
69251         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69252         gl_GETLOADAVG.
69253
69254 2006-09-22  Bruno Haible  <bruno@clisp.org>
69255
69256         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69257         module.
69258         Suggested by Ralf Wildenhues.
69259
69260 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69261
69262         Import this patch from libc:
69263
69264         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69265
69266         * lib/regex_internal.c (re_string_reconstruct): Handle
69267         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69268         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69269         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69270         re_string_context_at.
69271
69272         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69273         now requires it.
69274         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69275         gl_REGEX now does it for us.
69276         (gl_REGEX): Add test taken from
69277         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69278
69279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69280         Check that large offsets work.  Modernize Autoconf usages.
69281         Prefer "yes" to mean a good thing rather than a bad.
69282         Don't put "#define mkstemp" in config.h, as this might interfere
69283         with standard system headers that "#define mkstemp mkstemp64".
69284
69285         * modules/mkstemp (Depends-on): Add extensions, so that
69286         mkstemp is visible on some platforms.
69287         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69288         (Include): Change to "mkstemp.h" from <stdlib.h>.
69289         (Files): Add mkstemp.h.
69290
69291         * lib/mkstemp.h: New file, since some standard headers
69292         #define mkstemp.
69293         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69294         Include "mkstemp.h".
69295         Make the _LIBC code resemble glibc original more,
69296         e.g., use K&R style.
69297         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69298         (mkstemp): Remove, since mkstemp.h does this for us.
69299         * lib/stdlib--.h: Include mkstemp.h.
69300
69301         Import this patch from libc:
69302
69303         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69304
69305         * lib/tempname.c (__gen_tempname): Change attempts_min
69306         into a macro.  Use preprocessor to decide how to initialize
69307         attempts [Coverity CID 67].
69308
69309 2006-09-20  Bruno Haible  <bruno@clisp.org>
69310
69311         * lib/mkdtemp.c: Import from libc.
69312         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69313                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69314                 attempts_min into a macro.  Use preprocessor to decide how to
69315                 initialize attempts [Coverity CID 67].
69316         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69317                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69318                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69319
69320 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69321
69322         * gnulib-tool (func_exit): New function, to allow to pass the
69323         exit status portably through the trap.  Use everywhere.
69324         (--help, --version): Signal a write error.
69325         (trap): catch SIGPIPE, for write errors.
69326         Exit at the end of the trap, with the correct exit status.
69327
69328 2006-09-19  Karl Berry  <karl@gnu.org>
69329
69330         * doc/gnulib.texi: note about the license texinfo files.
69331
69332 2006-09-19  Eric Blake  <ebb9@byu.net>
69333
69334         * gnulib-tool: Avoid space-tab.
69335
69336 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69337
69338         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69339         that prevented coreutils 6.1 from building.  Problem reported
69340         by Petter Reinholdtsen.
69341
69342 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * gnulib-tool (avoidlist): Fix typo that broke options like
69345         --avoid=lock that are used by coreutils bootstrap.
69346
69347 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69348
69349         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69350         more systematically.
69351
69352 2006-09-18  Jim Meyering  <jim@meyering.net>
69353
69354         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69355
69356 2006-09-18  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69359
69360 2006-09-18  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69363         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69364         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69365         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69366         * m4/gettext.m4: Require autoconf >= 2.52.
69367         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69368         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69369         of gl_cv_header_inttypes_h.
69370
69371 2006-09-18  Bruno Haible  <bruno@clisp.org>
69372
69373         * lib/javaversion.c: Include configmake.h.
69374
69375 2006-09-18  Bruno Haible  <bruno@clisp.org>
69376
69377         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69378         avoid that the while loops be executed in a subshell.
69379
69380 2006-09-18  Bruno Haible  <bruno@clisp.org>
69381
69382         * MODULES.html.sh (func_module): Break long lines.
69383         Suggested by Bruce Korb <bkorb@gnu.org>.
69384
69385 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69386
69387         Speed up by a factor of 1.12.
69388         * gnulib-tool (nl): New variable.
69389         (func_import): Rewrite include directive extraction to only read each
69390         directive once.
69391
69392 2006-09-17  Bruno Haible  <bruno@clisp.org>
69393
69394         * modules/javaversion (Makefile.am): Remove DEFS setting.
69395         (Depends-on): Add configmake, for PKGDATADIR definition.
69396
69397 2006-09-17  Bruno Haible  <bruno@clisp.org>
69398
69399         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69400
69401 2006-09-17  Bruno Haible  <bruno@clisp.org>
69402
69403         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69404         (func_modules_transitive_closure, func_modules_add_dummy,
69405         func_modules_to_filelist, func_import, func_create_testdir,
69406         func_create_megatestdir, ...): Use it wherever possible.
69407         Suggested by Ralf Wildenhues.
69408
69409 2006-09-16  Karl Berry  <karl@gnu.org>
69410
69411         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69412         to avoid sectioning errors.
69413         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69414         [ifinfo]: blank line after @center-ed titles.
69415         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69416         Spell FSF address consistently with others.
69417         (These changes approved by rms.)
69418
69419 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69420
69421         Speed up by a factor of 1.61.
69422         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69423         already checked module names again.
69424
69425 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69426
69427         Speed up by a factor of 1.13.
69428         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69429         for new_files, and the input to func_add_or_update.
69430
69431 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69432
69433         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69434         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69435
69436 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * modules/mkancesdirs (Depends-on): Add fcntl.
69439         * modules/savewd: New file.
69440         * MODULES.html.sh (File system functions): Add savewd.
69441
69442         * modules/configmake (Makefile.am): Add support for the
69443         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69444
69445 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69446
69447         * m4/savewd.m4: New file.
69448
69449 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69452         (dirchownmod): New arg FD.  All callers changed.
69453         Use FD rather than opening the directory ourself, as opening is
69454         now the caller's responsibility.
69455         * lib/dirchownmod.h: Likewise.
69456         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69457         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69458         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69459         (test_dir): Remove.
69460         (mkancesdirs): Return length of prefix of FILE that has already
69461         been made, or -2 if there is a child doing the work.  Redo
69462         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69463         ".", and treat ".." specially since it might stray back into
69464         already-created areas.  Use a subprocess if necessary.  New arg
69465         WD; all users changed.  MAKE_DIR function should now return 1
69466         if it creates a directory that is not readable.  Return -2 if
69467         a child process is spun off.
69468         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69469         Adjust signature to match code.
69470         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69471         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69472         all users changed.
69473         * lib/savewd.c, lib/savewd.h: New files.
69474
69475 2006-09-15  Jim Meyering  <jim@meyering.net>
69476
69477         * modules/rename-dest-slash: New module.
69478         * MODULES.html.sh (posix_compat): Add it here.
69479
69480         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69481
69482 2006-09-15  Jim Meyering  <jim@meyering.net>
69483
69484         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69485         file.
69486
69487         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69488
69489 2006-09-15  Jim Meyering  <jim@meyering.net>
69490
69491         * lib/rename-dest-slash.c (has_trailing_slash): Use
69492         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69493         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69494         test before testing whether SRC is a directory.
69495         Suggestions from Bruno Haible.
69496
69497         Avoid a warning about an unused variable.
69498         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69499         into the #ifdef block where it's used.
69500
69501         * lib/rename-dest-slash.c: New file.
69502
69503 2006-09-14  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/allocsa.c: Include <config.h> unconditionally.
69506         * lib/asnprintf.c: Likewise.
69507         * lib/asprintf.c: Likewise.
69508         * lib/c-strcasecmp.c: Likewise.
69509         * lib/c-strcasestr.c: Likewise.
69510         * lib/c-strncasecmp.c: Likewise.
69511         * lib/c-strstr.c: Likewise.
69512         * lib/classpath.c: Likewise.
69513         * lib/clean-temp.c: Likewise.
69514         * lib/concatpath.c: Likewise.
69515         * lib/copy-file.c: Likewise.
69516         * lib/csharpcomp.c: Likewise.
69517         * lib/csharpexec.c: Likewise.
69518         * lib/execute.c: Likewise.
69519         * lib/fatal-signal.c: Likewise.
69520         * lib/findprog.c: Likewise.
69521         * lib/fwriteerror.c: Likewise.
69522         * lib/gl_array_list.c: Likewise.
69523         * lib/gl_array_oset.c: Likewise.
69524         * lib/gl_avltree_list.c: Likewise.
69525         * lib/gl_avltree_oset.c: Likewise.
69526         * lib/gl_avltreehash_list.c: Likewise.
69527         * lib/gl_carray_list.c: Likewise.
69528         * lib/gl_linked_list.c: Likewise.
69529         * lib/gl_linkedhash_list.c: Likewise.
69530         * lib/gl_list.c: Likewise.
69531         * lib/gl_oset.c: Likewise.
69532         * lib/gl_rbtree_list.c: Likewise.
69533         * lib/gl_rbtree_oset.c: Likewise.
69534         * lib/gl_rbtreehash_list.c: Likewise.
69535         * lib/imaxabs.c: Likewise.
69536         * lib/imaxdiv.c: Likewise.
69537         * lib/javacomp.c: Likewise.
69538         * lib/javaexec.c: Likewise.
69539         * lib/javaversion.c: Likewise.
69540         * lib/linebreak.c: Likewise.
69541         * lib/localcharset.c: Likewise.
69542         * lib/lock.c: Likewise.
69543         * lib/mbchar.c: Likewise.
69544         * lib/mbswidth.c: Likewise.
69545         * lib/mkdtemp.c: Likewise.
69546         * lib/pipe.c: Likewise.
69547         * lib/printf-args.c: Likewise.
69548         * lib/printf-parse.c: Likewise.
69549         * lib/progname.c: Likewise.
69550         * lib/progreloc.c: Likewise.
69551         * lib/readlink.c: Likewise.
69552         * lib/sh-quote.c: Likewise.
69553         * lib/stpcpy.c: Likewise.
69554         * lib/stpncpy.c: Likewise.
69555         * lib/strcasecmp.c: Likewise.
69556         * lib/strcasestr.c: Likewise.
69557         * lib/strcspn.c: Likewise.
69558         * lib/striconv.c: Likewise.
69559         * lib/strncasecmp.c: Likewise.
69560         * lib/strnlen1.c: Likewise.
69561         * lib/strstr.c: Likewise.
69562         * lib/strtok_r.c: Likewise.
69563         * lib/tls.c: Likewise.
69564         * lib/tmpdir.c: Likewise.
69565         * lib/unicodeio.c: Likewise.
69566         * lib/unsetenv.c: Likewise.
69567         * lib/vasnprintf.c: Likewise.
69568         * lib/vasprintf.c: Likewise.
69569         * lib/wait-process.c: Likewise.
69570         * lib/xallocsa.c: Likewise.
69571         * lib/xsetenv.c: Likewise.
69572         * lib/xstriconv.c: Likewise.
69573
69574 2006-09-13  Simon Josefsson  <jas@extundo.com>
69575
69576         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69577         that internally, suggested by Ralf Wildenhues
69578         <Ralf.Wildenhues@gmx.de>.
69579
69580 2006-09-13  Simon Josefsson  <jas@extundo.com>
69581
69582         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69583         @LIBOBJS@.
69584         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69585
69586 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69589         longer worry about uses that don't define HAVE_CONFIG_H.
69590         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69591         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69592         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69593         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69594         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69595         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69596         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69597         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69598         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69599         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69600         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69601         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69602         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69603         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69604         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69605         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69606         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69607         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69608         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69609         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69610         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69611         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69612         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69613         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69614         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69615         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69616         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69617         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69618         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69619         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69620         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69621         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69622         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69623         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69624         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69625         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69626         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69627         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69628         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69629         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69630         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69631         Likewise.
69632
69633 2006-09-13  Eric Blake  <ebb9@byu.net>
69634
69635         * lib/getopt.c: Fix typo in last commit.
69636
69637 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69638
69639         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69640         dgettext.
69641
69642 2006-09-12  Jim Meyering  <jim@meyering.net>
69643
69644         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69645         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69646         Reported by Nelson H. F. Beebe.
69647
69648 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69649
69650         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69651         program_invocation_name and program_invocation_short_name are
69652         initialized.
69653         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69654         and program_invocation_short_name to argp.h, so they are visible
69655         to user programs.
69656         * lib/argp.h: Likewise
69657
69658 2006-09-10  Bruno Haible  <bruno@clisp.org>
69659
69660         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69661         m4/inttypes_h.m4, m4/uintmax_t.m4.
69662
69663 2006-09-10  Bruno Haible  <bruno@clisp.org>
69664
69665         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69666         gl_AC_TYPE_UINTMAX_T.
69667
69668 2006-09-10  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69671
69672 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69673
69674         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69675         convention.  Text proposed by Bruno Haible.
69676         (struct argp_option): Document the use of N_() wrappers.
69677
69678         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69679         '\v', and translate the two parts separately, instead of feeding
69680         the whole string to gettext.  This allows to exclude
69681         '\v' from the strings visible to the translator by writing doc
69682         strings as N_("..") "\v" N_("..").
69683
69684 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * config/srclist.txt: Undo latest change; the bug was fixed.
69687
69688 2006-09-09  Bruno Haible  <bruno@clisp.org>
69689
69690         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69691         assignments if building a library without libtool.
69692         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69693         in func_emit_lib_Makefile_am.
69694         (func_import): When building a static library libfoo.a, arrange to
69695         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69696         (func_create_testdir): Likewise.
69697         * modules/gc (configure.ac, Makefile.am): If building statically,
69698         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69699         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69700         * modules/striconv (configure.ac, Makefile.am): Likewise.
69701         Based on a suggestion by Ralf Wildenhues.
69702
69703 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69704
69705         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69706         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69707         Also:
69708
69709         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69710         Add year_2050_test to catch glibc bug 2821
69711         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69712
69713         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69714         Prefer #ifdef to #if.
69715
69716         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69717         Return from 'main' instead of calling 'exit'.
69718
69719 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69722         returned the maximum time_t value rather than (time_t) -1.
69723         Problem originally reported by William Bardwell
69724         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69725
69726         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69727         Moved to here ...
69728         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69729         ... from here.
69730
69731 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69734         2821 is fixed.
69735
69736 2006-09-08  Jim Meyering  <jim@meyering.net>
69737
69738         Don't make generated files read-only.  That would bother too many
69739         people.  However, do retain the ability to work when targets are
69740         read-only: remove the destination and temporary files before writing
69741         them (when generated via sed or echo), or by using the -f option for
69742         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69743         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69744         * modules/byteswap, modules/configmake, modules/fcntl:
69745         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69746         * modules/localcharset, modules/netinet_in, modules/poll:
69747         * modules/stdbool, modules/stdint, modules/sys_select:
69748         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69749
69750 2006-09-08  Jim Meyering  <jim@meyering.net>
69751
69752         Avoid new build failure on FreeBSD 6.0.
69753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69754         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69755         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69756
69757 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69758
69759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69760
69761 2006-09-07  Jim Meyering  <jim@meyering.net>
69762
69763         Fix global typo in last change: use chmod u-w, not chmod u-x.
69764         Spotted by Paul Eggert and Bruce Korb.
69765         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69766         * modules/byteswap, modules/configmake, modules/fcntl:
69767         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69768         * modules/localcharset, modules/netinet_in, modules/poll:
69769         * modules/stdbool, modules/stdint, modules/sys_select:
69770         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69771
69772 2006-09-06  Jim Meyering  <jim@meyering.net>
69773
69774         Make generated files be read-only.
69775         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69776         Ensure that each generated file is now read-only.
69777         * modules/argz: Likewise.
69778         * modules/arpa_inet: Likewise.
69779         * modules/byteswap: Likewise.
69780         * modules/configmake: Likewise.
69781         * modules/fcntl: Likewise.
69782         * modules/fnmatch: Likewise.
69783         * modules/getopt: Likewise.
69784         * modules/glob: Likewise.
69785         * modules/inttypes: Likewise.
69786         * modules/netinet_in: Likewise.
69787         * modules/poll: Likewise.
69788         * modules/stdbool: Likewise.
69789         * modules/stdint: Likewise.
69790         * modules/sys_select: Likewise.
69791         * modules/sys_socket: Likewise.
69792         * modules/sys_stat: Likewise.
69793         * modules/sysexits: Likewise.
69794         * modules/localcharset: Same as above, but continue using temporary
69795         file named "t-$@" (why different?) rather than the "$@-t" used
69796         everywhere else.
69797
69798         * modules/sysexits (Makefile.am): Replace literal occurrences
69799         of "sysexit.h" more readable, and more consistent, "$@".
69800
69801 2006-09-06  Bruno Haible  <bruno@clisp.org>
69802
69803         * modules/striconv: New file.
69804         * modules/xstriconv: New file.
69805         * MODULES.html.sh (Internationalization functions): Add striconv,
69806         xstriconv.
69807
69808 2006-09-06  Bruno Haible  <bruno@clisp.org>
69809
69810         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69811         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69812         not using libtool correctly.
69813
69814 2006-09-06  Bruno Haible  <bruno@clisp.org>
69815
69816         * lib/striconv.h: New file.
69817         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69818         iconvstring.c.
69819         * lib/xstriconv.h: New file.
69820         * lib/xstriconv.c: New file.
69821
69822 2006-09-06  Bruno Haible  <bruno@clisp.org>
69823
69824         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69825         lib_..._LDFLAGS.
69826
69827 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69828
69829         * lib/argz_.h: Sync from Libtool.
69830
69831         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69832                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69833
69834         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69835
69836 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69837
69838         * modules/trim: New file.
69839
69840 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69841
69842         * lib/trim.h: New file.
69843         * lib/trim.c: New file.
69844
69845 2006-09-05  Bruno Haible  <bruno@clisp.org>
69846
69847         * MODULES.html.sh (String handling): Add trim.
69848
69849 2006-09-04  Karl Berry  <karl@gnu.org>
69850
69851         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69852         until next release.
69853
69854 2006-09-03  Bruno Haible  <bruno@clisp.org>
69855
69856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69857         correctly.
69858
69859 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69860
69861         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69862         not gl_GETLOADAVG.  Omit unneeded semicolons.
69863         Problems reported by Ralf Wildenhues in
69864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69865         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69866         at the end, which is the usual gnulib style.
69867
69868         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69869         of doing all the work ourselves.
69870         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69871         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69872
69873 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69876         Problem reported by Ralf Wildenhues in
69877         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69878
69879         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69880         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69881
69882 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69885         yesterday's patch by changing test -n to test -z.
69886
69887 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69890         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69891         the former is now obsolescent.
69892
69893         * modules/chdir-long (Depends-on): Add fcntl.
69894
69895 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69898         obsolescent, and programs should use gnulib instead.
69899         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69900         but with prefixes changed.
69901
69902 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69905         or stdbool.h, because they might not exist while configuring.
69906
69907         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69908         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69909         does that for us.
69910         (O_DIRECTORY): Remove.
69911
69912 2006-08-31  Eric Blake  <ebb9@byu.net>
69913
69914         * gnulib-tool: Don't let emacs change spaces to TAB.
69915
69916 2006-08-31  Bruno Haible  <bruno@clisp.org>
69917
69918         * gnulib-tool: When calling func_import more than once, do it in a
69919         subshell.
69920         Reported by Eric Blake <ebb9@byu.net>.
69921
69922 2006-08-31  Bruno Haible  <bruno@clisp.org>
69923
69924         * gnulib-tool (nl): Remove variable.
69925         (sed_transform_lib_file): Use more robust test for config-h module.
69926         (func_import): Fix typo in 2006-08-25 patch.
69927
69928 2006-08-31  Bruno Haible  <bruno@clisp.org>
69929
69930         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69931         specified, augment Makefile.am variables instead of assigning them.
69932
69933 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         Work around a bug in both the Linux and SunOS 64-bit kernels:
69936         nanosleep mishandles sleeps for longer than 2**31 seconds.
69937         Problem reported by Frank v Waveren in
69938         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69940         Check for nanosleep bug.
69941         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69942
69943 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         Work around a bug in both the Linux and SunOS 64-bit kernels:
69946         nanosleep mishandles sleeps for longer than 2**31 seconds.
69947         Problem reported by Frank v Waveren in
69948         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69949         * lib/nanosleep.c (BILLION): New constant.
69950         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69951         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69952         implementation.
69953
69954 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         * modules/nanosleep (Depends-on): Add gettime.
69957
69958 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69959         and Simon Josefsson  <jas@extundo.com>
69960         and Oskar Liljeblad  <oskar@osk.mine.nu>
69961
69962         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69963         * gnulib-tool (func_import): New license type 'unmodifiable license
69964         text'.
69965         * modules/fdl: Use it.  Longer description.
69966         * module/gpl, module/lgpl: New files.
69967
69968 2006-08-30  Jim Meyering  <jim@meyering.net>
69969
69970         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69971         shadowing the parameter.
69972
69973 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69974
69975         Sync from Libtool:
69976
69977         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69978
69979         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69980         sharing with gnulib.  Report by Eric Blake.
69981
69982 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * modules/isapipe: New file.
69985         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69986
69987 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * modules/configmake (Makefile.am): Add a comment, and omit
69990         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69991         by Bruno Haible.
69992
69993 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * m4/isapipe.m4: New file.
69996
69997 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * lib/isapipe.c, lib/isapipe.h: New files.
70000
70001 2006-08-29  Jim Meyering  <jim@meyering.net>
70002
70003         * modules/configmake (Makefile.am): Make configmake.h depend on
70004         Makefile.  Otherwise, a stale configmake.h could hang around.
70005
70006 2006-08-29  Eric Blake  <ebb9@byu.net>
70007
70008         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70009         resolution of upstream bug 3044.
70010
70011 2006-08-29  Bruno Haible  <bruno@clisp.org>
70012
70013         * modules/localcharset (Depends-on): Add configmake.
70014         (Makefile.am): Remove setting of LIBDIR through DEFS.
70015
70016 2006-08-29  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70019         defined.
70020
70021 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         * modules/fcntl: New file.
70024         * modules/chdir-safer (Depends-on): Add fcntl.
70025         * modules/fts: Likewise.
70026         * modules/mkdir-p: Likewise.
70027
70028         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70029         This undoes the most recent change, since we're now addressing the
70030         problem in a different way.
70031
70032         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70033         into output, since the output might be called Makefile.am even
70034         if $makefile_name is something different.
70035         (func_import): Use $makefile_am rather than
70036         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70037         empty.
70038
70039         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70040
70041 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70044         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70045         recent change to stdint.m4, since we're now addressing the problem in a
70046         different way.
70047
70048 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * m4/fcntl_h.m4: New file.
70051
70052 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * lib/fcntl_.h: New file.
70055         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70056         the fcntl module.
70057         * lib/dirchownmod.c: Likewise.
70058         * lib/fts.c: Likewise.
70059
70060         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70061         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70062         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70063         just before including <inttypes.h>, to avoid circular inclusion.
70064
70065 2006-08-28  Jim Meyering  <jim@meyering.net>
70066
70067         * doc/visibility.texi: Actually read and correct the grammar of the
70068         sentence affected by yesterday's change.
70069
70070 2006-08-28  Eric Blake  <ebb9@byu.net>
70071
70072         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70073         needs wrapper.
70074
70075 2006-08-28  Eric Blake  <ebb9@byu.net>
70076
70077         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70078
70079 2006-08-28  Eric Blake  <ebb9@byu.net>
70080
70081         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70082
70083 2006-08-28  Bruno Haible  <bruno@clisp.org>
70084
70085         * modules/c-strstr: New file, from GNU gettext.
70086         * MODULES.html.sh (String handling): Add c-strstr.
70087
70088 2006-08-28  Bruno Haible  <bruno@clisp.org>
70089
70090         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70091         macros.
70092         Reported by Eric Blake.
70093
70094 2006-08-28  Bruno Haible  <bruno@clisp.org>
70095
70096         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70097         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70098         * lib/vasprintf.c: Include errno.h, limits.h.
70099         (EOVERFLOW): New fallback definition.
70100         (vasprintf): Test here whether the string length is > INT_MAX.
70101         * lib/vsnprintf.c: Include errno.h, limits.h.
70102         (EOVERFLOW): New fallback definition.
70103         (vsnprintf): Fix bug when generated string was too long for the buffer.
70104         Test here whether the string length is > INT_MAX.
70105
70106 2006-08-28  Bruno Haible  <bruno@clisp.org>
70107
70108         * lib/inttypes_.h (SCNX*): Remove definitions.
70109         Reported by Eric Blake.
70110
70111 2006-08-28  Bruno Haible  <bruno@clisp.org>
70112
70113         * lib/c-strstr.h: New file, from GNU gettext.
70114         * lib/c-strstr.c: New file, from GNU gettext.
70115
70116 2006-08-28  Bruno Haible  <bruno@clisp.org>
70117
70118         * gnulib-tool: Reorder some statements.
70119
70120 2006-08-28  Bruno Haible  <bruno@clisp.org>
70121
70122         * gnulib-tool: New option --makefile-name.
70123         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70124         $makefile_name.
70125         (func_import): Write $makefile_name to the cache file, and read it from
70126         there unless explicitly specified. Use $makefile_name as file name
70127         instead of Makefile.am. Adjust the recommendations accordingly.
70128
70129 2006-08-28  Bruno Haible  <bruno@clisp.org>
70130
70131         * gnulib-tool (func_verify_module): Check against misapplying patch.
70132
70133 2006-08-28  Bruno Haible  <bruno@clisp.org>
70134
70135         * gnulib-tool (func_relativize, func_relconcat): New functions.
70136         Give an error if --local-dir is given with --update.
70137         Remove trailing slashes from $local_gnulib_dir.
70138         (func_import): Store the relativized $local_gnulib_dir in
70139         gnulib-cache.m4, and read it from there if not specified explicitly.
70140
70141 2006-08-28  Bruno Haible  <bruno@clisp.org>
70142
70143         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70144         is the current directory. Respect also $local_gnulib_dir.
70145
70146 2006-08-28  Bruno Haible  <bruno@clisp.org>
70147             Simon Josefsson  <jas@extundo.com>
70148
70149         BeOS portability.
70150         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70151
70152 2006-08-27  Jim Meyering  <jim@meyering.net>
70153
70154         * doc/visibility.texi: Remove duplicate word: "pointer".
70155
70156 2006-08-26  Bruno Haible  <bruno@clisp.org>
70157
70158         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70159         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70160         (Makefile.am): Create inttypes.h from inttypes_.h.
70161         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70162
70163         * modules/imaxabs: New file.
70164
70165         * modules/imaxdiv: New file.
70166
70167 2006-08-26  Bruno Haible  <bruno@clisp.org>
70168
70169         * m4/inttypes.m4: New file.
70170         * m4/_inttypes_h.m4: Remove file.
70171         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70172         PRI_MACROS_BROKEN.
70173         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70174
70175         * m4/imaxabs.m4: New file.
70176
70177         * m4/imaxdiv.m4: New file.
70178
70179 2006-08-26  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/inttypes_.h: New file.
70182         * lib/inttypes.h: Remove file.
70183         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70184
70185         * lib/imaxabs.c: New file.
70186
70187         * lib/imaxdiv.c: New file.
70188
70189 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         New config-h module, so that "make" output needn't be cluttered
70192         by -DHAVE_CONFIG_H.
70193         * MODULES.html.sh (Support for building libraries and executables):
70194         Add config-h.
70195         * modules/config-h: New file.
70196         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70197         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70198         the config-h module is used.
70199
70200         New configmake module, so that "make" output needn't be cluttered
70201         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70202         * MODULES.html.sh (Support for building libraries and executables):
70203         Add configmake.
70204         * modules/configmake: New file.
70205
70206 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * m4/config-h.m4: New file.
70209
70210 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * config/srclist.txt: Add elisp-comp.
70213
70214 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70215
70216         * MODULES.html.sh (Support for building libraries and executables):
70217         Add elisp-comp.
70218         * build-aux/elisp-comp: New file.
70219         * modules/elisp-comp: New file.
70220
70221 2006-08-24  Bruno Haible  <bruno@clisp.org>
70222
70223         * gnulib-tool (func_create_testdir): Use non-default values of
70224         sourcebase and m4base.
70225
70226 2006-08-24  Bruno Haible  <bruno@clisp.org>
70227
70228         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70229         HTML structure.
70230
70231 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * modules/openat (Depends-on): Add lchown.
70234
70235 2006-08-23  Bruno Haible  <bruno@clisp.org>
70236
70237         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70238         of gl_LOCK_EARLY instead of gl_LOCK.
70239
70240 2006-08-23  Bruno Haible  <bruno@clisp.org>
70241
70242         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70243         on OSF/1 to no.
70244         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70245
70246 2006-08-23  Bruno Haible  <bruno@clisp.org>
70247
70248         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70249         as unusable.
70250
70251         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70252         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70253         (gl_LOCK): New macro.
70254
70255 2006-08-22  Simon Josefsson  <jas@extundo.com>
70256
70257         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70258         to md5 module.
70259
70260 2006-08-22  Simon Josefsson  <jas@extundo.com>
70261
70262         * MODULES.html.sh: Add "Support for maintaining and release
70263         projects".
70264
70265         * build-aux/gnupload: New file, from coreutils.
70266
70267 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         Avoid the need for AC_LIBSOURCES in m4 macros.
70270         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70271         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70272         * modules/check-version (EXTRA_DIST): Add check-version.h.
70273         * modules/crc (EXTRA_DIST): Add crc.h.
70274         * modules/des (EXTRA_DIST): Add des.h.
70275         * modules/gc (EXTRA_DIST): Add gc.h.
70276         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70277         * modules/getline (EXTRA_DIST): Add getline.h.
70278         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70279         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70280         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70281         * modules/md2 (EXTRA_DIST): Add md2.h.
70282         * modules/md4 (EXTRA_DIST): Add md4.h.
70283         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70284         * modules/read-file (EXTRA_DIST): Add read-file.h.
70285         * modules/readline (EXTRA_DIST): Add readline.h.
70286         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70287         rijndael-api-fst.h.
70288
70289 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * m4/rijndael.m4 (gl_ARCFOUR):
70292         * m4/arctwo.m4 (gl_ARCTWO):
70293         * m4/check-version.m4 (gl_CHECK_VERSION):
70294         * m4/crc.m4 (gl_CRC):
70295         * m4/des.m4 (gl_DES):
70296         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70297         * m4/gc.m4 (gl_GC):
70298         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70299         * m4/getline.m4 (gl_FUNC_GETLINE):
70300         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70301         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70302         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70303         * m4/md2.m4 (gl_MD2):
70304         * m4/md4.m4 (gl_MD4):
70305         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70306         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70307         * m4/readline.m4 (gl_FUNC_READLINE):
70308         * m4/rijndael.m4 (gl_RIJNDAEL):
70309         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70310         to get the necessary .h files and whatnot.
70311
70312 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70315         gnulib rather than the other way around.
70316         * config/srclistvars.sh (COREUTILS): Remove.
70317
70318 2006-08-22  Jim Meyering  <jim@meyering.net>
70319
70320         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70321
70322         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70323
70324 2006-08-22  Eric Blake  <ebb9@byu.net>
70325
70326         * modules/regexprops-generic: New file.
70327         * MODULES.html.sh (Support for building documentation): List it.
70328
70329 2006-08-22  Eric Blake  <ebb9@byu.net>
70330
70331         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70332         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70333         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70334         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70335
70336 2006-08-22  Bruno Haible  <bruno@clisp.org>
70337
70338         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70339         and lib_LTLIBRARIES like the other lib_* variables.
70340
70341 2006-08-22  Bruno Haible  <bruno@clisp.org>
70342
70343         * build-aux/x-to-1.in: New file, from GNU gettext.
70344
70345 2006-08-22  Bruno Haible  <bruno@clisp.org>
70346
70347         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70348         <utmpx.h> exists.
70349
70350 2006-08-22  Bruno Haible  <bruno@clisp.org>
70351
70352         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70353         <utmpx.h> exists.
70354
70355 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         BeOS portability.
70358         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70359         exist.
70360         Problem reported by Bruno Haible.
70361
70362 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70363
70364         Avoid the need for AC_LIBSOURCES in m4 macros.
70365         * modules/acl (EXTRA_DIST): Add acl.h.
70366         * modules/argmatch (Files): Add m4/argmatch.m4.
70367         (configure.ac): Add gl_ARGMATCH.
70368         (EXTRA_DIST): Renamed from lib_SOURCES, for
70369         consistency with the other modules.  Remove argmatch.c.
70370         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70371         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70372         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70373         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70374         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70375         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70376         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70377         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70378         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70379         * modules/closeout (EXTRA_DIST): Add closeout.h.
70380         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70381         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70382         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70383         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70384         dirname.h; remove basename.c and stripslash.c.
70385         * modules/exclude (EXTRA_DIST): Add exclude.h.
70386         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70387         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70388         * modules/file-type (EXTRA_DIST): Add file-type.h.
70389         * modules/filemode (EXTRA_DIST): Add filemode.h.
70390         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70391         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70392         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70393         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70394         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70395         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70396         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70397         * modules/getdate (EXTRA_DIST): Add getdate.c.
70398         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70399         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70400         * modules/getpass (EXTRA_DIST): Add getpass.h.
70401         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70402         * modules/group-member (EXTRA_DIST): Add group-member.h.
70403         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70404         * modules/hash (EXTRA_DIST): Add hash.h.
70405         * modules/human (EXTRA_DIST): Add human.h.
70406         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70407         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70408         * modules/lchown (EXTRA_DIST): Add lchown.h.
70409         * modules/long-options (EXTRA_DIST): Add long-options.h.
70410         * modules/lstat (EXTRA_DIST): Add lstat.h.
70411         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70412         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70413         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70414         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70415         * modules/memxor (EXTRA_DIST): Add memxor.h.
70416         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70417         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70418         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70419         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70420         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70421         * modules/physmem (EXTRA_DIST): Add physmem.h.
70422         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70423         * modules/posixver (EXTRA_DIST): Add posixver.h.
70424         * modules/quote (EXTRA_DIST): Add quote.h.
70425         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70426         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70427         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70428         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70429         regex_internal.h regexec.c.
70430         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70431         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70432         * modules/same (EXTRA_DIST): Add same.h.
70433         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70434         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70435         * modules/savedir (EXTRA_DIST): Add savedir.h.
70436         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70437         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70438         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70439         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70440         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70441         * modules/strdup (EXTRA_DIST): Add strdup.h.
70442         * modules/strftime (EXTRA_DIST): Add strftime.h.
70443         * modules/strndup (EXTRA_DIST): Add strndup.h.
70444         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70445         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70446         * modules/time_r (EXTRA_DIST): Add time_r.h.
70447         * modules/timespec (EXTRA_DIST): Add timespec.h.
70448         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70449         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70450         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70451         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70452         * modules/userspec (EXTRA_DIST): Add userspec.h.
70453         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70454         * modules/utimens (EXTRA_DIST): Add utimens.h.
70455         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70456         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70457         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70458         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70459         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70460         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70461         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70462         * modules/yesno (EXTRA_DIST): Add yesno.h.
70463
70464 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70467
70468         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70469         * m4/dev-ino.m4, same-inode.m4: Remove.
70470
70471         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70472         * m4/acl.m4 (AC_FUNC_ACL):
70473         * m4/backupfile.m4 (gl_BACKUPFILE):
70474         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70475         * m4/canon-host.m4 (gl_CANON_HOST):
70476         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70478         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70479         * m4/cloexec.m4 (gl_CLOEXEC):
70480         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70481         * m4/closeout.m4 (gl_CLOSEOUT):
70482         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70483         * m4/dirname.m4 (gl_DIRNAME):
70484         * m4/exclude.m4 (gl_EXCLUDE):
70485         * m4/exitfail.m4 (gl_EXITFAIL):
70486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70487         * m4/file-type.m4 (gl_FILE_TYPE):
70488         * m4/filemode.m4 (gl_FILEMODE):
70489         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70490         * m4/fpending.m4 (gl_FUNC_FPENDING):
70491         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70492         * m4/fts.m4 (gl_FUNC_FTS):
70493         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70494         * m4/getdate.m4 (gl_GETDATE):
70495         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70496         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70497         * m4/getpass.m4 (gl_FUNC_GETPASS):
70498         * m4/gettime.m4 (gl_GETTIME):
70499         * m4/getugroups.m4 (gl_GETUGROUPS):
70500         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70501         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70502         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70503         * m4/hash.m4 (gl_HASH):
70504         * m4/idcache.m4 (gl_IDCACHE):
70505         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70506         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70507         * m4/long-options.m4 (gl_LONG_OPTIONS):
70508         * m4/lstat.m4 (gl_FUNC_LSTAT):
70509         * m4/md5.m4 (gl_MD5):
70510         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70511         * m4/memcoll.m4 (gl_MEMCOLL):
70512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70513         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70514         * m4/memxor.m4 (gl_MEMXOR):
70515         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70516         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70517         * m4/modechange.m4 (gl_MODECHANGE):
70518         * m4/mountlist.m4 (gl_MOUNTLIST):
70519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70520         * m4/openat.m4 (gl_FUNC_OPENAT):
70521         * m4/pathmax.m4 (gl_PATHMAX):
70522         * m4/physmem.m4 (gl_PHYSMEM):
70523         * m4/posixtm.m4 (gl_POSIXTM):
70524         * m4/posixver.m4 (gl_POSIXVER):
70525         * m4/quote.m4 (gl_QUOTE):
70526         * m4/quotearg.m4 (gl_QUOTEARG):
70527         * m4/readtokens.m4 (gl_READTOKENS):
70528         * m4/readutmp.m4 (gl_READUTMP):
70529         * m4/regex.m4 (gl_REGEX):
70530         * m4/safe-read.m4 (gl_SAFE_READ):
70531         * m4/safe-write.m4 (gl_SAFE_WRITE):
70532         * m4/same.m4 (gl_SAME):
70533         * m4/save-cwd.m4 (gl_SAVE_CWD):
70534         * m4/savedir.m4 (gl_SAVEDIR):
70535         * m4/settime.m4 (gl_SETTIME):
70536         * m4/sha1.m4 (gl_SHA1):
70537         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70538         * m4/stat-macros.m4 (gl_STAT_MACROS):
70539         * m4/stat-time.m4 (gl_STAT_TIME):
70540         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70541         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70542         * m4/strdup.m4 (gl_FUNC_STRDUP):
70543         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70544         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70545         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70546         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70547         * m4/time_r.m4 (gl_TIME_R):
70548         * m4/timespec.m4 (gl_TIMESPEC):
70549         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70550         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70551         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70552         * m4/userspec.m4 (gl_USERSPEC):
70553         * m4/utimecmp.m4 (gl_UTIMECMP):
70554         * m4/utimens.m4 (gl_UTIMENS):
70555         * m4/xalloc.m4 (gl_XALLOC):
70556         * m4/xgetcwd.m4 (gl_XGETCWD):
70557         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70558         * m4/xreadlink.m4 (gl_XREADLINK):
70559         * m4/xstrtod.m4 (gl_XSTRTOD):
70560         * m4/yesno.m4 (gl_YESNO):
70561         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70562         to get the necessary .h files and whatnot.
70563
70564 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70565             Bruno Haible  <bruno@clisp.org>
70566
70567         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70568         /bin/sh understanding of '!' conditional negation.
70569
70570 2006-08-21  Jim Meyering  <jim@meyering.net>
70571
70572         * modules/openat (Depends-on): Really alphabetize.
70573
70574         * modules/acl (Depends-on): Add error and quote.
70575
70576         * check-module (find_included_lib_files): Add at-func.c to the
70577         ok-to-include-more-than-once white list.
70578
70579         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70580
70581 2006-08-21  Bruno Haible  <bruno@clisp.org>
70582
70583         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70584         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70585         Reported by Martin Lambers <marlam@marlam.de>.
70586
70587 2006-08-21  Bruno Haible  <bruno@clisp.org>
70588
70589         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70590         specify an installation location, don't emit a noinst_LIBRARIES or
70591         noinst_LTLIBRARIES assignment.
70592
70593 2006-08-21  Bruno Haible  <bruno@clisp.org>
70594
70595         BeOS portability.
70596         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70597         BeOS has mbrtowc() but no <wctype.h>.
70598
70599 2006-08-21  Bruno Haible  <bruno@clisp.org>
70600
70601         BeOS portability.
70602         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70603         exist.
70604
70605 2006-08-21  Bruno Haible  <bruno@clisp.org>
70606
70607         BeOS portability.
70608         * lib/mbchar.h: Include <wctype.h> only if it exists.
70609
70610 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         Remove files that are no longer needed by their respective modules.
70613         * m4/obstack.m4: Remove.
70614         * m4/strerror_r.m4: Remove.
70615         * m4/uint32_t.m4: Remove.
70616         * m4/uintptr_t.m4: Remove.
70617         * m4/ullong_max.m4: Remove.
70618         * m4/xstrtoimax.m4: Remove.
70619         * m4/xstrtoumax.m4: Remove.
70620
70621         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70622         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70623         dependencies now capture this.
70624
70625         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70626         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70627         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70628         * m4/human.m4 (gl_HUMAN): Likewise.
70629         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70630         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70631
70632         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70633
70634         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70635         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70636         stdint.
70637         * m4/human.m4 (gl_HUMAN): Likewise.
70638         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70639         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70640         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70641         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70642         * m4/xstrtol (gl_XSTRTOL): Likewise.
70643
70644         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70645         AC_TYPE_LONG_LONG_INT.
70646         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70647         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70648         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70649         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70650
70651         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70652         on stdbool.
70653
70654         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70655         (gl_PREREQ_XSTRTOUL): Remove.
70656
70657         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70658
70659         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70660         mode.
70661
70662 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70663
70664         Add and change modules to make it easier for coreutils to use
70665         gnulib-tool.
70666         * modules/backupfile (Files): Remove m4/d-ino.m4.
70667         (Depends-on): Add d-ino.
70668         * modules/cycle-check (Depends-on): Add stdint.
70669         (lib_SOURCES): Add cycle-check.h.
70670         * modules/d-ino: New module.
70671         * modules/d-type: New module.
70672         * modules/error (Files): Remove m4/strerror_r.m4.
70673         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70674         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70675         m4/inttypes_h.m4, m4/uintmax_t.m4.
70676         (Depends-on): Add stdint.
70677         (lib_SOURCES): Add fsusage.h.
70678         * modules/getcwd (Files): Remove d-ino.m4.
70679         (Depends-on): Add d-ino.
70680         * modules/getndelim2 (Depends-on): Add stdint.
70681         * modules/glob (Files): Remove m4/d-type.m4.
70682         (Depends-on): Add d-type.
70683         * modules/host-os: New module.
70684         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70685         m4/inttypes_h.m4, m4/uintmax_t.m4.
70686         * Depends-on: Add stdint.
70687         (lib_SOURCES): Add human.h.
70688         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70689         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70690         m4/uintmax_t.m4, m4/ulonglong.m4.
70691         (Depends-on): Add stdint.
70692         (EXTRA_DIST): Add inttostr.h.
70693         * modules/lchmod: New module.
70694         * modules/link-follow: New module.
70695         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70696         (Depends-on): Add lchmod.
70697         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70698         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70699         (Depends-on): Add stdint.
70700         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70701         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70702         (Depends-on): Add stdint.
70703         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70704         * modules/perl: New module.
70705         * modules/regex (Depends-on): Add stdint.
70706         * modules/rmdir-errno: New module.
70707         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70708         m4/intmax_t.m4.
70709         (Depends-on): Add stdint.
70710         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70711         m4/uintmax_t.m4.
70712         (Depends-on): Add stdint.
70713         * modules/unlink-busy: New module.
70714         * modules/utimecmp (Depends-on): Add stdint.
70715         * modules/uptime: New module.
70716         * modules/winsz-ioctl: New module.
70717         * modules/winsz-termios: New module.
70718         * modules/xnanosleep (Depends-on): Add nanosleep.
70719         * modules/ullong_max: Remove.
70720         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70721         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70722         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70723         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70724         (Depends-on): Add inttypes.
70725         (lib_SOURCES): Add xstrtol.h.
70726         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70727         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70728         * MODULES.html.sh: Move 'assert' into the assert section.
70729         Move 'dummy' into the linking section.
70730         Remove ullong_max.
70731         Add section for compatibility checks for POSIX:2001 functions,
70732         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70733         winsz-ioctl, and winsz-termios into it.
70734         Add lchmod.
70735         Add top-level Misc section and put host-os, perl, and uptime
70736         into it.
70737
70738 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70741         now assume the stdint module.  Do not include inttypes.h.
70742         * lib/fsusage.h: Likewise.
70743         * lib/getndelim2.c: Likewise.
70744         * lib/human.h: Likewise.
70745         * lib/inttostr.h: Likewise.
70746         * lib/obstack.c: Likewise.
70747         * lib/regex_internal.h: Likewise.
70748         * lib/tempname.c: Likewise.
70749         * lib/utimecmp.c: Likewise.
70750         * lib/xstrtol.h: Likewise.
70751
70752         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70753
70754         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70755         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70756         * lib/xtime.h: Likewise.
70757
70758 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * modules/openat (Files): Add lib/fchmodat.c.
70761         Fixes problem reported by Jay Youngman.
70762
70763 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70766         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70767
70768 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70769             Bruno Haible  <bruno@clisp.org>
70770
70771         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70772         and is a script that invokes bison. Tighten the code. Add comments.
70773
70774 2006-08-18  Jim Meyering  <jim@meyering.net>
70775
70776         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70777         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70778         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70779         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70780
70781 2006-08-18  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/bison-i18n: New file.
70784         * MODULES.html.sh (Internationalization functions): Add it.
70785
70786 2006-08-18  Bruno Haible  <bruno@clisp.org>
70787
70788         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70789         sys/statvfs.h. When getmntinfo was found, check its declaration and
70790         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70791
70792 2006-08-18  Bruno Haible  <bruno@clisp.org>
70793
70794         * m4/bison-i18n.m4: New file, from bison.
70795
70796 2006-08-18  Bruno Haible  <bruno@clisp.org>
70797
70798         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70799         (ME_DUMMY): Treat "kernfs" as a dummy.
70800         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70801
70802 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         Update from coreutils.
70805
70806         2006-08-15  Jim Meyering  <jim@meyering.net>
70807
70808         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70809
70810         2006-01-17  Jim Meyering  <jim@meyering.net>
70811
70812         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70813
70814         2006-01-11  Jim Meyering  <jim@meyering.net>
70815
70816         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70817         Check for the lchmod function.
70818
70819 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         Update from coreutils.
70822
70823         * lib/__fpending.h: Add copyright notice.
70824         * lib/fprintftime.h: Likewise.
70825         * lib/savedir.c: Use (C) in copyright notice.
70826         * lib/savedir.h: Likewise.
70827
70828         2006-08-15  Jim Meyering  <jim@meyering.net>
70829
70830         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70831         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70832         in support of the EXPECTED_ERRNO macro.
70833         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70834         definitions.  Instead, define the appropriate symbols and include
70835         "at-func.c".
70836         * lib/mkdirat.c (mkdirat): Likewise.
70837         * lib/fchmodat.c (fchmodat): Likewise.
70838         (ENOSYS): Remove definition.
70839         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70840         it.  Don't include "unistd--.h" -- it wasn't ever used.
70841
70842         2006-01-17  Jim Meyering  <jim@meyering.net>
70843
70844         Rewrite fts.c not to change the current working directory,
70845         by using openat, fstatat, fdopendir, etc..
70846
70847         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70848         (HAVE_OPENAT_SUPPORT): Define.
70849         [_LIBC] (fchdir): Don't undef or define; no longer used.
70850         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70851         Now, this `function' always succeeds, and consumes its file descriptor
70852         parameter -- so callers must not close such FDs.  Update callers.
70853         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70854         (diropen): Add parameter, SP.  Adjust all callers.
70855         Implement using diropen_fd, rather than open.
70856         (fts_open): Initialize new member, fts_cwd_fd.
70857         Remove fts_rft-setting code.
70858         (fts_close): Close fts_cwd_fd, if necessary.
70859         (__opendir2): Define in terms of opendir or opendirat,
70860         depending on whether the FST_NOCHDIR flag is set.
70861         (fts_build): Since fts_safe_changedir consumes its FD, and since
70862         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70863         and close the dup'd file descriptor upon failure.
70864         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70865         (fts_safe_changedir): Tweak semantics to reflect that this function
70866         now calls cwd_advance_fd and hence consumes its FD argument.
70867         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70868         [struct FTS] (fts_rft): Remove now-unused member.
70869         [struct FTS] (fts_cycle.state): Improve comment.
70870
70871         * lib/openat.c (openat_needs_fchdir): New function.
70872         * lib/openat.h (openat_needs_fchdir): Declare it.
70873
70874 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70877         Problem and fix reported by Pádraig Brady in
70878         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70879
70880 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70883
70884 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * lib/memcoll.c (memcoll): Optimize for the common case where the
70887         arguments are bytewise equal.
70888
70889 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70890
70891         * doc/regexprops-generic.texi: Add a copyright notice.
70892
70893 2006-08-15  Bruno Haible  <bruno@clisp.org>
70894
70895         * modules/tmpdir (License): Change to LGPL.
70896
70897 2006-08-15  Bruno Haible  <bruno@clisp.org>
70898
70899         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70900         module.
70901
70902 2006-08-14  Simon Josefsson  <jas@extundo.com>
70903
70904         * config/srclist.txt: Add gnupload.
70905
70906 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70907
70908         Change copyright notice from LGPL 2 to GPL 2, since that's the
70909         standard form used in the gnulib repository.
70910         * tests/test-lock.c: Likewise.
70911         * tests/test-stdint.c: Likewise.
70912         * tests/test-tls.c: Likewise.
70913
70914         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70915         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70916         Add copyright notice.
70917
70918         * check-module: Add copyright notice.  Output a copyright
70919         notice if "--version" is specified.
70920         * modules/COPYING: New file.
70921         * tests/test-getaddrinfo.c: Add copyright notice.
70922         * tests/test-verify.c: Likewise.
70923
70924 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         Change copyright notice from LGPL 2 to GPL 2, since that's the
70927         standard form used in the gnulib repository.
70928         * lib/lock.c: LGPL -> GPL.
70929         * lib/lock.h: Likewise.
70930         * lib/strnlen1.c: Likewise.
70931         * lib/strnlen1.h: Likewise.
70932         * lib/tls.c: Likewise.
70933         * lib/tls.h: Likewise.
70934         * lib/tmpdir.c: Likewise.
70935
70936         * lib/TODO: Remove; this belongs only in coreutils.
70937
70938 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         Add copyright notices to long-enough files that lack them, since
70941         otherwise the files aren't clearly free.  Use the same notice that
70942         getdate.texi already uses.
70943         * doc/alloca-opt.texi: Add copyright notice.
70944         * doc/alloca.texi: Likewise.
70945         * doc/ctime.texi: Likewise.
70946         * doc/functions.texi: Likewise.
70947         * doc/gcd.texi: Likewise.
70948         * doc/gnulib-tool.texi: Likewise.
70949         * doc/inet_ntoa.texi: Likewise.
70950         * doc/visibility.texi: Likewise.
70951
70952         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70953         * doc/quote.texi: Add copyright notice.
70954
70955         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70956         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70957         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70958         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70959         is now obsolete, and give a pointer to the Sun list.
70960         Add copyright notice.
70961
70962 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * config/srclistvars.sh: Add copyright notice.
70965
70966 2006-08-14  Eric Blake  <ebb9@byu.net>
70967
70968         Import the following change from libc:
70969
70970         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70971
70972         Upstream bug 2997.
70973         * lib/misc/error.c: Add space between program name and message if file
70974         name is missing.
70975
70976 2006-08-12  Karl Berry  <karl@gnu.org>
70977
70978         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70979         remove, these originate in gnulib now.
70980
70981 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70982
70983         * doc/Makefile (standards.info standards.html standards.dvi):
70984         Also depend on make-stds.texi.
70985
70986 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70989         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70990
70991         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70992         in wchar_t.  Problem reported by Eric Blake.
70993
70994         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70995         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70996         Also, help the compiler to keep LEN in a register.
70997
70998 2006-08-11  Eric Blake  <ebb9@byu.net>
70999
71000         * users.txt: Sort.  Add tar.
71001
71002 2006-08-11  Bruno Haible  <bruno@clisp.org>
71003
71004         * users.txt: New file.
71005
71006 2006-08-11  Bruno Haible  <bruno@clisp.org>
71007
71008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71009         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71010
71011 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * modules/snprintf (Depends-on): Remove minmax.
71014         (Maintainer): Add self and Bruno.
71015
71016 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71019         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71020         (EOVERFLOW): Define if the system does not.
71021         Do not include "minmax.h"; it wasn't used.
71022         (snprintf): Don't assume size_t promotes to an unsigned type.
71023         Fix bug when generated string was too long for the buffer: the
71024         buffer's contents are supposed to be the initial prefix of the
71025         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71026         exceeds INT_MAX; do the check ourselves.
71027
71028         Import the following changes from libc:
71029
71030         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71031
71032         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71033         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71034         set wc to the byte which couldn't be converted.
71035         (re_string_reconstruct): Don't clear valid_raw_len before calling
71036         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71037         tip_context using re_string_context_at.
71038
71039         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71040
71041         * lib/posix/regex.h: g++ still cannot handled [restrict].
71042
71043         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71044
71045         * lib/posix/regex.h: Remove special handling for VMS.
71046
71047 2006-08-10  Jim Meyering  <jim@meyering.net>
71048
71049         * modules/same-inode: New module.
71050         * modules/dev-ino: New module.
71051         * modules/cycle-check: Depend on these modules, rather than simply
71052         including their .h files.
71053         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71054         required via m4/cycle-check.m4.
71055         * modules/same: Depend on new same-inode module, rather than
71056         including same-inode.h.
71057         * modules/chdir-safer: New file.
71058
71059         * modules/chown (Depends-on): Add stat-macros.
71060
71061 2006-08-10  Jim Meyering  <jim@meyering.net>
71062
71063         * m4/cycle-check.m4: New file.
71064         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71065         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71066
71067 2006-08-10  Eric Blake  <ebb9@byu.net>
71068
71069         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71070         in from original proposal.
71071
71072 2006-08-10  Eric Blake  <ebb9@byu.net>
71073         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71074
71075         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71076         namespace.
71077
71078 2006-08-10  Bruno Haible  <bruno@clisp.org>
71079
71080         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71081         as well.
71082
71083 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         Sync from coreutils.
71086
71087         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71088
71089         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71090         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71091
71092 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71093
71094         * modules/restrict: Remove; no longer needed now that we assume
71095         Autoconf 2.59 or later.
71096         * MODULES.html.sh: Remove 'restrict'.
71097         * modules/argp (Depends-on): Remove 'restrict'.
71098         * modules/base64 (Depends-on): Likewise.
71099         * modules/gc (Depends-on): Likewise.
71100         * modules/getaddrinfo (Depends-on): Likewise.
71101         * modules/glob (Depends-on): Likewise.
71102         * modules/inet_ntop (Depends-on): Likewise.
71103         * modules/inet_pton (Depends-on): Likewise.
71104         * modules/memxor (Depends-on): Likewise.
71105         * modules/regex (Depends-on): Likewise.
71106         * modules/strtok_r (Depends-on): Likewise.
71107         * modules/time_r (Depends-on): Likewise.
71108
71109 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71112         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71113         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71114         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71115         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71116         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71117         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71118         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71119
71120         Merge from coreutils.
71121         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71122         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71124         * m4/time_r.m4 (gl_TIME_R): Likewise.
71125
71126 2006-08-09  Karl Berry  <karl@gnu.org>
71127
71128         * config/srclist.txt: no more gettext-tools, per Bruno.
71129
71130 2006-08-08  Eric Blake  <ebb9@byu.net>
71131
71132         * modules/verror: New module.
71133         * MODULES.html.sh: Document it.
71134
71135 2006-08-08  Eric Blake  <ebb9@byu.net>
71136
71137         * lib/verror.h, lib/verror.c: New files.
71138
71139 2006-08-08  Eric Blake  <ebb9@byu.net>
71140
71141         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71142         verror_at_line output complies with GNU Coding Standards even when
71143         file is NULL.
71144
71145 2006-08-07  Bruno Haible  <bruno@clisp.org>
71146
71147         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71148         versions of AIX.
71149         Reported by Ralf Wildenhues.
71150
71151 2006-08-07  Bruno Haible  <bruno@clisp.org>
71152
71153         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71154         in an AC_DEFUN. Needed so that the autoconf snippets can use
71155         AC_REQUIRE.
71156
71157 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71158
71159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71160         Initialize pkgdata_DATA.
71161         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71162         overriding it.
71163
71164 2006-08-06  Eric Blake  <ebb9@byu.net>
71165
71166         * lib/error.h: Fold in some upstream changes from glibc.
71167         * lib/error.c: Likewise.
71168
71169 2006-08-04  Bruno Haible  <bruno@clisp.org>
71170
71171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71172         Make the mostlyclean-local rule depend on mostlyclean-generic.
71173         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71174
71175 2006-07-31  Bruno Haible  <bruno@clisp.org>
71176
71177         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71178         <stdlib.h>, <string.h>.
71179
71180 2006-07-30  Bruno Haible  <bruno@clisp.org>
71181
71182         * modules/readlink (License): Change to LGPL.
71183
71184 2006-07-30  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71187         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71188         set PKGDATADIR to point to it.
71189
71190 2006-07-30  Bruno Haible  <bruno@clisp.org>
71191
71192         * modules/csharpexec (configure.ac): Comment out macro invocation.
71193         * modules/javaexec (configure.ac): Likewise.
71194         * modules/javacomp-script (configure.ac): Likewise.
71195
71196         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71197
71198 2006-07-30  Bruno Haible  <bruno@clisp.org>
71199
71200         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71201         linked-list.
71202
71203 2006-07-30  Bruno Haible  <bruno@clisp.org>
71204
71205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71206
71207 2006-07-30  Bruno Haible  <bruno@clisp.org>
71208
71209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71210         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71211         get removed.
71212
71213 2006-07-29  Bruno Haible  <bruno@clisp.org>
71214
71215         Make it possible for gnulib-tool to work with locally modified or
71216         augmented gnulib repositories.
71217         * gnulib-tool (func_usage): Document --local-dir option.
71218         (local_gnulib_dir): New variable.
71219         Handle --local-dir option.
71220         (func_lookup_file): New function.
71221         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71222         (func_get_description, func_get_filelist, func_get_description,
71223         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71224         func_get_automake_snippet, func_get_include_directive,
71225         func_get_license, func_get_maintainer): Use func_lookup_file.
71226         (func_import, func_create_testdir): Use func_lookup_file.
71227
71228 2006-07-29  Bruno Haible  <bruno@clisp.org>
71229
71230         * modules/setenv (Depends-on): Add unistd.
71231
71232 2006-07-29  Bruno Haible  <bruno@clisp.org>
71233
71234         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71235
71236 2006-07-29  Bruno Haible  <bruno@clisp.org>
71237
71238         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71239
71240 2006-07-29  Bruno Haible  <bruno@clisp.org>
71241
71242         * gnulib-tool (import, update): If there is no Makefile.am, look at
71243         aclocal.m4, instead of bailing out.
71244
71245 2006-07-29  Bruno Haible  <bruno@clisp.org>
71246
71247         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71248         Categorize the options by when they are useful.
71249
71250 2006-07-29  Bruno Haible  <bruno@clisp.org>
71251
71252         * gnulib-tool (func_usage): Document option --no-libtool.
71253         Handle option --no-libtool.
71254         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71255         for changed semantics of $libtool variable.
71256         (func_import): Likewise. If libtool is not used, show this through
71257         an option --no-libtool.
71258         (func_create_testdir): Update.
71259
71260 2006-07-29  Bruno Haible  <bruno@clisp.org>
71261
71262         * gnulib-tool (func_import): Extend error message about missing
71263         --doc-base.
71264
71265 2006-07-29  Bruno Haible  <bruno@clisp.org>
71266
71267         * gnulib-tool (func_import): Don't create the $docbase directory if
71268         there is no file to store there.
71269
71270 2006-07-29  Bruno Haible  <bruno@clisp.org>
71271
71272         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71273         relevant, look for configure.ac there, not in the current directory.
71274         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71275
71276 2006-07-29  Bruno Haible  <bruno@clisp.org>
71277
71278         * gnulib-tool (SORT): New variable.
71279         (func_usage): Undocument --assume-autoconf option.
71280         Remove --assume-autoconf option handling.
71281         (autoconf_minversion): Determine from the contents of configure.ac.
71282         (func_import): Remove autoconf_minversion handling.
71283         Suggested by Eric Blake.
71284
71285 2006-07-29  Bruno Haible  <bruno@clisp.org>
71286
71287         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71288
71289 2006-07-29  Bruno Haible  <bruno@clisp.org>
71290
71291         * config/srclist.txt (*setenv.[ch]): Remove rules.
71292
71293 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71294
71295         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71296
71297 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71298
71299         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71300         arpa/inet.h.
71301
71302 2006-07-28  Simon Josefsson  <jas@extundo.com>
71303
71304         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71305         * modules/inet_pton (Depends-on): Likewise.
71306
71307 2006-07-28  Simon Josefsson  <jas@extundo.com>
71308
71309         * m4/netinet_in_h.m4: New file.
71310
71311 2006-07-28  Simon Josefsson  <jas@extundo.com>
71312
71313         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71314         #include's.
71315
71316 2006-07-28  Simon Josefsson  <jas@extundo.com>
71317
71318         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71319         #include's.
71320
71321 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71324         setgid on directories only if they set these bits.
71325         * lib/modechange.h: Remove obsolete comment about masks.
71326
71327 2006-07-28  Eric Blake  <ebb9@byu.net>
71328
71329         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71330         macro expansion.
71331
71332 2006-07-28  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71335
71336 2006-07-28  Bruno Haible  <bruno@clisp.org>
71337
71338         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71339
71340 2006-07-28  Bruno Haible  <bruno@clisp.org>
71341
71342         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71343         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71344         Define fallbacks.
71345         Avoids link error on FreeBSD 4.x.
71346         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71347
71348         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71349         encoding.
71350         * lib/mbswidth.c (iswcntrl): Likewise.
71351
71352 2006-07-27  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71355         test.
71356
71357 2006-07-27  Bruno Haible  <bruno@clisp.org>
71358
71359         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71360         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71361         defined.
71362
71363 2006-07-26  Eric Blake  <ebb9@byu.net>
71364
71365         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71366
71367 2006-07-26  Eric Blake  <ebb9@byu.net>
71368
71369         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71370         like mingw that lack mkstemp.
71371         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71372         avoid compilation warning on mingw.
71373
71374 2006-07-26  Bruno Haible  <bruno@clisp.org>
71375
71376         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71377         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71378         INT_FAST*_MIN, INTPTR_MIN.
71379
71380 2006-07-25  Bruno Haible  <bruno@clisp.org>
71381
71382         * modules/version-etc (Depends-on): Add stdarg.
71383
71384 2006-07-25  Bruno Haible  <bruno@clisp.org>
71385
71386         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71387         complex commands.
71388
71389 2006-07-25  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71392         defined in <stdarg.h> or config.h.
71393
71394 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71397         (gl_STDIO_SAFER): Remove.
71398
71399 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71400
71401         * MODULES.html.sh (File stream based Input/Output):
71402         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71403         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71404         * modules/fopen-safer, modules/tmpfile-safer: New files.
71405         * modules/stdio-safer: Remove.
71406
71407 2006-07-24  Bruno Haible  <bruno@clisp.org>
71408
71409         * modules/tmpdir: New file.
71410         * MODULES.html.sh (File system functions): Add it.
71411
71412 2006-07-24  Bruno Haible  <bruno@clisp.org>
71413
71414         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71415         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71416
71417 2006-07-24  Bruno Haible  <bruno@clisp.org>
71418
71419         * modules/clean-temp: New file.
71420
71421 2006-07-24  Bruno Haible  <bruno@clisp.org>
71422
71423         * m4/tmpdir.m4: New file, from GNU gettext.
71424
71425 2006-07-24  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/tmpdir.h: New file, from GNU gettext.
71428         * lib/tmpdir.c: New file, from GNU gettext.
71429
71430 2006-07-24  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/clean-temp.h: New file, from GNU gettext.
71433         * lib/clean-temp.c: New file, from GNU gettext.
71434
71435 2006-07-23  Eric Blake  <ebb9@byu.net>
71436
71437         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71438         (Depends-on): Add binary-io.
71439
71440 2006-07-23  Eric Blake  <ebb9@byu.net>
71441
71442         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71443
71444 2006-07-23  Eric Blake  <ebb9@byu.net>
71445
71446         * lib/tmpfile-safer.c: New file.
71447         * lib/stdio-safer.h (fopen_safer): Add prototype.
71448         * lib/stdio--.h (tmpfile): Make safer.
71449
71450 2006-07-23  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71453         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71454         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71455         gl_linked_remove_at): Use it.
71456
71457 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71458         and Simon Josefsson <jas@extundo.com>
71459
71460         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71461
71462         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71463
71464 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * modules/close-stream: New file.
71467         * modules/closeout (Description): Make it clear that it exits
71468         with a diagnostic on error.
71469         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71470         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71471
71472 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71473
71474         * m4/close-stream.m4: New file.
71475
71476 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * lib/close-stream.c, lib/close-stream.h: New files.
71479
71480 2006-07-22  Bruno Haible  <bruno@clisp.org>
71481
71482         Merge from GNU gettext 0.15.
71483
71484         2006-05-01  Bruno Haible  <bruno@clisp.org>
71485
71486                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71487
71488         2006-07-22  Bruno Haible  <bruno@clisp.org>
71489
71490                 * modules/javaversion: New file.
71491                 * MODULES.html.sh (Java): Add javaversion.
71492
71493         2006-03-12  Bruno Haible  <bruno@clisp.org>
71494
71495                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71496
71497         2005-12-04  Bruno Haible  <bruno@clisp.org>
71498
71499                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71500                 (untested).
71501
71502         2006-06-21  Bruno Haible  <bruno@clisp.org>
71503
71504                 Avoid warnings from recent versions of mcs.
71505                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71506                 -o, -L, -r any more. Use options documented since mcs-1.0
71507                 instead. Similarly for -g.
71508
71509         2005-12-04  Bruno Haible  <bruno@clisp.org>
71510
71511                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71512                 .resources, not .resource.
71513
71514         2005-07-09  Bruno Haible  <bruno@clisp.org>
71515
71516                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71517                 add a .dll suffix.
71518                 Reported by Mark Junker <mjscod@gmx.de>.
71519
71520         2006-07-22  Bruno Haible  <bruno@clisp.org>
71521
71522                 * modules/gettext: Upgrade to gettext-0.15.
71523                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71524                 m4/visibility.m4.
71525                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71526
71527 2006-07-22  Bruno Haible  <bruno@clisp.org>
71528
71529         Merge from GNU gettext 0.15.
71530
71531         2006-03-25  Bruno Haible  <bruno@clisp.org>
71532
71533                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71534
71535         2006-07-21  Bruno Haible  <bruno@clisp.org>
71536
71537                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71538                 "1.1".
71539
71540         2006-05-09  Bruno Haible  <bruno@clisp.org>
71541
71542                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71543                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71544                 for the conftestver execution.
71545
71546         2006-05-01  Bruno Haible  <bruno@clisp.org>
71547
71548                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71549                 optional target-version argument. Verify that the compiler
71550                 groks source of the specified source-version, or add -source
71551                 option as necessary. Verify that the compiler produces
71552                 bytecode in the specified target-version, or add -target and
71553                 -source options as necessary. Make the result of the test
71554                 available as variable CONF_JAVAC. Also log error output in
71555                 config.log.
71556
71557         2006-03-11  Bruno Haible  <bruno@clisp.org>
71558
71559                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71560
71561         2006-05-09  Bruno Haible  <bruno@clisp.org>
71562
71563                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71564                 CLASSPATH_SEPARATOR to a semicolon.
71565
71566         2006-03-12  Bruno Haible  <bruno@clisp.org>
71567
71568                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71569                 available as variable CONF_JAVA, for subsequent autoconf
71570                 tests. Also log error output in config.log.
71571
71572         2006-07-19  Bruno Haible  <bruno@clisp.org>
71573
71574                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71575                 that getline works on glibc2 systems. Needed to avoid trouble
71576                 in relocatable.c.
71577                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71578
71579         2005-12-04  Bruno Haible  <bruno@clisp.org>
71580
71581                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71582                 launcher (untested).
71583
71584         2005-12-04  Bruno Haible  <bruno@clisp.org>
71585
71586                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71587
71588         2006-07-22  Bruno Haible  <bruno@clisp.org>
71589
71590                 * gettext.m4: Update from GNU gettext-0.15.
71591                 * nls.m4: Likewise.
71592                 * po.m4: Likewise.
71593                 * inttypes-pri.m4: Likewise.
71594                 * inttypes-h.m4: Renamed from inttypes.m4.
71595                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71596
71597 2006-07-22  Bruno Haible  <bruno@clisp.org>
71598
71599         Merge from GNU gettext 0.15.
71600
71601         2005-07-05  Bruno Haible  <bruno@clisp.org>
71602
71603                 * printf-args.c (printf_fetchargs): Work around broken
71604                 definition of wint_t on mingw.
71605
71606         2005-02-12  Bruno Haible  <bruno@clisp.org>
71607
71608                 * xallocsa.h: Add extern "C" for C++.
71609
71610         2006-05-17  Bruno Haible  <bruno@clisp.org>
71611
71612                 Cygwin portability.
71613                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71614
71615         2006-04-30  Bruno Haible  <bruno@clisp.org>
71616
71617                 * progreloc.c: Include <mach-o/dyld.h> if available.
71618                 (find_executable): Use _NSGetExecutablePath when possible.
71619
71620         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71621
71622                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71623                 function.
71624
71625         2005-12-29  Bruno Haible  <bruno@clisp.org>
71626
71627                 * progreloc.c (set_program_name_and_installdir): Fix
71628                 compilation error.
71629
71630         2005-12-04  Bruno Haible  <bruno@clisp.org>
71631
71632                 Cygwin portability.
71633                 * progreloc.c: Include <windows.h> also on Cygwin.
71634                 (find_executable): Add support for Cygwin.
71635                 (set_program_name_and_installdir): Handle also platforms with
71636                 nonempty EXEEXT.
71637
71638         2006-07-11  Bruno Haible  <bruno@clisp.org>
71639
71640                 * javacomp.c: Fix a comment.
71641                 Reported by Jim Meyering.
71642
71643         2006-04-30  Bruno Haible  <bruno@clisp.org>
71644
71645                 * javacomp.h (compile_java_class): Add source_version,
71646                 target_version arguments.
71647                 * javacomp.c: Rewritten to choose only a compiler that
71648                 respects the specified source_version and target_version.
71649
71650         2006-06-27  Bruno Haible  <bruno@clisp.org>
71651
71652                 Assume correct S_ISDIR macro.
71653                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71654
71655         2006-07-22  Bruno Haible  <bruno@clisp.org>
71656
71657                 * javaversion.h: New file, from GNU gettext.
71658                 * javaversion.c: New file, from GNU gettext.
71659                 * javaversion.java: New file, from GNU gettext.
71660                 * javaversion.class: New file, from GNU gettext.
71661
71662         2006-05-17  Bruno Haible  <bruno@clisp.org>
71663
71664                 Cygwin portability.
71665                 * javaexec.c (execute_java_class): Test for jview program
71666                 also on Cygwin.
71667
71668         2006-04-09  Bruno Haible  <bruno@clisp.org>
71669
71670                 * fatal-signal.c: Don't include string.h.
71671                 (at_fatal_signal): Use a copying loop instead of memcpy.
71672
71673         2005-12-04  Bruno Haible  <bruno@clisp.org>
71674
71675                 * csharpexec.c: Add support for 'clix' launcher (untested).
71676                 (execute_csharp_using_sscli): New function.
71677                 (execute_csharp_program): Call it.
71678
71679         2006-06-21  Bruno Haible  <bruno@clisp.org>
71680
71681                 Avoid warnings from recent versions of mcs.
71682                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71683                 -o, -L, -r any more. Use options documented since mcs-1.0
71684                 instead. Similarly for -g.
71685
71686         2005-07-09  Bruno Haible  <bruno@clisp.org>
71687
71688                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71689                 add a .dll suffix.
71690                 Reported by Mark Junker <mjscod@gmx.de>.
71691
71692         2006-06-17  Bruno Haible  <bruno@clisp.org>
71693
71694                 * config.charset: Update for NetBSD 3.0.
71695
71696         2006-05-17  Bruno Haible  <bruno@clisp.org>
71697
71698                 Cygwin portability.
71699                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71700
71701         2006-05-16  Bruno Haible  <bruno@clisp.org>
71702
71703                 * localcharset.c [CYGWIN]: Include <windows.h>.
71704                 (get_charset_aliases): For Cygwin, return the same CPxxx
71705                 aliases list as under WIN32.
71706                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71707                 the environment variables. Fall back to GetACP().
71708
71709         2006-04-05  Bruno Haible  <bruno@clisp.org>
71710
71711                 * config.charset: Update Juan Manuel Guerrero's address.
71712
71713         2005-02-12  Bruno Haible  <bruno@clisp.org>
71714
71715                 * allocsa.h: Add extern "C" for C++.
71716
71717         2005-02-10  Bruno Haible  <bruno@clisp.org>
71718
71719                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71720                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71721
71722         2006-07-22  Bruno Haible  <bruno@clisp.org>
71723
71724                 * gettext.h: Update to GNU gettext-0.15.
71725
71726 2006-07-22  Bruno Haible  <bruno@clisp.org>
71727
71728         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71729         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71730         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71731
71732 2006-07-21  Eric Blake  <ebb9@byu.net>
71733
71734         * modules/stdlib-safer: New file.
71735         * MODULES.html.sh (File stream based Input/Output): Add
71736         stdlib-safer.
71737
71738 2006-07-21  Eric Blake  <ebb9@byu.net>
71739
71740         * lib/stdlib-safer.h: New file from coreutils, required by
71741         stdlib--.h.
71742
71743 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71746
71747 2006-07-20  Bruno Haible  <bruno@clisp.org>
71748
71749         * gnulib-tool: Recognize new option --assume-autoconf.
71750         (autoconf_minversion): New variable.
71751         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71752
71753 2006-07-20  Bruno Haible  <bruno@clisp.org>
71754
71755         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71756
71757 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71758
71759         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71760         Reindent and repaginate.
71761
71762 2006-07-19  Derek Price  <derek@ximbiot.com>
71763
71764         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71765         Correct grammar.
71766
71767 2006-07-17  Bruno Haible  <bruno@clisp.org>
71768
71769         * modules/list: New file.
71770         * modules/array-list: New file.
71771         * modules/carray-list, modules/carray-list-tests: New files.
71772         * modules/linked-list, modules/linked-list-tests: New files.
71773         * modules/avltree-list, modules/avltree-list-tests: New files.
71774         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71775         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71776         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71777         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71778         * modules/oset: New file.
71779         * modules/array-oset: New file.
71780         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71781         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71782         * tests/test-carray_list.c: New file.
71783         * tests/test-linked_list.c: New file.
71784         * tests/test-avltree_list.c: New file.
71785         * tests/test-rbtree_list.c: New file.
71786         * tests/test-linkedhash_list.c: New file.
71787         * tests/test-avltreehash_list.c: New file.
71788         * tests/test-rbtreehash_list.c: New file.
71789         * tests/test-avltree_oset.c: New file.
71790         * tests/test-rbtree_oset.c: New file.
71791         * MODULES.html.sh (Container data structures): New section.
71792
71793 2006-07-17  Bruno Haible  <bruno@clisp.org>
71794
71795         * m4/gl_list.m4: New file.
71796
71797 2006-07-17  Bruno Haible  <bruno@clisp.org>
71798
71799         * lib/gl_list.h: New file.
71800         * lib/gl_list.c: New file.
71801         * lib/gl_array_list.h: New file.
71802         * lib/gl_array_list.c: New file.
71803         * lib/gl_carray_list.h: New file.
71804         * lib/gl_carray_list.c: New file.
71805         * lib/gl_linked_list.h: New file.
71806         * lib/gl_linked_list.c: New file.
71807         * lib/gl_anylinked_list1.h: New file.
71808         * lib/gl_anylinked_list2.h: New file.
71809         * lib/gl_avltree_list.h: New file.
71810         * lib/gl_avltree_list.c: New file.
71811         * lib/gl_anyavltree_list1.h: New file.
71812         * lib/gl_anyavltree_list2.h: New file.
71813         * lib/gl_rbtree_list.h: New file.
71814         * lib/gl_rbtree_list.c: New file.
71815         * lib/gl_anyrbtree_list1.h: New file.
71816         * lib/gl_anyrbtree_list2.h: New file.
71817         * lib/gl_anytree_list1.h: New file.
71818         * lib/gl_anytree_list2.h: New file.
71819         * lib/gl_linkedhash_list.h: New file.
71820         * lib/gl_linkedhash_list.c: New file.
71821         * lib/gl_anyhash_list1.h: New file.
71822         * lib/gl_anyhash_list2.h: New file.
71823         * lib/gl_avltreehash_list.h: New file.
71824         * lib/gl_avltreehash_list.c: New file.
71825         * lib/gl_rbtreehash_list.h: New file.
71826         * lib/gl_rbtreehash_list.c: New file.
71827         * lib/gl_anytreehash_list1.h: New file.
71828         * lib/gl_anytreehash_list2.h: New file.
71829
71830         * lib/gl_oset.h: New file.
71831         * lib/gl_oset.c: New file.
71832         * lib/gl_array_oset.h: New file.
71833         * lib/gl_array_oset.c: New file.
71834         * lib/gl_avltree_oset.h: New file.
71835         * lib/gl_avltree_oset.c: New file.
71836         * lib/gl_rbtree_oset.h: New file.
71837         * lib/gl_rbtree_oset.c: New file.
71838         * lib/gl_anytree_oset.h: New file.
71839
71840 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         * m4/mkancesdirs.m4: New file.
71843         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71844         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71845         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71846         it.
71847
71848 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71851         * lib/mkancesdirs.h: New files.
71852         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71853         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71854         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71855         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71856         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71857         callers changed.  Revamp internals significantly, by not
71858         attempting to create directories that are temporarily more
71859         permissive than the final results.  Do not attempt to use
71860         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71861         This removes some race conditions, fixes some bugs, and simplifies
71862         things.  Use new dirchownmod function to do owner and mode changes.
71863         * lib/mkdir-p.h: Likewise.
71864         * lib/modechange.c (octal_to_mode): New function.
71865         (struct mode_change): New member mentioned.
71866         (make_node_op_equals): New arg mentioned.  All callers changed.
71867         (mode_compile): Keep track of which mode bits the user has explicitly
71868         mentioned.
71869         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71870         New arg PMODE_BITS, to keep track of which mode bits the user
71871         mentioned; it treats S_ISUID and S_ISGID speciall.
71872         All callers changed.
71873         * lib/modechange.h: Likewise.
71874
71875 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * MODULES.html.sh: Add mkancestors.
71878         * modules/mkancesdirs: New module.
71879         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71880         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71881         The chdir-safer and afs files are now orphans; I'll remove them
71882         unless someone speaks up.
71883         Add lib/dirchownmod.c, lib/dirchownmod.h.
71884         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71885         Add lchown, mkancesdirs.
71886         (Maintainer): Add self.
71887
71888 2006-07-15  Karl Berry  <karl@gnu.org>
71889
71890         * gnulib-tool: help message wording/arrangement.
71891
71892 2006-07-14  Simon Josefsson  <jas@extundo.com>
71893
71894         * doc/gnulib.texi (Libtool and Windows): New section.
71895
71896 2006-07-12  Simon Josefsson  <jas@extundo.com>
71897
71898         * modules/gendocs (License): Fix license, approved by Karl.
71899
71900 2006-07-12  Eric Blake  <ebb9@byu.net>
71901
71902         * MODULES.html.sh: Add gendocs.
71903
71904 2006-07-11  Eric Blake  <ebb9@byu.net>
71905
71906         * modules/fdl: New module, to install doc/fdl.texi.
71907         * MODULES.html.sh: Add new section for documentation modules.
71908         * gnulib-tool: Avoid space-tab.
71909         (--doc-base): New option, to manage files from doc.
71910
71911 2006-07-11  Eric Blake  <ebb9@byu.net>
71912
71913         * m4/absolute-header.m4: Fix comments to match recent change.
71914
71915 2006-07-11  Eric Blake  <ebb9@byu.net>
71916
71917         * gnulib-tool: List --doc-base before --tests-base.
71918
71919 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71920
71921         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71922
71923 2006-07-11  Bruno Haible  <bruno@clisp.org>
71924
71925         * README: Mention where to put documentation.
71926
71927 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71928
71929         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71930
71931 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71934         to stdint.m4.
71935
71936 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71939         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71940         "no/such/file/stdint.h" when there is no such file, so that
71941         the resulting C code can be parsed by dodgy compilers.
71942         Problems reported by Bob Proulx.
71943
71944 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71945
71946         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71947         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71948         macros into the GNU _D_EXACT_NAMLEN.
71949         * lib/savedir.c:  Likewise.
71950         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71951
71952 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71953         and Paul Eggert  <eggert@cs.ucla.edu>
71954
71955         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71956         * m4/savedir.m4:
71957         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71958         macros into the GNU _D_EXACT_NAMLEN.
71959
71960 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71963         around the absolute name, to work around a problem with the HP-UX
71964         11.23 native C compiler, reported by Bob Proulx.
71965
71966 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * doc/maintain.texi, make-stds.texi: Sync from
71969         <http://savannah.gnu.org/projects/gnustandards>.
71970
71971 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71974
71975 2006-07-09  Jim Meyering  <jim@meyering.net>
71976
71977         * m4/glob.m4: Remove a doubled word in a comment.
71978
71979 2006-07-09  Jim Meyering  <jim@meyering.net>
71980
71981         * lib/argp-pv.c: Remove a doubled word in a comment.
71982         * lib/check-version.c (check_version): Likewise.
71983         * lib/javacomp.c (compile_java_class): Likewise.
71984
71985 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71988         for the benefit of people using Autoconf 2.60.  If you want to
71989         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71990         (or m4/onceonly.m4, if pre-2.57) manually.
71991
71992 2006-07-08  Jim Meyering  <jim@meyering.net>
71993
71994         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71995         comment.
71996         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71997         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71998         comment.
71999
72000 2006-07-08  Jim Meyering  <jim@meyering.net>
72001
72002         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72003
72004 2006-07-07  Simon Josefsson  <jas@extundo.com>
72005
72006         * tests/test-crc.c: Change expected crc value, the test vector
72007         were probably computed using the old broken crc.c?
72008
72009 2006-07-06  Simon Josefsson  <jas@extundo.com>
72010
72011         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72012         now the canonical place for the M4 file).
72013
72014         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72015         from the sys_socket dependency now.
72016
72017         * modules/inet_pton (Files): Ditto.
72018
72019         * modules/inet_ntop (Files): Ditto.
72020
72021 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72022
72023         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72024         not gl_PREREQ_GETUSERSHELL.
72025
72026 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72027
72028         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72029         with only one argument, for Autoconf 2.60.
72030         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72031         expand to nothing, so add a shell command to avoid syntax error.
72032         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72033
72034 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72035
72036         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72037
72038 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72041         no longer needed.  Check for isblank decl.
72042         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72043         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72044         of existence.
72045
72046 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * lib/getloadavg.c: Use __VMS, not VMS.
72049         * lib/getopt.c: Likewise.
72050         * lib/getpagesize.h: Likewise.
72051         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72052         and probably does not work.
72053
72054 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * lib/.cppi-disable: Add wcwidth.
72057         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72058         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72059         (ISGRAPH): Remove.  All uses changed to isgraph.
72060         (FOLD) [!defined _LIBC]: Remove special case.
72061         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72062         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72063         HAVE_ISBLANK.
72064         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72065         case.
72066
72067 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72068
72069         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72070         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72071         brackets.  Other minor changes to suppress some compiler
72072         warnings.
72073
72074 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72075         and Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72078         of invoking obsolescent AC_HEADER_DIRENT macro.
72079         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72080         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72081         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72083         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72084         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72085         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72086         * m4/readdir.m4: Remove; no longer needed.
72087
72088 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72089         and Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72092         Don't worry about this obsolete case any more.
72093         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72094         directories.
72095         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72096         worry about this obsolete case any more.
72097         * lib/fts.c: Likewise.
72098         * lib/getcwd.c: Likewise.
72099         * lib/glob.h: Likewise.
72100         * lib/savedir.c: Likewise.
72101
72102 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72105         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72106         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72107         needed.
72108         All uses removed.
72109         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72110         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72111         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72112         needed.
72113         * m4/getdate.m4 (gl_GETDATE): Likewise.
72114         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72115         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72116         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72117         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72118         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72119         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72120         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72121         needed.
72122
72123 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         * lib/memcasecmp.c: Include <limits.h>.
72126         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72127         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72128         Don't assume isdigit succeeds only on '0' through '9'.
72129
72130 2006-07-05  Eric Blake  <ebb9@byu.net>
72131
72132         * modules/getaddrinfo (Depends-on): Add snprintf.
72133
72134 2006-07-05  Eric Blake  <ebb9@byu.net>
72135
72136         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72137         to avoid 'header present but could not be compiled' on cygwin.
72138
72139 2006-07-05  Eric Blake  <ebb9@byu.net>
72140
72141         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72142         missing from netdb.h.
72143         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72144
72145 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72146
72147         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72148         no longer needed.
72149         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72150         * m4/getdate.m4 (gl_GETDATE): Likewise.
72151         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72152         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72153         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72154         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72155         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72156
72157 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72158
72159         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72160         All uses of is_space replaced by isspace.
72161         * lib/exit.h: Don't talk about STDC_HEADERS.
72162         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72163         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72164         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72165         replaced by isprint etc.
72166         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72167         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72168         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72169         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72170         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72171         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72172
72173 2006-07-05  Bruno Haible  <bruno@clisp.org>
72174
72175         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72176         the function exists, before testing against AIX.
72177         Reported by Martin Lambers <marlam@marlam.de>.
72178
72179 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72182         From Mark D. Baushke.
72183
72184 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72187         to the absolute name, not just one, to bypass Sun C 5.8's
72188         "warning: #include of /usr/include/... may be non-portable".
72189
72190 2006-07-04  Eric Blake  <ebb9@byu.net>
72191
72192         * modules/dirname-tests: New test module.
72193         * tests/test-dirname.c: New file, replacing dirname.c
72194         TEST_DIRNAME section that was recently deleted.
72195
72196 2006-07-04  Bruno Haible  <bruno@clisp.org>
72197
72198         Assume ANSI C header files and <ctype.h> functions.
72199         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72200         (mbsnwidth): Use isprint, iscntrl instead.
72201
72202 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         Merge from coreutils.
72205         * MODULES.html.sh: Add xstrtold.
72206         * modules/xstrtold: New file.
72207         * modules/cycle-check (Files): Add lib/same-inode.h.
72208         * modules/dirname (Files): Add m4/double-slash-root.m4.
72209         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72210         * modules/mkdir-p (Files): Add lib/same-inode.h.
72211         * modules/same (Files): Add lib/same-inode.h.
72212
72213 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72216         This is to keep the terminology clean; POSIX talks about
72217         "absolute pathnames", not "full pathnames", but the GNU
72218         Coding Standards say to use "path" for something else;
72219         so use "absolute" to keep both sides happy.
72220         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72221         Set gl_absolute_header, not gl_full_header_path.
72222         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72223         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72224         All uses changed.
72225
72226         Merge from coreutils.
72227
72228         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72231         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72232         want to require the building of c-strtod.o.
72233         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72234         needs -lm directly.
72235         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72236
72237         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72240         --as-needed option if available.  Problem reported by Albert Chin in
72241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72242         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72243         cc merely issues a bunch of annoying warnings for --as-needed
72244         (this problem was reported by Bob Proulx).  Also, try linking with
72245         -lm to detect a bug in binutils 2.16 (this problem was reported
72246         by Ralf Wildenhues).
72247
72248         2006-06-18  Jim Meyering  <jim@meyering.net>
72249
72250         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72251         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72252         macro.
72253         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72254         also check for glibc-2.4's abort-inducing bug.
72255
72256         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72257         Low-probability clean-up should be to use rmdir to get rid of
72258         the just-created directory, not unlink.
72259
72260         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72261         configure fail, and request a bug report to inform us about it.
72262         Add a comment that, barring reports to the contrary, in 2007 we'll
72263         assume ftruncate is universally available.
72264
72265         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72266
72267         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72268
72269         2006-03-12  Jim Meyering  <jim@meyering.net>
72270
72271         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72272         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72273         * m4/same.m4 (gl_SAME): Likewise.
72274         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72275
72276         2006-03-11  Eric Blake  <ebb9@byu.net>
72277
72278         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72279         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72280         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72281         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72282
72283 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72286         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72287         reported by Mark D. Baushke, one in
72288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72289
72290         Merge from coreutils.
72291
72292         * lib/.cppi-disable: Add stdint_.h.
72293         * lib/.cvsignore: Add stdint.h.
72294
72295         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72298         both double and long double versions.
72299         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72300         * lib/xstrtold.c: New file.
72301         * lib/xstrtod.h (xstrtold): New decl.
72302
72303         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * lib/filemode.c (setst): Remove.
72306         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72307         (arguably) clearer, and the generated code is a bit smaller on my
72308         Debian GNU/Linux stable x86 host.
72309
72310         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72311
72312         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72313         Assume that filemode.h includes sys/types.h and sys/stat.h.
72314         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72315         (ftypelet): Reorder to put common cases first, for efficiency.
72316         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72317         to do 'M'.
72318         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72319         of 10, for compatibility with FreeBSD.  All callers changed.
72320         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72321         types that can't be deduced solely from st_mode.  First arg is now a
72322         const pointer.
72323         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72324         (strmode): Renamed from mode_string.
72325         (filemodestring): New decl.
72326         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72327         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72328         needed.
72329         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72330
72331         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72334         fsusage.h now does that.  Include fsusage.h first, to test interface.
72335         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72336         at most one method (the old code could have generated decls that
72337         didn't conform to C89, not that this was ever exercised).
72338         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72339
72340         2006-03-19  Jim Meyering  <jim@meyering.net>
72341
72342         Work even in a chroot where d_ino values for entries in "/"
72343         don't match the stat.st_ino values for the same names.
72344         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72345         number, iterate through all entries again, using lstat instead.
72346         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72347         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72348
72349         * lib/getcwd.c (__getcwd): Clarify a comment.
72350         Use memcpy in place of a call to strcpy.
72351
72352         2006-03-12  Jim Meyering  <jim@meyering.net>
72353
72354         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72355         matches that of the current directory (which we're about to chdir ".."
72356         out of), then save the dev-ino of the parent, instead.
72357
72358         * lib/same-inode.h (SAME_INODE): New file/macro.
72359         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72360         Include "same-inode.h", instead.
72361         * lib/same.c: Likewise.
72362         * lib/cycle-check.h: Include "same-inode.h".
72363         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72364         * lib/cycle-check.c (SAME_INODE): Remove definition.
72365         * lib/root-dev-ino.h: Include "same-inode.h".
72366
72367         2006-03-11  Eric Blake  <ebb9@byu.net>
72368
72369         * lib/same.c (same_name): s/base_name/last_component/
72370         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72371         * lib/filenamecat.c (file_name_concat): Likewise.
72372
72373         2006-03-11  Eric Blake  <ebb9@byu.net>,
72374                     Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72377         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72378         drive prefix.
72379         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72380         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72381         (last_component): New method.
72382         * lib/dirname.c (dir_len): Determine when drive letters need a
72383         subsequent slash.  Preserve // when it is special.
72384         (dir_name): Don't append dot when drive letter is absolute.
72385         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72386         * lib/basename.c (base_name): New semantics - malloc the result.
72387         Preserve // when it is special.  Preserve relative files that look
72388         like drive letters.
72389         (base_len): Preserve // when it is special.
72390         (last_component): New method, similar to old base_name semantics.
72391         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72392         base_name.  Strip redundant slashes from ///.
72393
72394 2006-07-03  Jim Meyering  <jim@meyering.net>
72395
72396         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72397         macro is used before the first cycle_check call.
72398
72399 2006-07-03  Eric Blake  <ebb9@byu.net>
72400
72401         * modules/dirname (Depends-on): Add xstrndup.
72402
72403 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72406         test cases, so that config.log is a bit easier to follow.
72407
72408 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72411         both are 64 bits, since this seems to be the tradition, and this
72412         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72413         we ever run into a host that prefers long long to long in this
72414         case, we'll need another configure-time test.  Problem reported by
72415         Jim Meyering.
72416
72417 2006-07-02  Eric Blake  <ebb9@byu.net>
72418
72419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72420
72421 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * modules/inttypes (Depends-on): No longer depends on stdint.
72424         * modules/stdint (Description): Say more about assumptions.
72425         Say that the fast types might differ.  Say macros are used.
72426         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72427         (Makefile.am): Revise list of substituted symbols to match
72428         new stdint.m4.
72429         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72430         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72431         * tests/test-stdint.c (verify_same_types)
72432         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72433         the code conforms to C99/C89.
72434         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72435         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72436
72437 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72440         but fix a bug, by requiring at least 64 bits.
72441         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72442         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72443         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72444         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72445
72446         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72447         changes.  Make 2.59 a prerequisite.  Check and substitute for
72448         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72449         inttypes.h.  Do not use special include files; just use the
72450         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72451         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72452         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72453         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72454         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72455         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72456         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72457         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72458         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72459         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72460         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72461         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72462         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72463         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72464         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72465         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72466         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72467         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72468         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72469         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72470         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72471         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72472         not check for things that C99 does not require, e.g., int8_t.  If
72473         a test isn't needed unless <stdint.h> isn't working, and is
72474         unlikely to be needed for any other reason, then don't do it
72475         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72476         size_t, since we assume C89 freestanding at least.  Do not check
72477         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72478         the right thing even if the types are not defined.  Instead use:
72479         (gl_STDINT_TYPE_PROPERTIES): New macro.
72480         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72481         testing whether <sys/types.h> clashes, as Autoconf does this for
72482         us now.  All uses removed.
72483         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72484         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72485         (gl_CHECK_TYPE_SAME):
72486         Remove; no longer needed.
72487         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72488         exists, since we'll return 0 anyway in that case.
72489         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72490
72491 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72494         possible collision with system files.
72495         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72496         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72497         WCHAR_MIN and WCHAR_MAX in this case.
72498         (<stddef.h>): Do not include; no longer needed.
72499         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72500         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72501         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72502         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72503         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72504         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72505         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72506         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72507         !defined(__c99))]: Include in this case too, since it's harmless
72508         now.
72509         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72510         dangerous to do so.
72511         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72512         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72513         (_STDINT_MIN, _STDINT_MAX): New macros.
72514         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72515         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72516         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72517         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72518         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72519         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72520         macros, not typedefs; this simplifies things quite a bit.
72521         Use long int for all types narrower than int64_t.
72522         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72523         Define in terms of long long int or int64_t or long int,
72524         not int64_t or int32_t.  This saves some compile-time testing.
72525         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72526         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72527         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72528         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72529         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72530         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72531         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72532         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72533         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72534         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72535         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72536         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72537         undef any previous version and define our own version, for
72538         simplicity and consistency with the new macros for types.
72539         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72540         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72541         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72542         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72543         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72544         @WINT_T_SUFFIX@ to keep things simple here.
72545         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72546         Simplify by assuming typical 8/16/32/64 host, since we're
72547         already doing that elsewhere anyway.
72548         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72549         and assume long long int is 64 bits if available.  This
72550         speeds up 'configure'.
72551
72552 2006-07-01  Eric Blake  <ebb9@byu.net>
72553
72554         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72555         Reported by Andreas Buening.
72556
72557 2006-07-01  Eric Blake  <ebb9@byu.net>
72558
72559         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72560
72561 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72562
72563         * lib/getaddrinfo.c: fixed typo
72564
72565 2006-06-29  Jim Meyering  <jim@meyering.net>
72566
72567         * modules/strftime (Maintainer): Add my name, since with the
72568         FPRINTFTIME changes strftime.c has forked from glibc.
72569
72570 2006-06-29  Eric Blake  <ebb9@byu.net>
72571
72572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72573
72574 2006-06-29  Eric Blake  <ebb9@byu.net>
72575
72576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72577
72578 2006-06-29  Eric Blake  <ebb9@byu.net>
72579
72580         * lib/stat_.h: New file.
72581
72582 2006-06-29  Eric Blake  <ebb9@byu.net>
72583
72584         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72585         unused static function.
72586
72587 2006-06-29  Eric Blake  <ebb9@byu.net>
72588
72589         * doc/functions.texi (Function Portability): Document missing lstat
72590         on mingw.
72591
72592 2006-06-29  Eric Blake  <ebb9@byu.net>
72593
72594         * MODULES.html.sh: Add sys_stat.
72595         * modules/sys_stat: New module.
72596         * modules/mkstemp (Depends-on): Add sys_stat.
72597
72598 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72599
72600         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72601
72602 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72603
72604         * m4/c-bs-a.m4: Removed.
72605
72606 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72607
72608         * lib/strftime.c: Assume strftime() exists.
72609
72610 2006-06-29  Derek Price  <derek@ximbiot.com>
72611
72612         * modules/c-bs-a: Removed - \a is C89.
72613         * MODULES.html.sh: Remove c-bs-a.
72614
72615 2006-06-29  Bruno Haible  <bruno@clisp.org>
72616
72617         * modules/wcwidth (License): Change to LGPL.
72618
72619 2006-06-28  Simon Josefsson  <jas@extundo.com>
72620
72621         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72622         on _WIN32.
72623
72624         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72625         getnameinfo.
72626
72627 2006-06-28  Simon Josefsson  <jas@extundo.com>
72628
72629         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72630
72631 2006-06-28  Simon Josefsson  <jas@extundo.com>
72632
72633         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72634         functions there.  It will succeed on Windows XP, but on Windows
72635         2000 and (presumably) earlier, it will fail, and use the internal
72636         re-implementation.
72637         (use_win32_p): New function.
72638         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72639         Support AI_NUMERICSERV to disable getservbyname.
72640         (getnameinfo): New function, only supports
72641         NI_NUMERICHOST|NI_NUMERICSERV for now.
72642
72643         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72644         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72645         getnameinfo.
72646
72647 2006-06-28  Eric Blake  <ebb9@byu.net>
72648
72649         * modules/wcwidth: New file.
72650         * modules/mbchar (Depends-on): Add wcwidth.
72651         * modules/mbswidth (Depends-on): Add wcwidth.
72652         * MODULES.html.sh: Add wcwidth.
72653
72654 2006-06-28  Eric Blake  <ebb9@byu.net>
72655
72656         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72658
72659 2006-06-28  Eric Blake  <ebb9@byu.net>
72660
72661         * lib/xvasprintf.h: Fix comments.
72662
72663 2006-06-28  Eric Blake  <ebb9@byu.net>
72664
72665         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72666         * lib/mbswidth.c (wcwidth): Move from here...
72667         * lib/wcwidth.h: ...to this new file.
72668
72669 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72670
72671         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72672
72673         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72674         it's obsolete.
72675         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72676
72677 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72678
72679         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72680         Autoconf 2.60 says this stuff was obsolete.
72681
72682 2006-06-28  Bruno Haible  <bruno@clisp.org>
72683
72684         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72685
72686 2006-06-28  Bruno Haible  <bruno@clisp.org>
72687
72688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72689         gt_TYPE_WCHAR_T.
72690
72691 2006-06-28  Bruno Haible  <bruno@clisp.org>
72692
72693         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72694         declaration for wcwidth.
72695         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72696
72697 2006-06-28  Bruno Haible  <bruno@clisp.org>
72698
72699         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72700         (mkdir): Define using _mkdir.
72701
72702 2006-06-28  Bruno Haible  <bruno@clisp.org>
72703
72704         * lib/getaddrinfo.h: Fix POSIX URL.
72705         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72706         _WIN32.
72707         (use_win32_p): Make static.
72708         (getaddrinfo): Reject service name if it is empty or does not consist
72709         solely of decimal digits, or if its value is > 65535.
72710         (getnameinfo): Remove useless casts.
72711
72712 2006-06-27  Simon Josefsson  <jas@extundo.com>
72713
72714         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72715         Eggert and Martin Lambers.
72716
72717 2006-06-27  Simon Josefsson  <jas@extundo.com>
72718
72719         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72720         Eggert and Martin Lambers.
72721
72722 2006-06-27  Bruno Haible  <bruno@clisp.org>
72723
72724         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72725         result to 0, not to empty.
72726         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72727
72728 2006-06-27  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72731
72732 2006-06-26  Simon Josefsson  <jas@extundo.com>
72733
72734         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72735         present.
72736
72737 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72740         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72742
72743 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72744
72745         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72746
72747 2006-06-26  Bruno Haible  <bruno@clisp.org>
72748
72749         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72750
72751 2006-06-26  Bruno Haible  <bruno@clisp.org>
72752
72753         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72754
72755 2006-06-26  Bruno Haible  <bruno@clisp.org>
72756
72757         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72758         SGI C compiler in pre-C99 mode.
72759         Suggested by Mark D. Baushke and Larry Jones.
72760
72761 2006-06-26  Bruno Haible  <bruno@clisp.org>
72762
72763         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72764         WCHAR_MAX.
72765         Reported by Mark D. Baushke and Larry Jones.
72766
72767 2006-06-26  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72770         in pre-C99 mode.
72771         Suggested by Mark D. Baushke and Larry Jones.
72772
72773 2006-06-23  Simon Josefsson  <jas@extundo.com>
72774             Bruno Haible  <bruno@clisp.org>
72775
72776         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72777         Emit mostlyclean-local rule.
72778         (func_emit_tests_Makefile_am): Likewise.
72779         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72780
72781 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72782
72783         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72784
72785 2006-06-23  Bruno Haible  <bruno@clisp.org>
72786
72787         * tests/test-stdint.c: Update to match ISO C 99 Technical
72788         Corrigendum 1.
72789
72790 2006-06-23  Bruno Haible  <bruno@clisp.org>
72791
72792         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72793
72794 2006-06-23  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/stdint_.h: Treat IRIX like OpenBSD.
72797
72798 2006-06-23  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72801         ISO C 99 Technical Corrigendum 1.
72802
72803 2006-06-22  Simon Josefsson  <jas@extundo.com>
72804
72805         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72806         MinGW.
72807
72808 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72811         needed.  Some compiler complained about some of them.  Problem reported
72812         by Larry Jones in
72813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72814
72815 2006-06-21  Simon Josefsson  <jas@extundo.com>
72816
72817         * tests/test-getaddrinfo.c: New file.
72818
72819         * modules/getaddrinfo-tests: New file.
72820
72821         * MODULES.html.sh: Add inet_pton.
72822
72823         * modules/inet_pton: New file.
72824
72825 2006-06-21  Simon Josefsson  <jas@extundo.com>
72826
72827         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72828         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72829         of using the (limited) gnulib implementation on Windows XP.
72830
72831         * m4/inet_pton.m4: New file.
72832
72833 2006-06-21  Simon Josefsson  <jas@extundo.com>
72834
72835         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72836         variable.
72837
72838         * lib/socket_.h: Don't define WINVER.
72839
72840         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72841         slightly modified to work in gnulib.
72842
72843 2006-06-21  Simon Josefsson  <jas@extundo.com>
72844
72845         * doc/gnulib.texi (Windows sockets): Add.
72846
72847 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * lib/read-file.c (fread_file): Start with buffer allocation of
72850         0 bytes rather than 1 byte; this simplifies the code.
72851         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72852         code to free buffer and save/restore errno.
72853         (internal_read_file): Remove unused local.
72854
72855 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72858         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72859         Problem reported by Denis Excoffier in
72860         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72861
72862 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72863
72864         * modules/sys_socket, modules/socklen: Include sys/types since
72865         FreeBSD 4.x's sys/socket.h needs it.
72866
72867 2006-06-19  Simon Josefsson  <jas@extundo.com>
72868
72869         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72870
72871 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72874
72875 2006-06-19  Bruno Haible  <bruno@clisp.org>
72876
72877         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72878         and FULL_PATH_INTTYPES_H in angle brackets.
72879         Reported by Mark D. Baushke <mdb@gnu.org>.
72880
72881 2006-06-17  Eric Blake  <ebb9@byu.net>
72882
72883         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72884         errno.
72885
72886 2006-06-17  Bruno Haible  <bruno@clisp.org>
72887
72888         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72889         <sys/inttypes.h>.
72890
72891 2006-06-17  Bruno Haible  <bruno@clisp.org>
72892
72893         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72894         whether errno is declared. Assume <errno.h> declares errno.
72895
72896 2006-06-17  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72899
72900 2006-06-17  Bruno Haible  <bruno@clisp.org>
72901
72902         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72903         problem on Solaris 2.5.1.
72904
72905 2006-06-16  Eric Blake  <ebb9@byu.net>
72906
72907         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72908         * lib/unicodeio.c [!defined errno]: Likewise.
72909         * lib/strtol.c [!defined errno]: Likewise.
72910         * lib/strtod.c [!defined errno]: Likewise.
72911
72912 2006-06-15  Eric Blake  <ebb9@byu.net>
72913
72914         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72915
72916 2006-06-15  Eric Blake  <ebb9@byu.net>
72917
72918         * config/srclist.txt (ssize_t.m4): Lose sync.
72919
72920 2006-06-15  Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/stdint (Files): Include m4/full-header-path.m4,
72923         m4/size_max.m4, m4/wchar_t.m4.
72924         (Makefile.am): Many more substitutions.
72925         * modules/stdint-tests: New file.
72926         * tests/test-stdint.c: New file.
72927
72928 2006-06-15  Bruno Haible  <bruno@clisp.org>
72929
72930         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72931         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72932         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72933         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72934         gl_CHECK_TYPE_SAME): New macros.
72935
72936 2006-06-15  Bruno Haible  <bruno@clisp.org>
72937
72938         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72939
72940 2006-06-15  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/stdint_.h: Rewritten to be fully auto-configured.
72943         Fixes bug on HP-UX/IA64.
72944
72945 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * lib/getdate.y (__attribute__): Don't define if already defined.
72948         Problem reported by Larry Jones.
72949         * lib/utimens.c (__attribute__): Likewise.
72950
72951 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72954         reported by Andreas Schwab.
72955
72956 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72957             Bruno Haible  <bruno@clisp.org>
72958
72959         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72960         check for the declaration of strnlen and a run test that exposes the
72961         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72962         rpl_strndup.
72963
72964 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72965             Bruno Haible  <bruno@clisp.org>
72966
72967         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72968
72969 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72970
72971         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72972         compile test, for Tru64 4.0D.
72973
72974 2006-05-28  Karl Berry  <karl@gnu.org>
72975
72976         * config/srclist.txt (printf-args.c): lose sync.
72977
72978 2006-05-26  Martin Lambers  <marlam@marlam.de>
72979
72980         * lib/getpass.c: Updates the test for the native W32 API, and adds
72981         missing includes, thus fixing compilation warnings.
72982
72983 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72984
72985         * lib/exclude.c (exclude_fnmatch): New function.
72986         (excluded_file_name): Call exclude_fnmatch.
72987         * lib/exclude.h (excluded_file_name): New prototype
72988
72989 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         * lib/tempname.c (small_open, large_open): New macros.
72992         (__open, __open64) [!_LIBC]: Remove.
72993         (__gen_tempname): Use small_open and large_open instead of __open
72994         and __open64.  This fixes a portability bug on HP-UX 11.11i
72995         reported by Simon Wing-Tang in
72996         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72997
72998 2006-05-24  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73001         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73002         Reported by Thorsten Maerz <torte@netztorte.de> via
73003         Aaron Stone <aaron@serendipity.cx>.
73004
73005 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73008         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73009         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73010         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73011         not really conditional on the cache.
73012         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73013
73014 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73017         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73018         (my_usleep): Don't mishandle maximum value.
73019
73020 2006-05-19  Jim Meyering  <jim@meyering.net>
73021
73022         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73023
73024 2006-05-17  Bruno Haible  <bruno@clisp.org>
73025
73026         Cygwin portability.
73027         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73028
73029 2006-05-17  Bruno Haible  <bruno@clisp.org>
73030
73031         * lib/stdint_.h: Fix recognition of Cygwin.
73032
73033 2006-05-15  Bruno Haible  <bruno@clisp.org>
73034
73035         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73036         on libtool patch by Ralf Wildenhues.
73037
73038 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73039
73040         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73041         test for C99 conformance; (bool) 0.5 is an integer constant
73042         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73043         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73044
73045 2006-05-11  Simon Josefsson  <jas@extundo.com>
73046
73047         * m4/xvasprintf.m4: Fix obvious typo.
73048
73049 2006-05-11  Jim Meyering  <jim@meyering.net>
73050
73051         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73052         James Lemley.
73053
73054 2006-05-10  Simon Josefsson  <jas@extundo.com>
73055
73056         * lib/md4.c: Typo fix, update copyright years.
73057         (K1, K2): Don't use L because it turn computations into 64-bit on
73058         64-bit platforms.
73059
73060 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73063         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73064         unwanted sign propagation, e.g., on hosts with 64-bit int.
73065         There still are some problems with reeelly weird theoretical hosts
73066         (e.g., 33-bit int) but it's not worth worrying about now.
73067         * lib/sha1.c (rol): Likewise.
73068         (K1, K2, K3, K4): Remove unnecessary L suffix.
73069
73070 2006-05-10  Bruno Haible  <bruno@clisp.org>
73071
73072         * lib/des.c: Cast to avoid warnings.
73073
73074 2006-05-09  Bruno Haible  <bruno@clisp.org>
73075
73076         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73077         (Depends-on): Depend also on xsize, stdarg.
73078         (configure.ac): Add gl_XVASPRINTF.
73079
73080 2006-05-09  Bruno Haible  <bruno@clisp.org>
73081
73082         * m4/xvasprintf.m4: New file.
73083
73084 2006-05-09  Bruno Haible  <bruno@clisp.org>
73085
73086         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73087         (EOVERFLOW): Define fallback value.
73088         (xstrcat): New function.
73089         (xvasprintf): Recognize the special case of a string concatenation.
73090
73091 2006-05-08  Eric Blake  <ebb9@byu.net>
73092
73093         * gnulib-tool (func_version): Base copyright year on CVS date.
73094         (func_emit_copyright_notice): New function.
73095         (func_emit_lib_Makefile_am): Use it.
73096         (func_emit_tests_Makefile_am): Likewise.
73097         (func_import): Likewise.
73098
73099 2006-05-08  Bruno Haible  <bruno@clisp.org>
73100
73101         * modules/stdarg: New file.
73102         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73103
73104 2006-05-08  Bruno Haible  <bruno@clisp.org>
73105
73106         * m4/stdarg.m4: New file, from GNU gettext.
73107
73108 2006-05-08  Bruno Haible  <bruno@clisp.org>
73109
73110         * config/srclist.txt (build-aux/config.rpath): different from latest
73111         release.
73112
73113 2006-05-08  Bruno Haible  <bruno@clisp.org>
73114
73115         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73116
73117 2006-05-05  Jim Meyering  <jim@meyering.net>
73118
73119         * m4/warning.m4: New file, derived from bison's file by the same name.
73120
73121 2006-05-03  Bruno Haible  <bruno@clisp.org>
73122
73123         * lib/stdint_.h: Shorter URL.
73124         * lib/inttypes.h: Likewise.
73125
73126 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73129
73130 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         * lib/verify.h: Document the internals better.  Most of this change
73133         was written by Bruno Haible.
73134
73135 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * doc/verify.texi: New file, partly based on a proposal by
73138         Bruno Haible.
73139
73140 2006-05-02  Bruno Haible  <bruno@clisp.org>
73141
73142         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73143         test from here...
73144         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73145
73146 2006-04-29  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73149         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73150
73151 2006-04-29  Bruno Haible  <bruno@clisp.org>
73152
73153         * gnulib-tool: Make --update option actually work.
73154
73155 2006-04-29  Bruno Haible  <bruno@clisp.org>
73156
73157         * doc/gcd.texi: New file.
73158         * doc/gnulib.texi: Include it.
73159
73160 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * lib/getdate.y (get_date): When adding relative date, start with the
73163         initial time, not with the result of the first mktime call.
73164
73165 2006-04-25  Bruno Haible  <bruno@clisp.org>
73166
73167         * gnulib-tool (func_import): Output the include directives in three
73168         blocks, sorted separately.
73169         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73170
73171 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73174         to define main with arguments, for C++.  Reported by Eric Blake.
73175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73176         Prefer 'int main ()' to 'int main (void)', for C++.
73177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73178         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73179         for 'main', for C99 and C++.
73180
73181 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73184         Don't assume that exit status -1 is valid.
73185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73186         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73187         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73188         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73189         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73190         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73191         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73192         functions can be used without declaring them, or that you can
73193         exit with status -1.
73194         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73195
73196 2006-04-24  Karl Berry  <karl@gnu.org>
73197
73198         * config/srclist.txt (longdouble.m4): sync lost.
73199
73200 2006-04-24  Eric Blake  <ebb9@byu.net>
73201
73202         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73203
73204 2006-04-24  Bruno Haible  <bruno@clisp.org>
73205
73206         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73207         poll() implementation in AIX.
73208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73209
73210 2006-04-24  Bruno Haible  <bruno@clisp.org>
73211
73212         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73213         assigned exactly once.
73214
73215 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73216             Bruno Haible  <bruno@clisp.org>
73217
73218         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73219         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73220         for AM_CPPFLAGS.
73221
73222 2006-04-23  Bruno Haible  <bruno@clisp.org>
73223
73224         * modules/copy-file: Depend on unistd.
73225         * modules/execute: Likewise.
73226         * modules/fatal-signal: Likewise.
73227         * modules/findprog: Likewise.
73228         * modules/mkdtemp : Likewise.
73229         * modules/pipe: Likewise.
73230         * modules/wait-process: Likewise.
73231
73232 2006-04-23  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73235         condition was already detected.
73236         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73237
73238 2006-04-23  Bruno Haible  <bruno@clisp.org>
73239
73240         * lib/copy-file.c: Include <unistd.h> unconditionally.
73241         * lib/execute.c: Likewise.
73242         * lib/fatal-signal.c: Likewise.
73243         * lib/findprog.c: Likewise.
73244         * lib/mkdtemp.c: Likewise.
73245         * lib/pipe.h: Likewise.
73246         * lib/pipe.c: Likewise.
73247         * lib/wait-process.h: Likewise.
73248
73249 2006-04-23  Bruno Haible  <bruno@clisp.org>
73250
73251         * gnulib-tool (func_usage): Fix --import description. Document
73252         --update.
73253         (func_import): Create temporary file in a temporary directory, if
73254         --dry-run is specified. Silence errors from 'grep' when there are no
73255         m4 files in $m4dir.
73256         (func_create_testdir): Silence errors from 'grep' when there are no
73257         m4 files in $m4dir.
73258         Reported by Karl Berry <karl@freefriends.org>.
73259
73260 2006-04-20  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73263         one argument, so that the code will be portable to Autoconf 2.60.
73264         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73265         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73266         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73267
73268 2006-04-19  Derek Price  <derek@ximbiot.com>
73269             Eric Blake  <ebb9@byu.net>
73270
73271         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73272         rather than "/full/path.h".  Update comment to match.  Shorten &
73273         generalize m4_translit call via AS_TR_CPP.
73274
73275 2006-04-19  Derek Price  <derek@ximbiot.com>
73276             Eric Blake  <ebb9@byu.net>
73277
73278         * lib/inttypes.h: Correct grammar in comment.
73279
73280 2006-04-18  Derek Price  <derek@ximbiot.com>
73281             Paul Eggert  <eggert@cs.ucla.edu>
73282
73283         * modules/inttypes: New file.
73284         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73285
73286 2006-04-18  Derek Price  <derek@ximbiot.com>
73287             Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73290         New files.
73291
73292 2006-04-18  Derek Price  <derek@ximbiot.com>
73293             Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         * lib/inttypes.h: New file.
73296         * lib/strtoimax.c: Assume <inttypes.h>.
73297
73298 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73301         isn't mounted.  Problem reported by Kir Kolyshkin.
73302
73303 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73304
73305         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73306         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73307         Derek R. Price.
73308         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73309         implementation.
73310
73311 2006-04-12  Eric Blake  <ebb9@byu.net>
73312
73313         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73314         is now done automatically by the corresponding Autoconf macro.
73315
73316 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73319         time_r.h.
73320
73321 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         Merge regex changes from libc, removing some of our
73324         POSIX-conformance changes that were rejected and redoing them in a
73325         less-intrusive way.
73326
73327         * lib/regcomp.c (re_compile_internal, init_dfa):
73328         Length arg is now size_t, not Idx.  All uses changed.
73329         (peek_token): Forward decl now says internal_function.
73330         (__re_error_msgid, __re_error_msgid_idx):
73331         Now static rather than extern with attribute_hidden.
73332         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73333         For some reason libc prefers K&R style defns for external functions.
73334         (regerror) [!defined _LIBC]: Likewise.
73335         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73336         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73337         (build_range_exp, build_collating_symbol):
73338         Use K&R-style defn.
73339         (re_compile_fastmap): Use '\0' to memset, not 0.
73340         (utf8_sb_map): Make the calculations more obvious.
73341         (init_dfa, parse_bracket_exp, build_charclass_op):
73342         Call calloc and cast result, as glibc does.
73343         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73344         (build_range_exp, build_collating_symbol):
73345         Now internal functions.
73346
73347         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73348
73349         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73350         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73351         Don't depend on VMS; depend on __VMS instead, for POSIX
73352         namespace cleanness.
73353         (regoff_t): Define to ssize_t, not long int.
73354
73355         Remove the REG_ macros named below.  Instead, make the old names
73356         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73357         __USE_GNU_REGEX.
73358         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73359         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73360         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73361         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73362         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73363         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73364         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73365         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73366         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73367         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73368         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73369         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73370         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73371         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73372         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73373         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73374         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73375         (REG_NREGS):
73376         Remove.  All uses replaced by the old RE_* names.
73377         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73378         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73379         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73380         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73381         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73382         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73383         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73384         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73385         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73386         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73387         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73388         Don't bother having these macros be independent of each others'
73389         values, since they no longer exist in the POSIX name space.
73390
73391         Rename the following member names back to their old names,
73392         unless !__USE_GNU_REGEX.  All uses changed back.
73393         (buffer): Renamed from re_buffer.
73394         (allocated): Renamed from re_allocated.
73395         (used): Renamed from re_used.
73396         (syntax): Renamed from re_syntax.
73397         (fastmap): Renamed from re_fastmap.
73398         (translate): Renamed from re_translate.
73399         (can_be_null): Renamed from re_can_be_null.
73400         (regs_allocated): Renamed from re_regs_allocated.
73401         (fastmap_accurate): Renamed from re_fastmap_accurate.
73402         (no_sub): Renamed from re_no_sub.
73403         (not_bol): Renamed from re_not_bol.
73404         (not_eol): Renamed from re_not_eol.
73405         (newline_anchor): Renamed from re_newline_anchor.
73406         (num_regs): Renamed from rm_num_regs.
73407         (start): Renamed from rm_start.
73408         (end): Renamed from rm_end.
73409
73410         (free_state): Move up a bit.
73411
73412         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73413         #define to be empty.
73414         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73415         when that is what is intended.
73416         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73417         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73418         (MAX): New macro.
73419         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73420         All uses changed back to re_malloc, etc.  It's now the caller's
73421         responsibility to check for overflow; all callers changed.
73422         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73423         (re_x2nrealloc): Remove.
73424         (free_state): Remove decl.
73425
73426         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73427         (re_set_registers, re_exec):
73428         Use K&R-style defn.
73429
73430         2006-01-31  Roland McGrath  <roland@redhat.com>
73431
73432         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73433         Reported by Mike Frysinger <vapier@gentoo.org>.
73434
73435         2006-01-15  Andreas Jaeger  <aj@suse.de>
73436
73437         [BZ #1950]
73438         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73439         build_wcs_upper_buffer change.
73440         (build_wcs_upper_buffer): Change return type.
73441
73442         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73443
73444         * lib/regex_internal.h: Include <stdint.h> if available.
73445
73446         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73447
73448         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73449
73450         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73451
73452         * lib/regcomp.c: Adjust for changed secondary hash function.
73453
73454         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73455
73456         * lib/regex.h: Pretty printing.
73457         Clean up namespace a bit.
73458
73459         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73460
73461         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73462         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73463
73464         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73465                     Ulrich Drepper  <drepper@redhat.com>
73466
73467         [BZ #1302]
73468         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73469         changed.
73470         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73471
73472         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73473
73474         [BZ #281]
73475         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73476         * lib/regcomp.c: Remove unnecessary uses of
73477         unsigned RE_TRANSLATE_TYPE.
73478         * lib/regex_internal.h: Likewise.
73479         * lib/regex_internal.c: Likewise.
73480         * lib/regexec.c: Likewise.
73481         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73482
73483         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73484
73485         * lib/regexec.c (find_recover_state): Remove unnecessary
73486         initialization.
73487         (transit_state_bkref): Make DFA a const pointer.
73488         (get_subexp): Likewise.
73489         (check_arrival): Likewise.
73490         (update_cur_sifted_state): Likewise.
73491         (re_search_internal): Likewise.
73492         (prune_impossible_nodes): Likewise.
73493         (acquire_init_state_context): Likewise.
73494         (proceed_next_node): Likewise.
73495         (set_regs): Likewise.
73496         (free_fail_stack_return): Likewise.
73497         (check_arrival_expand_ecl): Mark DFA parameter as const.
73498         (check_arrival_expand_ecl_sub): Likewise.
73499         (check_subexp_limits): Likewise.
73500         (sub_epsilon_src_nodes):  Likewise.
73501         (add_epsilon_src_nodes):  Likewise.
73502         (merge_state_array): Likewise.
73503         (update_regs): Likewise.
73504         (build_trtable): Likewise.
73505         (sift_states_backward): Mark MCTX parameter as const.
73506         (build_sifted_states): Likewise.
73507         (update_cur_sifted_state): Likewise.
73508         (sift_states_mkref): Likewise.
73509         (check_arrival_expand_ecl): Mark eclosure as const.
73510         (check_dst_limits_calc_pos_1): Likewise.
73511         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73512         pointer.
73513
73514         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73515
73516         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73517         (transit_state_sb): Likewise.
73518         (transit_state_mb): Likewise.
73519         (sift_states_iter_mb): Likewise.
73520         (check_arrival_add_next_nodes): Likewise.
73521         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73522         [_LIBC] (re_search_2_stub): Use mempcpy.
73523
73524         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73525         mbrtowc for very simple UTF-8 case.
73526
73527         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73528         a pointer-to-const.
73529         (re_acquire_state_context): Likewise.
73530         * lib/regex_internal.h: Adjust prototypes.
73531
73532         * lib/regex.c: Prevent using C++ compilers.
73533
73534         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73535         (re_acquire_state_context): Likewise.
73536
73537 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * modules/regex (Depends-on): Add ssize_t.
73540
73541 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73542
73543         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73544         translation table.
73545
73546 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73549
73550 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73551             Bruno Haible  <bruno@clisp.org>
73552
73553         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73554         <sys/types.h> and <inttypes.h>.
73555
73556 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73557
73558         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73559         `__error_t_defined', so argp.h will not typedef the former.
73560
73561 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73564         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73565         glibc names.  Even if glibc is changed to conform to POSIX, the
73566         traditional names will be available anyway, since regex depends on
73567         the extensions module.  Also, fix a longstanding typo in the
73568         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73569         reported by Emanuele Giaquinta.  Also, change sense of cached
73570         variable, so that the message makes sense.
73571
73572 2006-03-24  Simon Josefsson  <jas@extundo.com>
73573
73574         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73575         including some doc fixes.
73576         (base64_encode_alloc): Fix +1 bug on allocation failures.
73577
73578 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73579
73580         * lib/base64.c (base64_encode): Do not read past end of array with
73581         unsanitized input on systems with CHAR_BIT > 8.
73582
73583 2006-03-24  Eric Blake  <ebb9@byu.net>
73584
73585         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73586
73587 2006-03-22  Karl Berry  <karl@gnu.org>
73588
73589         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73590         * config/srclistvars.sh (COREUTILS): new var.
73591
73592 2006-03-17  Jim Meyering  <jim@meyering.net>
73593
73594         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73595         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73596
73597 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73600         no longer needs it.  Instead, check that regoff_t is as least
73601         as wide as ptrdiff_t.
73602
73603         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73604         so that our regex.h stays compatible with the installed regex.
73605         This is helpful for installers who configure --without-included-regex.
73606         Problem reported by Emanuele Giaquinta.
73607
73608 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73611         Typedef to long int, not to off_, as POSIX will likely change
73612         in that direction.
73613
73614 2006-03-15  Eric Blake  <ebb9@byu.net>
73615
73616         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73617
73618 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73619
73620         * lib/argp-help.c (validate_uparams): Fix typo
73621         * lib/argp-parse.c (argp_default_options): Consistently begin help
73622         messages with a lowercase letter.
73623
73624 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73625
73626         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73627         overrun buffers and shouldn't be used (much as gets shouldn't be
73628         used).
73629         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73630
73631 2006-03-08  Simon Josefsson  <jas@extundo.com>
73632
73633         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73634         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73635
73636 2006-03-08  Simon Josefsson  <jas@extundo.com>
73637
73638         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73639         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73640
73641 2006-03-08  Simon Josefsson  <jas@extundo.com>
73642
73643         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73644         signal that configure disabled the device.
73645
73646 2006-03-08  Simon Josefsson  <jas@extundo.com>
73647
73648         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73649         languages.
73650
73651 2006-03-07  Simon Josefsson  <jas@extundo.com>
73652
73653         * modules/getopt (Depends-on): Add unistd.
73654
73655         * modules/unistd: New file.
73656
73657 2006-03-07  Simon Josefsson  <jas@extundo.com>
73658
73659         * modules/gc-random: New file.
73660
73661 2006-03-07  Simon Josefsson  <jas@extundo.com>
73662
73663         * m4/unistd_h.m4: New file.
73664
73665 2006-03-07  Simon Josefsson  <jas@extundo.com>
73666
73667         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73668         test to be side-effect free by storing the result in the cache
73669         variable gl_cv_lib_readline, and moving the assignment of
73670         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73671         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73672
73673 2006-03-07  Simon Josefsson  <jas@extundo.com>
73674
73675         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73676         error on missing devices (the functions will return an error).
73677
73678         * m4/gc.m4: Move random stuff to gc-random.m4
73679
73680 2006-03-07  Simon Josefsson  <jas@extundo.com>
73681
73682         * lib/unistd_.h: New file.
73683
73684 2006-03-07  Simon Josefsson  <jas@extundo.com>
73685
73686         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73687
73688 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73691         Problem reported by Juan Manuel Guerrero.
73692
73693 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73694
73695         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73696         the unistd module.
73697         * lib/getlogin_r.c: Likewise.
73698         * lib/getlogin_r.h: Likewise.
73699         * lib/glob.c: Likewise.
73700         * lib/pagealign_alloc.c: Likewise.
73701         * lib/unistd_.h: Remove; no longer needed.
73702
73703 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73706         Add unistd.
73707         * modules/c-stack (Depends-on): Add unistd.
73708         * modules/getlogin_r: Likewise.
73709         * modules/glob: Likewise.
73710         * modules/pagealign_alloc: Likewise.
73711         * modules/unistd (Files): Remove lib/unistd_.h.
73712         (EXTRA_DIST): Remove.
73713         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73714         need unistd_.h.
73715         (MOSTLYCLEANFILES): Remove unistd.h-t.
73716
73717 2006-03-03  Simon Josefsson  <jas@extundo.com>
73718
73719         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73720
73721 2006-03-03  Simon Josefsson  <jas@extundo.com>
73722
73723         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73724         libidn and bison.
73725
73726 2006-03-03  Simon Josefsson  <jas@extundo.com>
73727
73728         * build-aux/maint.mk: Add indent target.
73729
73730 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73731
73732         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73733         our replacement poll.h in any case, to avoid a differing
73734         declaration from a system header.  Seen on AIX.
73735
73736 2006-03-01  Simon Josefsson  <jas@extundo.com>
73737
73738         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73739         <kasal@ucw.cz>.
73740
73741 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73742
73743         * modules/gettime (Depends-on): Add extensions module.
73744         * modules/nanosleep (Depends-on): Likewise.
73745         * modules/settime (Depends-on): Likewise.
73746
73747 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73750         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73751         pedantically.
73752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73753         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73754
73755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73756         not "==".  Reported by Ralf Wildenhues.
73757
73758 2006-03-01  Karl Berry  <karl@gnu.org>
73759
73760         * doc/Copyright/request-*: new files, synced from gnuorg.
73761
73762 2006-03-01  Karl Berry  <karl@gnu.org>
73763
73764         * config/srclist.txt (Copyright/*): new entries.
73765
73766 2006-02-28  Simon Josefsson  <jas@extundo.com>
73767
73768         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73769
73770 2006-02-27  Simon Josefsson  <jas@extundo.com>
73771
73772         * lib/base64.h: Indent #define's.  From Jim Meyering
73773         <jim@meyering.net>.
73774
73775 2006-02-27  Jim Meyering  <jim@meyering.net>
73776
73777         Revert the change of 2006-02-24, so these files can continue
73778         to be sync'd from gettext.
73779         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73780         of `config.h'.
73781
73782 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * modules/intprops: New file.
73785         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73786         Add intprops.
73787         * modules/getloadavg (Files): Remove lib/intprops.h.
73788         (Depends-on): Add intprops.
73789         * modules/human: Likewise.
73790         * modules/inttostr: Likewise.
73791         * modules/openat: Likewise.
73792         * modules/sig2str: Likewise.
73793         * modules/userspec: Likewise.
73794         * modules/utimecmp: Likewise.
73795         * modules/xnanosleep: Likewise.
73796         * modules/xstrtol: Likewise.
73797
73798 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73799
73800         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73801         * modules/lock-tests (TESTS): Use $(EXEEXT).
73802         * modules/tls-tests: Likewise.
73803         * modules/argp-tests: Likewise.
73804         (check_PROGRAMS): New var, replacing...
73805         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73806
73807 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73808
73809         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73810         `config.h'.
73811
73812 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73815
73816 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73817
73818         Sync from coreutils.
73819         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73820         gl_CHDIR_SAFER.
73821
73822 2006-02-22  Jim Meyering  <jim@meyering.net>
73823
73824         Sync from coreutils.
73825         * m4/chdir-safer.m4: New file.
73826
73827 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73830         AT_FDCWD exceeds INT_MAX.
73831         * lib/openat.h (AT_FDCWD): Likewise.
73832
73833 2006-02-17  Eric Blake  <address@hidden>
73834
73835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73836
73837 2006-02-16  Simon Josefsson  <jas@extundo.com>
73838
73839         * modules/getaddrinfo (Depends-on): Add sys_socket.
73840
73841 2006-02-15  Simon Josefsson  <jas@extundo.com>
73842
73843         * build-aux/maint.mk: Add dsyntax-check rule.
73844
73845 2006-02-15  Eric Blake  <ebb9@byu.net>
73846
73847         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73848         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73849         'present but cannot compile' warnings on cygwin.
73850         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73851         use ws2tcpip.h if sys/socket.h works.
73852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73853         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73854
73855 2006-02-14  Simon Josefsson  <jas@extundo.com>
73856
73857         * modules/maintainer-makefile (Files): Rename.
73858
73859         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73860         and (the local) Makefile.cfg to maint-cfg.mk.
73861
73862         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73863         to the latter.
73864
73865         * modules/maintainer-makefile: New module.
73866
73867         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73868         severaly stripped to make it possible to build it up from scratch
73869         with reliable tests.
73870
73871         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73872         fixes to permit overriding the default actions when configure and
73873         makefile are not available.
73874
73875 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         Sync from coreutils.
73878         * modules/lstat (Depends-on): Don't depend on xalloc.
73879         (License): Change from GPL to LGPL, since this is now simply a
73880         replacement for a libc function.
73881
73882 2006-02-14  Jim Meyering  <jim@meyering.net>
73883
73884         Sync from coreutils.
73885
73886         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73887         failure on deficient systems, and simplify gnulib lgpl dependencies.
73888         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73889         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73890
73891         * lib/xalloc-die.c: Remove unused definition of N_.
73892
73893 2006-02-14  Jim Meyering  <jim@meyering.net>
73894
73895         Sync from coreutils.
73896         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73897         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73898         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73899         double-quote uses of that variable, to accommodate the rare case in
73900         which getmntent is available in none of the libraries checked.  This
73901         happens at least on FreeBSD 5.0.
73902
73903 2006-02-13  Simon Josefsson  <jas@extundo.com>
73904
73905         * gnulib-tool (Usage): Fix --import, from
73906         karl@freefriends.org (Karl Berry).
73907
73908 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73909
73910         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73911
73912 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73913
73914         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73915         "autoupdate" on 2005-12-12.
73916
73917 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * modules/closeout (Depends-on): Remove atexit.
73920
73921 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73924         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73925
73926 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73927
73928         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73929         __EXTENSIONS__ if this causes compilation to fail.  Problem
73930         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73931         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73932
73933 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73936         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73938         All uses changed.
73939
73940 2006-01-26  Simon Josefsson  <jas@extundo.com>
73941
73942         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73943         prototype is visible on mingw32.
73944
73945         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73946         for mingw32.
73947
73948         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73949         mingw32).
73950
73951 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73954         attempt to open for write; this always fails, at least on POSIX
73955         hosts.  This reinstates the 2006-01-09 change, which was
73956         inadvertently removed.
73957
73958 2006-01-26  Bruno Haible  <bruno@clisp.org>
73959
73960         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73961         Reported by Paul Eggert.
73962
73963 2006-01-26  Bruno Haible  <bruno@clisp.org>
73964             Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         * lib/stdbool_.h (_Bool)
73967         [(! (defined __cplusplus || defined __BEOS__)
73968           && !defined __GNUC__
73969           && !(defined __HP_cc || defined __xlc__
73970                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73971                || defined __sgi))]:
73972         #define to signed char in these cases too; this simplifies
73973         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73974         etc., separately) and makes it more conservative.
73975
73976 2006-01-25  Simon Josefsson  <jas@extundo.com>
73977
73978         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73979         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73980         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73981
73982 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73983
73984         * lib/argp-namefrob.h: Bugfix. Remove stray #
73985
73986 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73989         so that we test the test.
73990         Check for yet another HP-UX cc bug involving *bool |= bool.
73991
73992 2006-01-25  Karl Berry  <karl@gnu.org>
73993
73994         * config/srclist.txt (vasnprintf.c): sync lost.
73995
73996 2006-01-25  Jim Meyering  <jim@meyering.net>
73997
73998         Sync from the stable (b5) branch of coreutils:
73999
74000         * lib/fts.c (fts_children): Don't let close() clobber errno from
74001         failed fchdir().
74002
74003         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74004         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74005         a dangling symlink.  That can also happen at least for ELOOP.
74006         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74007         FYI, this bug predates the inclusion of fts.c in coreutils.
74008
74009         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74010         in their own block, so pre-c99 compilers don't object.
74011
74012         Avoid the double-free (first in fts_read, second in fts_close) that
74013         would occur when an `active' directory is made inaccessible (e.g.,
74014         via chmod a-x) during a traversal.
74015         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74016         before returning.  Reproduce this failure by
74017         mkdir -p a/b; cd a; chmod a-x . b
74018         Reported by Stavros Passas.
74019
74020 2006-01-25  Jim Meyering  <jim@meyering.net>
74021
74022         * lib/fileblocks.c: Remove more useless parentheses.
74023         * lib/readutmp.h: Likewise.
74024
74025 2006-01-25  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74028         warnings.
74029         Reported by Paul Eggert.
74030
74031 2006-01-25  Bruno Haible  <bruno@clisp.org>
74032
74033         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74034         rid of a trap command. For Solaris sh.
74035         Reported by Mark D. Baushke <mdb@gnu.org>.
74036
74037 2006-01-24  Simon Josefsson  <jas@extundo.com>
74038
74039         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74040         Bruno.
74041
74042 2006-01-24  Karl Berry  <karl@gnu.org>
74043
74044         * config/srclist.txt (argp-namefrob.h): sync lost.
74045
74046 2006-01-24  Jim Meyering  <jim@meyering.net>
74047
74048         * modules/openat (Files): Add lib/intprops.h.
74049         From Mark D. Baushke.
74050
74051 2006-01-24  Jim Meyering  <jim@meyering.net>
74052
74053         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74054         Reported by Mark D. Baushke.
74055
74056 2006-01-24  Jim Meyering  <jim@meyering.net>
74057
74058         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74059
74060 2006-01-24  Bruno Haible  <bruno@clisp.org>
74061
74062         * modules/strnlen (Maintainer): Change from glibc to all.
74063
74064 2006-01-24  Bruno Haible  <bruno@clisp.org>
74065
74066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74067         Patch by Paul Eggert.
74068
74069 2006-01-24  Bruno Haible  <bruno@clisp.org>
74070
74071         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74072         already has it.
74073         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74074         2005-11-26.
74075
74076         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74077         'signed char' to avoid problems with the built-in _Bool type.
74078         Reported by Paul Eggert on 2005-11-26.
74079
74080 2006-01-24  Bruno Haible  <bruno@clisp.org>
74081
74082         * gnulib-tool (func_import): Avoid constructing complicated sed
74083         expressions inside backquote.
74084         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74085
74086 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74087
74088         These changes imported from libc.
74089         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74090         test and two separate function calls.
74091         * lib/strndup.c (__strndup): Add libc_hidden_def.
74092
74093 2006-01-23  Simon Josefsson  <jas@extundo.com>
74094
74095         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74096         Remove the test_*_SOURCES variable: automake infers it by default.
74097         * modules/tls-tests: Likewise.
74098
74099 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         Work around porting bugs reported by Dieter in
74102         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74103         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74104         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74105         Include "getopt.h" first, to check interface.
74106         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74107         !HAVE_DECL_GETENV.
74108         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74109         (__strndup): Revert to K&R-style function dfns, the glibc style.
74110         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74111         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74112         Include strnlen.h first, to get prototype properly.
74113         (strnlen): Renamed from __strnlen.
74114         Remove weak alias.
74115
74116 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74117
74118         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74119
74120 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74121
74122         * config/srclist.txt: Adjust to reflect glibc reorganization.
74123         This affects only comments.
74124
74125 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74126
74127          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74128          Reported by Bruce Korb <bkorb@gnu.org>.
74129
74130 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74133         to pacify gcc -Wswitch-default.
74134
74135 2006-01-22  Bruno Haible  <bruno@clisp.org>
74136
74137         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74138         temporary buffer for sprintf, take into account the precision also
74139         for 'd', 'i', 'u', 'o', 'x', 'X'.
74140
74141 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74142
74143         * modules/argp-tests: New module
74144         * tests/test-argp.c: New file
74145         * tests/test-argp-2.sh: New file
74146
74147 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74148
74149         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74150         (__argp_base_name): Removed
74151         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74152         typo.
74153         (__argp_base_name): Provide macro definition or extern declaration
74154         depending on the configuration
74155
74156 2006-01-20  Simon Josefsson  <jas@extundo.com>
74157
74158         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74159
74160 2006-01-20  Simon Josefsson  <jas@extundo.com>
74161
74162         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74163
74164 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74167         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74168         Suggested by Bruno Haible.
74169
74170 2006-01-20  Karl Berry  <karl@gnu.org>
74171
74172         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74173         until changes propagate, I guess.
74174
74175 2006-01-19  Simon Josefsson  <jas@extundo.com>
74176
74177         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74178
74179 2006-01-19  Simon Josefsson  <jas@extundo.com>
74180
74181         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74182
74183 2006-01-19  Simon Josefsson  <jas@extundo.com>
74184
74185         * gnulib-tool: Set check_PROGRAMS.
74186
74187         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74188         modules/des-tests, modules/gc-arcfour-tests,
74189         modules/gc-arctwo-tests, modules/gc-des-tests,
74190         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74191         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74192         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74193         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74194         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74195         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74196         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74197         test_*_SOURCES.
74198
74199 2006-01-18  Simon Josefsson  <jas@extundo.com>
74200
74201         * modules/socklen (Depends-on): Depend on sys_socket.
74202
74203 2006-01-18  Simon Josefsson  <jas@extundo.com>
74204
74205         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74206         modules/des-tests, modules/gc-arcfour-tests,
74207         modules/gc-arctwo-tests, modules/gc-des-tests,
74208         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74209         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74210         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74211         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74212         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74213         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74214         $(EXEEXT) to automake TESTS variable, for mingw32.
74215
74216 2006-01-17  Simon Josefsson  <jas@extundo.com>
74217
74218         * modules/socklen (Include): Need sys/socket.h.
74219
74220 2006-01-17  Bruno Haible  <bruno@clisp.org>
74221
74222         * modules/ssize_t (Include): Add <sys/types.h>.
74223
74224 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74225
74226         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74227         it's not portable and it doesn't work with cross-compiles.
74228         Problem reported by Bruno Haible.  Fix missing-$ typo in
74229         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74230         -zignore from being used with Sun's C compiler.
74231
74232 2006-01-12  Simon Josefsson  <jas@extundo.com>
74233
74234         * lib/base64.c: Fix warning, reported by Bruno Haible
74235         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74236
74237 2006-01-12  Bruno Haible  <bruno@clisp.org>
74238
74239         * modules/ldd: New file.
74240         * build-aux/ldd.sh.in: New file.
74241         * MODULES.html.sh (Support for building libraries and executables): Add
74242         ldd.
74243
74244 2006-01-12  Bruno Haible  <bruno@clisp.org>
74245
74246         * m4/ldd.m4: New file.
74247
74248 2006-01-12  Bruno Haible  <bruno@clisp.org>
74249
74250         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74251         endless loop while replacing $auxdir with build-aux.
74252
74253 2006-01-11  Simon Josefsson  <jas@extundo.com>
74254
74255         * lib/stdint_.h (SIZE_MAX): Add missing (.
74256
74257 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         Sync from coreutils.
74260         * lib/md5.c: Fix commentary typos.
74261         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74262         * lib/md5.h (__attribute__): Remove; unused.
74263         * lib/sha1.c: Fix commentary to match md5 better.
74264         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74265         so that we don't need to worry about alignment.  All uses changed.
74266         This merges the 2005-10-28 md5 change into sha1.
74267
74268 2006-01-11  Jim Meyering  <jim@meyering.net>
74269
74270         Sync from coreutils.
74271         * lib/md5.c (OP): Fix spacing.
74272
74273 2006-01-11  Bruno Haible  <bruno@clisp.org>
74274
74275         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74276         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74277         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74278
74279 2006-01-11  Bruno Haible  <bruno@clisp.org>
74280
74281         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74282         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74283         the "early" section as well.
74284
74285 2006-01-11  Bruno Haible  <bruno@clisp.org>
74286
74287         Avoid "ar: no archive members specified" error on MacOS X.
74288         * gnulib-tool (func_modules_add_dummy): New function.
74289         (func_import, func_create_testdir): Invoke it.
74290
74291 2006-01-11  Bruno Haible  <bruno@clisp.org>
74292
74293         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74294         with $auxdir in AC_CONFIG_FILES statements.
74295
74296 2006-01-11  Bruno Haible  <bruno@clisp.org>
74297
74298         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74299         Initialize also noinst_HEADERS to empty.
74300
74301 2006-01-11  Bruno Haible  <bruno@clisp.org>
74302
74303         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74304         variables.
74305         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74306         autoreconf.
74307
74308 2006-01-11  Bruno Haible  <bruno@clisp.org>
74309
74310         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74311         overridable by the user.
74312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74313
74314 2006-01-10  Simon Josefsson  <jas@extundo.com>
74315
74316         * modules/sys_socket: New file.
74317
74318 2006-01-10  Simon Josefsson  <jas@extundo.com>
74319
74320         * m4/sys_socket_h.m4: New file.
74321
74322 2006-01-10  Simon Josefsson  <jas@extundo.com>
74323
74324         * lib/socket_.h: New file.
74325
74326 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74327
74328         * modules/readutmp (Maintainer): Add myself.
74329
74330 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74333         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74334         People who are still concerned with buggy memcmp implementations
74335         can invoke gl_FUNC_MEMCMP themselves.
74336
74337 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * lib/regex_internal.h (BITSET_WORD_BITS):
74340         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74341         preprocessor mishandles large unsigned values as if they were signed.
74342         Problem reported by Claudio Fontana in
74343         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74344
74345 2006-01-10  Jim Meyering  <jim@meyering.net>
74346
74347         Avoid the double-free (first in fts_read, second in fts_close) that
74348         would occur when an `active' directory is made inaccessible (e.g.,
74349         via chmod a-x) during a traversal.
74350         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74351         before returning.  Reproduce this failure by
74352         mkdir -p a/b; cd a; chmod a-x . b
74353         Reported by Stavros Passas.
74354
74355         Sync from coreutils.
74356         * lib/sha1.c: Tweak grammar in a comment.
74357
74358 2006-01-10  Jim Meyering  <jim@meyering.net>
74359
74360         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74361         Patch by Joerg Sonnenberger.
74362
74363 2006-01-10  Bruno Haible  <bruno@clisp.org>
74364
74365         * modules/readutmp: Depend on module free.
74366         * modules/strtok_r: Depend on module restrict.
74367
74368 2006-01-10  Bruno Haible  <bruno@clisp.org>
74369
74370         * modules/gettext (configure.ac): Add an invocation of
74371         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74372
74373 2006-01-10  Bruno Haible  <bruno@clisp.org>
74374
74375         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74376         Reported by Werner Lemberg <wl@gnu.org>.
74377
74378 2006-01-10  Bruno Haible  <bruno@clisp.org>
74379
74380         * lib/localcharset.c: Update from GNU gettext.
74381
74382 2006-01-10  Bruno Haible  <bruno@clisp.org>
74383
74384         * lib/argp.h (__const): Remove macro. Use const instead.
74385         * lib/argp-fmtstream.h (__const): Likewise.
74386         * lib/glob_.h (__const): Remove macro.
74387         * lib/glob-libc.h: Use const instead of __const.
74388
74389 2006-01-10  Bruno Haible  <bruno@clisp.org>
74390
74391         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74392         variable.
74393         Needed to avoid an automake error regarding the 'gettext' module.
74394
74395 2006-01-09  Simon Josefsson  <jas@extundo.com>
74396
74397         * modules/inet_ntop (Depends-on): Add restrict.
74398
74399 2006-01-09  Simon Josefsson  <jas@extundo.com>
74400
74401         * modules/gc-rijndael-tests (License): Put under LGPL.
74402
74403         * modules/gc-des-tests (License): Likewise.
74404
74405         * modules/gc-arcfour-tests (License): Likewise.
74406
74407         * modules/gc-arctwo-tests (License): Likewise.
74408
74409         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74410
74411         * modules/gc-hmac-sha1-tests (Files): Likewise.
74412
74413         * modules/gc-hmac-md5-tests (License): Likewise.
74414
74415         * modules/gc-sha1-tests (License): Likewise.
74416
74417         * modules/gc-md5-tests (License): Likewise.
74418
74419         * modules/gc-md4-tests (License): Likewise.
74420
74421         * modules/gc-md2-tests (License): Likewise.
74422
74423         * modules/gc-tests (License): Likewise.
74424
74425         * modules/des-tests (License): Likewise.
74426
74427         * modules/md4-tests (License): Likewise.
74428
74429         * modules/md2-tests (License): Likewise.
74430
74431 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         Sync from coreutils:
74434
74435         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74436         * modules/lib-ignore: New file.
74437         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74438         chdir-safer.m4, lchmod.m4.
74439         * modules/openat: Add mkdirat.c, openat-priv.h.
74440
74441 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         Sync from coreutils.
74444         * m4/lib-ignore.m4: New file.
74445         * m4/lchmod.m4: New file.
74446
74447 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         Sync from coreutils.
74450         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74451         for write access: POSIX says that must fail.
74452         * lib/fts.c (diropen): Likewise.
74453         * lib/save-cwd.c (save_cwd): Likewise.
74454         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74455         well, for minor improvements on hosts that lack O_DIRECTORY.
74456         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74457         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74458         Fall back on chown if open failed with EACCES.
74459
74460         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74461         Report an error at compile-time if only a 1-second nominal clock
74462         resolution is found.
74463
74464         * lib/lchmod.h: New file.
74465         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74466         (make_dir_parents): Use lchown rather than chown, and
74467         lchmod rather than chmod.
74468
74469         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74470         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74471         "proc" reported by n0dalus.
74472
74473         * lib/mountlist.c: Include <limits.h>.
74474         (dev_from_mount_options)
74475         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74476         New function.  It no longer assumes "dev=" has the System V meaning
74477         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74478         (read_file_system_list)
74479         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74480         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74481         dev= in that case.
74482
74483         * lib/posixtm.h (PDS_PRE_2000): New macro.
74484         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74485         allow_century.  All usages changed.  Reject dates outside the range
74486         1969-1999 if PDS_PRE_2000 is used.
74487
74488 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74489
74490         Sync from coreutils.
74491         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74492         (Time of day items): Mention the possibility of leap seconds.
74493         Problem reported by Dr. David Alan Gilbert.
74494
74495 2006-01-09  Jim Meyering  <jim@meyering.net>
74496
74497         Sync from coreutils.
74498
74499         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74500
74501         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74502
74503         * lib/modechange.c (mode_compile): Reject an invalid mode string
74504         that starts with an octal digit.  From Andreas Gruenbacher.
74505
74506         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74507         and dup to open_safer and dup_safer, respectively.
74508         (openat_permissive): Fix typo in comment.
74509
74510         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74511         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74512         (_): Remove; no longer needed.
74513         (openat): Renamed from rpl_openat; no need for rpl_openat
74514         since openat.h renames openat for us.
74515         Replace most of the body with a call to openat_permissive,
74516         to avoid duplicate code.
74517         Port to (probably hypothetical) environments were mode_t is
74518         wider than int.
74519         (openat_permissive): Require mode arg, so that we can check
74520         types better.  Put it just after flags.  Change cwd failure
74521         indicator from pointer-to-bool to pointer-to-errno-value.
74522         All callers changed.
74523         Invoke openat_save_fail and/or openat_restore_fail if
74524         cwd_errno is null, so that openat can call us.
74525         (openat_permissive, fdopendir, fstatat, unlinkat):
74526         Simplify errno handling to avoid some duplicate code,
74527         as it's OK to set errno on success.
74528         * lib/openat.h: Revamp code so that function macros depend on
74529         __OPENAT_PREFIX only, not also on AT_FDCWD.
74530         (openat_ro): Remove.  Caller changed to use openat_permissive.
74531         (openat_permissive): Now a macro, if not a function.
74532         (openat_restore_fail, openat_save_fail): Now always functions,
74533         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74534
74535         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74536         and openat.c.
74537         * lib/mkdirat.c: Include openat-priv.h.
74538         Remove definitions of macros defined therein.
74539         * lib/openat.c: Likewise.
74540
74541         * lib/mkdirat.c (mkdirat): New file and function.
74542         * lib/openat.h (mkdirat): Declare.
74543
74544         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74545
74546         * lib/openat.h (openat_permissive): Declare.
74547         (openat_ro): Define.
74548
74549         * lib/openat.c (EXPECTED_ERRNO): New macro.
74550         (openat_permissive): New function -- used in remove.c rewrite.
74551         (all functions): Set errno just before returning, only if there
74552         was an actual failure.
74553         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74554
74555         Emulate openat-family functions using Linux's procfs, if possible.
74556         Idea and some code based on Ulrich Drepper's glibc changes.
74557
74558         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74559         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74560         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74561         before falling back on save_cwd and restore_cwd.
74562         (fdopendir, fstatat, unlinkat): Likewise.
74563
74564         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74565         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74566
74567         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74568         as second argument to va_arg.  Otherwise, some versions of gcc
74569         warn that `if this code is reached, the program will abort'.
74570
74571 2006-01-09  Jim Meyering  <jim@meyering.net>
74572
74573         Sync from coreutils.
74574         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74575         Require openat-priv.h.
74576
74577 2006-01-09  Bruno Haible  <bruno@clisp.org>
74578
74579         * modules/strnlen (Include): Use strnlen.h.
74580
74581 2006-01-09  Bruno Haible  <bruno@clisp.org>
74582
74583         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74584
74585 2006-01-09  Bruno Haible  <bruno@clisp.org>
74586
74587         * lib/sysexit_.h (EX_OK): New macro.
74588         Suggested by Martin Lambers <marlam@marlam.de>.
74589
74590 2006-01-09  Bruno Haible  <bruno@clisp.org>
74591
74592         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74593         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74594
74595 2006-01-09  Bruno Haible  <bruno@clisp.org>
74596
74597         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74598         numbers.
74599
74600 2006-01-09  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74603         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74604         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74605         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74606
74607 2006-01-09  Bruno Haible  <bruno@clisp.org>
74608
74609         * build-aux/javacomp.sh.in: New file, moved from lib/.
74610         * modules/javacomp-script (Files): Update.
74611         (configure.ac): Add AC_CONFIG_FILES invocation.
74612         (EXTRA_DIST): Remove variable.
74613
74614         * build-aux/javaexec.sh.in: New file, moved from lib/.
74615         * modules/javaexec (Files): Update.
74616         (configure.ac): Add AC_CONFIG_FILES invocation.
74617         (EXTRA_DIST): Remove javaexec.sh.in.
74618
74619         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74620         * modules/csharpcomp-script (Files): Update.
74621         (configure.ac): Add AC_CONFIG_FILES invocation.
74622         (EXTRA_DIST): Remove variable.
74623
74624         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74625         * modules/csharpexec (Files): Update.
74626         (configure.ac): Add AC_CONFIG_FILES invocation.
74627         (EXTRA_DIST): Remove csharpexec.sh.in.
74628
74629 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74630
74631         Sync from coreutils.
74632
74633         Add POSIX ACL support
74634         * lib/acl.h (copy_acl, set_acl): Add declarations.
74635         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74636         systems other than Linux.
74637         (chmod_or_fchmod): New function: use fchmod when possible,
74638         and chmod otherwise.
74639         (file_has_acl): Add a POSIX ACL implementation, with a
74640         Linux-specific subcase.
74641         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74642         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74643         acls are unsupported.
74644         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74645         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74646         are unsupported.
74647
74648 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74649
74650         Sync from coreutils.
74651         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74652
74653 2006-01-07  Bruno Haible  <bruno@clisp.org>
74654
74655         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74656         gl_EARLY.
74657
74658 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74661         Problem reported for Mingw by Mark Junker.
74662
74663 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         * README: Gnulib normally doesn't generate a tarball.
74666
74667 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74670         long int, not int, for nanosecond counts, so that people who are
74671         used to POSIX struct timespec won't be surprised.  Reported by Jim
74672         Meyering.
74673
74674 2005-12-28  Bruno Haible  <bruno@clisp.org>
74675
74676         * build-aux/config.rpath: Update from GNU gettext.
74677
74678 2005-12-16  Jim Meyering  <jim@meyering.net>
74679
74680         * modules/fprintftime: New module.
74681         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74682
74683 2005-12-16  Jim Meyering  <jim@meyering.net>
74684
74685         * m4/fprintftime.m4: New file.
74686
74687 2005-12-16  Jim Meyering  <jim@meyering.net>
74688
74689         * lib/fprintftime.c, lib/fprintftime.h: New files.
74690
74691 2005-12-15  Simon Josefsson  <jas@extundo.com>
74692
74693         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74694         new m4/socklen.m4.
74695
74696 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74697
74698         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74699         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74700
74701 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74702
74703         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74704         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74705         struct uparams is valid. Fall back to the default values if it is
74706         not.
74707
74708 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74709
74710         * modules/argp (Files): Add argp-pin.c
74711         (Depends-on): dirname
74712         (lib_SOURCES): Add argp-pin.c
74713
74714 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74715
74716         * m4/argp.m4:  Check if program_invocation_name and
74717         program_invocation_short_name are declared and define appropriate
74718         macros if they are not.
74719
74720 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74721
74722         * lib/argp-help.c (__argp_base_name): New function
74723         (__argp_short_program_name): Rewrite using __argp_base_name
74724         * lib/argp-namefrob.h: Define program_invocation_name and
74725         program_invocation_short_name if requested
74726         (__argp_base_name): Add prototype
74727         * lib/argp-parse.c (argp_def): Use gettext wrappers
74728         (argp_default_parser): Use __argp_base_name
74729         * lib/argp-pin.c: New file. Defines program_invocation_name and
74730         program_invocation_short_name on systems that lack them.
74731
74732 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74735         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74736         porting problem reported by Georg Schwarz in
74737         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74738
74739 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74742         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74743         porting problem reported by Georg Schwarz in
74744         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74745
74746 2005-12-05  Bruno Haible  <bruno@clisp.org>
74747
74748         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74749         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74750         Reported by Mark Junker <mjscod@gmx.de>.
74751
74752 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74755         Use implementation from Albert Chin, with some
74756         comments/corrections by Stepan Kasal and myself.
74757
74758 2005-12-02  Bruno Haible  <bruno@clisp.org>
74759
74760         * gnulib-tool (func_import): Accept GPLed build tool modules when
74761         --lgpl is given.
74762         * modules/csharpcomp-script: New file.
74763         * modules/csharpcomp: Depend on it.
74764         * modules/javacomp-script: New file.
74765         * modules/javacomp: Depend on it.
74766         Suggested by Simon Josefsson.
74767
74768 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74771         statement, to work around an HP-UX 10.20 compiler bug reported by
74772         Peter O'Gorman.
74773
74774 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * modules/savedir (Depends-on): Add openat.
74777
74778 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74779
74780         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74781         (uintmax_t) [defined uintmax_t]: Do not declare.
74782         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74783         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74784         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74785         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74786         sake of portability to weird hosts that C allows (though we don't
74787         know of any practical examples).
74788
74789         * lib/savedir.h (fdsavedir): New decl.
74790         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74791         contains most of the former guts of savedir.
74792         (savedir): Use savedirstream.
74793         Include "openat.h".
74794
74795 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         * modules/obstack (Files): Add m4/ulonglong.m4.
74798         Problem reported by Davide Angelocola.
74799
74800 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74801
74802         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74803         coreutils no longer futzes with rounding modes.
74804
74805 2005-11-14  Jim Meyering  <jim@meyering.net>
74806
74807         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74808         replacement of mkstemp.
74809
74810 2005-11-10  Simon Josefsson  <jas@extundo.com>
74811
74812         * lib/readline.c: Remove EOL.
74813
74814 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * modules/gethrxtime (Depends-on): Add gettime.
74817
74818 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74821         or gettimeofday; no longer needed.
74822
74823 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74826         time business.
74827         (gethrxtime) [! (HAVE_NANOUPTIME
74828         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74829         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74830         our own approximation.
74831
74832 2005-11-08  Eric Blake  <ebb9@byu.net>
74833
74834         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74835
74836 2005-11-08  Eric Blake  <ebb9@byu.net>
74837
74838         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74839
74840 2005-11-04  Bruno Haible  <bruno@clisp.org>
74841
74842         * gnulib-tool: Implement --update mode.
74843
74844 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         Fix porting problem reported by Theodoros V. Kalamatianos.
74847         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74848         Don't assume that futimes failing means we must fail.
74849
74850 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74851
74852         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74853         variables to suggest the intended function of the PATH_MAX check.
74854
74855 2005-10-30  Kean Johnston  <jkj@sco.com>
74856
74857         Trivial changes to support SCO systems.
74858         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74859         as PATH_MAX.
74860         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74861         where __ptr is null when no I/O is pending.
74862
74863 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74866         leave errno alone.  Problem reported by Dmitry V. Levin.
74867
74868 2005-10-28  Simon Josefsson  <jas@extundo.com>
74869
74870         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74871         Test more.
74872
74873         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74874
74875         * modules/md2, modules/md2-tests: New files.
74876
74877 2005-10-28  Simon Josefsson  <jas@extundo.com>
74878
74879         * m4/inet_ntop.m4: More tests.
74880
74881         * m4/gc-md2.m4, md2.m4: New file.
74882
74883 2005-10-28  Simon Josefsson  <jas@extundo.com>
74884
74885         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74886         "restrict" keywords, as per POSIX.  Protect the function
74887         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74888         Don't use K&R prototypes.  Check the sprintf return values.
74889         Re-define EAFNOSUPPORT if not present.  Indent.
74890
74891         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74892         suggested by Bruno Haible <bruno@clisp.org>.
74893
74894         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74895
74896         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74897
74898         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74899         libgcrypt).
74900
74901         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74902
74903         * lib/md2.h, lib/md2.c: New files.
74904
74905 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74906
74907         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74908         errno alone.  Problem reported by Frederic Jolliton.
74909
74910 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74911
74912         * modules/verify (License): Change from GPL to LGPL.  This is a
74913         tiny module and there are apparently near-equivalents that are
74914         under the BSD license.
74915
74916 2005-10-24  Simon Josefsson  <jas@extundo.com>
74917
74918         * modules/sha1: Relicense to LGPL.
74919
74920 2005-10-24  Simon Josefsson  <jas@extundo.com>
74921
74922         * lib/md4.h: Shrink buffer size, now that we changed the type.
74923
74924 2005-10-23  Simon Josefsson  <jas@extundo.com>
74925
74926         * gnulib-tool (func_import): Fix --tests-base.
74927
74928 2005-10-22  Simon Josefsson  <jas@extundo.com>
74929
74930         * modules/arcfour (Depends-on): Need stdint.
74931
74932 2005-10-22  Simon Josefsson  <jas@extundo.com>
74933
74934         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74935         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74936
74937 2005-10-22  Simon Josefsson  <jas@extundo.com>
74938
74939         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74940         suggested by Bruno Haible <bruno@clisp.org>.
74941
74942 2005-10-22  Simon Josefsson  <jas@extundo.com>
74943
74944         * lib/crc.h: Include stddef.h, for size_t.
74945
74946 2005-10-22  Simon Josefsson  <jas@extundo.com>
74947
74948         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74949         arcfour_context struct (simplify test vector testing in GNU
74950         Shishi).
74951
74952 2005-10-21  Simon Josefsson  <jas@extundo.com>
74953
74954         * modules/des, modules/des-tests: New files.
74955
74956         * modules/gc-des, modules/gc-des-tests: New files.
74957
74958         * tests/test-des.c, tests/test-gc-des.c: New file.
74959
74960 2005-10-21  Simon Josefsson  <jas@extundo.com>
74961
74962         * modules/arctwo, modules/arctwo-tests: New files.
74963
74964         * tests/test-arctwo.c: New file.
74965
74966         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74967
74968         * tests/test-gc-arctwo.c: New file.
74969
74970 2005-10-21  Simon Josefsson  <jas@extundo.com>
74971
74972         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74973         Bruno Haible <bruno@clisp.org>.
74974
74975         * m4/gc-des.m4: New file.
74976
74977 2005-10-21  Simon Josefsson  <jas@extundo.com>
74978
74979         * m4/arctwo.m4: New file.
74980
74981         * m4/gc-arctwo.m4: New file.
74982
74983 2005-10-21  Simon Josefsson  <jas@extundo.com>
74984
74985         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74986         block.
74987
74988 2005-10-21  Simon Josefsson  <jas@extundo.com>
74989
74990         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74991         <bruno@clisp.org>.
74992
74993         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74994
74995         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74996         Bruno Haible <bruno@clisp.org>.
74997
74998         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74999         <bruno@clisp.org>.
75000
75001 2005-10-21  Simon Josefsson  <jas@extundo.com>
75002
75003         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75004
75005 2005-10-21  Simon Josefsson  <jas@extundo.com>
75006
75007         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75008
75009 2005-10-21  Simon Josefsson  <jas@extundo.com>
75010
75011         * lib/des.h, lib/des.c: New files.
75012
75013         * lib/gc-gnulib.c: Support DES.c
75014
75015 2005-10-21  Simon Josefsson  <jas@extundo.com>
75016
75017         * lib/arctwo.h, lib/arctwo.c: New files.
75018
75019         * lib/gc-gnulib.c: Support ARCTWO.
75020
75021 2005-10-21  Simon Josefsson  <jas@extundo.com>
75022
75023         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75024         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75025
75026 2005-10-21  Simon Josefsson  <jas@extundo.com>
75027
75028         * gnulib-tool (func_import, func_create_testdir): Define automake
75029         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75030         Makefile.am snippet),
75031         suggested by Bruno Haible <bruno@clisp.org>.
75032
75033         * modules/gc (Makefile.am): Use it.
75034
75035 2005-10-21  Bruno Haible  <bruno@clisp.org>
75036
75037         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75038         patch.
75039
75040 2005-10-19  Simon Josefsson  <jas@extundo.com>
75041
75042         * tests/test-gc-rijndael.c: New file.
75043
75044         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75045
75046 2005-10-19  Simon Josefsson  <jas@extundo.com>
75047
75048         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75049         interface too.
75050
75051 2005-10-19  Simon Josefsson  <jas@extundo.com>
75052
75053         * tests/test-gc-arcfour.c: New file.
75054
75055         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75056
75057 2005-10-19  Simon Josefsson  <jas@extundo.com>
75058
75059         * modules/gc-md4, modules/gc-md4-tests: New file.
75060
75061         * tests/test-gc-md4.c: New file.
75062
75063 2005-10-19  Simon Josefsson  <jas@extundo.com>
75064
75065         * m4/gc-md4.m4: New file.
75066
75067 2005-10-19  Simon Josefsson  <jas@extundo.com>
75068
75069         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75070         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75071         <kasal@ucw.cz>.
75072
75073 2005-10-19  Simon Josefsson  <jas@extundo.com>
75074
75075         * m4/gc-arcfour.m4: New file.
75076
75077         * m4/gc-rijndael.m4: New file.
75078
75079 2005-10-19  Simon Josefsson  <jas@extundo.com>
75080
75081         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75082
75083 2005-10-19  Simon Josefsson  <jas@extundo.com>
75084
75085         * lib/gc-gnulib.c: Support ARCFOUR.
75086
75087 2005-10-19  Simon Josefsson  <jas@extundo.com>
75088
75089         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75090         support.
75091
75092         * lib/gc.h: Add ECB enum type.
75093
75094         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75095
75096 2005-10-18  Simon Josefsson  <jas@extundo.com>
75097
75098         * tests/test-md5.c: New file.
75099
75100         * modules/md5-tests: New file.
75101
75102 2005-10-18  Simon Josefsson  <jas@extundo.com>
75103
75104         * tests/test-md4.c: New file.
75105
75106         * modules/md4, modules/md4-tests: New files.
75107
75108 2005-10-18  Simon Josefsson  <jas@extundo.com>
75109
75110         * m4/md4.m4: New file.
75111
75112 2005-10-18  Simon Josefsson  <jas@extundo.com>
75113
75114         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75115
75116 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75117
75118         * gnulib-tool (func_create_testdir): Omit the second check whether
75119         BUILT_SOURCES in nonempty.
75120
75121 2005-10-17  Simon Josefsson  <jas@extundo.com>
75122
75123         * tests/test-rijndael.c: New file.
75124
75125 2005-10-17  Simon Josefsson  <jas@extundo.com>
75126
75127         * modules/sha1: Depend on stdint instead of md5.
75128
75129         * modules/md5: Depend on stdint, remove uint32_t.
75130
75131 2005-10-17  Simon Josefsson  <jas@extundo.com>
75132
75133         * modules/gc-sha1-tests: New file.
75134
75135         * tests/test-gc-sha1.c: New file.
75136
75137 2005-10-17  Simon Josefsson  <jas@extundo.com>
75138
75139         * m4/md5.m4: Remove call to uint32_t.m4.
75140
75141 2005-10-17  Simon Josefsson  <jas@extundo.com>
75142
75143         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75144
75145         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75146         md5.h.
75147
75148         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75149
75150         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75151
75152 2005-10-17  Simon Josefsson  <jas@extundo.com>
75153
75154         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75155
75156 2005-10-17  Simon Josefsson  <jas@extundo.com>
75157
75158         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75159
75160 2005-10-17  Simon Josefsson  <jas@extundo.com>
75161
75162         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75163
75164         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75165
75166 2005-10-17  Bruno Haible  <bruno@clisp.org>
75167
75168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75169         that it can also be used in a test.
75170
75171 2005-10-16  Bruno Haible  <bruno@clisp.org>
75172
75173         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75174         TESTS_ENVIRONMENT, so that individual tests can augment it.
75175
75176         * gnulib-tool (func_create_testdir): Use an intermediate target for
75177         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75178         macros, like $(ALLOCA_H), which cannot be passed through the command
75179         line.
75180
75181 2005-10-15  Simon Josefsson  <jas@extundo.com>
75182
75183         * modules/rijndael-tests: New file.
75184
75185         * modules/rijndael: New file.
75186
75187 2005-10-15  Simon Josefsson  <jas@extundo.com>
75188
75189         * m4/rijndael.m4: New file.
75190
75191 2005-10-15  Simon Josefsson  <jas@extundo.com>
75192
75193         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75194
75195         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75196
75197 2005-10-14  Simon Josefsson  <jas@extundo.com>
75198
75199         * tests/test-arcfour.c: New file.
75200
75201         * modules/arcfour, modules/arcfour-tests: New files.
75202
75203 2005-10-14  Simon Josefsson  <jas@extundo.com>
75204
75205         * m4/arcfour.m4: New file.
75206
75207 2005-10-14  Simon Josefsson  <jas@extundo.com>
75208
75209         * lib/arcfour.h, lib/arcfour.c: New files.
75210
75211 2005-10-14  Roland McGrath  <roland@redhat.com>
75212
75213         Import from libc.  [BZ #1331]
75214         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75215         macro argument.
75216         Reported by Matej Vela <vela@debian.org>.
75217
75218 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75219
75220         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75221         include <wchar.h>; no longer needed.
75222
75223 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75224
75225         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75226
75227 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75228         and  Ulrich Drepper  <drepper@redhat.com>
75229
75230         Import from libc.
75231         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75232         instead of inline stream orientation test and two separate
75233         function calls.  Pay no attention to USE_IN_LIBIO.
75234
75235 2005-10-13  Simon Josefsson  <jas@extundo.com>
75236
75237         * modules/gc-hmac-md5-tests: New file.
75238
75239         * tests/test-gc-hmac-sha1.c: New file.
75240
75241         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75242
75243         * modules/gc-hmac-md5-tests: New file.
75244
75245         * tests/test-gc-md5.c: New file.
75246
75247         * modules/gc-md5-tests: New file.
75248
75249 2005-10-13  Simon Josefsson  <jas@extundo.com>
75250
75251         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75252         Move memory allocation outside of loop.
75253
75254 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75255
75256         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75257         intermediate directory is in a read-only file system.  Problem
75258         reported by Eric Blake.
75259
75260 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75261
75262         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75263
75264 2005-10-12  Simon Josefsson  <jas@extundo.com>
75265
75266         * tests/test-hmac-sha1.c: New file.
75267
75268         * modules/hmac-sha1-tests: New file.
75269
75270         * modules/hmac-sha1: New file.
75271
75272 2005-10-12  Simon Josefsson  <jas@extundo.com>
75273
75274         * modules/gc-sha1: New file.
75275
75276 2005-10-12  Simon Josefsson  <jas@extundo.com>
75277
75278         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75279
75280         * tests/test-gc-pbkdf2-sha1.c: New file.
75281
75282 2005-10-12  Simon Josefsson  <jas@extundo.com>
75283
75284         * modules/gc-md5, modules/gc-hmac-md5: New files.
75285
75286         * modules/gc (Files): Remove md5, memxor and hmac files.
75287
75288 2005-10-12  Simon Josefsson  <jas@extundo.com>
75289
75290         * m4/gc-pbkdf2-sha1.m4: New file.
75291
75292         * m4/gc-hmac-sha1.m4: New file.
75293
75294         * m4/gc-sha1: New file.
75295
75296         * m4/hmac-sha1.m4: New file.
75297
75298 2005-10-12  Simon Josefsson  <jas@extundo.com>
75299
75300         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75301
75302         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75303
75304 2005-10-12  Simon Josefsson  <jas@extundo.com>
75305
75306         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75307         suggested by Bruno Haible <bruno@clisp.org>.
75308
75309 2005-10-12  Simon Josefsson  <jas@extundo.com>
75310
75311         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75312
75313 2005-10-12  Simon Josefsson  <jas@extundo.com>
75314
75315         * lib/gc-pbkdf2-sha1.c: New file.
75316
75317         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75318
75319 2005-10-12  Simon Josefsson  <jas@extundo.com>
75320
75321         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75322
75323         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75324
75325 2005-10-12  Simon Josefsson  <jas@extundo.com>
75326
75327         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75328         GC_USE_HMAC_MD5, respectively.
75329
75330         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75331         (gc_md5): Fix typo.
75332
75333         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75334
75335         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75336
75337         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75338
75339 2005-10-12  Bruno Haible  <bruno@clisp.org>
75340
75341         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75342         Reported by Stepan Kasal <kasal@ucw.cz>.
75343
75344 2005-10-11  Simon Josefsson  <jas@extundo.com>
75345
75346         * tests/test-crc.c: New file.
75347
75348         * modules/crc, modules/crc-tests: New files.
75349
75350 2005-10-11  Simon Josefsson  <jas@extundo.com>
75351
75352         * m4/crc.m4: New file.
75353
75354 2005-10-11  Simon Josefsson  <jas@extundo.com>
75355
75356         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75357
75358         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75359
75360         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75361
75362 2005-10-11  Simon Josefsson  <jas@extundo.com>
75363
75364         * lib/crc.h, lib/crc.c: New files.
75365
75366         * lib/gc.h (gc_hash_buffer): Add doc.
75367
75368 2005-10-11  Bruno Haible  <bruno@clisp.org>
75369
75370         * modules/c-strcasestr: New file.
75371         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75372
75373 2005-10-11  Bruno Haible  <bruno@clisp.org>
75374
75375         * modules/c-strcase: New file.
75376         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75377
75378 2005-10-11  Bruno Haible  <bruno@clisp.org>
75379
75380         * lib/strcasecmp.c: Include limits.h.
75381         (strcasecmp): Avoid integer overflow on exotic platforms.
75382         * lib/strncasecmp.c: Include limits.h.
75383         (strncasecmp): Avoid integer overflow on exotic platforms.
75384         Reported by Paul Eggert.
75385
75386 2005-10-11  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/c-strcasestr.h: New file, from GNU gettext.
75389         * lib/c-strcasestr.c: New file, from GNU gettext.
75390
75391 2005-10-11  Bruno Haible  <bruno@clisp.org>
75392
75393         * lib/c-strcase.h: New file, from GNU gettext.
75394         * lib/c-strcasecmp.c: New file, from GNU gettext.
75395         * lib/c-strncasecmp.c: New file, from GNU gettext.
75396
75397 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75398
75399         * modules/mempcpy (License): GPL -> LGPL.
75400         * modules/strchrnul (License): Likewise.
75401         * modules/sysexits (License): Likewise.
75402
75403 2005-10-08  Simon Josefsson  <jas@extundo.com>
75404
75405         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75406
75407 2005-10-07  Simon Josefsson  <jas@extundo.com>
75408
75409         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75410
75411 2005-10-06  Simon Josefsson  <jas@extundo.com>
75412
75413         * tests/test-hmac-md5.c: New file.
75414
75415         * modules/hmac-md5-tests: New file.
75416
75417         * modules/hmac-md5: New file.
75418
75419 2005-10-06  Simon Josefsson  <jas@extundo.com>
75420
75421         * m4/hmac-md5.m4: New file.
75422
75423         * m4/memxor.m4: Require gl_C_RESTRICT.
75424
75425 2005-10-06  Simon Josefsson  <jas@extundo.com>
75426
75427         * lib/memxor.c (memxor): Avoid casts and warnings.
75428
75429 2005-10-06  Simon Josefsson  <jas@extundo.com>
75430
75431         * lib/hmac-md5.c: New file.
75432
75433         * lib/hmac.h: New file.
75434
75435 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75438         promotes to int, not unsigned int, to catch the AIX 5.3
75439         compiler bug.
75440
75441 2005-10-05  Simon Josefsson  <jas@extundo.com>
75442
75443         * modules/memxor: New file.
75444
75445         * modules/iconv (Files): Move config.rpath to havelib, it is used
75446         there.
75447
75448         * modules/havelib (Files): Add config.rpath.
75449
75450 2005-10-05  Simon Josefsson  <jas@extundo.com>
75451
75452         * m4/memxor.m4: New file.
75453
75454 2005-10-05  Simon Josefsson  <jas@extundo.com>
75455
75456         * lib/memxor.c (memxor): Fix compiler error.
75457
75458         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75459         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75460
75461         * lib/memxor.h, lib/memxor.c: New files.
75462
75463         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75464         we assume all systems have it, suggested by Jim Meyering
75465         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75466         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75467         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75468         same reasons.
75469
75470 2005-10-05  Simon Josefsson  <jas@extundo.com>
75471
75472         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75473
75474 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75477         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75478         needed, since the source code now assumes these .h files.
75479
75480 2005-10-05  Derek Price  <derek@ximbiot.com>
75481
75482         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75483
75484 2005-10-05  Bruno Haible  <bruno@clisp.org>
75485
75486         * modules/stdint (License): Change to LGPL.
75487
75488 2005-10-04  Simon Josefsson  <jas@extundo.com>
75489
75490         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75491         D. Baushke" <mdb@gnu.org>.
75492
75493 2005-10-04  Bruno Haible  <bruno@clisp.org>
75494
75495         * lib/verify.h (verify_true): Provide alternative definition for C++.
75496
75497 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75500         (SSIZE_MAX): New macro, if not already defined.
75501         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75502         than 2 GiB.
75503
75504 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         Sync from coreutils.
75507         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75508         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75509         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75510         ULLONG_MAX doesn't work with 2.7.2.1.
75511
75512 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75515         From Ben Pfaff.
75516
75517         * modules/exclude (Depends-on): Depend on verify.
75518         * modules/strtoimax (Depends-on): Likewise.
75519         * modules/utimecmp (Depends-on): Likewise.
75520
75521 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * lib/exclude.c: Include verify.h.
75524         (verify): Remove.  All callers changed to use verify.h's version.
75525         * lib/strtoimax.c: Likewise.
75526         * lib/utimecmp.c: Likewis.e
75527
75528         Sync from coreutils.
75529         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75530         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75531         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75532         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75533         bother returning ENOSYS if settimeofday or stime fails; just let
75534         them return whatever errno they want to return.
75535         * lib/utimens.c: Include unistd.h, for dup2.
75536         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75537         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75538
75539 2005-10-02  Jim Meyering  <jim@meyering.net>
75540
75541         Sync from coreutils.
75542         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75543         from glibc-2.2.5 that fails for read-only files.
75544
75545 2005-10-02  Jim Meyering  <jim@meyering.net>
75546
75547         Sync from coreutils.
75548         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75549         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75550         `#if HAVE_CONFIG_H'.
75551         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75552         Remove AT_FDCWD test.
75553         Do not consume the fd unless successful.
75554         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75555         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75556         block, so that we don't even try to compile it if settimeofday is
75557         available.  This works around a compilation failure on OSF1 V5.1,
75558         due to stime requiring a `long int*' while tv_sec is `int'.
75559
75560 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75561
75562         Sync from coreutils.
75563         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75564         against `yes', rather than just testing for nonempty.
75565
75566 2005-10-01  Simon Josefsson  <jas@extundo.com>
75567
75568         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75569         and Darwin.
75570
75571         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75572         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75573         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75574         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75575         Check if struct addrinfo is declared.
75576
75577 2005-10-01  Simon Josefsson  <jas@extundo.com>
75578
75579         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75580         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75581         AI_* and EAI_* definitions.  Protect function declarations.
75582
75583 2005-10-01  Jim Meyering  <jim@meyering.net>
75584
75585         Sync from coreutils.
75586
75587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75588         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75589         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75590         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75591         in the inet and nsl libraries.  Required on Solaris 5.7.
75592
75593 2005-10-01  Jim Meyering  <jim@meyering.net>
75594
75595         Sync from coreutils.
75596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75597         in the inet and nsl libraries.  Required on Solaris 5.7.
75598
75599 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75600
75601         * lib/getdelim.c (getdelim): Remove unused variables.
75602
75603 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75604
75605         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75606         so that the code works even with ancient cpp.  Portability problem
75607         with GCC 2.7.2.1 reported by Thomas M.Ott.
75608
75609 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75610
75611         * modules/regex (Depends-on): Add strcase.
75612
75613         * modules/gethostname (Licence): Change from GPL to LGPL, since
75614         gethostname.c is a trivial implementation of a standard library
75615         function.
75616         * modules/poll (License): Change from GPL to LGPL, since it's
75617         derived from LGPL code.
75618
75619 2005-09-27  Jim Meyering  <jim@meyering.net>
75620
75621         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75622         HAVE_CONFIG_H.
75623
75624         * lib/intprops.h (signed_type_or_expr__): Define.
75625         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75626         for unsigned types.
75627
75628 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * lib/verify.h (verify_expr): Remove, replacing with:
75631         (verify_true): New macro that returns true instead of void.
75632         (verify_type__): Remove.
75633         (verify): Use verify_true rather than verify_type__.
75634
75635 2005-09-26  Bruno Haible  <bruno@clisp.org>
75636
75637         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75638         is necessary.
75639         (lib_SOURCES): Remove mbchar.c.
75640         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75641         (Files): Add m4/mbrtowc.m4.
75642         * modules/mbiter: Likewise.
75643         * modules/mbuiter: Likewise.
75644
75645 2005-09-26  Bruno Haible  <bruno@clisp.org>
75646
75647         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75648         compile mbchar.c if they are not both present.
75649         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75650         * m4/mbiter.m4 (gl_MBITER): Likewise.
75651         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75652         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75653         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75654
75655 2005-09-25  Jim Meyering  <jim@meyering.net>
75656
75657         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75658         also uses socklen_t.
75659
75660 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * lib/utimens.c (ENOSYS): Define if not already defined.
75663         (futimens): Support having a null PATH if the file descriptor
75664         is nonnegative.
75665
75666         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75667         Remove.
75668         (__attribute): Define to empty unless GCC 3.1 or later.
75669         This works around a core dump on OpenBSD 3.4, which has GCC
75670         2.95.3, which dumps core when given __attribute__(()).  It also
75671         simplifies other tests, since we really don't want to bother with
75672         worrying about which ancient version of GCC supported what.
75673         Original problem reported by Yoann Vandoorselaere, with part of
75674         the fix suggested by Derek Price.
75675
75676 2005-09-24  Jim Meyering  <jim@meyering.net>
75677
75678         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75679         so we can once again use a positive bitfield width of 1 -- now we
75680         don't have to explain why we were using a bitfield width of 2.
75681
75682 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75685         and similarly for the other external symbols.  Problem reported
75686         by James Gallager.
75687
75688         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75689         bug reported by Jim Meyering.
75690
75691         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75693         not needed, since socklen is a prerequisite module.
75694
75695 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75698         Problem reported by Eric Blake.
75699         (getaddrinfo): Initialize se so that it's not garbage.
75700         Redo internal storage allocation so that it doesn't make unportable
75701         assumptions about alignment.
75702         Fix a memory leak.
75703
75704         * lib/utimens.c (futimens): Use futimesat if available.
75705         Prefer it to futimes since it doesn't have the futimes bug.
75706
75707         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75708         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75709         Instead, declare a function that returns a pointer to an array,
75710         and use verify_type__ to declare the size of the array.
75711         Problem and germ of a solution reported by Bruno Haible.
75712         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75713         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75714
75715 2005-09-23  Jim Meyering  <jim@meyering.net>
75716
75717         Sync from coreutils.
75718         Correct build failure (socklen_t not defined) on at least
75719         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75720         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75721
75722 2005-09-23  Jim Meyering  <jim@meyering.net>
75723
75724         * modules/getaddrinfo (Depends-on): Add socklen.
75725
75726 2005-09-23  Bruno Haible  <bruno@clisp.org>
75727
75728         * tests/test-verify.c: New file.
75729
75730 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         Sync from coreutils.
75733
75734         * modules/argmatch (Depends-on): Add verify.
75735         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75736         unistd-safer.
75737         * modules/save-cwd (Depends-on): Likewise.
75738
75739         * modules/openat (Files): Add lib/openat-die.c.
75740         (Depends-on): Remove error, exitfail.
75741         Add dirname.
75742
75743         * modules/verify: New file.
75744         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75745         with "verify" module.
75746
75747 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         Sync from coreutils.
75750
75751         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75752         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75753         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75754         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75755         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75756         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75757         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75758         Don't bother checking for string.h, stdlib.h, unistd.h.
75759         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75760         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75761         module's job.
75762         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75763         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75764
75765         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75766         (gl_GETDATE): Use it.
75767
75768         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75769
75770 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         Sync from coreutils.
75773
75774         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75775         stat-time.h.
75776         * lib/argmatch.h: Include verify.h
75777         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75778         (ARGMATCH_ASSERT): Remove; unused.
75779         * lib/canonicalize.c: Assume STDC_HEADERS.
75780         * lib/exclude.c: Include "strcase.h".
75781         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75782         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75783         and stdio-safer.h.
75784         (getusershell): Call fopen, not fopen_safer.
75785         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75786         Do not include unistd-safer.h.
75787         (save_cwd): Don't call fd_safer; no longer needed
75788         now that we include fcntl--.h.
75789
75790         * lib/getdate.y (relative_time): New type.
75791         (RELATIVE_TIME_0): New constant.
75792         (parser_control): Use relative_time instead of doing it ourselves.
75793         (%union): Add new relative_time rel member.
75794         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75795         Now typeless.
75796         (relunit, relunit_snumber): Now of type rel.
75797         (zone, rel, relunit, get_date): Adjust to above changes.
75798
75799         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75800         Do not include unistd-safer.h.
75801         (getloadavg): Don't call fd_safer; no longer needed
75802         now that we include fcntl--.h.
75803
75804         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75805         (make_dir_parents): Treat ENOSYS like EEXIST.
75806
75807         Improve quality of diagnostics on restore_cwd failure.
75808         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75809         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75810         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75811         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75812         each time through the loop.  Do not diagnose restore_cwd failure;
75813         that is the caller's job (and perhaps the caller does not care).
75814
75815         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75816         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75817         If the file already exists but is not a directory, don't bother
75818         to try to make its parents.
75819         Close potential file descriptor leak if we can't chdir("/") (!).
75820         Don't always return true if chdir($PWD) fails; return true only
75821         if the requested action was done successfully (except for the
75822         chdir($PWD)).
75823         Don't log final directory unless we actually made it.
75824         Refactor to avoid duplicate code to fix up permissions.
75825         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75826
75827         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75828         to make it a bit faster and (I hope) clearer.
75829         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75830         Fix bug in formats like %2N.
75831
75832         * lib/verify.h: New file.
75833
75834 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         Sync from coreutils.
75837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75838
75839 2005-09-22  Jim Meyering  <jim@meyering.net>
75840
75841         Sync from coreutils.
75842
75843         * m4/lstat.m4 (gl_FUNC_LSTAT):
75844         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75845         Remove obsolete comment.
75846         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75847         * m4/xstrtod.m4: Likewise.
75848
75849         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75850
75851 2005-09-22  Jim Meyering  <jim@meyering.net>
75852
75853         Sync from coreutils.
75854
75855         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75856
75857         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75858         the .tm_year member, since otherwise gcc-4.0 would now warn about
75859         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75860
75861         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75862         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75863
75864         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75865         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75866         when run in a time zone for which daylight savings time is in effect
75867         for the starting date.
75868
75869         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75870         stop us from restricting permissions of just-created absolute-named
75871         directories.
75872         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75873         to restore initial working directory.
75874         * lib/mkdir-p.c (make_dir_parents): New parameter:
75875         different_working_dir, to tell caller if/when we change the working
75876         directory and are unable to return to the initial one.
75877         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75878         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75879         `return false'.  This fixes a bug introduced on 2004-07-30.
75880
75881         * lib/openat.c (fdopendir): Be sure to close the supplied
75882         file descriptor before returning.  This makes our replacement
75883         implementation a little closer to Solaris's, where fdopendir
75884         ties the file descriptor to the returned DIR* pointer.
75885         * lib/openat.c (unlinkat): New function.
75886         * lib/openat.h (unlinkat): Add prototype.
75887         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75888         (openat_restore_fail): Rename from openat_restore_die.
75889         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75890
75891         Provide an alternative to exiting immediately upon save_cwd or
75892         restore_cwd failure.  Now, an application can arrange e.g.,
75893         to perform a longjump in that case.
75894         * lib/openat.c: Include dirname.h.
75895         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75896         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75897         and openat_restore_die rather than calling error directly.
75898         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75899
75900         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75901         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75902         define.
75903
75904         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75905         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75906                             int utc, int nanoseconds);
75907         Background:
75908         date should not have to allocate a megabyte of virtual memory to
75909         handle a format argument like +%1048575T.  When implemented with
75910         strftime, it must allocate such a buffer, use strftime to fill it
75911         in, print it, then free it.
75912         With fprintftime, it simply prints everything and exits.
75913         With no need for memory allocation, that's one fewer way to fail.
75914         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75915         optional field width, not before, so we accept %9:z, not %:9z.
75916         (my_strftime): Be sure to use L_('x') for literals.
75917
75918         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75919         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75920         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75921         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75922         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75923         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75924         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75925         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75926         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75927         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75928         * lib/xgethostname.c, lib/xreadlink.c:
75929         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75930
75931         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75932         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75933         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75934         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75935         and don't include <sys/file.h>).
75936
75937 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75938
75939         Sync from coreutils.
75940
75941         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75942         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75943         [!LDAV_DONE]: Avoid unused variable warning.
75944
75945 2005-09-21  Bruno Haible  <bruno@clisp.org>
75946
75947         * lib/unicodeio.h (unicode_to_mb): New declaration.
75948
75949 2005-09-20  Derek Price  <derek@ximbiot.com>
75950
75951         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75952         getaddrinfo.h.
75953
75954 2005-09-20  Bruno Haible  <bruno@clisp.org>
75955
75956         * gnulib-tool: Remove trailing slashes from the values specified for
75957         --source-base, --m4-base, --tests-base, --aux-dir.
75958         Suggested by Simon Josefsson <jas@extundo.com>.
75959
75960 2005-09-20  Bruno Haible  <bruno@clisp.org>
75961
75962         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75963         func_modules_to_filelist, func_import, func_create_testdir): Make all
75964         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75965         change when gnulib-tool is invoked in a different locale.
75966
75967 2005-09-19  Simon Josefsson  <jas@extundo.com>
75968
75969         * m4/socklen.m4: Fix typo.
75970
75971 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75972
75973         Use a consistent style for including <config.h>.
75974         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75975         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75976         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75977         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75978         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75979         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75980         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75981         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75982         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75983         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75984         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75985         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75986         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75987         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75988         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75989         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75990         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75991         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75992         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75993         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75994         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75995         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75996         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75997         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75998         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75999         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76000         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76001         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76002         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76003         lib/xstrtoumax.c, lib/yesno.c:
76004         Standardize inclusion of config.h.
76005         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76006         lib/inttostr.h:  Removed inclusion of config.h from header files.
76007         * lib/inttostr.c:  Adjusted in-tree users.
76008         * lib/timespec.h: Remove superfluous warning to include config.h.
76009         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76010         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76011         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76012         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76013         config.h with HAVE_CONFIG_H.
76014
76015 2005-09-19  Jim Meyering  <jim@meyering.net>
76016
76017         * modules/pathmax (License): Change to LGPL.
76018
76019 2005-09-19  Derek Price  <derek@ximbiot.com>
76020
76021         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76022
76023 2005-09-19  Bruno Haible  <bruno@clisp.org>
76024
76025         * gnulib-tool (import): Provide default for --tests-base.
76026
76027 2005-09-19  Bruno Haible  <bruno@clisp.org>
76028
76029         * doc/quote.texi: New file, extracted from gnulib.texi.
76030         * doc/ctime.texi: New file, extracted from gnulib.texi.
76031         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76032         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76033         * doc/gnulib.texi: Include them.
76034
76035 2005-09-18  Bruno Haible  <bruno@clisp.org>
76036
76037         Portability fix.
76038         * gnulib-tool (func_readlink): New function.
76039         (func_ln_if_changed): Use it.
76040
76041 2005-09-18  Bruno Haible  <bruno@clisp.org>
76042
76043         * gnulib-tool: Support --with-tests also with --import.
76044         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76045         (func_import): Use variables $testsbase and $inctests. Emit a
76046         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76047         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76048         SUBDIRS += $testsdir.
76049         (func_create_testdir): Update.
76050
76051 2005-09-18  Bruno Haible  <bruno@clisp.org>
76052
76053         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76054         instead of $dry_run.
76055         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76056         (func_ln_if_changed): Don't handle dry-run here.
76057         (func_import): In dry-run mode, detect more precisely which actions
76058         would be performed, and don't use "...ing" verbs.
76059
76060 2005-09-18  Bruno Haible  <bruno@clisp.org>
76061
76062         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76063         (func_import): Use join on two temporary files instead of three nested
76064         loops, in order to determine which files are new or old.
76065
76066 2005-09-18  Bruno Haible  <bruno@clisp.org>
76067
76068         * gnulib-tool (func_import): Comment out code that spits out the
76069         new files with --dry-run.
76070
76071 2005-09-18  Bruno Haible  <bruno@clisp.org>
76072
76073         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76074
76075 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * lib/stat-time.h: New file.
76078         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76079         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76080         in a different way.
76081         (timespec_cmp): New function.
76082         * lib/utimecmp.c: Include stat-time.h.
76083         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76084         members exist, not on the obsolescent ST_MTIM_NSEC.
76085         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76086
76087 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76090
76091 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         * MODULES.html.sh (File system functions): Add stat-time.
76094         * modules/stat-time: New file.
76095         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76096         is now done in a different way, by the stat-time module.
76097         * modules/utimecmp (Depends-on): Add stat-time.
76098
76099 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * m4/st_mtim.m4: Remove.  Superseded by...
76102         * m4/stat-time.m4: New file.
76103         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76104         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76105
76106 2005-09-15  Derek Price  <derek@ximbiot.com>
76107
76108         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76109
76110 2005-09-15  Derek Price  <derek@ximbiot.com>
76111
76112         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76113         * lib/regex_internal.c: Ditto, using this...
76114         (__GNUC_PREREQ): ...new macro.
76115         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76116         using...
76117         (__GNUC_PREREQ): ...this new macro.
76118
76119         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76120
76121 2005-09-15  Derek Price  <derek@ximbiot.com>
76122             Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76125         changes, consolidating in...
76126         * lib/regex_internal.h: ...this file.
76127
76128 2005-09-13  Jim Meyering  <jim@meyering.net>
76129
76130         * lib/canon-host.c: Filter through gnu indent and reword comments
76131         slightly.
76132         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76133
76134 2005-09-13  Derek Price  <derek@ximbiot.com>
76135
76136         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76137         failure.
76138         Reported by Jim Meyering  <jim@meyering.net>.
76139
76140 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76141
76142         * lib/base64.c: Typo.
76143         (base64_encode): Put b64str in initialized data section.
76144
76145 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         Merge glibc and coreutils changes into gnulib, plus a few
76148         extra fixes.
76149         * lib/md5.c: Use #error rather than a string.
76150         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76151         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76152         (__attribute__): Define to empty for non recent-GCC.
76153         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76154         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76155         Renamed from their non-__ counterparts, with new macros replacing
76156         them if not _LIBC.  Add __THROW attribute.
76157         (rol): Remove.
76158         (struct md5_ctx): Align buffer if using GCC.
76159         * lib/sha1.h (struct sha1_ctx): Likewise.
76160         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76161         The old name was backwards.
76162         (NOTSWAP): Remove; not used.
76163         (rol): New macro, moved here from md5.h.
76164         (sha1_process_block): Remove a FIXME that doesn't make sense.
76165
76166 2005-09-12  Derek Price  <derek@ximbiot.com>
76167
76168         Return usable errors from canon-host.
76169         * lib/canon-host.h: New file.
76170         * lib/canon-host.c (canon_host): Wrap...
76171         (canon_host_r): ...this new function, which now relies exclusively on
76172         getaddrinfo.
76173         (ch_strerror): New function.
76174         (last_cherror): New global.
76175         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76176         interface.
76177         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76178         void *.
76179         (freeaddrinfo): Free ai->ai_canonname when set.
76180
76181 2005-09-12  Derek Price  <derek@ximbiot.com>
76182
76183         Make canon-host require getaddrinfo.
76184         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76185         AC_LIBSOURCE canon-host.h.  Call...
76186         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76187         gl_GETADDRINFO.
76188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76189
76190 2005-09-12  Derek Price  <derek@ximbiot.com>
76191
76192         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76193         LGPL.
76194         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76195
76196 2005-09-12  Derek Price  <derek@ximbiot.com>
76197
76198         * lib/gai_strerror.c: Include config.h when available.  Include
76199         getaddrinfo.h before other headers to test interface.
76200         Reported by Larry Jones <lawrence.jones@ugs.com>.
76201
76202 2005-09-12  Derek Price  <derek@ximbiot.com>
76203             Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * modules/glob (Files): Add glob-libc.h.
76206
76207 2005-09-12  Derek Price  <derek@ximbiot.com>
76208             Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76211         glob_.h, glob-libc.h.
76212         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76213
76214 2005-09-12  Derek Price  <derek@ximbiot.com>
76215             Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76218         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76219         protecting things that should be done only in gnulib contexts.
76220         * lib/glob_.h: New file, containing only the glob things needed for
76221         gnulib.
76222         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76223         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76224         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76225         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76226         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76227         and to respect the namespace rules better.
76228
76229 2005-09-08  Simon Josefsson  <jas@extundo.com>
76230
76231         * modules/socklen: New file.
76232
76233 2005-09-08  Simon Josefsson  <jas@extundo.com>
76234
76235         * m4/socklen.m4: New file.
76236
76237 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * modules/utimens (Files): Add m4/utimbuf.m4, since
76240         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76241         Reported by Sergey Poznyakoff.
76242
76243 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76246         definitions, since that's the preferred style in glibc.
76247         Fix a minor spacing issue, and update copyright notice to match
76248         glibc's.
76249
76250 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76251
76252         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76253
76254 2005-09-06  Simon Josefsson  <jas@extundo.com>
76255
76256         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76257         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76258
76259 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76262         warning.
76263
76264 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         * config/srclist.txt: Add glibc bug 1302.
76267
76268 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         Change bitset word type from unsigned int to unsigned long int,
76271         as this has better performance on typical 64-bit hosts.
76272         Port bitset code to hosts with unusual word sizes.
76273         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76274         (build_collating_symbol):
76275         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76276         argument is a bitset.  This is merely a style issue, but it makes
76277         it clearer that an entire array is expected.
76278         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76279         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76280         Port to the case where bitset_word is not the same as unsigned int.
76281         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76282         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76283         Likewise.
76284         * lib/regexec.c (check_dst_limits_calc_pos_1,
76285         check_subexp_matching_top):
76286         (build_trtable, group_nodes_into_DFAstates):
76287         Likewise.
76288         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76289         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76290         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76291         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76292         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76293         * lib/regcomp.c (optimize_subexps, lower_subexp):
76294         Work even if bitset_word has holes in its bitwise representation.
76295         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76296         * lib/regexec.c (check_dst_limits_calc_pos_1,
76297         check_subexp_matching_top):
76298         Likewise.
76299         * lib/regex_internal.c (re_string_reconstruct):
76300         Don't assume UCHAR_MAX == 255.
76301         * lib/regex_internal.h (bitset_set_all): Likewise.
76302         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76303         All uses changed.
76304         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76305         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76306         All uses changed.
76307         (BITSET_WORD_MAX): New macro.
76308         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76309         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76310         (bitset_empty, bitset_copy):
76311         Prefer sizeof (bitset) to multiplying it out ourselves.
76312         (bitset_not_merge): Remove; unused.
76313         (bitset_contain): Return bool, not unsigned int with one bit on.
76314         All callers changed.
76315         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76316         alignment than re_node_set; do this by defining a new internal
76317         type struct dests_alloc and using it to allocate memory.
76318
76319 2005-09-05  Bruno Haible  <bruno@clisp.org>
76320
76321         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76322         links.
76323
76324 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76325
76326         * modules/size_max (Makefile.am): Add size_max.h
76327
76328 2005-09-04  Derek Price  <derek@ximbiot.com>
76329
76330         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76331
76332 2005-09-03  Simon Josefsson  <jas@extundo.com>
76333
76334         * gnulib-tool: Fix typo.
76335
76336 2005-09-03  Simon Josefsson  <jas@extundo.com>
76337
76338         * config/srclist.txt: Add glibc bug 1293.
76339
76340 2005-09-03  Derek Price  <derek@ximbiot.com>
76341
76342         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76343         From Larry Jones <lawrence.jones@ugs.com>.
76344
76345 2005-09-02  Simon Josefsson  <jas@extundo.com>
76346
76347         * modules/socklen: New file.
76348
76349 2005-09-02  Simon Josefsson  <jas@extundo.com>
76350
76351         * modules/havelib: New module.
76352
76353         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76354         Use havelib.
76355
76356 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         Check for arithmetic overflow when calculating sizes, to prevent
76359         some buffer-overflow issues.  These patches are conservative, in the
76360         sense that when I couldn't determine whether an overflow was possible,
76361         I inserted a run-time check.
76362         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76363         macros.
76364         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76365         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76366         (re_xnrealloc, re_x2nrealloc): New inline functions.
76367         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76368         parse_bracket_exp):
76369         (build_equiv_class, build_charclass): Check for arithmetic overflow
76370         in size expression calculations.
76371         * lib/regex_internal.c (re_string_realloc_buffers):
76372         (build_wcs_upper_buffer, re_node_set_add_intersect):
76373         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76374         (re_dfa_add_node, register_state): Likewise.
76375         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76376         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76377         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76378         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76379
76380 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76383         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76384
76385 2005-09-02  Bruno Haible  <bruno@clisp.org>
76386
76387         Support for lib vs. lib64 distinction on biarch platforms.
76388         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76389         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76390         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76391
76392 2005-09-02  Bruno Haible  <bruno@clisp.org>
76393
76394         * gnulib-tool (import): In the other first-use case, provide defaults
76395         as well.
76396
76397 2005-09-02  Bruno Haible  <bruno@clisp.org>
76398
76399         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76400         patches not yet found in the latest gettext release.
76401
76402 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76405         to avoid a collision with bits/local_lim.h in glibc.
76406         All uses changed.  Problem reported by Dmitry V. Levin in
76407         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76408
76409         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76410         bugs in int versus size_t comparisons.
76411         (re_string_context_at): Fix bug where the code assumed that
76412         Idx is signed.
76413
76414         Use bool where appropriate.
76415         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76416         All callers changed.
76417         (calc_eclosure_iter): Likewise, for ROOT arg.
76418         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76419         (build_charclass_op): Likewise, for NON_MATCH arg.
76420         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76421         (re_string_construct_common): Likewise, for ICASE arg.
76422         * lib/regexec.c (re_search_2_stub, re_search_stub):
76423         Likewise, for RET_LEN arg.
76424         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76425         (set_regs): Likewise, for FL_BACKTRACK arg.
76426         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76427         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76428         (calc_eclosure_iter, parse_bracket_exp):
76429         Use bool for internal variables that are booleans.
76430         * lib/regexec.c (re_search_internal, check_matching,
76431         proceed_next_node):
76432         (set_regs, build_sifted_states, sift_states_bkref):
76433         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76434         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76435         (find_collation_sequence_value):
76436         Likewise.
76437         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76438         (re_node_set_compare):
76439         Return bool, not int. All callers changed.
76440         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76441         (build_trtable, check_node_accept): Likewise.
76442         * lib/regex_internal.h: Include stdbool.h.
76443
76444         Fix bugs uncovered when converting to bool.
76445         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76446         failure instead of charging ahead blindly.
76447         * lib/regex_internal.c (register_state): Likewise.
76448         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76449         for freeing internal storage.
76450         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76451         bitset pieces used as boolean, to avoid undefined behavior
76452         on hosts that do int overflow checking.
76453
76454 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         * config/srclist.txt: Add glibc bugs 1285-1287.
76457
76458 2005-09-01  Jim Meyering  <jim@meyering.net>
76459
76460         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76461         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76462         Require gl_STAT_MACROS, too.
76463
76464 2005-09-01  Bruno Haible  <bruno@clisp.org>
76465
76466         * gnulib-tool (import): In the first-use case, provide defaults.
76467
76468 2005-09-01  Bruno Haible  <bruno@clisp.org>
76469
76470         * gnulib-tool (func_import): Remove the .tmp files.
76471
76472 2005-09-01  Bruno Haible  <bruno@clisp.org>
76473
76474         * gnulib-tool (func_import): Fix handling of symbolic links.
76475
76476 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76479         old glibc regex code mishandles strings longer than 2**31 bytes.
76480         This patch fixes this when the regex code is used in gnulib
76481         (i.e., outside glibc).
76482
76483         This patch should not affect the use of the regex code inside
76484         glibc.  No doubt this problem also needs to be handled for glibc
76485         as well, but the result will be an incompatible change to the
76486         glibc ABI, and the old ABI will have to be supported too.  That
76487         can be the the subject for another patch.
76488
76489         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76490         governing whether the rest of this patch is active.  By default,
76491         the macro is disabled and the patch has no effect.
76492         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76493         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76494         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76495         (re_match_2, re_set_registers): Use the new types.
76496         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76497         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76498         New macros.
76499         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76500         (re_string_context_at, bin_tree_t, re_dfastate_t):
76501         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76502         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76503         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76504         (re_string_char_size_at, re_string_wchar_at):
76505         (re_string_elem_size_at):
76506         Use the new types and macros to port to 64-bit hosts.
76507         Use unsigned types for internal values, so that the code
76508         mostly works even for arrays larger than SSIZE_MAX.
76509         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76510         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76511         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76512         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76513         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76514         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76515         (calc_inveclosure, parse_dup_op, build_range_exp):
76516         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76517         (fetch_number, create_token_tree, mark_opt_subexp):
76518         Likewise.
76519         * lib/regex_internal.c (re_string_construct_common,
76520         create_ci_newstate):
76521         (create_cd_newstate, re_string_allocate, re_string_construct):
76522         (re_string_realloc_buffers, build_wcs_upper_buffer):
76523         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76524         (re_string_reconstruct, re_string_peek_byte_case):
76525         (re_string_fetch_byte_case, re_string_context_at):
76526         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76527         (re_node_set_init_copy, re_node_set_add_intersect):
76528         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76529         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76530         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76531         (re_acquire_state, re_acquire_state_context, register_state):
76532         Likewise.
76533         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76534         search_cur_bkref_entry):
76535         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76536         (re_search_internal, re_search_2_stub, re_search_stub)
76537         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76538         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76539         (update_cur_sifted_state, check_dst_limits):
76540         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76541         (check_subexp_limits, sift_states_bkref, merge_state_array):
76542         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76543         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76544         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76545         (expand_bkref_cache, check_node_accept_bytes):
76546         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76547         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76548         (acquire_init_state_context, check_halt_node_context):
76549         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76550         (sift_states_backward, clean_state_log_if_needed):
76551         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76552         (find_recover_state, transit_state_sb, transit_state_mb):
76553         (transit_state_bkref, build_trtable, match_ctx_clean):
76554         Likewise.
76555         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76556         to work around an assumption that REG_MISSING is negative.
76557
76558         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76559         (seek_collating_symbol_entry) [defined _LIBC]:
76560         (lookup_collation_sequence_value) [defined _LIBC]:
76561         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76562         Use prototypes rather than old-style function definitions.
76563         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76564         (transit_state_sb) [0]:
76565         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76566
76567         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76568         rm_eo.
76569
76570         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76571         (optimize_subexps, lower_subexp):
76572         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76573         since the signed shift might overflow.  Use 1u<<31 instead.
76574         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76575         Likewise.
76576         * lib/regexec.c (check_dst_limits_calc_pos_1,
76577         check_subexp_matching_top): Likewise.
76578
76579         * lib/regcomp.c (optimize_subexps, lower_subexp):
76580         Use CHAR_BIT rather than 8, for clarity.
76581         * lib/regexec.c (check_dst_limits_calc_pos_1):
76582         (check_subexp_matching_top): Likewise.
76583         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76584         have to worry about portability issues when shifting it left.
76585         Remove no-longer-needed test for table_size > 0.
76586         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76587         in a word, as the resulting behavior is undefined.
76588         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76589         in one case, a <= should have been an <, and in another case the
76590         whole test was missing.
76591         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76592         the standard name CHAR_BIT.
76593         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76594         this is not true on one's complement and signed-magnitude hosts.
76595
76596         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76597         next_last_offset.
76598         (struct re_dfa_t): Remove unused member states_alloc.
76599         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76600
76601 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76604         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76605         and large-file glibc and in 32-bit large-file Solaris.
76606
76607 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76608
76609         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76610         lengths fit in regoff_t; this isn't true if regoff_t is the same
76611         width as size_t.
76612         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76613         (= START + RANGE) instead of RANGE.  This avoids overflow
76614         problems when regoff_t is the same width as size_t.
76615         All callers changed.
76616         (re_search_2_stub): Check for overflow when adding the
76617         sizes of the two strings.
76618         (re_search_stub): Check for overflow when adding START
76619         to RANGE; if it occurs, substitute the extreme value.
76620
76621 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76624
76625 2005-08-31  Jim Meyering  <jim@meyering.net>
76626
76627         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76628         a pointer-to-const.
76629         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76630         (register_state): Likewise.
76631         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76632         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76633         (group_nodes_into_DFAstates): Likewise.
76634
76635 2005-08-31  Jim Meyering  <jim@meyering.net>
76636
76637         * check-module: Add a FIXME comment.
76638
76639 2005-08-31  Eric Blake  <ebb9@byu.net>
76640
76641         * modules/unistd-safer (Files): Add unistd--.h.
76642         * modules/stdio-safer (Files): Add stdio--.h.
76643
76644 2005-08-31  Derek Price  <derek@ximbiot.com>
76645
76646         * lib/getdelim.c (getdelim): Return EOF on EOF.
76647         Reported by Larry Jones <lawrence.jones@ugs.com>.
76648
76649 2005-08-31  Bruno Haible  <bruno@clisp.org>
76650
76651         Avoid unnecessary diffs in the generated lib/Makefile.am.
76652         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76653         the generated files.
76654         (func_import): Don't set cmd.
76655
76656 2005-08-31  Bruno Haible  <bruno@clisp.org>
76657
76658         * lib/strstr.c: Include <stddef.h>, for NULL.
76659         * lib/strcasestr.c: Likewise.
76660         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76661
76662 2005-08-31  Bruno Haible  <bruno@clisp.org>
76663
76664         * gnulib-tool: New option --macro-prefix.
76665         (func_import): Use macro_prefix.
76666         (import): Handle option --macro-prefix.
76667
76668 2005-08-31  Bruno Haible  <bruno@clisp.org>
76669
76670         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76671         Also use new variables cached_lgpl, cached_libtool.
76672
76673 2005-08-31  Bruno Haible  <bruno@clisp.org>
76674
76675         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76676         always instantiating them.
76677
76678 2005-08-31  Bruno Haible  <bruno@clisp.org>
76679
76680         * gnulib-tool (func_import): Read the previous cached settings
76681         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76682         earlier added by gnulib but are now dropped. Warn when a gnulib file
76683         overwrites a non-gnulib file.
76684
76685 2005-08-31  Bruno Haible  <bruno@clisp.org>
76686
76687         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76688         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76689         projects that don't keep autogenerated files in CVS. Put into
76690         actioncmd only the specified modules, not the transitive closure.
76691
76692 2005-08-31  Bruno Haible  <bruno@clisp.org>
76693
76694         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76695         Create directories that shall be filled.
76696         (import): Don't look for gl_* macros in configure.ac. Recurse across
76697         all directories containing a gnulib-cache.m4 files, if meaningful.
76698
76699 2005-08-31  Bruno Haible  <bruno@clisp.org>
76700
76701         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76702         (import): Set seen_libtool when we see gl_LIBTOOL.
76703
76704 2005-08-31  Bruno Haible  <bruno@clisp.org>
76705
76706         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76707         declaration macro definitions from generated gnulib.m4.
76708
76709 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76710
76711         * lib/iconvme.h: Add prototype for iconv_alloc.
76712
76713 2005-08-29  Simon Josefsson  <jas@extundo.com>
76714
76715         * lib/iconvme.c: Fix errno.
76716
76717 2005-08-29  Bruno Haible  <bruno@clisp.org>
76718
76719         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76720         that it works when the directory contains spaces.
76721
76722 2005-08-29  Bruno Haible  <bruno@clisp.org>
76723
76724         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76725
76726 2005-08-29  Bruno Haible  <bruno@clisp.org>
76727
76728         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76729         Emit more advice.
76730
76731 2005-08-29  Bruno Haible  <bruno@clisp.org>
76732         and Stepan Kasal  <kasal@ucw.cz>
76733
76734         * check-module: If more parameters are given, check each of them
76735         separately; add more exceptions, as noted by Jim Meyering.
76736         (check_module): New procedure.
76737         (%exempt_header): Now contains all exceptions.
76738
76739 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76740
76741         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76742
76743 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76744
76745         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76746
76747 2005-08-28  Bruno Haible  <bruno@clisp.org>
76748
76749         * m4/gnulib-tool.m4: New file.
76750
76751 2005-08-27  Jim Meyering  <jim@meyering.net>
76752
76753         * modules/unistd-safer (Files): Add pipe-safer.c.
76754         * modules/fcntl-safer (Files): Add creat-safer.c.
76755
76756 2005-08-27  Jim Meyering  <jim@meyering.net>
76757
76758         * m4/stdlib-safer.m4: New file.  From coreutils.
76759         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76760         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76761         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76762         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76763         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76764
76765 2005-08-27  Jim Meyering  <jim@meyering.net>
76766
76767         * lib/fopen-safer.c: Merge minor changes from coreutils.
76768         * lib/dup-safer.c: Likewise.
76769         * lib/fd-safer.c: Likewise.
76770
76771         Merge from coreutils.
76772         * lib/stdio--.h: New file.
76773         * lib/stdlib--.h: New file.
76774         * lib/mkstemp-safer.c: New file.
76775
76776         GNU tar needs these.
76777         * lib/pipe-safer.c: New file.
76778         * lib/creat-safer.c: New file.
76779         * lib/fcntl--.h (creat): Define to creat_safer.
76780         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76781         * lib/unistd--.h (pipe): Define to pipe_safer.
76782         * lib/unistd-safer.h: Declare pipe_safer.
76783
76784 2005-08-26  Simon Josefsson  <jas@extundo.com>
76785
76786         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76787         Haible <bruno@clisp.org>.
76788
76789 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * lib/regex_internal.h: Remove all references to
76792         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76793         or better.
76794         (bitset_not, bitset_merge, bitset_not_merge):
76795         (bitset_mask, re_string_allocate, re_string_construct):
76796         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76797         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76798         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76799         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76800         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76801         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76802         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76803         (re_acquire_state_context):
76804         Remove unnecessary forward decls.
76805         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76806         Put __attribute at function definition,
76807         now that the function decl has been removed.
76808         * lib/regex_internal.c (re_string_peek_byte_case):
76809         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76810         Likewise.
76811
76812 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76813
76814         * m4/regex.m4: Add AC_PREREQ(2.50).
76815         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76816
76817 2005-08-25  Simon Josefsson  <jas@extundo.com>
76818
76819         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76820         __fsetlocking.
76821
76822 2005-08-25  Simon Josefsson  <jas@extundo.com>
76823
76824         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76825         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76826         GLIBC specific code.
76827
76828 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76829
76830         Make regex safe for g++.  This fixes one real bug (an "err"
76831         that should have been "*err").  g++ problem reported by
76832         Sam Steingold.
76833         * lib/regex_internal.h (re_calloc): New macro, consistent with
76834         re_malloc etc.  All callers of calloc changed to use re_calloc.
76835         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76836         not int.  All callers changed.
76837         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76838         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76839         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76840         (find_recover_state): Change "err" to "*err"; this fixes what
76841         appears to be a real bug.
76842         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76843         versus int.
76844
76845 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76846
76847         * modules/regex (Depends-on): Add malloc, since the code
76848         assumes that !malloc(0) means failure.
76849
76850 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76853
76854         alloca modernization/simplification for regex.
76855         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76856         needs to be at the start of the file, and can be moved into
76857         regex_internal.h and simplified.
76858         * lib/regex_internal.h: Include <alloca.h>.
76859         (__libc_use_alloca) [!defined _LIBC]: New macro.
76860         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76861         now works outside glibc.
76862
76863 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * config/srclist.txt: Add glibc bugs 1241, 1245.
76866
76867 2005-08-25  Jim Meyering  <jim@meyering.net>
76868
76869         * lib/open-safer.c: Include <config.h>.
76870         Otherwise, we'd lose LARGEFILE support in any file using
76871         e.g. "fcntl--.h"
76872
76873 2005-08-25  Bruno Haible  <bruno@clisp.org>
76874
76875         * m4/minmax.m4: Require autoconf 2.52.
76876         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76877         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76878         alternatives of translit over the alphabet.
76879         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76880
76881 2005-08-24  Simon Josefsson  <jas@extundo.com>
76882
76883         * tests/test-getpass.c: New file.
76884
76885 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76888         for GNU regex features.
76889
76890 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76893         * lib/regex.h (regerror): Likewise.
76894
76895         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76896         requires this.  (The code never needed it.)
76897
76898         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76899         All uses of recently-renamed identifiers changed to use the new,
76900         POSIX-compliant names.  The code will build and run just fine
76901         without these changes, but it's better to eat our own dog food
76902         and use the standard-conforming names.
76903
76904         * lib/regex.h: Fix a multitude of POSIX name space violations.
76905         These changes have an effect only for programs that define
76906         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76907         do not change anything for programs compiled in the normal way.
76908         Also, there is no effect on the ABI.
76909
76910         (_REGEX_SOURCE): New macro.
76911         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76912         defined and _GNU_SOURCE is not; this fixes a name space violation.
76913
76914         Rename the following macros to obey POSIX requirements.
76915         The old names are still visible as macros if _REGEX_SOURCE is defined.
76916         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76917         RE_BACKSLASH_ESCAPE_IN_LISTS.
76918         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76919         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76920         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76921         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76922         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76923         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76924         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76925         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76926         (REG_INTERVALS): renamed from RE_INTERVALS.
76927         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76928         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76929         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76930         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76931         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76932         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76933         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76934         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76935         RE_UNMATCHED_RIGHT_PAREN_ORD.
76936         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76937         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76938         (REG_DEBUG): renamed from RE_DEBUG.
76939         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76940         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76941         unusual, since we can't clash with the POSIX REG_ICASE.
76942         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76943         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76944         (REG_NO_SUB): renamed from RE_NO_SUB.
76945         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76946         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76947         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76948         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76949         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76950         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76951         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76952         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76953         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76954         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76955         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76956         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76957         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76958         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76959         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76960         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76961         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76962         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76963         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76964         (REG_FIXED): Renamed from REGS_FIXED.
76965         (REG_NREGS): Renamed from RE_NREGS.
76966
76967         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76968         of other REG_* macros, since POSIX says the user is allowed to
76969         #undef these macros selectively.
76970
76971         (reg_errcode_t): Update comment stating what other tables need
76972         to be consistent.
76973
76974         Rename the following enum values to obey POSIX requirements.
76975         The old names are still visible as macros.
76976         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76977         is not defined, since GNU is supposed to be a superset of POSIX as
76978         much as possible, and since we want reg_errcode_t to be a signed
76979         type for implementation consistency.
76980         (_REG_NOERROR): Renamed from REG_NOERROR.
76981         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76982         (_REG_BADPAT): Renamed from REG_BADPAT.
76983         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76984         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76985         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76986         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76987         (_REG_EBRACK): Renamed from REG_EBRACK.
76988         (_REG_EPAREN): Renamed from REG_EPAREN.
76989         (_REG_EBRACE): Renamed from REG_EBRACE.
76990         (_REG_BADBR): Renamed from REG_BADBR.
76991         (_REG_ERANGE): Renamed from REG_ERANGE.
76992         (_REG_ESPACE): Renamed from REG_ESPACE.
76993         (_REG_BADRPT): Renamed from REG_BADRPT.
76994         (_REG_EEND): Renamed from REG_EEND.
76995         (_REG_ESIZE): Renamed from REG_ESIZE.
76996         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76997         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76998         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76999         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77000         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77001
77002         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77003         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77004         changed.  But support the old name if the new one is not defined
77005         and if _REGEX_SOURCE.
77006
77007         Change the following member names in struct re_pattern_buffer.
77008         The old names are still supported if !_REGEX_SOURCE.
77009         The new names are always supported, regardless of _REGEX_SOURCE.
77010         (re_buffer): Renamed from buffer.
77011         (re_allocated): Renamed from allocated.
77012         (re_used): Renamed from used.
77013         (re_syntax): Renamed from syntax.
77014         (re_fastmap): Renamed from fastmap.
77015         (re_translate): Renamed from translate.
77016         (re_can_be_null): Renamed from can_be_null.
77017         (re_regs_allocated): Renamed from regs_allocated.
77018         (re_fastmap_accurate): Renamed from fastmap_accurate.
77019         (re_no_sub): Renamed from no_sub.
77020         (re_not_bol): Renamed from not_bol.
77021         (re_not_eol): Renamed from not_eol.
77022         (re_newline_anchor): Renamed from newline_anchor.
77023
77024         Change the following member names in struct re_registers.
77025         The old names are still supported if !_REGEX_SOURCE.
77026         The new names are always supported, regardless of _REGEX_SOURCE.
77027         (rm_num_regs): Renamed from num_regs.
77028         (rm_start): Renamed from start.
77029         (rm_end): Renamed from end.
77030
77031         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77032         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77033         Prepend __ to parameter names.
77034
77035         Undo yesterday's changes.
77036
77037 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77040         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77041         lib/regex.c.
77042
77043 2005-08-24  Jim Meyering  <jim@meyering.net>
77044
77045         Sync from coreutils.
77046         * m4/fcntl-safer.m4: New file.
77047
77048         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77049         and object files for this module.
77050
77051 2005-08-24  Jim Meyering  <jim@meyering.net>
77052
77053         Sync from coreutils.
77054         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77055
77056 2005-08-24  Jim Meyering  <jim@meyering.net>
77057
77058         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77059         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77060
77061 2005-08-24  Jim Meyering  <jim@meyering.net>
77062
77063         * modules/fcntl-safer: New module.
77064         * modules/fts (Depends-on): Add fcntl-safer.
77065         * MODULES.html.sh (File descriptor based Input/Output):
77066         Add fcntl-safer.
77067
77068 2005-08-24  Bruno Haible  <bruno@clisp.org>
77069
77070         Support for unit test modules.
77071         * modules/README: Mention tests modules.
77072         * modules/TEMPLATE-TESTS: New file.
77073         * gnulib-tool: New options --extract-tests-module, --with-tests and
77074         --tests-base (unused for the moment).
77075         (testsbase, inctests): New variables.
77076         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77077         (func_verify_module): Exclude TEMPLATE-TESTS.
77078         (func_verify_nontests_module, func_verify_tests_module): New functions.
77079         (func_get_dependencies): Add implicit dependency for tests modules.
77080         (func_get_tests_module): New function.
77081         (func_modules_transitive_closure): When --with-tests was specified,
77082         include the unit tests as well, unless explicitly avoided.
77083         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77084         (func_emit_tests_Makefile_am): New function.
77085         (func_create_testdir): When --with-tests was specified, emit a
77086         tests/ directory.
77087         * MODULES.html.sh (Future developments): Update.
77088
77089 2005-08-24  Bruno Haible  <bruno@clisp.org>
77090
77091         * modules/tls-tests: New file.
77092         * tests/test-tls.c: New file, from GNU gettext.
77093
77094 2005-08-24  Bruno Haible  <bruno@clisp.org>
77095
77096         * modules/lock-tests: New file.
77097         * tests/test-lock.c: New file, from GNU gettext.
77098
77099 2005-08-24  Bruno Haible  <bruno@clisp.org>
77100
77101         * lib/lock.h: Add multiple inclusion guard.
77102         * lib/tls.h: Add multiple inclusion guard.
77103
77104 2005-08-24  Bruno Haible  <bruno@clisp.org>
77105
77106         * gnulib-tool: Add support for the --aux-dir option to
77107         --create-testdir, --create-megatestdir, --test, --megatest.
77108         (func_create_testdir, func_create_megatestdir): Optionally emit a
77109         AC_CONFIG_AUX_DIR directive.
77110         (create-testdir, create-megatestdir, test, megatest): Provide a
77111         default value for $auxdir.
77112
77113 2005-08-24  Bruno Haible  <bruno@clisp.org>
77114
77115         * gnulib-tool (import): Use compound statement instead of subshell
77116         where possible.
77117
77118 2005-08-24  Bruno Haible  <bruno@clisp.org>
77119
77120         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77121
77122 2005-08-24  Bruno Haible  <bruno@clisp.org>
77123
77124         * gnulib-tool (func_version): Update.
77125
77126 2005-08-24  Bruno Haible  <bruno@clisp.org>
77127
77128         * gnulib-tool (func_import, func_create_testdir,
77129         func_create_megatestdir): Quote all autoconf macro arguments.
77130
77131 2005-08-24  Bruno Haible  <bruno@clisp.org>
77132
77133         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77134         option --force, because --force causes the aclocal.m4 of each
77135         subdirectory to be newer than the corresponding config.h.in.
77136
77137 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77140         All contents moved to gl_REGEX.
77141         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77142         assume that it does.
77143
77144 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77145
77146         * lib/regex.h (REG_NOSYS)
77147         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77148         Define, since POSIX requires it as of 2001.
77149         (_REG_ENOSYS)
77150         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77151         New private symbol, used to keep the enum signed in all cases.
77152         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77153         Youngman in
77154         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77155
77156         * lib/regex_internal.c (re_string_skip_chars, register_state):
77157         (calc_state_hash):
77158         Remove forward decls; no longer needed now that we use prototypes.
77159         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77160         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77161         (clean_state_log_if_needed): Likewise.
77162
77163 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * config/srclist.txt: Add glibc bugs 1231-1233.
77166
77167 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77168
77169         Fix problems reported by Sam Steingold in
77170         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77171         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77172         assumed that reg_errcode_t is a signed type, which is not
77173         necessarily true if _XOPEN_SOURCE is not defined.
77174         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77175         since some compilers warn about it otherwise.
77176
77177 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77180         (init_word_char, create_initial_state, duplicate_node_closure):
77181         (fetch_token, peek_token_bracket, build_range_exp):
77182         (build_collating_symbol): Remove forward decls; no longer needed
77183         now that we use prototypes.
77184
77185         * lib/regcomp.c:
77186         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77187         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77188         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77189         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77190         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77191         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77192         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77193         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77194         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77195         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77196         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77197         (build_charclass, build_charclass_op, fetch_number, create_tree):
77198         (create_token_tree, mark_opt_subexp, duplicate_tree):
77199         Use prototypes rather than old-style definitions.
77200
77201         * lib/regex_internal.c:
77202         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77203         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77204         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77205         (re_string_reconstruct, re_string_peek_byte_case):
77206         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77207         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77208         (re_node_set_init_copy, re_node_set_add_intersect):
77209         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77210         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77211         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77212         (re_acquire_state, re_acquire_state_context, register_state):
77213         (create_ci_newstate, create_cd_newstate, free_state):
77214         Likewise.
77215         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77216         re_search_2):
77217         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77218         (re_search_internal, prune_impossible_nodes):
77219         (acquire_init_state_context, check_matching, static):
77220         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77221         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77222         (update_regs, sift_states_backward, build_sifted_states):
77223         (clean_state_log_if_needed, merge_state_array):
77224         (update_cur_sifted_state, add_epsilon_src_nodes):
77225         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77226         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77227         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77228         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77229         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77230         (check_arrival, check_arrival_add_next_nodes):
77231         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77232         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77233         (check_node_accept_bytes, check_node_accept, extend_buffers):
77234         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77235         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77236         (sift_ctx_init):
77237         Likewise.
77238
77239         * lib/regex_internal.h:
77240         (re_string_allocate, re_string_construct, re_string_reconstruct):
77241         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77242         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77243         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77244         (re_string_context_at, re_string_peek_byte_case):
77245         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77246         is defined, since we now use prototypes always.
77247
77248         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77249         C89 or better.  All uses removed.
77250
77251 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * config/srclist.txt: Add glibc bugs 1220-1227.
77254
77255 2005-08-20  Jim Meyering  <jim@meyering.net>
77256
77257         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77258         of unused local, dfa.
77259
77260 2005-08-20  Bruno Haible  <bruno@clisp.org>
77261
77262         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77263
77264 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77267         (re_node_set_insert_last, re_dfa_add_node):
77268         Rename local variables to avoid GCC shadowing warnings.
77269
77270 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77273         [defined lint]: Suppress bogus uninitialized-variable warnings.
77274
77275         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77276         and let the caller return REG_ESPACE if out of space.  This
77277         removes an uninitialied-variable warning with GCC 4.0.1, and also
77278         avoids taking the address of a local variable.  All callers
77279         changed.
77280
77281 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77284         $LIBCSRC/posix/regexec.c.
77285         Add glibc bug 1217 for regcomp.c.
77286
77287 2005-08-19  Jim Meyering  <jim@meyering.net>
77288
77289         * lib/regexec.c (proceed_next_node): Redo local variables to
77290         avoid GCC shadowing warnings.
77291
77292 2005-08-18  Bruno Haible  <bruno@clisp.org>
77293
77294         * lib/strstr.c (strstr): Fix return value in multibyte case.
77295         * lib/strcasestr.c (strcasestr): Likewise.
77296
77297 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77298
77299         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77300
77301 2005-08-17  Jim Meyering  <jim@meyering.net>
77302
77303         Make the %s format (seconds since the epoch) work for a negative
77304         number and when used with a zero-padded field width, e.g. %015s.
77305
77306         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77307         label so that it precedes the code to set `digits'.  Otherwise,
77308         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77309         print `00-22'.  Now, it prints `-0022', as it should.
77310
77311 2005-08-17  Bruno Haible  <bruno@clisp.org>
77312
77313         * modules/strstr (Files): Add m4/mbrtowc.m4.
77314         (Depends-on): Add mbuiter.
77315
77316 2005-08-17  Bruno Haible  <bruno@clisp.org>
77317
77318         * modules/strcasestr: New file.
77319         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77320         strcasestr.
77321
77322 2005-08-17  Bruno Haible  <bruno@clisp.org>
77323
77324         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77325
77326 2005-08-17  Bruno Haible  <bruno@clisp.org>
77327
77328         * modules/mbuiter: New file.
77329         * MODULES.html.sh (Extended multibyte and wide character utilities):
77330         Add mbuiter.
77331
77332 2005-08-17  Bruno Haible  <bruno@clisp.org>
77333
77334         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77335         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77336
77337 2005-08-17  Bruno Haible  <bruno@clisp.org>
77338
77339         * m4/strcasestr.m4: New file.
77340
77341 2005-08-17  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77344         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77345
77346 2005-08-17  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/strcasestr.h: New file.
77349         * lib/strcasestr.c: New file.
77350
77351 2005-08-17  Bruno Haible  <bruno@clisp.org>
77352
77353         * lib/strcasecmp.c: Use mbuiter.h.
77354
77355 2005-08-17  Bruno Haible  <bruno@clisp.org>
77356
77357         * lib/mbuiter.h: New file.
77358
77359 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77362         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77363         and gl_GETOPT are both invoked via different paths (as happens
77364         with GNU tar CVS because it uses both argp and getopt), the former
77365         wins.
77366
77367 2005-08-16  Bruno Haible  <bruno@clisp.org>
77368
77369         * modules/tls: New file.
77370         * MODULES.html.sh (Multithreading): Add tls.
77371
77372 2005-08-16  Bruno Haible  <bruno@clisp.org>
77373
77374         * modules/strnlen1: New file.
77375         * MODULES.html.sh (String handling): Add strnlen1.
77376
77377 2005-08-16  Bruno Haible  <bruno@clisp.org>
77378
77379         * modules/strcase (Files): Add m4/mbrtowc.m4.
77380         (Depends-on): Add strnlen1, mbchar.
77381
77382 2005-08-16  Bruno Haible  <bruno@clisp.org>
77383
77384         * modules/mbiter: New file.
77385         * MODULES.html.sh (Extended multibyte and wide character utilities):
77386         Add mbiter.
77387
77388 2005-08-16  Bruno Haible  <bruno@clisp.org>
77389
77390         * modules/mbfile: New file.
77391         * MODULES.html.sh (Extended multibyte and wide character utilities):
77392         Add mbfile.
77393
77394 2005-08-16  Bruno Haible  <bruno@clisp.org>
77395
77396         * modules/mbchar: New file.
77397         * MODULES.html.sh (Extended multibyte and wide character utilities):
77398         New section.
77399
77400 2005-08-16  Bruno Haible  <bruno@clisp.org>
77401
77402         * m4/tls.m4: New file, from GNU gettext.
77403
77404 2005-08-16  Bruno Haible  <bruno@clisp.org>
77405
77406         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77407         always.
77408         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77409
77410 2005-08-16  Bruno Haible  <bruno@clisp.org>
77411
77412         * m4/mbiter.m4: New file.
77413
77414 2005-08-16  Bruno Haible  <bruno@clisp.org>
77415
77416         * m4/mbfile.m4: New file.
77417
77418 2005-08-16  Bruno Haible  <bruno@clisp.org>
77419
77420         * m4/mbchar.m4: New file.
77421
77422 2005-08-16  Bruno Haible  <bruno@clisp.org>
77423
77424         * lib/tls.h: New file, from GNU gettext.
77425         * lib/tls.c: New file, from GNU gettext.
77426
77427 2005-08-16  Bruno Haible  <bruno@clisp.org>
77428
77429         * lib/strnlen1.h: New file.
77430         * lib/strnlen1.c: New file.
77431
77432 2005-08-16  Bruno Haible  <bruno@clisp.org>
77433
77434         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77435         (mbi_init): Update.
77436         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77437         NUL byte, not after it.
77438
77439 2005-08-16  Bruno Haible  <bruno@clisp.org>
77440
77441         * lib/strcase.h (strcasecmp): Add note in comments.
77442         * lib/strncasecmp.c: Use code from strcasecmp.c.
77443         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77444         (strcasecmp): Work correctly in multibyte locales.
77445
77446 2005-08-16  Bruno Haible  <bruno@clisp.org>
77447
77448         * lib/mbiter.h: New file.
77449
77450 2005-08-16  Bruno Haible  <bruno@clisp.org>
77451
77452         * lib/mbfile.h: New file.
77453
77454 2005-08-16  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/mbchar.h: New file.
77457         * lib/mbchar.c: New file.
77458
77459 2005-08-16  Bruno Haible  <bruno@clisp.org>
77460
77461         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77462         the valid ones. Makes the comparison operations transitive:
77463         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77464         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77465
77466 2005-08-15  Simon Josefsson  <jas@extundo.com>
77467
77468         * modules/ssize_t (License): Change to 'unlimited'.
77469
77470         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77471
77472 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77475         Add comments for each pending glibc patch.
77476
77477 2005-08-15  Bruno Haible  <bruno@clisp.org>
77478
77479         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77480         __cplusplus is defined.
77481
77482 2005-08-14  Jim Meyering  <jim@meyering.net>
77483
77484         Sync from coreutils.
77485
77486         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77487         Use the hash-table-based cycle-detection code not just when
77488         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77489         Reported by James Youngman in
77490         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77491         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77492         FTS_TIGHT_CYCLE_CHECK.
77493         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77494         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77495         once again.
77496         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77497         * lib/fts.c (fd_safer): Remove decl.
77498         Include fcntl--.h rather than unistd-safer.h
77499         (fts_safe_changedir): Don't call fd_safer; no longer needed
77500         now that we include fcntl--.h.
77501
77502 2005-08-12  Simon Josefsson  <jas@extundo.com>
77503
77504         * modules/getndelim2: Use ssize_t module.
77505         * modules/getnline: Likewise.
77506         * modules/safe-read: Likewise.
77507         * modules/xreadlink: Likewise.
77508
77509         * modules/ssize_t: New file.
77510
77511 2005-08-12  Simon Josefsson  <jas@extundo.com>
77512
77513         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77514
77515 2005-08-12  Simon Josefsson  <jas@extundo.com>
77516
77517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77518         ssize_t.
77519
77520 2005-08-12  Simon Josefsson  <jas@extundo.com>
77521
77522         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77523         readline, getdelim and check_version.
77524         (Support for systems lacking ISO C 99: Sizes of integer types):
77525         Add size_max.
77526
77527 2005-08-12  Bruno Haible  <bruno@clisp.org>
77528
77529         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77530
77531 2005-08-11  Simon Josefsson  <jas@extundo.com>
77532
77533         * modules/readline: New file.
77534
77535         * modules/strnlen (Files): Add strnlen.h.
77536
77537 2005-08-11  Simon Josefsson  <jas@extundo.com>
77538
77539         * m4/readline.m4: New file.
77540
77541 2005-08-11  Simon Josefsson  <jas@extundo.com>
77542
77543         * lib/readline.h, readline.c: New file.
77544
77545 2005-08-11  Simon Josefsson  <jas@extundo.com>
77546
77547         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77548         gl_AVOID.
77549
77550 2005-08-11  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77553
77554 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77555
77556         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77557
77558 2005-08-10  Simon Josefsson  <jas@extundo.com>
77559
77560         * tests/test-iconvme.c: New file.
77561
77562 2005-08-10  Simon Josefsson  <jas@extundo.com>
77563
77564         * m4/strnlen.m4: New file.
77565
77566         * m4/strndup.m4: Don't check for strnlen declaration, done in
77567         strnlen.m4.
77568
77569 2005-08-10  Simon Josefsson  <jas@extundo.com>
77570
77571         * lib/strndup.c: Use strnlen.h.
77572
77573         * lib/strnlen.h: New file.
77574
77575 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77576
77577         * README: Typos.
77578
77579 2005-08-02  Simon Josefsson  <jas@extundo.com>
77580
77581         * modules/readline: New file.
77582
77583 2005-08-02  Simon Josefsson  <jas@extundo.com>
77584
77585         * modules/getdelim: New file.
77586
77587         * modules/getline: Rewrite, don't use getndelim2.
77588
77589 2005-08-02  Simon Josefsson  <jas@extundo.com>
77590
77591         * m4/getline.m4: Separate out getdelim stuff into separate module.
77592
77593         * m4/getdelim.m4: New file.
77594
77595 2005-08-02  Simon Josefsson  <jas@extundo.com>
77596
77597         * lib/getline.h, getline.c: Rewrite.
77598
77599         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77600
77601 2005-07-31  Bruno Haible  <bruno@clisp.org>
77602
77603         * lib/lock.h (gl_lock_initializer): New macro.
77604         (gl_lock_define_initialized): Use it.
77605         (gl_rwlock_initializer): New macro.
77606         (gl_rwlock_define_initialized): Use it.
77607         (gl_recursive_lock_initializer): New macro.
77608         (gl_recursive_lock_define_initialized): Use it.
77609
77610 2005-07-30  Karl Berry  <karl@gnu.org>
77611
77612         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77613         Report from Ben Pfaff, regarding getopt.
77614
77615 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77618         normal way.
77619         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77620         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77621         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77622         (gl_GETOPT): Use the new macros.  Most of the implementation
77623         is moved to the new macros.  This is for programs like Emacs
77624         that don't want all the functionality of gl_GETOPT.
77625
77626 2005-07-26  Bruno Haible  <bruno@clisp.org>
77627
77628         * m4/lock.m4: Update from GNU gettext.
77629
77630 2005-07-26  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/lock.h: Update from GNU gettext.
77633         * lib/lock.c: Update from GNU gettext.
77634
77635 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77638         obsolescent AC_TRY_RUN.  Include the default includes files, for
77639         'exit'.
77640
77641 2005-07-24  Bruno Haible  <bruno@clisp.org>
77642
77643         * modules/visibility: New file.
77644         * MODULES.html.sh (Misc): Add visibility.
77645
77646 2005-07-24  Bruno Haible  <bruno@clisp.org>
77647
77648         * m4/visibility.m4: New file.
77649
77650 2005-07-24  Bruno Haible  <bruno@clisp.org>
77651
77652         * doc/visibility.texi: New file.
77653
77654 2005-07-22  Bruno Haible  <bruno@clisp.org>
77655
77656         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77657         $(ALLOCA_H), redundant through BUILT_SOURCES.
77658         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77659         redundant through BUILT_SOURCES.
77660         * modules/byteswap (Makefile.am): Remove explicit dependency on
77661         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77662         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77663         $(FNMATCH_H), redundant through BUILT_SOURCES.
77664         * modules/getopt (Makefile.am): Remove explicit dependency on
77665         $(GETOPT_H), redundant through BUILT_SOURCES.
77666         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77667         redundant through BUILT_SOURCES.
77668         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77669         redundant through BUILT_SOURCES.
77670         * modules/stdbool (Makefile.am): Remove explicit dependency on
77671         $(STDBOOL_H), redundant through BUILT_SOURCES.
77672         * modules/stdint (Makefile.am): Remove explicit dependency on
77673         $(STDINT_H), redundant through BUILT_SOURCES.
77674         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77675         Remove explicit dependency on $(SYSEXITS_H).
77676         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77677
77678 2005-07-18  Simon Josefsson  <jas@extundo.com>
77679
77680         * lib/check-version.c (check_version): Accept identical versions too.
77681
77682 2005-07-18  Bruno Haible  <bruno@clisp.org>
77683
77684         * modules/lock: New file.
77685         * MODULES.html.sh (Multithreading): New section.
77686
77687 2005-07-18  Bruno Haible  <bruno@clisp.org>
77688
77689         * m4/lock.m4: New file, from GNU gettext.
77690
77691 2005-07-18  Bruno Haible  <bruno@clisp.org>
77692
77693         * lib/lock.h: New file, from GNU gettext.
77694         * lib/lock.c: New file, from GNU gettext.
77695
77696 2005-07-18  Bruno Haible  <bruno@clisp.org>
77697
77698         * lib/lock.h (gl_once_t): New type.
77699         (gl_once_define, gl_once): New macros.
77700         * lib/lock.c (fresh_once): New variable.
77701         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77702         functions.
77703
77704 2005-07-16  Simon Josefsson  <jas@extundo.com>
77705
77706         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77707         workaround, suggested by Bruno.
77708
77709 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * modules/xalloc (Depends-on): Add xalloc-die.
77712         * modules/xvasprintf (Depends-on): Add xalloc-die.
77713
77714 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77717         with a minor change.
77718
77719 2005-07-15  Bruno Haible  <bruno@clisp.org>
77720
77721         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77722         When using lib/poll.c, define poll as rpl_poll.
77723
77724 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * modules/argp (Depends-on): Remove unlocked-io.
77727
77728 2005-07-14  Derek Price  <derek@ximbiot.com>
77729
77730         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77731         for glob symlink bug.
77732
77733 2005-07-14  Bruno Haible  <bruno@clisp.org>
77734
77735         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77736         Instead, test for *_unlocked function declarations directly.
77737
77738 2005-07-11  Simon Josefsson  <jas@extundo.com>
77739
77740         * modules/size_max: New file.
77741
77742         * modules/xsize: Depend on size_max module for size_max.m4.
77743
77744 2005-07-11  Simon Josefsson  <jas@extundo.com>
77745
77746         * lib/size_max.h: New file.
77747
77748 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77749
77750         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77751         copyright symbol and the year.
77752         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77753         (version_etc_va): Use parameterized copyright notice.
77754         Reword to conform to the current GNU coding standards.
77755
77756 2005-07-11  Karl Berry  <karl@gnu.org>
77757
77758         * doc/gnulib.texi (Quoting): new node.
77759         (Initial import): more info, from Patrice.
77760
77761 2005-07-11  Bruno Haible  <bruno@clisp.org>
77762
77763         * gnulib-tool (func_usage): Document option --avoid.
77764         (Command line options): Handle --avoid.
77765         (func_acceptable): New function.
77766         (func_modules_transitive_closure): Use it.
77767
77768 2005-07-11  Bruno Haible  <bruno@clisp.org>
77769
77770         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77771         Reported by Jim Meyering.
77772
77773 2005-07-10  Bruno Haible  <bruno@clisp.org>
77774
77775         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77776         Needed when size_t is smaller than 'unsigned int'.
77777         Reported by Paul Eggert.
77778
77779 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77780
77781         * modules/argp (Depends-on): Add unlocked-io
77782
77783 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77784
77785         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77786         block of defines.
77787
77788 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77791         fix now.
77792
77793 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77794         and Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77797         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77798
77799 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * modules/regex (Files): Add lib/regex_internal.c,
77802         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77803         (Depends-on): Add extensions.
77804         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77805
77806 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77809         pathconf.
77810         * m4/same.m4 (gl_SAME): Likewise.
77811         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77812
77813         * m4/regex.m4: Adjust to new libc regex implementation.
77814         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77815         all the .c and .h parts of (the new) regex.
77816         Quote the m4 stuff better.
77817         Check for RE_ICASE bug of old gnulib.
77818         Check for REG_STARTEND of recent libc.
77819         Rename local variables from jm_* to gl_*.
77820         Quote operand of "test -f".
77821         Say "recent enough" version of libc, not "version 2".
77822         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77823         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77824         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77825         Remove check for btowc, isascii.
77826         Require AM_LANGINFO_CODESET.
77827
77828 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/regex.c, regex.h: Sync from libc.
77831         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77832         * lib/regexec.c:
77833         New files, synced from libc, except that regex_internal.h
77834         currently has a small porting fix.
77835
77836 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77839         regex_internal.c, regexec.c.
77840         Add regex_internal.h too, but as a comment, since the libc version
77841         is currently broken in gnulib mode.
77842
77843 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         Support programs like Emacs that use gnulib but not gettext.
77846         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77847         * modules/gettext-h: New file.
77848         * modules/gettext (Files): Remove lib/gettext.h.
77849         (Depends-on): Add gettext-h.
77850         (Makefile.am): Remove lib_SOURCES.
77851         * modules/argmatch, modules/c-stack, modules/closeout:
77852         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77853         * modules/execute, modules/file-type, modules/getaddrinfo:
77854         * modules/getopt, modules/human, modules/javacomp:
77855         * modules/javaexec, modules/mkdir-p, modules/obstack:
77856         * modules/openat, modules/pagealign_alloc, modules/pipe:
77857         * modules/quotearg, modules/regex, modules/rpmatch:
77858         * modules/unicodeio, modules/userspec, modules/version-etc:
77859         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77860         * modules/xsetenv:
77861         Depend on gettext-h, not gettext.
77862
77863 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         * gnulib-tool (func_import): Add support for 'public domain' license.
77866         * modules/alloca, modules/atexit, modules/memmove:
77867         Now public domain, not GPL.
77868         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77869         * modules/realloc, modules/strerror, modules/strtod:
77870         Now LGPL, not GPL.
77871
77872 2005-07-05  Bruno Haible  <bruno@clisp.org>
77873
77874         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77875         autoconf CVS. Needed for mingw.
77876
77877 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         Remove the dependency of the strftime module on the tzset module.
77880         * modules/strftime (Depends-on): Remove dependency on tzset.
77881
77882 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         Remove the dependency of the strftime module on the tzset module.
77885         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77886         gl_FUNC_TZSET_CLOBBER.
77887
77888 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         Remove the dependency of the strftime module on the tzset module.
77891         * lib/strftime.c (my_strftime)
77892         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77893         Copy the input structure, to work around some of the bug with
77894         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77895         Solaris releases, you should also use the tzset module, but we won't
77896         require it as a dependency any more since we don't want LGPLed code
77897         to depend on GPLed code.
77898
77899 2005-07-02  Jim Meyering  <jim@meyering.net>
77900
77901         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77902         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77903         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77904         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77905
77906 2005-07-02  Jim Meyering  <jim@meyering.net>
77907
77908         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77909
77910 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77913         declares only 'struct timespec;' (!).
77914
77915 2005-07-01  Jim Meyering  <jim@meyering.net>
77916
77917         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77918         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77919         * lib/save-cwd.c, tempname.c:
77920         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77921         and don't include <sys/file.h>).
77922
77923 2005-06-29  Jim Meyering  <jim@meyering.net>
77924
77925         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77926         type name.  Use the variable name instead.
77927         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77928         Likewise.
77929
77930 2005-06-28  Simon Josefsson  <jas@extundo.com>
77931
77932         * modules/check-version (Files): Add check-version.m4.
77933
77934 2005-06-28  Simon Josefsson  <jas@extundo.com>
77935
77936         * m4/check-version.m4: New file, suggested by Jim Meyering
77937         <jim@meyering.net>.
77938
77939 2005-06-28  Simon Josefsson  <jas@extundo.com>
77940
77941         * lib/check-version.h, lib/check-version.c: New files.
77942
77943 2005-06-28  Simon Josefsson  <jas@extundo.com>
77944
77945         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77946         collision with global variable.  Better indentation.  Don't
77947         increment buffer pointer beyond buffer end.  Based on comments
77948         from Paul Eggert <eggert@cs.ucla.edu>.
77949
77950         * lib/base64.h: Indent.
77951
77952 2005-06-28  Simon Josefsson  <jas@extundo.com>
77953
77954         * doc/gnulib.texi (Library version handling): New section.
77955
77956 2005-06-28  Jim Meyering  <jim@meyering.net>
77957
77958         * check-module (find_included_lib_files): Hard-code another
77959         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77960         but modules/fts-lgpl (correctly) does not list those files.
77961
77962         * modules/canonicalize (Files): Add lib/pathmax.h.
77963
77964 2005-06-25  Simon Josefsson  <jas@extundo.com>
77965
77966         * modules/check-version: New file.
77967
77968 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77971         initializer of struct addrinfo, as an indication that we don't
77972         care how many members the structure has.
77973
77974 2005-06-24  Derek Price  <derek@ximbiot.com>
77975         and Bruno Haible  <bruno@clisp.org>
77976
77977         Remove stat module & update lstat.
77978         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77979         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77980         * m4/stat.m4: Remove this file.
77981
77982 2005-06-24  Derek Price  <derek@ximbiot.com>
77983         and Bruno Haible  <bruno@clisp.org>
77984
77985         Remove stat module & update lstat.
77986         * lib/stat.c: Remove this file...
77987         (slash_aware_lstat): ...moving this content and its support...
77988         * lib/lstat.c (rpl_lstat): ...into here.
77989         * lib/lstat.h: New file.
77990
77991 2005-06-24  Derek Price  <derek@ximbiot.com>
77992         and Bruno Haible  <bruno@clisp.org>
77993
77994         Remove stat module & update lstat.
77995         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
78002         * MODULES.html: Regenerated.
78003         * modules/lstat (Description): Correct function name.
78004         (Files): Add "lstat.h".
78005         (Depends-on): Remove stat, add xalloc, stat-macros.
78006         * modules/stat: Remove this file.
78007         (Include): Add "lstat.h", remove <sys/stat.h>.
78008
78009 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78012         (ranged_convert): Don't save conversion in a temporary struct.
78013         This causes a warning with GCC 4.0.0, and anyway in the typical
78014         case it's not worth the extra 100 bytes or so of code.
78015         (ranged_convert, __mktime_internal): When calling a function via a
78016         pointer P, use P () rather than (*P) (), as we now assume C89 or
78017         better.
78018
78019 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78022         "who -r" failed to give output.  Problem reported by Tim Waugh.
78023
78024         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78025         (xcalloc): Use it to avoid needless tests.
78026         Problem reported by Jim Meyering.
78027
78028 2005-06-20  Derek Price  <derek@ximbiot.com>
78029
78030         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78031         unnecessary for Autoconfs > 2.59c.
78032
78033 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78034
78035         * lib/argp.h (__option_is_short): Check upper limit of
78036         __key. Isprint() requires its argument to have the value
78037         of an unsigned char or EOF.
78038
78039 2005-06-16  Jim Meyering  <jim@meyering.net>
78040
78041         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78042         when either N or S is zero.
78043
78044 2005-06-16  Derek Price  <derek@ximbiot.com>
78045
78046         * m4/bison.m4: Declare YACC & YFLAGS precious.
78047
78048 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78049
78050         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78051         multibyte string or pattern, fall back on unibyte matching.
78052         Problem reported by James Youngman.
78053
78054 2005-06-08  Bruno Haible  <bruno@clisp.org>
78055
78056         * modules/csharpcomp: New file.
78057         * MODULES.html.sh (C#): Add csharpcomp.
78058
78059 2005-06-08  Bruno Haible  <bruno@clisp.org>
78060
78061         * m4/csharpcomp.m4: New file, from GNU gettext.
78062
78063 2005-06-08  Bruno Haible  <bruno@clisp.org>
78064
78065         * lib/csharpcomp.h: New file, from GNU gettext.
78066         * lib/csharpcomp.c: New file, from GNU gettext.
78067         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78068
78069 2005-06-08  Bruno Haible  <bruno@clisp.org>
78070
78071         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78072         warning on mingw.
78073
78074 2005-06-07  Derek Price  <derek@ximbiot.com>
78075
78076         Sync from CVS.
78077         * lib/glob_.h: Indent nested #ifdef.
78078
78079 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         Sync from coreutils.
78082         Use "file name" when talking about file names, instead of "filename"
78083         or "path", as per the GNU coding standards.
78084         * lib/mkdir-p.c: Renamed from makepath.c.
78085         (make_dir_parents): Renamed from make_path.  All callers changed.
78086         * lib/mkdir-p.h: Likewise.  All includers changed.
78087         * lib/filenamecat.c: Renamed from path-concat.c.
78088         (file_name_concat): Renamed from path_concat.  All callers changed.
78089         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78090         * lib/filenamecat.h: Likewise.  All includers changed.
78091         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78092         in comments or local variable names.
78093         * lib/basename.c: Likewise.
78094         * lib/canonicalize.c, canonicalize.h: Likewise.
78095         * lib/dirname.c, dirname.h: Likewise.
78096         * lib/euidaccess.c: Likewise.
78097         * lib/exclude.c: Likewise
78098         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78099         * lib/fsusage.c, fsuage.h: Likewise.
78100         * lib/fts.c, fts_.h: Likewise.
78101         * lib/getcwd.c: Likewise.
78102         * lib/getloadavg.c: Likewise.
78103         * lib/mkstemp.c: Likewise.
78104         * lib/mountlist.c, mountlist.h: Likewise.
78105         * lib/openat.c, openat.h: Likewise.
78106         * lib/readlink-stub.c: Likewise.
78107         * lib/readutmp.c, readutmp.h: Likewise.
78108         * lib/rename.c: Likewise.
78109         * lib/rmdir.c: Likewise.
78110         * lib/same.c: Likewise.
78111         * lib/savedir.c: Likewise.
78112         * lib/stripslash.c: Likewise.
78113         * lib/tempname.c: Likewise.
78114         * lib/xreadlink.c: Likewise.
78115         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78116         All uses changed.
78117         * lib/exclude.h: Likewise.
78118
78119         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78120         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78121         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78122         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78123         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78124         files have been getting away with it for years (MORE/BSD 4.3
78125         is extinct now).
78126         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78127         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78128
78129         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78130         Define to 256, not 255, as per modern POSIX.
78131
78132 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         Sync from coreutils.
78135         Use "file name" when talking about file names, instead of "filename"
78136         or "path", as per the GNU coding standards.
78137         * MODULES.html.sh: mkdir-p renamed from makepath.
78138         filenamecat renamed from path-concat.
78139         * modules/filenamecat: Renamed from modules/path-concat.
78140         (Files): filenamecat.h and filenamecat.c renamed from
78141         path-concat.h and path-concat.c.
78142         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78143         (Include): filenamecat.h, not path-concat.h.
78144         * modules/mkdir-p: Renamed from modules/makepath.
78145         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78146         makepath.c.
78147         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78148         (Include): mkdir-p.h, not makepath.h.
78149
78150 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         Sync from coreutils.
78153         * m4/mkdir-p.m4: Renamed from makepath.m4.
78154         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78155         Rename files from makepath.c to mkdir-p.c, and from
78156         makepath.h to mkdir-p.h.
78157         * m4/filenamecat.m4: Renamed from path-concat.m4.
78158         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78159         Rename files from path-concat.c to filenamecat.c,
78160         and from path-concat.h to filenamecat.h.
78161         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78162         "file name" in local variables or comments.
78163         * m4/rename.m4: Likewise.
78164
78165 2005-06-01  Bruno Haible  <bruno@clisp.org>
78166
78167         * modules/csharpexec: New file.
78168         * MODULES.html.sh (C#): New section.
78169
78170 2005-06-01  Bruno Haible  <bruno@clisp.org>
78171
78172         * m4/csharp.m4: New file, from GNU gettext.
78173         * m4/csharpexec.m4: New file, from GNU gettext.
78174
78175 2005-06-01  Bruno Haible  <bruno@clisp.org>
78176
78177         * lib/csharpexec.h: New file, from GNU gettext.
78178         * lib/csharpexec.c: New file, from GNU gettext.
78179         * lib/csharpexec.sh.in: New file, from GNU gettext.
78180
78181 2005-05-31  Derek Price  <derek@ximbiot.com>
78182             Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         Sync from cvs.
78185         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78186
78187 2005-05-31  Derek Price  <derek@ximbiot.com>
78188             Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         Sync from cvs.
78191         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78192
78193 2005-05-29  Derek Price  <derek@ximbiot.com>
78194
78195         * config/srclist.txt (glob_.h, glob.c): Add these files.
78196
78197 2005-05-29  Derek Price  <derek@ximbiot.com>
78198
78199         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78200         * modules/glob: New file.
78201         * modules/getlogin_r: Add link to POSIX spec in description.
78202
78203 2005-05-29  Derek Price  <derek@ximbiot.com>
78204             Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * m4/glob.m4: New file.
78207
78208 2005-05-29  Derek Price  <derek@ximbiot.com>
78209             Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * lib/glob_.h, lib/glob.c: New files.
78212
78213 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78214
78215         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78216         * modules/fts-lgpl (Depends-on): Remove gettext.
78217
78218 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78221         and don't require gt_INTTYPES_PRI.
78222
78223 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78226
78227         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78228         the configuration hassle isn't worth it.
78229         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78230         (LONGEST_MODIFIER, PRIuMAX): Remove.
78231
78232 2005-05-27  Bruno Haible  <bruno@clisp.org>
78233
78234         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78235
78236 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78239         _POSIX_PTHREAD_SEMANTICS for Solaris.
78240
78241 2005-05-25  Derek Price  <derek@ximbiot.com>
78242
78243         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78244
78245 2005-05-25  Derek Price  <derek@ximbiot.com>
78246             Paul Eggert  <eggert@cs.ucla.edu>
78247
78248         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78249         * lib/getlogin_r.c, getlogin_r.h: New files.
78250
78251 2005-05-25  Bruno Haible  <bruno@clisp.org>
78252             Derek Price  <derek@ximbiot.com>
78253
78254         * lib/getlogin_r.h: Simplify API documentation.
78255
78256 2005-05-23  Derek Price  <derek@ximbiot.com>
78257
78258         * modules/minmax (Files): Add m4/minmax.m4.
78259         (configure.ac): Add gl_MINMAX.
78260
78261 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78264         so that unistd-safer.h (GPL'ed code) need not be included.
78265
78266 2005-05-22  Bruno Haible  <bruno@clisp.org>
78267
78268         * m4/minmax.m4: New file.
78269         Based on a patch by Derek Price <derek@ximbiot.com>.
78270
78271 2005-05-22  Bruno Haible  <bruno@clisp.org>
78272
78273         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78274         (INT64_MIN): Fix definition.
78275         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78276
78277         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78278         NEED_SIGNED_INT_TYPES.
78279
78280         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78281         HAVE_SYSTEM_INTTYPES.
78282
78283 2005-05-22  Bruno Haible  <bruno@clisp.org>
78284
78285         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78286         Also include <sys/param.h> if it defines MIN, MAX.
78287         Based on a patch by Derek Price <derek@ximbiot.com>.
78288
78289 2005-05-21  Jim Meyering  <jim@meyering.net>
78290
78291         * modules/fts (Files): Add m4/inttypes-pri.m4.
78292         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78293
78294 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         New fts module.
78297         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78298         (setup_dir, free_dir): New functions.
78299         (enter_dir, leave_dir): Define trivial
78300         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78301         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78302         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78303         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78304         Move to fts-cycle.c.
78305         (fts_open): Use setup_dir.
78306         (fts_close): Use free_dir.
78307         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78308         This adds a label and some gotos, but the alternatives were messier.
78309         Check for memory allocation failure when entering a dir.
78310         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78311         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78312         (FTS): New member fts_cycle, that is a union that contains the
78313         old active_dir_ht and cycle_state.  All uses changed to mention
78314         fts_cycle.ht and fts_cycle.state.
78315         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78316         fts.c, with the following changes:
78317         (setup_dir, free_dir): New functions.
78318         (enter_dir): Now returns bool.  Return true if successful, false
78319         if memory exhausted.  All callers changed.
78320         Do not bother partly cleaning up on
78321         memory allocation failure; that is free_dir's job.
78322         However, free ad if hash_insert fails, to avoid memory leak.
78323         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78324         fts->fts_options to see which union member to use.
78325
78326 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78327
78328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78329         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78330
78331 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78332
78333         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78334
78335 2005-05-20  Jim Meyering  <jim@meyering.net>
78336
78337         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78338         Now a macro, to pacify GCC.
78339
78340 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78341
78342         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78343         of -1.
78344
78345 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78346
78347         * lib/chown.c (rpl_chown): Return -1 on failure.
78348
78349 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78350
78351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78352         Don't check for stddef.h.
78353         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78354         don't use its results.
78355         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78356         since we include them unconditionally.  Don't require
78357         AM_STDBOOL_H, since stdbool is a prerequisite.
78358         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78359         since we assume C89 or better.
78360         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78361         as we don't use their results.
78362         Don't check for fchdir, memmove, memset, strrchr, as we use
78363         them unconditionally.
78364         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78365         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78366
78367 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78370         Include <stddef.h> unconditionally, since we assume C89 now.
78371         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78372         * lib/fts.c: Include fts_.h first, to check interface.
78373         Do not include intprops.h; no longer needed.
78374         Include cycle-check.h and hash.h, since fts_.h no longer does.
78375         Remove unnecessary casts of closedir to void.
78376         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78377         decide whether to decrement nlinks.
78378         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78379         (FTS): Use struct hash_table * instead of Hash_table, so that
78380         we no longer need to include hash.h here.
78381
78382 2005-05-18  Jim Meyering  <jim@meyering.net>
78383
78384         * modules/dirfd (License): Change to LGPL.  Most of the code
78385         is already in the public domain.
78386
78387 2005-05-18  Jim Meyering  <jim@meyering.net>
78388
78389         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78390         Reported by Yoann Vandoorselaere.
78391
78392 2005-05-17  Jim Meyering  <jim@meyering.net>
78393
78394         * m4/fts.m4: New file, from coreutils.
78395
78396 2005-05-17  Jim Meyering  <jim@meyering.net>
78397
78398         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78399
78400 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         Sync from coreutils.
78403         * m4/unlinkdir.m4: New file.
78404
78405 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         Sync from coreutils.
78408         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78409         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78410         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78411         White space changes only.
78412         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78413         special.
78414         * lib/yesno.c: Include getline.h, not ctype.h.
78415         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78416         Use getline to remove arbitrary restriction on response length.
78417
78418 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78419
78420         * config/srclist-update: Spell out "Street" in FSF postal
78421         mail address; this is the style the FSF seems to prefer.
78422
78423         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78424         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78425         this updates FSF postal mail address.
78426
78427         Sync from coreutils.
78428         * modules/unlinkdir: New file.
78429         * modules/yesno (Depends-on): Add getline.
78430         * MODULES.html.sh (File system functions): Add unlinkdir.
78431
78432 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78435         lib/strsep.h:
78436         Change the initial comment to refer to GPL, not LGPL.
78437         gnulib-tool will change it to LGPL as needed.
78438
78439         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78440         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78441         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78442         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78443         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78444         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78445         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78446         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78447         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78448         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78449         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78450         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78451         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78452         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78453         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78454         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78455         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78456         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78457         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78458         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78459         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78460         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78461         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78462         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78463         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78464         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78465         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78466         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78467         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78468         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78469         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78470         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78471         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78472         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78473         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78474         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78475         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78476         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78477         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78478         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78479         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78480         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78481         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78482         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78483         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78484         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78485         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78486         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78487         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78488         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78489         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78490         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78491         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78492         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78493         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78494         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78495         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78496         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78497         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78498         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78499         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78500         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78501         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78502         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78503         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78504         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78505         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78506         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78507         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78508         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78509         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78510         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78511         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78512         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78513         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78514         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78515         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78516         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78517         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78518         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78519         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78520         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78521         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78522         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78523         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78524         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78525         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78526         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78527         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78528         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78529         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78530         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78531         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78532         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78533         lib/yesno.c, lib/yesno.h:
78534         Update FSF postal mail address.
78535
78536 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78537
78538         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78539         tests/test-memmem.c, tests/test-stpncpy.c:
78540         Update FSF postal mail address.
78541
78542 2005-05-13  Bruno Haible  <bruno@clisp.org>
78543
78544         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78545         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78546         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78547         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78548         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78549         Add support for 64-bit integers in the MSVC compiler.
78550
78551 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78552
78553         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78554
78555 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78556
78557         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78558
78559 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78560
78561         * doc/getdate.texi (General date syntax): Don't say that date
78562         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78563         Problem reported by Nic Ferrier.
78564
78565 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78566
78567         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78568         specified in ai_socktype. Fix invalid ai_protocol
78569         check. ai_protocol is usually set to 0 or depending on
78570         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78571         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78572         ai_socktype / ai_protocol in the returned addrinfo structure.
78573
78574 2005-05-10  Simon Josefsson  <jas@extundo.com>
78575
78576         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78577         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78578
78579 2005-05-10  Karl Berry  <karl@gnu.org>
78580
78581         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78582         (from http://www.gnu.org/licenses).
78583         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78584         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78585         fdl.texi suffices.
78586
78587 2005-05-10  Karl Berry  <karl@gnu.org>
78588
78589         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78590         (COPYING.DOC): remove.
78591
78592         * config/srclist-update: new FSF address.
78593
78594 2005-05-10  Derek Price  <derek@ximbiot.com>
78595
78596         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78597         possible.
78598
78599 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78600             Bruno Haible  <bruno@clisp.org>
78601
78602         * modules/inet_ntop: New file.
78603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78604         inet_ntop.
78605
78606 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78607             Bruno Haible  <bruno@clisp.org>
78608
78609         * m4/inet_ntop.m4: New file.
78610
78611 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78612             Bruno Haible  <bruno@clisp.org>
78613
78614         * lib/inet_ntop.h: New file.
78615         * lib/inet_ntop.c: New file, from glibc with modifications.
78616
78617 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * modules/time_r (License): Change to LGPL.
78620         * modules/extensions (License): Change to LGPL.  Actually,
78621         the license is more permissive than that, but currently gnulib-tool
78622         doesn't know how to handle more-permissive licenses.
78623
78624         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78625         Problem reported by Dave Love.
78626
78627 2005-05-08  Jim Meyering  <jim@meyering.net>
78628
78629         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78630         blank.
78631
78632 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * modules/argmatch (Depends-on): Add stdbool.
78635         * modules/backupfile (Depends-on): Likewise.
78636         * modules/chdir-long (Depends-on): Likewise.
78637         * modules/closeout (Depends-on): Likewise.
78638         * modules/cycle-check (Depends-on): Likewise.
78639         * modules/dirname (Depends-on): Likewise.
78640         * modules/fnmatch (Depends-on): Likewise.
78641         * modules/fsusage (Depends-on): Likewise.
78642         * modules/fwriteerror (Depends-on): Likewise.
78643         * modules/getcwd (Depends-on): Likewise.
78644         * modules/getloadavg (Depends-on): Likewise.
78645         * modules/hard-locale (Depends-on): Likewise.
78646         * modules/makepath (Depends-on): Likewise.
78647         * modules/mountlist (Depends-on): Likewise.
78648         * modules/nanosleep (Depends-on): Likewise.
78649         * modules/posixtm (Depends-on): Likewise.
78650         * modules/quotearg (Depends-on): Likewise.
78651         * modules/readtokens (Depends-on): Likewise.
78652         * modules/readtokens0 (Depends-on): Likewise.
78653         * modules/readutmp (Depends-on): Likewise.
78654         * modules/save-cwd (Depends-on): Likewise.
78655         * modules/strftime (Depends-on): Likewise.
78656         * modules/userspec (Depends-on): Likewise.
78657         * modules/utimecmp (Depends-on): Likewise.
78658         * modules/xgetcwd (Depends-on): Likewise.
78659         * modules/xnanosleep (Depends-on): Likewise.
78660         * modules/xstrtod (Depends-on): Likewise.
78661         * modules/yesno (Depends-on): Likewise.
78662
78663 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78664
78665         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78666         needless checks.
78667
78668 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78669
78670         Merge from coreutils.  Among other things,
78671         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78672         * lib/fd-safer.c: New file.
78673         * lib/fcntl-safer.h, open-safer.c: Remove.
78674         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78675         * lib/dup-safer.c: Include unistd-safer.h first.
78676         Don't include errno.h.
78677         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78678         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78679         * lib/file-type.c: Rely on file-type.h change.
78680         * lib/getloadavg.c: Include unistd-safer.h.
78681         (getloadavg): Use safer open.
78682         * lib/getusershell.c: Include "stdio-safer.h".
78683         (getusershell): Use safer fopen.
78684         * lib/long-options.c (long_options): Use NULL rather than 0.
78685         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78686         'free'.
78687         * lib/modechange.c: Likewise.
78688         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78689         (MODE_DONE): New constant.
78690         (struct mode_change): Remove 'next' member.
78691         (make_node_op_equals): New function; like the old one of the
78692         same name, except it allocates an array.
78693         (mode_compile, mode_create_from_ref): Use it.
78694         (mode_compile): Allocate result as an array, not a linked list.
78695         Parse octal string ourself, so that we catch mistakes like "+0".
78696         (mode_adjust): Arg is an array, not a linked list.
78697         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78698         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78699         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78700         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78701         Remove.  This is now stat-macros.h's job.
78702         (talloc): Remove.  All callers replaced by xalloc, so that
78703         our invokers don't have to worry about reporting memory failures.
78704         (make_node_op_equals): Remove.
78705         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78706         New constants.
78707         (struct mode_change): Moved here from modechange.h.
78708         (mode_append_entry): Remove.
78709         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78710         apps to have incorrect behavior.  Use simpler algorithm for head
78711         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78712         Detect more invalid usages rather than having somewhat-random behavior.
78713         Don't insert an "a=" action, as that leads to incorrect behavior.
78714         (mode_compile, mode_create_from_ref): Return NULL on error instead
78715         of an enum, since now there's only one way to have an error.  All
78716         callers changed.
78717         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78718         at the correct time.  Simplify calculation of "+u" and its ilk.
78719         Don't mishandle "+X".
78720         (mode_free): Remove "register" and localize decls.
78721         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78722         (struct mode_change): Move to modechange.c; callers don't
78723         need to see this stuff.
78724         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78725         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78726         (mode_change, mode_adjust): Reflect the new signatures noted above.
78727         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78728         that might redefine system include files.
78729         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78730         (my_usleep): Use NULL rather than (void *) 0.
78731         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78732         Use siginterrupt to specify that system calls should be interrupted.
78733         (rpl_nanosleep): Move initialization of suspended closer to call of
78734         my_usleep.
78735         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78736         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78737         (desirable_utmp_entry): New function.
78738         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78739         using x2nrealloc, to simplify logic.
78740         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78741         size calculation.  Do not assume utmp file is a regular file.
78742         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78743         (READ_UTMP_CHECK_PIDS): New constant.
78744         * lib/save-cwd.c: Include unistd-safer.h.
78745         (save_cwd): Use fd_safer.
78746         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78747         [!_LIBC] Include "stat-macros.h" instead.
78748         * lib/unistd-safer.h (fd_safer): New decl.
78749
78750 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * modules/getloadavg (Depends-on): Add unistd-safer.
78753         * modules/getusershell (Depends-on): Add stdio-safer.
78754         * modules/lstat (Depends-on): Remove xalloc.
78755         * modules/mkstemp (Depends-on): Add stat-macros.
78756         * modules/modechange (Depends-on): Remove xstrtol.
78757         Add stat-macros, xalloc.
78758         * modules/save-cwd (Depends-on): Add unistd-safer.
78759         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78760         * modules/unistd-safer (Files): Add lib/fd-safer.c
78761         (Makefile.am): Remove lib_SOURCES.
78762
78763         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78764         Remove fcntl-safer; unistd-safer supersedes it.
78765
78766 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78769         AC_HEADER_STAT.
78770         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78771         (gl_PREREQ_CHOWN): Remove.
78772         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78773         it.  Don't require AC_HEADER_STAT.
78774         (gl_PREREQ_LSTAT): Remove.
78775         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78776         Don't require AC_HEADER_STAT.
78777         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78778         (gl_PREREQ_RMDIR): Remove.
78779         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78780         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78781         the stat-macros module a prerequisite.
78782         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78783         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78784         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78785         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78786         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78787         variable names.
78788         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78789         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78790         variable prefixes.
78791         * m4/fcntl-safer.m4: Remove.
78792         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78793         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78794         Invoke gl_PREREQ_FD_SAFER.
78795         (gl_PREREQ_FD_SAFER): New macro.
78796         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78797         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78798         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78799         Remove duplicate call to AC_LIBOBJ(readutmp).
78800         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78801
78802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78803         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78804
78805 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * MODULES.html.sh (Misc): Add byteswap.
78808
78809 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78810
78811         * modules/getcwd (Depends-on): Add extensions.
78812         * modules/openat (Depends-on): Likewise.
78813
78814 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78815
78816         * modules/byteswap: New file.
78817
78818 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78819
78820         * m4/byteswap.m4: New file.
78821
78822 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78823
78824         * lib/byteswap_.h: New file.
78825
78826 2005-04-25  Karl Berry  <karl@gnu.org>
78827
78828         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78829
78830 2005-04-25  Albert Chin  <china@thewrittenword.com>
78831
78832         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78833         Toolkit C bug.
78834
78835 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78836
78837         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78838         (func_ln_if_changed): Remove forcibly for no error message
78839         in case file does not exist.
78840
78841 2005-04-19  Simon Josefsson  <jas@extundo.com>
78842
78843         * gnulib-tool (Options): Make --symlink mean --symbolic.
78844
78845 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78846
78847         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78848
78849 2005-04-16  Simon Josefsson  <jas@extundo.com>
78850
78851         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78852
78853 2005-04-15  Simon Josefsson  <jas@extundo.com>
78854
78855         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78856
78857 2005-04-15  Simon Josefsson  <jas@extundo.com>
78858
78859         * gnulib-tool: Rename --symlink to --symbolic.
78860
78861 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78862
78863         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78864         symbolic links to files instead of copying/moving.  Add --aux-dir,
78865         specifying directory relative --dir where auxiliary build tools
78866         are placed.
78867
78868 2005-04-14  Bruno Haible  <bruno@clisp.org>
78869
78870         * modules/allocsa (License): Change to LGPL.
78871         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78872
78873 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78874
78875         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78876         that "UTC +1 second" continues to work.  Problem reported
78877         by Dmitry V. Levin.
78878         (relunit_snumber): New rule.
78879         (relunit): Use it.
78880
78881 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * lib/getdate.y (universal_time_zone_table): New constant.
78884         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78885         universal_time_zone_table.
78886         (lookup_zone): Prefer universal_time_zone_table to
78887         local_time_zone_table, so that "GMT" time stamps are allowed in
78888         London during the summer.  Problem reported by Ian Abbott.
78889
78890 2005-04-12  Jim Meyering  <jim@meyering.net>
78891
78892         * lib/human.c (humblock): Set *options even when returning due to
78893         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78894         warning from gcc-4.
78895
78896 2005-04-09  Jim Meyering  <jim@meyering.net>
78897
78898         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78899         -Wuninitialized: initialize tm0.tm_year.
78900
78901 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78904         count, since there's no maximum.  All uses changed.
78905         Add member dsts_seen.
78906         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78907         not being INT_MAX.
78908         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78909         Use pc_rels_seen to decide whther a date is absolute.
78910
78911         * lib/getdate.y (number): Don't overwrite year.
78912         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78913         check.
78914
78915 2005-04-02  Simon Josefsson  <jas@extundo.com>
78916
78917         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78918         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78919
78920 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78921
78922         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78923         where no absolute path name can be longer than PATH_MAX.
78924
78925 2005-03-27  Jim Meyering  <jim@meyering.net>
78926
78927         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78928
78929 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78932         "one's complement" -> "ones' complement" in comment, as per Knuth.
78933         "value of type" -> "type or expression" in comment.
78934         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78935
78936 2005-03-26  Jim Meyering  <jim@meyering.net>
78937
78938         Comment nits.
78939         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78940         Correct typos: s/or/of/.
78941
78942 2005-03-26  Jim Meyering  <jim@meyering.net>
78943
78944         * modules/check-include-files: Move to ../ and rename to...
78945         * check-module: ...this.
78946
78947 2005-03-25  Jim Meyering  <jim@meyering.net>
78948
78949         * modules/xvasprintf (Files): Add xalloc.h.
78950
78951 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * modules/gettext (Files): config/config.rpath ->
78954         build-aux/config.rpath
78955         * modules/iconv (Files): Likewise.
78956         Problem reported by Oskar Liljeblad.
78957
78958 2005-03-23  Jim Meyering  <jim@meyering.net>
78959
78960         * modules/check-include-files: New script to check for
78961         missing dependencies, multiple includes, etc.
78962
78963         * modules/c-strtold (Depends-on): Add xalloc.
78964         * modules/c-strtod (Depends-on): Add xalloc.
78965         * modules/hash (Depends-on): Add xalloc.
78966         (Files): Remove lib/xalloc.h.
78967
78968         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78969         * modules/userspec (Files): Add lib/inttostr.h.
78970
78971 2005-03-23  Jim Meyering  <jim@meyering.net>
78972
78973         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78974
78975 2005-03-22  Jim Meyering  <jim@meyering.net>
78976
78977         * modules/stat-macros: New module.
78978         * modules/canonicalize, modules/euidaccess, modules/file-type,
78979         * modules/filemode, modules/lchown, modules/makepath,
78980         * modules/rmdir, modules/stat: Depend on new stat-macros module
78981         rather than listing lib/stat-macros.h manually.
78982         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78983
78984 2005-03-22  Jim Meyering  <jim@meyering.net>
78985
78986         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78987
78988 2005-03-22  Bruno Haible  <bruno@clisp.org>
78989
78990         * config/srclist.txt: Replace target directory 'config' with
78991         'build-aux'.
78992         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78993         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78994         ../build-aux/.
78995
78996 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * modules/chdir-long (Depends-on): Add mempcpy.
78999
79000         * modules/acl, modules/backupfile, modules/c-strtod,
79001         modules/c-strtold, modules/canon-host, modules/canonicalize,
79002         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79003         modules/exclude, modules/exitfail, modules/file-type,
79004         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79005         modules/getdate, modules/getline, modules/getpagesize,
79006         modules/getpass, modules/getugroups, modules/group-member,
79007         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79008         modules/inttostr, modules/long-options, modules/makepath,
79009         modules/md5, modules/memcasecmp, modules/memcoll,
79010         modules/modechange, modules/mountlist, modules/path-concat,
79011         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79012         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79013         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79014         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79015         modules/strftime, modules/strndup, modules/strverscmp,
79016         modules/timespec, modules/unlocked-io, modules/userspec,
79017         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79018         modules/yesno:
79019         Remove lib_SOURCES line from Makefile.am section, as this is now
79020         done automatically by the corresponding Autoconf macro.
79021
79022 2005-03-21  Jim Meyering  <jim@meyering.net>
79023
79024         Changes imported from coreutils.
79025
79026         * lib/cycle-check.c: Don't include xalloc.h.
79027
79028         * lib/path-concat.c: Don't include assert.h.
79029         (path_concat): Remove assertion that would have triggered
79030         for ABASE starting with more than one slash.
79031         Reported by Andreas Schwab.
79032
79033         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79034         properly when ABASE is an absolute file name.
79035         Correct the description of this function.
79036         Include <assert.h>.
79037         Add an assertion and a test driver.
79038         This fixes a bug introduced on 2004-07-02.
79039         Andreas Schwab reported the resulting failure of cp --parents:
79040         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79041
79042 2005-03-21  Jim Meyering  <jim@meyering.net>
79043
79044         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79045         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79046
79047 2005-03-21  Jim Meyering  <jim@meyering.net>
79048         and  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79051         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79052         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79053         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79054         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79055         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79056         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79057         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79058         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79059         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79060         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79061         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79062         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79063         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79064         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79065         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79066         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79067         for these modules.
79068
79069 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79070
79071         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79072         (which shouldn't happen), generate nothing instead of returning 0
79073         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79074
79075 2005-03-16  Bruno Haible  <bruno@clisp.org>
79076
79077         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79078         HAVE_LONGLONG_64BIT.
79079
79080 2005-03-16  Bruno Haible  <bruno@clisp.org>
79081
79082         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79083         HAVE_LONGLONG_64BIT.
79084
79085 2005-03-16  Bruno Haible  <bruno@clisp.org>
79086
79087         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79088         HAVE_LONGLONG_64BIT.
79089
79090 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79093         reliably distinguish strftime failure from empty output on POSIX
79094         hosts.
79095
79096 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79099         (iconv_string): Don't guess a size-zero buffer, as that might cause
79100         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79101         result would be 'too large', where 'too large' is (heuristically)
79102         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79103         overflow concerns.  This will prevent some unwanted malloc failures
79104         when the inputs are very large.
79105
79106 2005-03-15  Karl Berry  <karl@gnu.org>
79107
79108         * config/srclist.txt (config.rpath): from gettext.
79109         * config/config.rpath: update.
79110
79111 2005-03-15  Bruno Haible  <bruno@clisp.org>
79112
79113         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79114         to 'negate'.
79115
79116         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79117         variable.
79118
79119         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79120         results.
79121
79122 2005-03-14  Simon Josefsson  <jas@extundo.com>
79123
79124         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79125         <fx@gnu.org>.
79126
79127 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79130         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79131         intprops.h.
79132         * lib/strtol.c: Likewise.
79133
79134 2005-03-14  Jim Meyering  <jim@meyering.net>
79135
79136         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79137         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79138         to be nonzero so that we (and caller) can detect the difference
79139         between a valid zero-length expansion and an error return, even
79140         when the underlying strftime fails before writing anything into
79141         that location.
79142
79143 2005-03-14  Bruno Haible  <bruno@clisp.org>
79144
79145         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79146         Update from GNU gettext 0.14.3.
79147
79148 2005-03-10  Jim Meyering  <jim@meyering.net>
79149
79150         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79151
79152 2005-03-10  Jim Meyering  <jim@meyering.net>
79153
79154         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79155         so that this module works on systems without fchdir.
79156
79157 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         Factor int-properties macros into a single file, except for
79160         glibc-related files.
79161         * lib/intprops.h: New file.
79162         * lib/getloadavg.c: Include it instead of limits.h.
79163         (INT_STRLEN_BOUND): Remove.
79164         * lib/human.c: Include intprops.h.
79165         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79166         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79167         302/1000.
79168         * lib/inttostr.h: Include intprops.h instead of limits.h.
79169         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79170         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79171         for consistency with intprops.h.
79172         (time_t_is_integer, twos_complement_arithmetic): Use them.
79173         * lib/sig2str.h: Include <signal.h>, intprops.h.
79174         (INT_STRLEN_BOUND): Remove.
79175         * lib/strftime.c (TYPE_SIGNED): Remove.
79176         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79177         * lib/strtol.c: Adjust comments to match intprops.h.
79178         * lib/userspec.c: Include intprops.h.
79179         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79180         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79181         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79182         instead of rolling our own expressions.
79183         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79184
79185         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79186         instead of int.
79187         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79188         the right thing even if adding 1900 would overflow.  Similarly
79189         for tm_mon + 1 and tm_yday + 1.
79190         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79191         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79192         (DO_SIGNED_NUMBER): New macro.
79193         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79194
79195 2005-03-07  Bruno Haible  <bruno@clisp.org>
79196
79197         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79198
79199 2005-03-07  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79202
79203 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79204
79205         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79206         (func_import): Only replace files via --import when they have actually
79207         changed.
79208
79209 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79210
79211         * m4/mmap-anon.m4: New file.
79212         * m4/pagealign_alloc.m4: New file.
79213
79214 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79215             Bruno Haible  <bruno@clisp.org>
79216
79217         * modules/pagealign_alloc: New file.
79218         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79219
79220 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79221             Bruno Haible  <bruno@clisp.org>
79222
79223         * lib/pagealign_alloc.h: New file.
79224         * lib/pagealign_alloc.c: New file.
79225
79226 2005-03-03  Bruno Haible  <bruno@clisp.org>
79227
79228         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79229         Use an all-permissive copyright notice, recommended by RMS.
79230
79231 2005-03-02  Bruno Haible  <bruno@clisp.org>
79232
79233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79234         of AIX, the replacement has to be done only after <string.h> is
79235         included, therefore not in config.h. stpncpy.h does the replacement,
79236         and stpncpy.c uses it.
79237
79238 2005-03-02  Bruno Haible  <bruno@clisp.org>
79239
79240         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79241         stpncpy.c uses it.
79242
79243 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79244
79245         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79246         The workaround isn't strictly needed for POSIX conformance, and
79247         it's too much of a pain to configure and maintain.  We'll ask
79248         people to fix their kernels instead.
79249         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79250         (NANOSLEEP_BUG_WORKAROUND): Remove.
79251         (xnanosleep): Remove the workaround.
79252
79253 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79256         Reported by Derek Price.
79257         (Include): Add "timespec.h".
79258
79259         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79260
79261 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79262
79263         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79264         to detect nanosleep bug.
79265
79266 2005-03-01  Bruno Haible  <bruno@clisp.org>
79267
79268         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79269
79270 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79271
79272         * modules/gethrxtime: New file.
79273         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79274         (Depends-on): Add gethrxtime.
79275         (configure.ac): Add gl_XNANOSLEEP.
79276         (Makefile.am): Remove lib_SOURCES line.
79277
79278 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79281         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79282
79283 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79286         * lib/timespec.h (gettime): Return void, since it always
79287         succeeds now.  All uses changed.
79288         * lib/gettime.c (gettime): Likewise.
79289         [HAVE_NANOTIME]: Prefer nanotime.
79290         Assume gettimeofday succeeds, as POSIX requires.
79291         Assime time () succeeds, since other code already does.
79292         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79293         (timespec_subtract): Remove.
79294         (NANOSLEEP_BUG_WORKAROUND): New constant.
79295         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79296         things considerably.  Use it only on GNU/Linux hosts, since the
79297         workaround shouldn't be needed elsewhere.
79298
79299 2005-02-24  Bruno Haible  <bruno@clisp.org>
79300
79301         * modules/gettext (Files): Add m4/glibc2.m4.
79302
79303 2005-02-24  Bruno Haible  <bruno@clisp.org>
79304
79305         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79306         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79307         * m4/progtest.m4:
79308         Update from GNU gettext 0.14.2.
79309         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79310
79311 2005-02-24  Bruno Haible  <bruno@clisp.org>
79312
79313         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79314         * lib/config.charset: Update from GNU gettext 0.14.2.
79315
79316 2005-02-24  Bruno Haible  <bruno@clisp.org>
79317
79318         * lib/gettext.h: Update from GNU gettext 0.14.2.
79319
79320 2005-02-23  Simon Josefsson  <jas@extundo.com>
79321
79322         * m4/iconvme.m4: New file.
79323
79324 2005-02-23  Jim Meyering  <jim@meyering.net>
79325
79326         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79327         change.
79328         Thanks to Bruno Haible for catching it.
79329
79330 2005-02-22  Simon Josefsson  <jas@extundo.com>
79331
79332         * modules/iconvme: New file.
79333
79334         * MODULES.html.sh: Add iconvme.
79335
79336 2005-02-22  Simon Josefsson  <jas@extundo.com>
79337
79338         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79339
79340 2005-02-22  Simon Josefsson  <jas@extundo.com>
79341
79342         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79343
79344 2005-02-22  Jim Meyering  <jim@meyering.net>
79345
79346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79347         s/ifndef/ifdef/.
79348
79349 2005-02-20  Neil Conway  <neilc@samurai.com>
79350
79351         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79352         returned by OSX/Darwin if the specified buffer is not large
79353         enough for the hostname.
79354
79355 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79356
79357         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79358         pass it to _help, otherwise the latter coredumps trying to
79359         dereference state.root_argp.
79360
79361 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * modules/chdir-long (Depends-on): Add memrchr.
79364         * modules/memrchr (Files): Add lib/memrchr.h.
79365         (Include): "memrchr.h".
79366
79367 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79368
79369         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79370
79371 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * lib/memrchr.h: New file.
79374         * lib/chdir-long.c: Include it.
79375         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79376         Don't bother including stddef.h.
79377
79378 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79379
79380         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79381         inclusion.
79382         Include <sys/types.h>, for dev_t.
79383         (ME_DUMMY, ME_REMOTE): Move from here....
79384         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79385         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79386         Dmitry V. Levin.
79387         Include mountlist.h first, to test the interface.
79388
79389 2005-01-29  Bruno Haible  <bruno@clisp.org>
79390
79391         * lib/progname.c (program_name): Initialize.
79392         Needed when linking statically on MacOS X.
79393
79394 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         Sync from coreutils.
79397         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79398         (Depends-on): Add c-strtod.
79399         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79400
79401 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         Sync from coreutils.
79404         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79405
79406         Remove files that are specific to coreutils.
79407         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79408
79409 2005-01-28  Bruno Haible  <bruno@clisp.org>
79410
79411         * modules/javacomp: New file.
79412         * MODULES.html.sh (Java): Add javacomp.
79413
79414 2005-01-28  Bruno Haible  <bruno@clisp.org>
79415
79416         * m4/javacomp.m4: New file, from GNU gettext.
79417
79418 2005-01-28  Bruno Haible  <bruno@clisp.org>
79419
79420         * lib/javacomp.sh.in: New file, from GNU gettext.
79421         * lib/javacomp.h: New file, from GNU gettext.
79422         * lib/javacomp.c: New file, from GNU gettext.
79423
79424 2005-01-26  Simon Josefsson  <jas@extundo.com>
79425
79426         * lib/gai_strerror.c: Use GPL in header.
79427
79428 2005-01-26  Bruno Haible  <bruno@clisp.org>
79429
79430         * modules/javaexec: New file.
79431         * MODULES.html.sh (Java): Add javaexec.
79432
79433 2005-01-26  Bruno Haible  <bruno@clisp.org>
79434
79435         * m4/javaexec.m4: New file, from GNU gettext.
79436
79437 2005-01-26  Bruno Haible  <bruno@clisp.org>
79438
79439         * lib/javaexec.sh.in: New file, from GNU gettext.
79440         * lib/javaexec.h: New file, from GNU gettext.
79441         * lib/javaexec.c: New file, from GNU gettext.
79442
79443 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79444
79445         * modules/lchown (Depends-on): Remove lchown.h
79446
79447 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79448
79449         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79450         must be defined if the header file was not found, in order
79451         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79452
79453 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79454
79455         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79456         initializers for struct pentry_state.
79457         (__argp_error): Check return value of __asprintf
79458         (__argp_failure): Translate error message
79459
79460         * lib/argp-parse.c: Removed braces around the expansion of N_()
79461
79462 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79465         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79466         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79467         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79468         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79469         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79470         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79471         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79472         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79473         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79474         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79475         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79476         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79477         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79478         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79479         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79480         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79481         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79482         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79483         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79484         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79485         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79486         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79487         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79488         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79489         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79490         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79491         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79492         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79493         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79494         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79495         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79496         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79497         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79498         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79499         Use an all-permissive copyright notice, recommended by RMS.
79500
79501 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * modules/chdir-long (Depends-on): Remove mempcpy.
79504
79505 2005-01-21  Jim Meyering  <jim@meyering.net>
79506
79507         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79508         same value as for Solaris 9.
79509
79510         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79511         component length.  This included changing the parameter to be
79512         of type `char *' rather than `char const *'.
79513         * lib/chdir-long.h (chdir_long): Update prototype.
79514
79515         * lib/openat.c (fdopendir, fstatat): New functions.
79516         * lib/openat.h: Include headers required for use of DIR and struct
79517         stat.
79518         [AT_SYMLINK_NOFOLLOW]: Define.
79519         (fdopendir, fstatat): Add prototypes.
79520
79521 2005-01-21  Bruno Haible  <bruno@clisp.org>
79522
79523         * modules/classpath: New file.
79524         * MODULES.html.sh (Java): Add classpath.
79525
79526 2005-01-21  Bruno Haible  <bruno@clisp.org>
79527
79528         * lib/classpath.h: New file, from GNU gettext.
79529         * lib/classpath.c: New file, from GNU gettext.
79530
79531 2005-01-20  Simon Josefsson  <jas@extundo.com>
79532
79533         * modules/version-etc-fsf: New file.
79534
79535 2005-01-20  Simon Josefsson  <jas@extundo.com>
79536
79537         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79538         * lib/version-etc.c: Remove version_etc_copyright.
79539         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79540         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79541
79542 2005-01-20  Simon Josefsson  <jas@extundo.com>
79543
79544         * lib/base64.h (isbase64): Add.
79545
79546         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79547         using a unsigned prototype, don't inline.
79548         (base64_decode): Use it.
79549
79550 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79553         it.
79554
79555 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/save-cwd.c (save_cwd): Remove code to support the case
79558         where fchdir is missing or flaky.
79559
79560 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79563
79564 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79565
79566         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79567         AC_LIBSOURCES now does this.
79568         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79569         with new ullong_max module.
79570
79571 2005-01-19  Bruno Haible  <bruno@clisp.org>
79572
79573         * modules/sh-quote: New file.
79574         * MODULES.html.sh (Executing programs): Add sh-quote.
79575
79576 2005-01-19  Bruno Haible  <bruno@clisp.org>
79577
79578         * lib/sh-quote.h: New file, from GNU gettext.
79579         * lib/sh-quote.c: New file, from GNU gettext.
79580
79581 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         Merge from coreutils.
79584         * m4/ullong_max.m4: New file.
79585         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79586         (gl_MACROS): Assume localeconv exists.
79587
79588 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         Merge changes from coreutils, as described below in several
79591         changelogs dated today.
79592
79593         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79594         (O_DIRECTORY): Remove; not needed here, since "." must be
79595         a directory.  All uses removed.
79596         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79597         universal on Suns, and we also need to test for IRIX.
79598         Revamp code to use 'if' rather than '#if'.
79599         Avoid unnecessary comparison of cwd->desc to 0.
79600
79601         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79602         for known valid error numbers rather than observed invalid ones.
79603
79604 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * modules/ullong_max: New file.
79607
79608         * modules/chdir-long, modules/openat: New files.
79609         * modules/save-cwd (Depends-on): Depend on chdir-long.
79610         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79611
79612 2005-01-18  Jim Meyering  <jim@meyering.net>
79613
79614         Merge from coreutils.
79615         * m4/chdir-long.m4, m4/openat.m4: New files.
79616         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79617         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79618         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79619         is sane and DOES follow symlinks.  Besides, testing 20 different
79620         systems found no broken chown implementations.
79621         Prompted by a change in rsync's copy of this macro.
79622         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79623
79624         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79625
79626         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79627         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79628         NULL-means-set-to-current-time semantics.
79629         Remove temporary file immediately, rather than waiting
79630         for configure's at-exit trap code to do it.
79631
79632 2005-01-18  Jim Meyering  <jim@meyering.net>
79633
79634         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79635
79636         * lib/utimens.c (futimens): Account for the fact that futimes
79637         can also fail with errno == ENOSYS or errno == ENOENT.
79638         Patch from Dmitry V. Levin.
79639
79640         Change the name of the robust chdir function from chdir to chdir_long.
79641         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79642         (restore_cwd): Use chdir_long, not chdir.
79643         * lib/chdir-long.c: Renamed from chdir.c.
79644         * lib/chdir-long.h: Renamed from chdir.h.
79645         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79646         Hurd.
79647
79648 2005-01-18  Bruno Haible  <bruno@clisp.org>
79649
79650         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79651         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79652         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79653         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79654         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79655         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79656         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79657         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79658         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79659         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79660         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79661         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79662         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79663         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79664         Use an all-permissive copyright notice, recommended by RMS.
79665
79666 2005-01-18  Bob Proulx  <bob@proulx.com>
79667
79668         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79669         simplify offsetof() macro construct to avoid compile failure with
79670         native HP-UX 11.0 ANSI C compiler.
79671
79672 2005-01-17  Bruno Haible  <bruno@clisp.org>
79673
79674         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79675         redundant because stpncpy.m4 takes care of it.
79676
79677 2005-01-17  Bruno Haible  <bruno@clisp.org>
79678
79679         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79680
79681 2005-01-17  Bruno Haible  <bruno@clisp.org>
79682
79683         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79684         used.
79685
79686 2005-01-17  Bruno Haible  <bruno@clisp.org>
79687
79688         * lib/fwriteerror.h (fwriteerror): Change specification to include
79689         fclose.
79690         * lib/fwriteerror.c: Include <stdbool.h>.
79691         (fwriteerror): At the end, close the file stream. Record whether
79692         stdout was already closed.
79693
79694 2005-01-17  Bruno Haible  <bruno@clisp.org>
79695
79696         * lib/execute.c (environ): Declare if needed.
79697         * lib/pipe.c (environ): Likewise.
79698         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79699
79700 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79701
79702         * modules/argp: Depend on vsnprintf
79703
79704 2005-01-10  Jim Meyering  <jim@meyering.net>
79705
79706         * modules/closeout (Depends-on): Add atexit.
79707
79708 2005-01-06  Bruno Haible  <bruno@clisp.org>
79709
79710         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79711
79712 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79715         definitions to be after all include files, to avoid collisions.
79716         Problem reported by Bob Proulx.
79717
79718 2005-01-04  Jim Meyering  <jim@meyering.net>
79719
79720         Changes imported from coreutils.
79721         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79722         as the mkstemp template, use a temporary directory and an
79723         8.3-friendly template to avoid trouble on systems like DJGPP.
79724         Reported by Juan M. Guerrero via Stepan Kasal.
79725         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79726         close. Remove the temporary directory right away, rather than waiting
79727         for configure's at-exit trap code to do it.
79728         Suggestion from Stepan Kasal.
79729
79730 2005-01-01  Simon Josefsson  <jas@extundo.com>
79731
79732         * gnulib-tool: Print #include directives when --import'ing.
79733
79734 2004-12-28  Simon Josefsson  <jas@extundo.com>
79735
79736         * tests/test-base64.c: Include required header files.  Remove
79737         unused variables.
79738
79739 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * modules/error (Depends-on): Remove gettext.
79742
79743 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79744
79745         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79746         not needed.  This removes a dependency on the gettext module.
79747         [defined _LIBC]: Do not include <libintl.h>; not needed.
79748
79749 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79752         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79753
79754 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79757         HAVE_DECL_STRTOLD.
79758
79759 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * modules/getdate (Depends-on): Remove alloca-opt.
79762
79763 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79766
79767 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * lib/argp-parse.c: Include <stddef.h>.
79770         (alignof, alignto): New macros.
79771         (parser_init): Don't assume that void * is aligned sufficiently
79772         for struct option.
79773
79774         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79775         need to extend the stack.
79776         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79777         large.
79778
79779 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79780
79781         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79782
79783 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79784
79785         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79786         (2004-10-24) change.  Apparently this was a false alarm.
79787
79788         * modules/getdate: Depend on alloca-opt, not alloca.
79789
79790 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79793         Remove now-obsolete comment about AIX.
79794         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79795         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79796         (YYMAXDEPTH): New macro.
79797
79798 2004-12-18  Simon Josefsson  <jas@extundo.com>
79799
79800         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79801
79802 2004-12-18  Bruno Haible  <bruno@clisp.org>
79803
79804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79805
79806 2004-12-18  Bruno Haible  <bruno@clisp.org>
79807
79808         * lib/fatal-signal.c (fatal_signals): Make non-const.
79809         (init_fatal_signals): New function.
79810         (uninstall_handlers, install_handlers): Ignore signals that were set to
79811         SIG_IGN.
79812         (at_fatal_signal): Call init_fatal_signals.
79813         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79814         SIG_IGN.
79815         Reported by Paul Eggert.
79816
79817 2004-12-18  Bruno Haible  <bruno@clisp.org>
79818
79819         * doc/alloca.texi: New file.
79820         * doc/alloca-opt.texi: New file.
79821
79822 2004-12-17  Jim Meyering  <jim@meyering.net>
79823
79824         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79825         Otherwise, install-sh could exit with improper exit status when
79826         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79827
79828 2004-12-16  Simon Josefsson  <jas@extundo.com>
79829
79830         * tests/test-base64.c: Add license.
79831
79832 2004-12-15  Stepan Kasal  <address@hidden>
79833
79834         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79835
79836 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         * modules/getcwd (Files): Add m4/d-ino.m4.
79839         Suggested by Mark D. Baushke.
79840
79841 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * lib/getdate.y (textint): New member "negative".
79844         (time_zone_hhmm): New function.
79845         Expect 14 shift-reduce conflicts, not 13.
79846         (o_colon_minutes): New rule.
79847         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79848         (yylex): Set the "negative" member of signed numbers.
79849
79850 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * doc/getdate.texi (Time of day items, Time zone items):
79853         Describe new formats +00:00, UTC+00:00.
79854
79855 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79858         spurious "-l"s.  Problem reported by Stepan Kasal.
79859
79860 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79863         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79864
79865 2004-12-04  Simon Josefsson  <jas@extundo.com>
79866
79867         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79868         Vandoorselaere <yoann@prelude-ids.org>.
79869
79870 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         Changes imported from coreutils.
79873         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79874         exist.
79875         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79876
79877 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         Changes imported from coreutils.
79880         * lib/hard-locale.c: Assume <locale.h> exists.
79881         Include "strdup.h".
79882         (GLIBC_VERSION): New macro.
79883         (hard_locale): Assume setlocale exists.
79884         Rewrite to avoid #ifdef.
79885         Use strdup rather than malloc + strcpy.
79886         * lib/human.c: Assume <locale.h> exists.
79887         (human_readable): Assume localeconv exists.
79888
79889 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * modules/hard-locale (Depends-on): Add strdup.
79892
79893 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79894
79895         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79896         convert T2, not T.  (Imported from libc.)
79897
79898 2004-11-30  Simon Josefsson  <jas@extundo.com>
79899
79900         * modules/restrict (License): Change to LGPL.
79901
79902 2004-11-30  Simon Josefsson  <jas@extundo.com>
79903
79904         * m4/restrict.m4: Add copyright and copying conditions.
79905
79906 2004-11-30  Simon Josefsson  <jas@extundo.com>
79907
79908         * m4/base64.m4: New file.
79909
79910 2004-11-30  Simon Josefsson  <jas@extundo.com>
79911
79912         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79913         base64.
79914
79915         * tests/test-base64.c: New file.
79916
79917         * modules/base64: New file.
79918
79919 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79922         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79923
79924         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79925
79926 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79927
79928         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79929         (__getcwd.c): Don't restore errno; glibc doesn't.
79930         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79931         first, falling back to our code only if its results look suspicious.
79932         Ensure that the resulting buffer is only as large as necessary.
79933
79934         * lib/readutmp.c: Include readutmp.h first.
79935         Include <errno.h>, since readutmp.h no longer does that.
79936         * lib/readutmp.h: Don't include <errno.h>,
79937         <sys/param.h>, <time.h>; not needed to establish interface.
79938         (errno): Remove decl.
79939         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79940         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79941         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79942
79943 2004-11-28  Simon Josefsson  <jas@extundo.com>
79944
79945         * lib/base64.h, base64.c: New file.
79946
79947 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79950
79951 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79954         (Depends-on): Remove pathmax, same.  Add mempcpy.
79955         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79956         (Makefile.am): Append getcwd.h to lib_SOURCES.
79957         (Include): Add getcwd.h.
79958         (Maintainer): Change from Jim Meyering to "all, glibc",
79959         since getdate now uses intended-for-glibc code.
79960         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79961         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79962
79963 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79964
79965         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79966         HP's ANSI C compiler.
79967         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79968         Declaring int functions causes warnings on some modern systems and
79969         shouldn't be needed to compile on ancient ones.
79970         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79971         defined.
79972
79973         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79974         with the following changes.
79975         (__set_errno): Parenthesize properly.
79976         Include <stdbool.h>.
79977         (MIN, MAX, MATCHING_INO): New macros.
79978         (__getcwd): Define with prototype, not K&R form.
79979         Use heuristics to allocate default buffer on stack if possible.
79980         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79981         behavior, and to avoid the PATH_MAX limit when computing
79982         ../../../../...
79983         Use MATCHING_INO to compare inode number to file.
79984         Check for arithmetic overflow in size calculations.
79985         Fix bug in reallocation of dot array that caused getcwd to fail
79986         on directories nested deeper than 75.
79987         Be more careful about saving errno on error.
79988         Do not use realloc; use only free+malloc, as this is a bit
79989         more flexible and avoids a needless copy operation.
79990         Do not inspect st_dev and st_ino for symbolic links; POSIX
79991         doesn't specify the latter.
79992         Check for closedir errors.
79993         Avoid needless casts.
79994         Use "#ifdef weak_alias" around weak_alias, to be like other
79995         glibc code.
79996         The following changes to getcwd.c have effect only when used in
79997         gnulib; they have no effect inside glibc proper.
79998         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79999         as alloca isn't used.
80000         (alloca, __alloca): Likewise.
80001         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80002         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80003         unconditionally, as gnulib assumes C89 or better.
80004         Do not include <sys/param.h>.
80005         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80006         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80007         better.
80008         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80009         Include <dirent.h> in a way that is compatible with modern Autoconf.
80010         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80011         New macros, if not already defined.
80012         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80013         Use "_LIBC", not "defined _LIBC", for consistency.
80014         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80015         a mempcpy module.
80016         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80017         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80018         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80019         credit only to Jim Meyering and adjust the copyright dates.
80020         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80021         <stdlib.h>, <unistd.h>, "pathmax.h".
80022         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80023         (INITIAL_BUFFER_SIZE): Remove.
80024         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80025
80026 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80029         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80030         Use the _ONCE methods, for efficiency.
80031         Check for fcntl.h.  In test program, include <errno.h>
80032         and <fcntl.h> if available.  Remove old K&R cruft from
80033         test program.  Check for common errors in GNU/Linux,
80034         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80035         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80036         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80037         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80038         name accordingly.
80039         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80040         accommodate new getcwd.c.
80041         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80042         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80043         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80044         that's all we need now.
80045
80046 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80047
80048         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80049         argp-parse.c depends on getopt internals, that means we should
80050         always use our getopt, to be on the safe side.
80051         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80052         order not to spoil the result of an eventual previous invocation
80053         of gl_GETOPT_SUBSTITUTE.
80054
80055 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80056
80057         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80058         redefinition warnings. To avoid them, include the defines
80059         in `#if !defined __need_getopt ... #endif'. The only place
80060         where __getopt_argv_const is used is in definitions
80061         of getopt_long and getopt_long_only below, which are as well
80062         protected by `#ifndef __need_getopt'.
80063         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80064         __need_getopt after including <stdio.h> and <unistd.h> These
80065         headers might have defined it.
80066
80067 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80070
80071 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80072
80073         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80074         (futimens): New function, which uses futimes if available.
80075         (futimens, utimens): Support timespec==NULL, with same semantics
80076         as utime and utimens.
80077         * lib/utimens.h (futimens): New decl.
80078
80079 2004-11-23  Jim Meyering  <jim@meyering.net>
80080
80081         * lib/getopt_.h: Remove trailing blanks.
80082
80083 2004-11-23  Jim Meyering  <jim@meyering.net>
80084
80085         * lib/__fpending.c: Add comment.
80086
80087 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * modules/canonicalize (Depends-on): Add xreadlink.
80090         Problem reported by James Youngman.
80091
80092 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80095         New macros.
80096         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80097         optopt): Use them instead of invoking ## directly; otherwise, the
80098         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80099
80100 2004-11-19  Bruno Haible  <bruno@clisp.org>
80101
80102         * lib/strtok_r.c: Move comments from here...
80103         * lib/strtok_r.h: ... to here.
80104
80105 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80106
80107         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80108         implementations that mishandle size_t overflow.
80109
80110 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80111
80112         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80113         might fail.  Problem reported by Yoann Vandoorselaere.
80114         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80115         implementations that mishandle size_t overflow.
80116
80117 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * modules/canon-host (Depends-on): Add strdup.
80120
80121 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80122
80123         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80124
80125 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         * lib/canon-host.c: Include "strdup.h".
80128         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80129         Use strdup instead of malloc/strcpy to duplicate strings.
80130
80131         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80132         (human_space_before_unit): New constant.
80133         * lib/human.c (human_readable): Support it.
80134
80135         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80136         (xgetcwd): Set errno correctly when failing.
80137         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80138         the failure is actually due to a PATH_MAX problem.
80139
80140         Further getopt changes to make it more likely that glibc will
80141         buy the changes back.
80142         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80143         (getopt): Use it, so to preserve glibc semantic
80144         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80145         when compiling for libc.
80146         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80147         (getopt_long, getopt_long_only): Use it.
80148
80149         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80150         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80151         (getopt): Argv is now char * const *, as per standard.
80152         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80153         not char *__getopt_argv_const *.
80154         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80155         _getopt_long_only_r): Likewise.
80156         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80157         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80158         _getopt_long_r, _getopt_long_only_r): Likewise.
80159         * lib/getopt_.h (__getopt_argv_const): Remove.
80160         (getopt): Argv is now char * const *, as per standard.
80161
80162         * lib/getdate.y (tORDINAL): New token.
80163         (day, relunit): Allow it for relative times.
80164         (relative_time_table): Use tORDINAL for ordinals.
80165
80166 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80169         Document that "second" isn't allowed as an ordinal number.
80170
80171 2004-11-16  Jim Meyering  <jim@meyering.net>
80172
80173         * modules/closeout (Depends-on): Add fpending.
80174
80175 2004-11-15  Jim Meyering  <jim@meyering.net>
80176
80177         * lib/closeout.c: Include "__fpending.h" once again.
80178         Include <stdbool.h>.
80179         (close_stdout): Don't fail just because stdout was closed initially,
80180         since some programs don't write to stdout in the normal course of
80181         operation (other than --version and --help), and we don't want this
80182         function to make e.g. `touch file >&-' fail.
80183         But do fail if it was closed and someone has tried to write to it.
80184         E.g., `printf foo >&-' must fail.
80185
80186 2004-11-13  Jim Meyering  <jim@meyering.net>
80187
80188         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80189
80190 2004-11-12  Simon Josefsson  <jas@extundo.com>
80191
80192         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80193         small doc fix is still pending.
80194
80195 2004-11-11  Simon Josefsson  <jas@extundo.com>
80196
80197         * modules/strtok_r: New file.
80198
80199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80200         strtok_r.
80201
80202 2004-11-11  Simon Josefsson  <jas@extundo.com>
80203
80204         * m4/strtok_r.m4: New file.
80205
80206         * m4/getopt.m4: Replace opterr.
80207
80208 2004-11-11  Simon Josefsson  <jas@extundo.com>
80209
80210         * lib/strtok_r.h, strtok_r.c: New file.
80211
80212 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80215         of replacing opterr, getopt, etc.  This should handle the
80216         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80217
80218 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80221         we can stop lying to compilers about the constness of argv when we
80222         are compiled outside glibc.
80223         (getopt, getopt_long, getopt_long_only): Use it.
80224         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80225         _getopt_internal, getopt): Likewise.
80226         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80227         _getopt_long_only_r): Likewise.
80228         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80229         _getopt_long_r, _getopt_long_only_r): Likewise.
80230
80231         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80232         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80233         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80234         the other external symbols.
80235         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80236         declaration, since the above renaming now works around collisions.
80237
80238 2004-11-11  Jim Meyering  <jim@meyering.net>
80239
80240         * lib/linebreak.c: Remove trailing blanks.
80241         * lib/alloca_.h: Likewise.
80242         * lib/acosl.c: Likewise.
80243         * lib/euidaccess.c: Likewise.
80244         * lib/allocsa.h: Likewise.
80245
80246 2004-11-10  Simon Josefsson  <jas@extundo.com>
80247
80248         * m4/getaddrinfo.m4: New file.
80249
80250 2004-11-10  Simon Josefsson  <jas@extundo.com>
80251
80252         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80253
80254 2004-11-10  Simon Josefsson  <jas@extundo.com>
80255
80256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80257         getaddrinfo.
80258
80259         * modules/getaddrinfo: New file.
80260
80261 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80264
80265 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * lib/mktime.c (SHR): New macro, which is a portable
80268         substitute for >> that should work even on Crays.
80269         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80270         Problem reported by Mark D. Baushke in
80271         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80272         * lib/getdate.y (SHR): Likewise.
80273         (tm_diff): Use it.
80274         * lib/strftime.c (SHR): Likewise.
80275         (tm_diff): Use it.
80276         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80277         quote_these_too, so that right shifts are well defined.  All uses
80278         changed.
80279
80280 2004-11-10  Jim Meyering  <jim@meyering.net>
80281
80282         Ensure that no close failure goes unreported.
80283         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80284         return early when it seems there's nothing to flush.
80285         Don't include __fpending.h.
80286
80287 2004-11-10  Jim Meyering  <jim@meyering.net>
80288
80289         * modules/closeout (Depends-on): Remove fpending.
80290
80291 2004-11-10  Jim Meyering  <jim@meyering.net>
80292
80293         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80294
80295 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80298         gl_FUNC_STRFTIME.
80299         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80300         and AC_REQUIRE when possible, to avoid duplicate checks.
80301         Check for <wchar.h>.
80302
80303 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80304
80305         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80306
80307 2004-11-09  Bruno Haible  <bruno@clisp.org>
80308
80309         * m4/sockpfaf.m4: New file.
80310
80311 2004-11-05  Bruno Haible  <bruno@clisp.org>
80312
80313         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80314         Reported by Mark D. Baushke <mdb@cvshome.org>.
80315
80316 2004-11-04  Bruno Haible  <bruno@clisp.org>
80317
80318         2004-09-11  Bruno Haible  <bruno@clisp.org>
80319                 * allocsa.valgrind: New file.
80320         2004-02-06  Bruno Haible  <bruno@clisp.org>
80321                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80322                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80323                 Reported by Christopher Seip <chris.seip@hp.com>.
80324
80325 2004-11-04  Bruno Haible  <bruno@clisp.org>
80326
80327         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80328         (Makefile.am): Distribute it.
80329
80330 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80333         with errno == ERANGE if the buffer is too small.
80334         Problem reported by Mark D. Baushke.
80335
80336 2004-11-03  Albert Chin  <china@thewrittenword.com>
80337             Paul Eggert  <eggert@cs.ucla.edu>
80338
80339         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80340         equivalent, substitute $ac_type for equivalent type rather than
80341         blindly using uint32_t *always* which won't work if uint32_t is not
80342         available.  Define _UINT32_T to work around typedef of uint32_t if
80343         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80344         2.5.1.
80345
80346 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * m4/jm-macros.m4: Sync from coreutils.
80349         (gl_MACROS): Check for mbrlen, for pathchk.
80350         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80351
80352 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         * lib/xreadlink.c (MAXSIZE): New macro.
80355         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80356         size does not exceed MAXSIZE.  Avoid cast.
80357         As suggested by Mark D. Baushke in
80358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80359         if readlink fails with buffer size just under MAXSIZE, try again
80360         with MAXSIZE.
80361
80362 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80365
80366 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80367         and  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80370         (get_date): Overparenthesize to avoid GCC warning.
80371
80372 2004-11-02  Bruno Haible  <bruno@clisp.org>
80373
80374         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80375         returns void.
80376
80377 2004-11-02  Bruno Haible  <bruno@clisp.org>
80378
80379         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80380         function returns void.
80381
80382 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80385         fflush_unlocked, flockfile, funlockfile, funlockfile,
80386         fputs_unlocked, putc_unlocked.
80387
80388 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80389
80390         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80391         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80392         already declared.
80393
80394 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * modules/getdate (Files): Add doc/getdate.texi.
80397         (Depends-on): Add setenv, xalloc.
80398
80399 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80400
80401         * lib/getdate.y: Add support for TZ="foo" within a date string.
80402         Fix some bugs near time_t boundaries.  Reject dates with
80403         out-of-range components, e.g., "Sept 31".
80404         Include <stdlib.h>, "setenv.h", "xalloc.h".
80405         (ISDIGIT_LOCALE): Remove; unused.
80406         Note that the TZ and time functions used here are not reentrant.
80407         (mktime_ok, get_tz): New functions.
80408         (TZBUFSIZE): New constant.
80409         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80410         This requires that we sometimes generate our own TZ="XXX..." setting.
80411
80412 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80413
80414         * doc/getdate.texi: New file, from coreutils with modifications for
80415         the new TZ parsing.
80416
80417 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80418
80419         * lib/mktime.c (not_equal_tm): Remove redundant check.
80420
80421 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * modules/regex (lib_SOURCES): Add regex.c.
80424         Reported by James Youngman in
80425         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80426
80427 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80428
80429         * lib/getdate.y: Use Bison 1.875 features, and some minor
80430         code cleanups.  This change does not affect semantics.
80431         Don't include <stdlib.h>; no longer needed.
80432         Don't include unlocked-io.h; only the "#if TEST" code uses
80433         stdio, and performance isn't crucial there.
80434         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80435         Bison 1.875 features as described below.
80436         All uses of "PC." replaced by "pc->".
80437         (YYSTYPE): Add a forward declaration.
80438         (yylex, yyerror): Use full prototypes in forward decls.
80439         Use "%pure-parser" rather than obsolescent "%pure_parser".
80440         Use %parse-param and %lex-param instead of obsolescent
80441         YYPARSE_PARAM and YYLEX_PARAM.
80442         (meridian_table, month_and_day_table, time_units_table,
80443         relative_time_table, time_zone_table, military_table,
80444         lookup_zone, lookup_word, get_date):
80445         Use NULL instead of 0 where appropriate.
80446         (to_hour): Avoid abort (), to avoid a dependency on
80447         stdlib.h.
80448         (yyerror, yylex): Now accepts parser_control * arg.
80449         (main) [TEST]: Use '\0' rather than 0 for char.
80450
80451 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80452
80453         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80454
80455 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80458         It's now the caller's responsibility to handle the case where
80459         !HAVE_GETPAGESIZE && !defined getpagesize.
80460
80461         * lib/mktime.c (leapyear): Arg is long int, not int.
80462
80463 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80466
80467 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80470         missing.  Problem reported by James Youngman.
80471
80472 2004-10-16  Simon Josefsson  <jas@extundo.com>
80473
80474         * gnulib-tool: Fix comments.  Fix parse problem.
80475         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80476
80477 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80478
80479         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80480         implementation of getopt_long.  Problem reported by Alexander Taler in:
80481         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80482
80483 2004-10-15  Bruno Haible  <bruno@clisp.org>
80484
80485         * gnulib-tool: Untabify. Initialize supplied_libname.
80486         (func_usage): More homogenous output.
80487         (func_modules_transitive_closure, func_modules_to_filelist,
80488         func_emit_lib_Makefile_am): New functions.
80489         (func_import): New function, extracted from big case statement. Use
80490         func_get_license, func_modules_transitive_closure,
80491         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80492         opt_lgpl. Don't use test -a, as it's not portable.
80493         (func_create_testdir): Use func_modules_transitive_closure,
80494         func_modules_to_filelist, func_emit_lib_Makefile_am.
80495
80496 2004-10-15  Bruno Haible  <bruno@clisp.org>
80497
80498         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80499
80500 2004-10-15  Bruno Haible  <bruno@clisp.org>
80501
80502         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80503         the portions belonging to each module.
80504         Suggested by Derek Robert Price <derek@ximbiot.com>.
80505
80506 2004-10-12  Simon Josefsson  <jas@extundo.com>
80507
80508         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80509         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80510         to real functions.
80511
80512 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80513
80514         * modules/vsnprintf: New file.
80515
80516 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80517
80518         * m4/vsnprintf.m4: New file.
80519
80520 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80521
80522         * lib/vsnprintf.h: New file.
80523         * lib/vsnprintf.c: New file.
80524
80525 2004-10-11  Bruno Haible  <bruno@clisp.org>
80526
80527         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80528         vsnprintf.
80529
80530 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80533
80534 2004-10-07  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80537         fits into the provided buffer.
80538
80539 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         * lib/diacrit.c, diacrit.h: Add GPL notice.
80542
80543         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80544         notice.
80545         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80546         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80547         This avoids a potential constant-folding bug.
80548
80549 2004-10-05  Bruno Haible  <bruno@clisp.org>
80550
80551         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80552         for the declaration of strsep.
80553
80554 2004-10-05  Bruno Haible  <bruno@clisp.org>
80555
80556         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80557
80558 2004-10-04  Simon Josefsson  <jas@extundo.com>
80559
80560         * modules/memmem: New file.
80561         * tests/test-memmem.c: New file.
80562         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80563
80564 2004-10-04  Simon Josefsson  <jas@extundo.com>
80565
80566         * m4/memmem.m4: New file.
80567
80568 2004-10-04  Simon Josefsson  <jas@extundo.com>
80569
80570         * lib/memmem.h: New file.
80571         * lib/memmem.c: New file, taken from glibc.
80572
80573 2004-10-04  Simon Josefsson  <jas@extundo.com>
80574
80575         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80576         '#ifdef USE_UNLOCKED_IO'.
80577
80578 2004-10-04  Simon Josefsson  <jas@extundo.com>
80579
80580         * config/srclist.txt: Add memmem from glibc.
80581
80582 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80585
80586         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80587         modules/exclude, modules/getdate, modules/getline,
80588         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80589         modules/getusershell, modules/linebuffer, modules/md5,
80590         modules/mountlist, modules/posixtm, modules/readtokens,
80591         modules/readutmp, modules/regex, modules/sha1,
80592         modules/version-etc, modules/yesno:
80593         Remove dependency on unlocked-io.
80594
80595 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80598
80599         * m4/unlocked-io.m4: Add copyright notice.
80600         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80601
80602 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80603
80604         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80605         * lib/xmalloc.c (xmemdup): Likewise.
80606         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80607         XFREE): Remove these long-obsolescent macros.
80608         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80609         * lib/xstrdup.c: Remove.
80610
80611         * lib/regex.c (re_comp): Cast gettext return value to char *,
80612         Problem reported by Martin Neitzel via Mark D. Baushke.
80613
80614 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80615
80616         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80617         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80618         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80619         regex.c, sha1.c, version-etc.c, yesno.c:
80620         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80621         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80622         the includer's responsibility.
80623
80624         Sync from coreutils.
80625
80626         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80627         points to the start of a string, as the C Standard says the
80628         resulting behavior is undefined.
80629
80630         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80631         simple -> simple_backups, numbered_existing ->
80632         numbered_existing_backups, numbered -> numbered_backups
80633         to avoid shadowing problems.  All uses changed.
80634         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80635         * lib/backupfile.c (check_extension, numbered_backup):
80636         Rename locals to avoid shadowing 'basename'.
80637         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80638         once.
80639
80640         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80641         * lib/.cvsignore: Add getopt.h.
80642
80643 2004-10-04  Bruno Haible  <bruno@clisp.org>
80644
80645         * modules/README: New file.
80646         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80647         not a module.
80648
80649 2004-10-02  Jim Meyering  <jim@meyering.net>
80650
80651         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80652
80653 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80654
80655         * modules/strsep: New file.
80656
80657 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80658
80659         * m4/strsep.m4: New file.
80660
80661 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80662
80663         * lib/strsep.h: New file.
80664         * lib/strsep.c: New file.
80665
80666 2004-10-01  Simon Josefsson  <jas@extundo.com>
80667
80668         * lib/snprintf.c (snprintf): Handle size==0.
80669
80670 2004-10-01  Simon Josefsson  <jas@extundo.com>
80671             Bruno Haible  <bruno@clisp.org>
80672
80673         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80674         (snprintf): Declare 'args'.
80675
80676 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * lib/snprintf.c: Remove comments as to why each header is needed.
80679
80680 2004-10-01  Bruno Haible  <bruno@clisp.org>
80681
80682         * MODULES.html.sh: Add strsep.
80683
80684 2004-09-30  Simon Josefsson  <jas@extundo.com>
80685
80686         * modules/snprintf: New file.
80687
80688 2004-09-30  Simon Josefsson  <jas@extundo.com>
80689
80690         * m4/snprintf.m4: New file.
80691
80692 2004-09-30  Simon Josefsson  <jas@extundo.com>
80693
80694         * lib/snprintf.h, lib/snprintf.c: New files.
80695
80696 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80697
80698         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80699         (hol_entry_help): Never translate an empty string.
80700         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80701         * lib/argp.h (OPTION_NO_TRANS): New option.
80702
80703 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * modules/argp (Maintainer): Replace Simon Josefsson
80706         by Sergey Poznyakoff.
80707
80708 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80711         changes merged back into glibc.
80712
80713 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80716
80717 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80718
80719         * lib/xvasprintf.c: Include xalloc.h.
80720         (xvasprintf): Use xalloc_die, not xmalloc_die.
80721
80722 2004-09-29  Bruno Haible  <bruno@clisp.org>
80723
80724         * modules/alloca-opt: New file, derived from modules/alloca.
80725         * modules/allocsa: Depend on alloca-opt instead of alloca.
80726         * modules/setenv: Likewise.
80727         * modules/vasnprintf: Likewise.
80728         * MODULES.html.sh: Add alloca-opt.
80729
80730 2004-09-28  Simon Josefsson  <jas@extundo.com>
80731
80732         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80733         LGPL, and to replace license template from GPL to LGPL.
80734
80735 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * modules/dummy: Change license to LGPL.
80738
80739 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80742
80743 2004-09-24  Simon Josefsson  <jas@extundo.com>
80744
80745         * modules/minmax (License): Change from GPL to LGPL.
80746
80747 2004-09-23  Simon Josefsson  <jas@extundo.com>
80748
80749         * gnulib-tool (--import): Typo.
80750
80751 2004-09-23  Simon Josefsson  <jas@extundo.com>
80752
80753         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80754
80755 2004-09-22  Bruno Haible  <bruno@clisp.org>
80756
80757         * modules/*: Add 'License' field.
80758         * gnulib-tool: Accept --extract-license option.
80759         (func_get_license): New function.
80760
80761 2004-09-21  Bruno Haible  <bruno@clisp.org>
80762
80763         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80764         Reported by Simon Josefsson.
80765
80766 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80769         gl_AC_TYPE_LONG_LONG.
80770
80771 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80774
80775 2004-09-18  Simon Josefsson  <jas@extundo.com>
80776         and  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80779         calls with autoreconf.  Define GL_LIB.
80780
80781 2004-09-14  Karl Berry  <karl@gnu.org>
80782
80783         * config/srclist.txt: unsync setenv.c, sigh.
80784
80785 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80786
80787         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80788         Problem reported by Bruno Haible in:
80789         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80790
80791 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80792
80793         * config/srclist.txt: Comment out argp-pvh.c.
80794
80795 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80796
80797         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80798         in case some system header has #define'd it.  Problem reported by
80799         Soeren D. Schulze in
80800         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80801
80802 2004-09-09  Karl Berry  <karl@gnu.org>
80803
80804         * regex.[ch]: delete from the root.  These were supposed to be
80805                 synced with emacs cvs, but this has not happened for about
80806                 a year, and anyway nothing else uses emacs regex.[ch].
80807                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80808                 lib/regex[.ch] is untouched.
80809
80810 2004-09-09  Bruno Haible  <bruno@clisp.org>
80811
80812         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80813
80814 2004-09-09  Bruno Haible  <bruno@clisp.org>
80815
80816         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80817         modifications.
80818         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80819
80820 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80821
80822         * modules/xvasprintf: New file.
80823         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80824
80825 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80826
80827         * lib/xvasprintf.h: New file.
80828         * lib/xvasprintf.c: New file.
80829         * lib/xasprintf.c: New file.
80830
80831 2004-09-08  Bruno Haible  <bruno@clisp.org>
80832
80833         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80834
80835 2004-09-08  Bruno Haible  <bruno@clisp.org>
80836
80837         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80838         length is > INT_MAX.
80839         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80840         more.
80841
80842 2004-09-08  Bruno Haible  <bruno@clisp.org>
80843
80844         * lib/stdint_.h: New file, taken from GNU clisp.
80845
80846 2004-09-08  Bruno Haible  <bruno@clisp.org>
80847             Oskar Liljeblad  <oskar@osk.mine.nu>
80848
80849         * modules/stdint: New file.
80850         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80851
80852 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         Import from coreutils.
80855         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80856         strings on unbounded length.  alloca's performance benefits aren't
80857         that important here.
80858         (V_STRDUP): Remove.
80859         (parse_with_separator): New function, with most of the internals
80860         of the old parse_user_spec.  Allow user to omit both user and group,
80861         for compatibility with FreeBSD.
80862         Clone only the user name, not the entire spec.
80863         Do not set *uid, *gid unless entirely successful.
80864         Avoid memory leak in some failing cases.
80865         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80866         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80867         (parse_user_spec): Rewrite to use parse_with_separator.
80868
80869 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * modules/userspec: Don't depend on alloca.
80872
80873 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80874
80875         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80876
80877 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80878
80879         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80880         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80881         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80882
80883 2004-08-16  Simon Josefsson  <jas@extundo.com>
80884
80885         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80886         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80887         Add --dry-run for --import.
80888         Let user provided command line parameters override configure.ac
80889         settings.
80890
80891 2004-08-12  Simon Josefsson  <jas@extundo.com>
80892
80893         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80894         as discussed with Paul Eggert in threads rooted at
80895         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80896         and
80897         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80898         Before, the test was empty, and relied on ELIDE_CODE in source
80899         code.)
80900         (gl_PREREQ_GETOPT): New macro.
80901         (gl_GETOPT): Use them.
80902
80903 2004-08-12  Simon Josefsson  <jas@extundo.com>
80904
80905         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80906         * lib/getopt_.h: Renamed from getopt.h.
80907
80908 2004-08-12  Simon Josefsson  <jas@extundo.com>
80909
80910         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80911         Change default library name from libfoo to libgnu.
80912         Now, if you have a configure.ac that says:
80913                 gl_SOURCE_BASE(gl)
80914                 gl_M4_BASE(gl/m4)
80915                 gl_MODULES(error getopt etcetera)
80916                 gl_INIT
80917         you can import all you need by running:
80918                 ../gnulib/gnulib-tool --import
80919
80920         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80921         (Makefile.am): Rewrite, use logic from argz.
80922         (Include): Use <getopt.h> instead of "getopt.h".
80923
80924 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80925
80926         * modules/argp (Files): Add m4/unlocked-io.m4.
80927         (Depends-on): Add extensions.
80928
80929 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80932         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80933         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80934         Check for program_invocation_name, program_invocation_short_name,
80935         flockfile, funlockfile, features.h, _getopt_long_only_r.
80936
80937 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80940         its complicated substitute.
80941         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80942         and program_invocation_name.
80943         (__argp_basename) [!_LIBC]: Remove; the only use was
80944         replaced by its body.
80945         (__argp_short_program_name): Change condition from
80946         !defined __argp_short_program_name to
80947         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80948         to match argp-namefrob.h.
80949         (__argp_failure): Don't assume strerror_r returns char *.
80950         * lib/argp-parse.c (N_): Define unconditionally.
80951         (argp_default_options): Fill out initializers with 0 to avoid
80952         gcc warnings.
80953
80954 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80957         getopt1.c.
80958
80959 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80960
80961         Merge from coreutils.
80962
80963         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80964
80965         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80966         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80967
80968 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80969
80970         Merge from coreutils.
80971
80972         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80973         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80974         for Reliant Unix 5.43.
80975
80976         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80977         (union fooround): Use uintmax_t, not long int.
80978         The rest is a merge from libc:
80979         [defined _LIBC]: Include <shlib-compat.h>.
80980         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80981
80982         * lib/settime.c (settime): Recode to avoid warning with
80983         Sun Forte C 6U2.
80984
80985         * lib/strverscmp.c: Convert to UTF-8.
80986
80987 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80988
80989         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80990         m4/uintmax_t.m4.
80991
80992 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * modules/xalloc-die: New file.
80995         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80996
80997         * modules/md5 (Files): Add m4/uint32_t.m4.
80998         * modules/sha1: Renamed from modules/sha.
80999         (Files):
81000         Rename lib/sha.h to lib/sha1.h.
81001         Rename lib/sha.c to lib/sha1.c.
81002         Rename m4/sha.m4 to m4/sha1.m4.
81003         (lib_SOURCES): Likewise.
81004         (configure.ac): Rename gl_SHA to gl_SHA1.
81005         (Include): sha.h -> sha1.h.
81006
81007 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81008
81009         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81010         * m4/sha1.m4: Renamed from sha.m4.
81011         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81012
81013 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81014
81015         * lib/obstack.h (obstack_empty_p):
81016         Don't assume that chunk->contents is suitably aligned.
81017         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81018         Likewise. Problem reported by Benno in
81019         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81020
81021         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81022         readable.  This could be improved further but it'd take some work.
81023
81024 2004-08-08  Simon Josefsson  <jas@extundo.com>
81025
81026         * modules/xgethostname (Depends-on): Remove exit and error (not
81027         used).
81028
81029         * modules/getpass-gnu: Add getpass.h.
81030         (Depends-on): Add stdbool.
81031         * modules/getpass: Add getpass.h.
81032
81033 2004-08-08  Simon Josefsson  <jas@extundo.com>
81034
81035         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81036         Check getpass declaration.
81037
81038 2004-08-08  Simon Josefsson  <jas@extundo.com>
81039
81040         * lib/xgethostname.c: Don't include error.h (not used).
81041
81042         * lib/getpass.h: Add.
81043         * lib/getpass.c: Include getpass.h first.
81044
81045 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81046
81047         * lib/xalloc-die.c: New file.
81048         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81049         All uses removed.
81050         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81051         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81052         xalloc-die.c.
81053         (_, N_, xalloc_die): Move to xalloc-die.c.
81054         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81055         so that we needn't mess with xalloc_msg_memory_exhausted.
81056
81057         * lib/sha1.h: Renamed from sha.h.
81058         (SHA1_H): Renamed from _SHA_H.
81059         (sha1_ctx): Renamed from sha_ctx.
81060         (sha1_init_ctx): Renamed from sha_init_ctx.
81061         (sha1_process_block): Renamed from sha_process_block.
81062         (sha1_process_bytes): Renamed from sha_process_bytes.
81063         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81064         (sha1_read_ctx): Renamed from sha_read_ctx.
81065         (sha1_stream): Renamed from sha_stream.
81066         (sha1_buffer): Renamed from sha_buffer.
81067         * lib/sha1.c: Likewise; renamed from sha.c.
81068         Do not include <sys/types.h>.
81069         Include <stddef.h> rather than <stdlib.h>.
81070
81071 2004-08-08  Bruno Haible  <bruno@clisp.org>
81072
81073         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81074         FILESYSTEM_PREFIX_LEN.
81075         * lib/progreloc.c: Likewise.
81076         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81077
81078 2004-08-06  Simon Josefsson  <jas@extundo.com>
81079
81080         * modules/progname (Depends-on): Don't depend on stdbool.
81081
81082 2004-08-06  Simon Josefsson  <jas@extundo.com>
81083
81084         * modules/getsubopt: New file.
81085         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81086         getsubopt.
81087
81088 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         More merge from coreutils.
81091
81092         * m4/utimens.m4, m4/utimecmp.m4: New files.
81093         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81094         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81095         prereq.m4, sha.m4: Import changes from coreutils.
81096
81097 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81098
81099         More merge from coreutils.
81100         * modules/raise, modules/readtokens0, modules/utimens:
81101         * modules/utimecmp, module/xnanosleep: New files.
81102         * modules/strftime: Add lib/strftime.h.
81103         Change include from <time.h> to "strftime.h".
81104         * modules/yesno: Add lib/yesno.h.
81105         * modules/backupfile: Remove lib/addext.c.
81106         * modules/euidaccess: Add stat-macros.h.
81107         * modules/canonicalize, modules/euidaccess,
81108         modules/filemode, modules/lchown, modules/makepath,
81109         modules/rmdir, modules/stat: Likewise.
81110
81111 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81112
81113         Merge from tar.
81114         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81115         SIZE_MAX is a valid preprocessor constant.
81116         (__argp_basename): Change from "#ifndef _LIBC"
81117         to "#ifndef __argp_short_program_name", so that
81118         we don't compile these functions for tar.
81119
81120         More merges from coreutils.
81121         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81122         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81123         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81124         * lib/addext.c: Remove; no longer needed.
81125         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81126         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81127         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81128         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81129         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81130         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81131         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81132         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81133         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81134         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81135         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81136         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81137         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81138         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81139         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81140         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81141         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81142         Import changes from coreutils.
81143
81144 2004-08-05  Simon Josefsson  <jas@extundo.com>
81145
81146         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81147
81148 2004-08-05  Simon Josefsson  <jas@extundo.com>
81149
81150         * m4/getsubopt.m4: New file.
81151
81152 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         Merge from coreutils.
81155
81156         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81157         * m4/getcwd-path-max.m4: New files.
81158
81159         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81160         FILESYSTEM_PREFIX_LEN ->
81161         FILE_SYSTEM_PREFIX_LEN.
81162         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81163         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81164         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81165         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81166
81167         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81168         prerequisite modules now handle the DOS stuff.
81169         Don't check for unistd.h.
81170
81171 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81172
81173         Merge from coreutils.
81174
81175         * lib/.gdb-history: Remove; this doesn't belong here.
81176
81177         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81178         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81179         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81180         * lib/getcwd.c: New files.
81181
81182         * lib/dirname.h: Include <stdbool.h>.
81183         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81184         for consistency with POSIX terminology.  All uses changed.
81185         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81186         (strip_trailing_slashes): Use bool for booleans.
81187         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81188
81189         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81190         sometimes returns a positive errno value even when it succeeds.
81191         (print_errno_message) [!LIBC]: Fall back on strerror if
81192         __strerror_r fails.
81193
81194         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81195         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81196         (longest_relative_suffix): New function.
81197         (path_concat): Use it.  Assume first argument is not NULL.
81198         Port to DOS.  Omit redundant separators.
81199         Report an error instead of returning NULL.
81200         Use mempcpy instead of memcpy.
81201         (xpath_concat): Remove: not declared or used.
81202
81203         * lib/same.h: Include <stdbool.h>
81204         (same_name): Return bool, not int.
81205         * lib/same.c (same_name): Likewise.
81206         (errno): Don't declare; we assume C89 or better now.
81207
81208         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81209         if not already defined.
81210
81211         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81212         * lib/dup-safer.c (errno): Likewise.
81213
81214 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         Merge from coreutils.
81217         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81218         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81219         * modules/path-concat: Don't depend on strdup.
81220
81221 2004-08-03  Simon Josefsson  <jas@extundo.com>
81222
81223         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81224         * lib/progname.h: Don't include stdbool.h.
81225
81226 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81229         * MODULES.html.sh (func_all_modules): Remove fatal.
81230
81231 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81234
81235 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81238         working.
81239
81240 2004-08-02  Simon Josefsson  <jas@extundo.com>
81241
81242         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81243         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81244         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81245
81246 2004-08-01  Simon Josefsson  <jas@extundo.com>
81247
81248         * lib/xgetdomainname.c: Include stdlib.h, for free().
81249
81250 2004-07-19  Bruno Haible  <bruno@clisp.org>
81251
81252         * MODULES.html.sh (func_all_modules): Add dummy.
81253
81254 2004-07-16  Simon Josefsson  <jas@extundo.com>
81255
81256         * modules/dummy: New file.
81257
81258 2004-07-16  Simon Josefsson  <jas@extundo.com>
81259
81260         * lib/dummy.c: New file.
81261
81262 2004-07-16  Bruno Haible  <bruno@clisp.org>
81263
81264         * lib/backupfile.h: Add extern "C" for C++.
81265         * lib/closeout.h: Likewise.
81266         * lib/copy-file.h: Likewise.
81267         * lib/findprog.h: Likewise.
81268         * lib/full-write.h: Likewise.
81269         * lib/pathname.h: Likewise.
81270         * lib/progname.h: Likewise.
81271         * lib/stpcpy.h: Likewise.
81272         * lib/stpncpy.h: Likewise.
81273         * lib/strcase.h: Likewise.
81274         * lib/strstr.h: Likewise.
81275         * lib/xalloc.h: Likewise.
81276
81277         * lib/mbswidth.h: Add extern "C" for C++.
81278         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81279
81280 2004-07-13  Robert Millan  <robertmh@gnu.org>
81281
81282         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81283
81284 2004-07-09  Simon Josefsson  <jas@extundo.com>
81285
81286         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81287         failed without this.)
81288
81289 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * modules/chown (Files): Add lib/fchown-stub.c, since
81292         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81293
81294 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81295
81296         * lib/fchown-stub.c: New file.
81297
81298 2004-06-24  Jim Meyering  <jim@meyering.net>
81299
81300         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81301
81302 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * modules/argz: Omit "#include".
81305
81306         * MODULES.html.sh (func_all_modules): Add calloc, to match
81307         2004-06-01 addition of calloc module.
81308
81309 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * m4/argz.m4: New file, which is autoupdated from libtool.
81312
81313 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81316         libtool.
81317
81318 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         * config/srclist-update: Don't insist on "USA." before the
81321         close-comment, as libtool omits the period and puts the */ on a
81322         separate line.
81323         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81324         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81325
81326 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81327
81328         * modules/argz: New file.
81329         * MODULES.html.sh (func_all_modules): Add argz.
81330
81331 2004-06-12  Jim Meyering  <jim@meyering.net>
81332         and  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * modules/hash (Files): Add lib/xalloc.h.
81335         * modules/pipe (Depends-on): Add wait-process.
81336         * modules/stat (Depends-on): Add xalloc.
81337         * modules/userspec (Files): Add lib/userspec.h.
81338         * modules/xstrto
81339
81340         Upgrade from gettext-0.13.
81341         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81342         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81343         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81344
81345 2004-06-10  Jim Meyering  <jim@meyering.net>
81346
81347         * lib/calloc.c: New file.
81348
81349 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81350
81351         * lib/getdate.y (yylex): Allow space between sign and number.
81352         Problem reported by Dan Jacobson.
81353
81354 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81355
81356         Merge from coreutils CVS.
81357
81358         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81359         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81360         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81361         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81362         xstrtol.m4: Fix copyright date and/or serial number.
81363
81364         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81365         See if we need an fchown replacement.
81366         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81367         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81368         and use the replacement function if we detect either defect.
81369
81370         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81371         gl_UTIMECMP.
81372
81373 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81374         and  Jim Meyering  <jim@meyering.net>
81375
81376         Merge from coreutils CVS.
81377
81378         * lib/stat-macros.h: New file, with contents from file-type.h
81379         and coreutils' system.h.
81380         * lib/file-type.c: Include "stat-macros.h".
81381         * lib/file-type.h (file_type): Move all macro definitions to new file,
81382         stat-macros.h.
81383
81384         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81385         Wrap old code with this conditional.
81386         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81387         function that does not dereference symlinks.
81388         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81389
81390         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81391         dependency problems.
81392         (xreadlink): Accept new arg SIZE, for efficiency.
81393         All decls and uses changed.
81394         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81395
81396         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81397         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81398
81399         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81400         sysexits.h.
81401
81402 2004-06-01  Jim Meyering  <jim@meyering.net>
81403
81404         * m4/calloc.m4: New file.
81405
81406 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81409         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81410         Also, fix a typo in a diagnostic.
81411
81412 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81413
81414         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81415         or AC_FUNC_REALLOC.
81416
81417 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81420         macros to be defined.
81421         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81422         the allocator returns NULL because the requested size is zero.
81423
81424 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81425
81426         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81427         var.  Add comment explaining why libc still defines it.  This
81428         merges the following patch from glibc:
81429         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81430
81431 2004-05-20  Andreas Schwab  <schwab@suse.de>
81432
81433         * m4/free.m4: Replace free if it not known to work, not the other
81434         way round.
81435
81436 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81437
81438         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81439         present in glibc since revision 1.1 of this file.
81440         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81441         obstack_alignment_mask, obstack_alloc, obstack_base,
81442         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81443         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81444         obstack_grow0, obstack_init, obstack_int_grow,
81445         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81446         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81447         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81448         nonexistent functions.
81449
81450 2004-05-18  Karl Berry  <karl@gnu.org>
81451
81452         * config/srclist.txt: break link for vasnprintf.c.
81453
81454 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         Port obstack to the AS/400, where pointers are 16 bytes wide and
81457         you cannot cast an integer to a valid pointer.  This patch is
81458         currently waiting to be integrated into glibc; see
81459         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81460
81461         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81462         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81463         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81464         (struct obstack): temp member is now a union of a pointer and
81465         an integer, instead of an integer.  All integer uses changed.
81466         This does not affect the physical layout of struct obstack,
81467         except on hosts (like the AS/400) where the size or alignment of
81468         void * is greater than that of ptrdiff_t.
81469         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81470         __STDC__)]: Store temporary in pointer member of union, not
81471         integer member.
81472         * lib/obstack.c: Include <stddef.h>, for offsetof.
81473         (struct fooalign): Remove; it doesn't need a name.
81474         (union fooround): Change double to long double, and add void *.
81475         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81476         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81477         not a macro.  Hence the values are always int; so remove all
81478         casts-to-int in uses.
81479
81480 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81483         we can get this patch merged into glibc.
81484
81485 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81486             Paul Eggert  <eggert@cs.ucla.edu>
81487
81488         * m4/argp: Depend on alloca.
81489
81490 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81491             Paul Eggert  <eggert@cs.ucla.edu>
81492
81493         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81494         freecoding.
81495
81496 2004-05-17  Bruno Haible  <bruno@clisp.org>
81497
81498         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81499         precision that consists of a '.' followed by an empty digit string.
81500         Patch by Tor Lillqvist <tml@iki.fi>.
81501
81502 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81505         for backward compatibility with older code.  We need our own
81506         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81507         it under some other name, and our alloca.h will define it.
81508
81509 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81510             Derek Price  <derek@ximbiot.com>
81511
81512         * lib/alloca.c: Include <alloca.h>, to get our interface.
81513         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81514         include <alloca.h> first.  Use C89 prototype for alloca; this
81515         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81516         Use #elif for simplicity, since we can assume C89 now.
81517         Don't try to source the system alloca.h since it will not be found
81518         and to prevent recursively including its replacement.
81519         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81520         * lib/regex.c: Likewise.
81521
81522 2004-05-16  Derek Price  <derek@ximbiot.com>
81523             Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         getline cleanup.  This changes the getndelim2 API: both order of
81526         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81527         no delimiter).
81528
81529         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81530         interface does that.
81531         (getline): Always use getdelim, so that we don't have two
81532         copies of this code.
81533         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81534         if available.
81535         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81536         (GETNDELIM2_MAXIMUM): New macro.
81537         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81538         instead of the old practice of delim2==0.  All callers changed.
81539         Return -1 on overflow, instead of returning junk.
81540         Do not set *linesize unless allocation succeeds.
81541         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81542         that we include sys/types.h.
81543         * lib/getnline.h: Likewise.
81544         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81545         (getndelim2): Reorder arguments.
81546         * lib/getnline.c (getnline, getndelim):
81547         Don't discard the NMAX argument.
81548         (getnline): Invoke getndelim, to avoid code duplication.
81549         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81550         of (size_t) -1 by callers of the getnline family.
81551
81552 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81553
81554         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81555         Check for gettimeofday.
81556         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81557         Check for settimeofday, stime.
81558
81559 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81560
81561         * lib/nanosleep.c (suspended): Change its type from int to
81562         sig_atomic_t volatile.
81563         (first_call): Make it private to rpl_nanosleep, and have it
81564         be zero initially as that's a bit faster.
81565         (my_usleep): Round up fractional times instead of truncating them,
81566         as this is the usual meaning for 'sleep'.
81567
81568         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81569         doesn't work.
81570         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81571         (ENOSYS): Define if not defined.
81572         (settime): Fall back on stime if it exists and settimeofday fails.
81573         But don't bother with fallbacks if a method fails with errno == EPERM.
81574
81575 2004-05-11  Jim Meyering  <jim@meyering.net>
81576
81577         Prior to this change, the save_cwd caller required read access to the
81578         current directory on most systems (ones with the fchdir function).
81579
81580         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81581         fails, try write-only, and finally, resort to using xgetcwd.
81582
81583 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81584
81585         * lib/obstack.c, obstack.h: Import changes from libc.
81586
81587 2004-04-28  Bruno Haible  <bruno@clisp.org>
81588
81589         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81590         also implicitly appends .exe to executables.
81591         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81592         accepts Windows pathnames.
81593         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81594         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81595         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81596         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81597         Reported by Derek Robert Price <derek@ximbiot.com>.
81598
81599 2004-04-21  Karl Berry  <karl@gnu.org>
81600
81601         * config/srclist.txt (localcharset.c): break sync.
81602
81603 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81604
81605         * m4/host-os.m4: Add a copyright notice.
81606
81607 2004-04-20  Jim Meyering  <jim@meyering.net>
81608
81609         Change UTILS_ to gl_ in AC_DEFINE'd names.
81610         Change utils_- and jm_-prefixed variables, too.
81611         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81612         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81613         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81614
81615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81616         Don't emit trailing blanks.
81617         Also rename jm_-prefixed variables to have gl_ prefix.
81618
81619         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81620         Also rename jm_-prefixed variables to have gl_ prefix.
81621
81622         * m4/jm-macros.m4: Reflect the renamings.
81623         * m4/prereq.m4: Likewise.
81624
81625 2004-04-20  Jim Meyering  <jim@meyering.net>
81626
81627         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81628         memory.
81629
81630 2004-04-20  Jim Meyering  <jim@meyering.net>
81631             Bruno Haible  <bruno@clisp.org>
81632
81633         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81634         memory when realloc fails.
81635
81636 2004-04-19  Jim Meyering  <jim@meyering.net>
81637
81638         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81639         now that readutmp.c may call `free (0)'.
81640
81641 2004-04-19  Bruno Haible  <bruno@clisp.org>
81642
81643         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81644         * m4/inttypes_h.m4: Likewise.
81645         * m4/stdint_h.m4: Likewise.
81646         * m4/intmax_t.m4: Likewise.
81647         * m4/uintmax_t.m4: Likewise.
81648
81649 2004-04-18  Jim Meyering  <jim@meyering.net>
81650
81651         * m4/prereq.m4: Don't forbid jm_ prefix.
81652
81653         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81654         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81655         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81656         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81657         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81658         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81659         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81660         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81661         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81662         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81663         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81664         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81665         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81666         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81667         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81668         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81669         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81670         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81671         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81672
81673 2004-04-18  Jim Meyering  <jim@meyering.net>
81674
81675         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81676         failure, don't leak memory and do call END_UTMP_ENT.
81677
81678 2004-04-16  Jim Meyering  <jim@meyering.net>
81679
81680         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81681         coreutils' stat program.
81682         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81683
81684 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81685
81686         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81687         C89.
81688         (CHAR_BIT): Remove, since we assume C89.
81689         Include <stdint.h> if available, as per current Autoconf CVS advice.
81690
81691 2004-03-31  Jim Meyering  <jim@meyering.net>
81692
81693         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81694         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81695         * m4/xalloc.m4: Likewise.
81696
81697 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81698
81699         Merge from coreutils.
81700
81701         * m4/inttostr.m4: New file.
81702         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81703         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81704         Require gl_CLOCK_TIME.
81705         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81706
81707 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81708
81709         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81710         not bool, to be more consistent with Unix conventions.
81711         Suggested by Bruno Haible.
81712
81713         Merge from coreutils.
81714
81715         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81716         * lib/umaxtostr.c: New files.
81717
81718         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81719         the usual <time.h> dance.
81720         (get_date): Change signature to support fractional time stamps.
81721         All callers changed.
81722         * lib/getdate.y: Include "getdate.h" first, as we can now
81723         assume C89 and don't need to worry about 'const'.
81724         Similarly, include "unlocked-io.h" near start, not in middle.
81725         Include <limits.h>.
81726         (textint.value): Use long int rather than int.
81727         (textint.digits): Use size_t rather than int.
81728         (BILLION, LOG10_BILLION): New constants.
81729         (parser_control): New member rel_ns.  Members day_ordinal,
81730         time_zone, month, day, hour, minutes, rel_year, rel_month,
81731         rel_day, rel_hour, rel_minutes, rel_seconds
81732         are now long int, not int.  Member seconds is now struct timespec,
81733         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81734         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81735         not int.
81736         (%union.intval): Now long int, not int.
81737         New member timespec.
81738         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81739         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81740         (spec): Now is a timespec or an item list.
81741         (timespec, items): New nonterminals.
81742         (time, rel, relunit, number, get_date):
81743         Add support for fractional seconds.
81744         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81745         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81746         (to_hour): First arg is now long int, not int.
81747         (to_year): Returns long int, not int.
81748         Don't treat year -70 like 70.
81749         (tm_diff): Returns long int, not int.
81750         (lookup_word): Use bool instead of int when appropriate.
81751         (yylex): Use size_t for count, not int.
81752         Detect overflow when parsing large integer constants.
81753         Add support for fractions.
81754         (get_date): Make pointers 'const' if possible.
81755         Use more-portable code to detect integer overflow.
81756         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81757         Don't use ctime; it's not reliable if the year has >4 digits.
81758
81759         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81760         This is for compatibility with BSD.
81761
81762         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81763         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81764         From coreutils' system.h.
81765
81766         * lib/userspec.c: Don't include "posixver.h".
81767         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81768         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81769         compatible extension.  Simplify code by removing a boolean int
81770         that was always nonzero if a string was nonnull.
81771
81772 2004-03-30  Jim Meyering  <jim@meyering.net>
81773
81774         Merge from coreutils.
81775
81776         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81777         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81778         on some systems one must include <grp.h> before it.
81779         Reported by Christian Krackowizer.
81780
81781 2004-03-30  Jim Meyering  <jim@meyering.net>
81782
81783         Merge from coreutils.
81784
81785         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81786
81787         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81788         an empty input stream.
81789
81790         * lib/readtokens.c: Include <stdbool.h>.
81791         (readtoken): Use `size_t' rather than int/long.
81792         All callers adjusted.
81793         Use `bool' rather than `int' where appropriate.
81794         Use memset rather than an explicit loop.
81795         Use x2nrealloc rather than xrealloc.
81796         Allow the use of `\0' as a delimiter.
81797         (readtokens): Likewise.
81798         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81799
81800 2004-03-30  Jim Meyering  <jim@meyering.net>
81801
81802         * m4/realloc.m4: Remove file, since now it does no more than
81803         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81804         the `configure.ac' section of module/realloc.
81805         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81806
81807 2004-03-30  Bruno Haible  <bruno@clisp.org>
81808
81809         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81810         nonnull.
81811
81812 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81813
81814         Merge changes to getloadavg.c from coreutils and Emacs.
81815
81816         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81817         Define to an expression, not to the empty string.
81818         Include cloexec.h and xalloc.h.
81819         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81820         Use set_cloexec_flag rather than rolling our own.
81821         * lib/cloexec.c, lib/cloexec.h: New files.
81822
81823 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81824
81825         * m4/cloexec.m4: New file.
81826
81827 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81828
81829         * lib/getopt.h: Sync with libc CVS.
81830
81831 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81832             Bruno Haible  <bruno@clisp.org>
81833
81834         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81835         mbswidth.
81836
81837 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81838             Bruno Haible  <bruno@clisp.org>
81839
81840         * lib/mbswidth.h: Include <wchar.h> only if
81841         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81842         <wchar.h>.
81843         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81844
81845 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81846
81847         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81848         Sync with libc CVS.
81849         * lib/getopt_int.h: New file, also synced from libc.
81850
81851 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81852
81853         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81854         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81855         Bring back getopt.c, getopt.h, getopt1.c.
81856
81857 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81858
81859         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81860         All uses changed.  Check for sa_sigaction member; this fixes
81861         a bug first reported by Jason Andrade in
81862         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81863
81864 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81865
81866         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81867         '#if' expressions.  Unlike the code it replaces, it does not
81868         depend on (defined _SC_PAGESIZE).  However, it does depend on
81869         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81870         first reported by Jason Andrade in
81871         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81872
81873 2004-02-25  Simon Josefsson  <jas@extundo.com>
81874
81875         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81876
81877 2004-02-25  Simon Josefsson  <jas@extundo.com>
81878
81879         * lib/strdup.h: New file.
81880         * lib/strdup.c: Include it.
81881         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81882         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81883
81884 2004-02-23  Karl Berry  <karl@gnu.org>
81885
81886         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81887         (from fencepost.gnu.org:/gd/gnuorg).
81888
81889 2004-02-23  Karl Berry  <karl@gnu.org>
81890
81891         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81892         * config/srclist.txt: add maintain/standards documents.
81893
81894 2004-02-18  Bruno Haible  <bruno@clisp.org>
81895
81896         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81897         Reported by Derek Robert Price <derek@ximbiot.com>.
81898
81899 2004-02-16  Karl Berry  <karl@gnu.org>
81900
81901         * config/mkinstalldirs, install-sh: update from automake.
81902
81903 2004-02-06  Karl Berry  <karl@gnu.org>
81904
81905         * m4/po.m4: update from gettext 0.14.1.
81906
81907 2004-02-06  Karl Berry  <karl@gnu.org>
81908
81909         * lib/config.charset: update from gettext 0.14.1.
81910
81911 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81912
81913         Add comments and code, prompted by suggestions from Bruno Haible
81914         for sh-quote.
81915         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81916         describing the enum quoting_style values.
81917         * lib/quotearg.c (quotearg_alloc): New function.
81918         (quotearg_buffer_restyled): Treat lone { and } as special.
81919         Treat = as special.  Work around bug with older shells
81920         that "see" a '\' that is really the 2nd byte of a multibyte char.
81921         Quote empty string with shell_quoting_style.
81922
81923 2004-02-03  Bruno Haible  <bruno@clisp.org>
81924
81925         * m4/pipe.m4: New file, from GNU gettext.
81926
81927 2004-02-03  Bruno Haible  <bruno@clisp.org>
81928
81929         * lib/pipe.h: New file, from GNU gettext.
81930         * lib/pipe.c: New file, from GNU gettext.
81931
81932 2004-01-27  Bruno Haible  <bruno@clisp.org>
81933
81934         * m4/execute.m4: New file, from GNU gettext.
81935
81936 2004-01-27  Bruno Haible  <bruno@clisp.org>
81937
81938         * lib/execute.h: New file, from GNU gettext.
81939         * lib/execute.c: New file, from GNU gettext.
81940         * lib/w32spawn.h: New file, from GNU gettext.
81941
81942 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81943
81944         Merge from diffutils.
81945
81946         * lib/file-type.c (file_type): Add typed memory objects.
81947         * lib/file-type.h (S_TYPEISTMO): New macro.
81948
81949         * lib/c-stack.h (c_stack_action): Remove argv argument.
81950         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81951         (die): Don't calculate message unless segv_action returns.
81952         (get_stack_location, min_address_from_argv, max_address_from_argv,
81953         volatile stack_base, volatile_stack_size): Remove.
81954         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81955         that every segmentation violation is a stack overflow.  (Ouch!)
81956         See Debian bug 136249 (still outstanding) for more info about why
81957         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81958
81959 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81960
81961         Exit-status fix from coreutils.
81962
81963         Use exit_failure consistently in place of EXIT_FAILURE,
81964         so that program exit statuses are consistent on failure.
81965
81966         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81967         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81968         * lib/argmatch.h: Comment fix to match the above.
81969         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81970         Now a macro referring to exit_failure, instead of a separate
81971         variable.  Include "exitfail.h" to get it.
81972         * lib/xstrtol.h: Include "exitfail.h".
81973         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81974
81975         * lib/long-options.c (parse_long_options): Use prototype
81976         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81977         for clarity.
81978
81979 2004-01-21  Jim Meyering  <jim@meyering.net>
81980
81981         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81982         so as not to conflict with a different-sized __mktime_internal
81983         function in GNU libc.
81984         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81985         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81986
81987 2004-01-20  Karl Berry  <karl@gnu.org>
81988
81989         * config/config.guess: update from config.
81990
81991         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81992
81993 2004-01-20  Bruno Haible  <bruno@clisp.org>
81994
81995         Safer stack allocation.
81996         * lib/setenv.c: Include allocsa.h.
81997         (alloca): Remove fallback definition.
81998         (freea): Remove macro.
81999         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82000         instead of freea.
82001
82002 2004-01-20  Bruno Haible  <bruno@clisp.org>
82003
82004         * m4/eealloc.m4: New file, from GNU gettext.
82005
82006 2004-01-20  Bruno Haible  <bruno@clisp.org>
82007
82008         * m4/allocsa.m4: New file, from GNU gettext.
82009
82010 2004-01-20  Bruno Haible  <bruno@clisp.org>
82011
82012         * lib/xallocsa.h: New file, from GNU gettext.
82013         * lib/xallocsa.c: New file, from GNU gettext.
82014
82015 2004-01-20  Bruno Haible  <bruno@clisp.org>
82016
82017         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82018
82019 2004-01-20  Bruno Haible  <bruno@clisp.org>
82020
82021         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82022         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82023         specially.
82024
82025 2004-01-20  Bruno Haible  <bruno@clisp.org>
82026
82027         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82028         patch.
82029
82030 2004-01-20  Bruno Haible  <bruno@clisp.org>
82031
82032         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82033
82034 2004-01-20  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/eealloc.h: New file.
82037
82038 2004-01-20  Bruno Haible  <bruno@clisp.org>
82039
82040         * lib/binary-io.h: Avoid warnings on Cygwin.
82041
82042 2004-01-20  Bruno Haible  <bruno@clisp.org>
82043
82044         * lib/allocsa.h: New file, from GNU gettext.
82045         * lib/allocsa.c: New file, from GNU gettext.
82046
82047 2004-01-18  Karl Berry  <karl@gnu.org>
82048
82049         * doc/gpl.texi, doc/lgpl.texi: new files.
82050
82051 2004-01-18  Karl Berry  <karl@gnu.org>
82052
82053         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82054         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82055
82056 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82057
82058         Merge from coreutils.
82059
82060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82061         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82062         (gl_DEFAULT_POSIX2_VERSION): Move
82063         the documentation from 'configure' into 'config.hin',
82064         so that 'configure --help' isn't burdened by it and
82065         we don't have to worry about its formatting there.
82066         Reword the documentation so that it's more succinct
82067         and can be run together into a single paragraph.
82068         * m4/same.m4 (gl_SAME): Check for pathconf.
82069
82070 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82071
82072         Merge from coreutils.
82073
82074         * lib/posixver.c: Include posixver.h.
82075
82076         * lib/same.c: Include <stdbool.h>, <limits.h>.
82077         (_POSIX_NAME_MAX): Define if not defined.
82078         (MIN): New macro.
82079         (same_name): If file names are silently truncated, report
82080         that the file names are the same if they are the same after
82081         the silent truncation.
82082
82083         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82084         conversion function.
82085         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82086         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82087         longer needed.
82088
82089 2004-01-15  Jim Meyering  <jim@meyering.net>
82090
82091         Merge from coreutils.
82092
82093         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82094         if no library is required.
82095         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82096         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82097         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82098         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82099         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82100         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82101         value, $ac_cv_search_crypt, if it's "none required".
82102         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82103         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82104         not gl_FUNC_GETLOADAVG.
82105         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82106         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82107
82108 2004-01-15  Jim Meyering  <jim@meyering.net>
82109
82110         Merge from coreutils.
82111
82112         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82113         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82114         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82115
82116         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82117         optional configure-time default.
82118
82119         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82120
82121         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82122
82123 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82124
82125         Merge from coreutils.
82126
82127         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82128         value, $ac_cv_search_nanosleep, if it's "none required".
82129
82130 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82131
82132         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82133         with like-named macro in fnmatch.c.
82134         (EXT): Use an internal constant instead.
82135
82136         Merge fnmatch patches from glibc.
82137         * lib/fnmatch.c (mbsinit): Remove define.
82138         Add libc_hidden_ver (__fnmatch, fnmatch).
82139         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82140         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82141
82142 2004-01-14  Karl Berry  <karl@gnu.org>
82143
82144         * config/install-sh: update from automake.
82145
82146 2004-01-13  Karl Berry  <karl@gnu.org>
82147
82148         * config/install-sh: update from automake.
82149
82150 2004-01-09  Karl Berry  <karl@gnu.org>
82151
82152         * config/install-sh: update from automake.
82153
82154 2004-01-05  Karl Berry  <karl@gnu.org>
82155
82156         * config/config.{sub,guess}: update from config.
82157
82158 2003-12-31  Karl Berry  <karl@gnu.org>
82159
82160         * config/depcomp: update from automake.
82161
82162 2003-12-14  Karl Berry  <karl@gnu.org>
82163
82164         * lib/config.charset: update from gettext-runtime.
82165
82166 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82167
82168         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82169         Bug reported by Alfred M. Szmidt.
82170
82171 2003-12-03  Bruno Haible  <bruno@clisp.org>
82172
82173         * m4/gettext.m4: Upgrade from gettext-0.13.
82174         * m4/po.m4: Upgrade from gettext-0.13.
82175         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82176         * m4/intmax.m4: New file, from gettext-0.13.
82177         * m4/printf-posix.m4: New file, from gettext-0.13.
82178
82179 2003-11-29  Karl Berry  <karl@gnu.org>
82180
82181         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82182
82183 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82184             Bruno Haible  <bruno@clisp.org>
82185
82186         * lib/printf-parse.h: Don't include sys/types.h.
82187         (ARG_NONE): New macro.
82188         (char_directive): Change type of *arg_index fields to size_t.
82189         * lib/printf-parse.c: Don't include sys/types.h.
82190         (SSIZE_MAX): Remove macro.
82191         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82192         Remove unnecessary overflow check.
82193         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82194         fields.
82195
82196 2003-11-25  Bruno Haible  <bruno@clisp.org>
82197
82198         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82199
82200 2003-11-25  Bruno Haible  <bruno@clisp.org>
82201
82202         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82203         gt_TYPE_SSIZE_T.
82204
82205 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82206
82207         * modules/alloca: Remove dependency on xalloc.
82208
82209 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82210
82211         * lib/alloca.c: Remove dependency on xalloc module.
82212         (xalloc_die): Remove.
82213         (memory_full) [!defined emacs]: New macro.
82214         [!defined emacs]: Don't include xalloc.h.
82215         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82216         address arithmetic overflows.  Change datatypes a bit to avoid
82217         unnecessary casts.
82218
82219 2003-11-22  Jim Meyering  <jim@meyering.net>
82220
82221         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82222         s/size/size_t/.
82223
82224 2003-11-21  Karl Berry  <karl@gnu.org>
82225
82226         * config/config.{sub,guess}: update from config.
82227
82228 2003-11-18  Karl Berry  <karl@gnu.org>
82229
82230         * config/config.{sub,guess}: update from config.
82231
82232         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82233
82234 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82235
82236         * README: Mention that S+T cannot overflow if S is the size of
82237         an existing object and T is sufficiently small.
82238
82239 2003-11-17  Jim Meyering  <jim@meyering.net>
82240
82241         On systems without utime and without a utimes function capable of
82242         dealing with a NULL struct utimbuf* argument, this utime replacement
82243         could -- in unusual circumstances -- leak a file descriptor.
82244         * lib/utime.c: Include <unistd.h> and <errno.h>.
82245         (utime_null): Be sure to close `fd' and to preserve errno.
82246         Reported by Geoff Collyer via Arnold Robbins.
82247
82248 2003-11-17  Bruno Haible  <bruno@clisp.org>
82249
82250         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82251         (Depends-on): Add xsize.
82252
82253 2003-11-17  Bruno Haible  <bruno@clisp.org>
82254
82255         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82256
82257 2003-11-17  Bruno Haible  <bruno@clisp.org>
82258
82259         * lib/vasnprintf.c (alloca): Remove fallback definition.
82260         (freea): Remove definition.
82261         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82262         Reported by Paul Eggert.
82263
82264 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82265             Bruno Haible  <bruno@clisp.org>
82266
82267         Protect against address arithmetic overflow.
82268         * lib/printf-args.h: Include stddef.h.
82269         (arguments): Change type of field 'count' to size_t.
82270         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82271         'unsigned int' where appropriate.
82272         * lib/printf-parse.h: Include sys/types.h.
82273         (char_directive): Change type of *arg_index fields to ssize_t.
82274         (char_directives): Change type of fields 'count', max_*_length to
82275         size_t.
82276         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82277         (SSIZE_MAX): Define fallback value.
82278         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82279         instead of 'int' where appropriate. Check a_allocated, d_allocated
82280         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82281         * lib/vasnprintf.c: Include xsize.h.
82282         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82283         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82284         overflow. Avoid wraparound when converting a width or precision from
82285         decimal to binary.
82286
82287 2003-11-16  Bruno Haible  <bruno@clisp.org>
82288
82289         Update from GNU gettext.
82290         * lib/printf-parse.c: Generalize to it can be compiled for wide
82291         strings.
82292         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82293         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82294         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82295         SNPRINTF): New macros.
82296         Don't include <alloca.h> if the file is used inside libintl.
82297         (local_wcslen): New function, for Solaris 2.5.1.
82298         (VASNPRINTF): Use it instead of wcslen.
82299
82300 2003-11-16  Bruno Haible  <bruno@clisp.org>
82301
82302         * lib/xsize.h (xmax): New function.
82303         (xsum, xsum3, xsum4): Declare as "pure" functions.
82304
82305 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82306
82307         * modules/xalloc (Files): Undo latest change, since xalloc.h
82308         no longer needs SIZE_MAX or PTRDIFF_MAX.
82309
82310 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82311
82312         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82313         gl_PTRDIFF_MAX.
82314
82315 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82316
82317         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82318         "return", to pacify some unknown compiler.  Problem reported
82319         by Joerg Schilling.
82320
82321 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82322
82323         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82324         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82325         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82326         heuristic is just as accurate as far as we know, and it removes a
82327         dependency on size_max.m4 and ptrdiff_max.m4.
82328
82329 2003-11-11  Bruno Haible  <bruno@clisp.org>
82330
82331         * modules/xsize (Files): Add m4/size_max.m4.
82332         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82333
82334 2003-11-11  Bruno Haible  <bruno@clisp.org>
82335
82336         * m4/size_max.m4: New file.
82337         * m4/ptrdiff_max.m4: New file.
82338         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82339         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82340         (gl_XALLOC): Invoke it.
82341
82342 2003-11-11  Bruno Haible  <bruno@clisp.org>
82343
82344         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82345         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82346         defined.
82347
82348 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82349
82350         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82351         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82352         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82353         From Bruno Haible.
82354         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82355         not (size_t) -1, since it's defined here.
82356
82357 2003-11-09  Karl Berry  <karl@gnu.org>
82358
82359         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82360
82361 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82362
82363         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82364         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82365         Reject sizes of exactly SIZE_MAX bytes.
82366         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82367         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82368
82369 2003-11-05  Bruno Haible  <bruno@clisp.org>
82370
82371         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82372         SIZE_MAX defined in <limits.h> on Solaris.
82373
82374 2003-11-04  Jim Meyering  <jim@meyering.net>
82375
82376         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82377         variable names, rather than @VAR@.
82378         * modules/poll: Likewise.
82379
82380 2003-11-04  Bruno Haible  <bruno@clisp.org>
82381
82382         * modules/xsize: New file.
82383         * modules/linebreak: Depend on xsize.
82384         * MODULES.html.sh (func_all_modules): Add xsize.
82385
82386 2003-11-04  Bruno Haible  <bruno@clisp.org>
82387
82388         * m4/xsize.m4: New file.
82389
82390 2003-11-04  Bruno Haible  <bruno@clisp.org>
82391
82392         * lib/xsize.h: New file.
82393         * lib/linebreak.c: Include xsize.h.
82394         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82395         argument for overflow.
82396         Suggested by Paul Eggert.
82397
82398 2003-11-03  Karl Berry  <karl@gnu.org>
82399
82400         * config/config.{guess,sub}: update from config.
82401
82402 2003-11-03  Jim Meyering  <jim@meyering.net>
82403
82404         * modules/userspec (lib_SOURCES): Add userspec.h.
82405         (Include): Add "userspec.h".
82406         Improve description.
82407
82408 2003-11-03  Jim Meyering  <jim@meyering.net>
82409
82410         * lib/userspec.c: Include "userspec.h".
82411         * lib/userspec.h: New file.
82412
82413 2003-11-03  Bruno Haible  <bruno@clisp.org>
82414
82415         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82416
82417 2003-11-03  Bruno Haible  <bruno@clisp.org>
82418
82419         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82420         available, to avoid (extremely rare) race condition.
82421         Suggested by Paul Eggert.
82422
82423 2003-11-02  Karl Berry  <karl@gnu.org>
82424
82425         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82426
82427 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82428
82429         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82430         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82431         (read_filesystem_list): Set and use me_type_malloced.
82432         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82433         whatever the type happens to be), for brevity and consistency.
82434         Check for size calculation overflow on Alphas running OSF/1.
82435
82436 2003-10-31  Jim Meyering  <jim@meyering.net>
82437
82438         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82439
82440         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82441
82442 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82443             Bruno Haible  <bruno@clisp.org>
82444
82445         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82446         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82447
82448 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82449
82450         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82451         netbsd*-gnu*.  Suggested by Robert Millan.
82452
82453 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82454
82455         * modules/group-member: Depend on stdbool.
82456
82457 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82458
82459         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82460
82461 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82462
82463         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82464         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82465         after the 'gnu' in these cases.  This fixes some bugs in the
82466         previous change, and is based on suggestions by Robert Millan.
82467
82468 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82469
82470         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82471         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82472         no longer needed.
82473         * lib/quotearg.c (quotearg_n_options): Use it.
82474         * lib/group-member.c: Include <stdbool.h>.
82475         (free_group_info): Arg is now const *; don't free arg.
82476         (get_group_info): Now returns bool and accepts struct group_info *,
82477         rather than returning a malloc'ed struct group_info *.
82478         All uses changed.  Check for overflow in internal size calculation.
82479
82480         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82481         rather than xmalloc/xrealloc.
82482         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82483         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82484         conformance bug: the old code used a pointer after freeing the
82485         storage that it addressed.
82486         * lib/hash.c (hash_initialize): Simplify the code by using
82487         xalloc_oversized rather than doing it by hand.
82488         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82489         the buffer preserved.  Use free and xmalloc instead.
82490         * lib/quotearg.c (quotearg_n_options): Likewise.
82491         Use a simpler test for size overflow.  Don't use xalloc_oversized
82492         because unsigned int might be wider than size_t (!); this suggests
82493         that we should switch from unsigned int to size_t for slot numbers.
82494
82495 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82496
82497         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82498         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82499         NetBSD kernels.  Requested by Richard Stallman.
82500
82501 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82502
82503         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82504         to allocate the returned structure.  Do not allocate a subarray,
82505         as x2nrealloc will do that.
82506         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82507         instead of xnrealloc.
82508         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82509
82510 2003-10-27  Bruno Haible  <bruno@clisp.org>
82511
82512         * lib/stdbool_.h: Better support for BeOS.
82513
82514 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82515
82516         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82517         now uses inline.
82518
82519 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82520
82521         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82522         callers that want to do their own size-overflow checking.  Include
82523         <stdbool.h>, since xalloc_oversized returns bool.
82524         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82525         to use xalloc_oversized.
82526
82527         Add two functions x2realloc, x2nrealloc, for programs that grow
82528         arrays dynamically by doubling their sizes.
82529         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82530         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82531         New functions.
82532
82533         Port to C99 semantics for 'inline' of external functions.
82534         Bug reported by Bruno Haible.
82535         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82536         with the old contents of xnmalloc.
82537         (xnmalloc, xmalloc): Use it.
82538         (xnrealloc_inline): New static inline function,
82539         with the old contents of xnrealloc.
82540         (xnrealloc, xrealloc): Use it.
82541
82542         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82543         that.
82544
82545 2003-10-26  Karl Berry  <karl@gnu.org>
82546
82547         * config/srclist.txt (COPYING.DOC): no longer available from
82548         /gd/gnuorg; don't know where the ultimate source is.
82549
82550 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82551
82552         Fix several address-calculation bugs in the hash modules,
82553         plus some minor code cleanup.
82554
82555         * lib/hash.h: Include <stdbool.h>, for bool.
82556         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82557         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82558         hash_get_n_entries, hash_get_max_bucket_length,
82559         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82560         hash_rehash): Use size_t rather than unsigned.
82561         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82562         hash_get_n_buckets_used, hash_get_n_entries,
82563         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82564         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82565         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82566         Likewise.
82567         (SIZE_MAX): Define if not defined.
82568         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82569         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82570         hash_print):
82571         Use const * when possible.
82572         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82573         (check_tuning): Fix bug: if tuning parameters were very close to
82574         0 or 1, rounding errors could have caused subscript violations.
82575         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82576         (hash_initialize): Add 'fail:' label
82577         to free table and return NULL, and use it to simplify code.
82578         Use calloc rather than clearing the storage ourself.
82579         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82580         buffer size calculations.
82581         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82582         Include <stddef.h>, for size_t.
82583         * lib/hash-pjw.c (hash_pjw): Likewise.
82584         Switch to method described by Bruno Haible.
82585         Include <limits.h>, for CHAR_BIT.
82586         (SIZE_BITS): New macro.
82587
82588 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82589
82590         * m4/getline.m4 (AM_FUNC_GETLINE):
82591         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82592         hosts.  Problem reported by Derek Robert Price in
82593         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82594         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82595         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82596
82597 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82598
82599         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82600         ceiling the allocation at NMAX bytes rather than silently
82601         discarding input bytes before NMAX is reached.  This makes
82602         a difference only if NMAX exceeds SIZE_MAX / 2.
82603
82604         * lib/obstack.c: Merge from glibc.
82605         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82606         Add libc_hidden_def (_obstack_newchunk).
82607         (_obstack_free) [! defined _LIBC]: Remove.
82608         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82609         a clone of the function body.
82610         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82611         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82612
82613         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82614         glibc.
82615         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82616         arg to memcpy.
82617
82618         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82619         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82620         Don't use lvalue casts, as GCC plans to remove support for them
82621         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82622         was also present in the non-GCC version, indicating that this
82623         code had always been buggy and had never been widely used.
82624         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82625         Use the fast variant of each macro, rather than copying the
82626         definiens of the fast variant; that way, we'll be more likely to
82627         catch future bugs in the fast variants.
82628
82629 2003-10-20  Bruno Haible  <bruno@clisp.org>
82630
82631         * modules/wait-process: New file.
82632         * MODULES.html.sh (func_all_modules): Add wait-process.
82633
82634 2003-10-20  Bruno Haible  <bruno@clisp.org>
82635
82636         * m4/wait-process.m4: New file.
82637
82638 2003-10-20  Bruno Haible  <bruno@clisp.org>
82639
82640         * lib/wait-process.h: New file, from GNU gettext.
82641         * lib/wait-process.c: New file, from GNU gettext.
82642
82643 2003-10-19  Jim Meyering  <jim@meyering.net>
82644
82645         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82646         HPUX 10.20.
82647
82648 2003-10-18  Karl Berry  <karl@gnu.org>
82649
82650         * config/config.guess: update from config.
82651
82652 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82653
82654         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82655         (getgroups): First arg is int, not size_t.
82656         Don't let 'free' mangle errno.
82657
82658 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82659
82660         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82661
82662 2003-10-16  Karl Berry  <karl@gnu.org>
82663
82664         * config/config.{guess,sub}: update from config.
82665
82666 2003-10-16  Jim Meyering  <jim@meyering.net>
82667
82668         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82669         memcpy.
82670
82671 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82672
82673         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82674         (SIZE_MAX): Remove.
82675         (new_exclude, add_exclude_file): Initial size no longer needs to
82676         be a power of 2.
82677         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82678         our own address arithmetic overflow checking.
82679
82680         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82681         (fnmatch): Do not alloca more than 2000 wide characters;
82682         instead, use malloc for large buffers.
82683         Check for address arithmetic overflow, and return -1
82684         with errno set to ENOMEM in that case.
82685         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82686         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82687         instead, return -1.  Check for address arithmetic overflow.
82688
82689 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82690
82691         Handle invalid suffixes and overflow independently, so that
82692         callers can treat them independently as needed.  Fix some bugs in
82693         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82694         suffix for a human-readable blocksize.  The major caller-visible
82695         change is the addition of a new
82696         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82697         that both overflow and suffix chars were found.
82698
82699         * lib/human.c (humblock): Don't check separately for invalid suffix
82700         char; that is xstrtoumax's job (now that its bug is fixed).
82701         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82702         INTMAX_MAX]: New macros.
82703         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82704         TYPE_MAXIMUM): New macros.
82705         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82706         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82707         if overflow occurs, as it's what __strtol does and it's more useful
82708         in practice.
82709         (__xstrtol): If __strtol reports some error other than ERANGE,
82710         reflect it to the caller as LONGINT_INVALID.  If it reports
82711         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82712         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82713         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82714         value.
82715         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82716         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82717         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82718         [defined UINTMAX_MAX]: New macros.
82719
82720 2003-10-14  Bruno Haible  <bruno@clisp.org>
82721
82722         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82723
82724 2003-10-14  Bruno Haible  <bruno@clisp.org>
82725
82726         * m4/sig_atomic_t: New file, from GNU gettext.
82727         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82728
82729 2003-10-14  Bruno Haible  <bruno@clisp.org>
82730
82731         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82732         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82733         Also use volatile where needed.
82734
82735 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82736
82737         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82738         Change maintainer from Bruno Haible to 'all'.
82739
82740 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82741
82742         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82743
82744 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82745
82746         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82747         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82748         and define in terms of the other primitives.
82749         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82750         (SIZE_MAX): Define if not already defined.
82751         (array_size_overflow): New function.
82752         (xalloc_die): Abort instead of exiting if 'error' returns.
82753         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82754         (xmalloc, xrealloc): Use them.
82755         (xcalloc): Check for address arithmetic overflow.
82756         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82757         a bit faster than strcpy.
82758
82759 2003-10-10  Simon Josefsson  <jas@extundo.com>
82760
82761         * modules/argp (Depends-on): Add restrict and strcase.
82762
82763 2003-10-10  Simon Josefsson  <jas@extundo.com>
82764
82765         * m4/argp.m4: Add AC_C_INLINE.
82766
82767 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82768
82769         Merge getpass from libc, plus a few fixes.
82770
82771         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82772         Include <stdbool.h>.
82773         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82774         __fsetlocking to empty.
82775         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82776         do include <bits/libc-lock.h>.
82777         Do not include <fcntl.h>; not needed.
82778         [_LIBC]: Include <wchar.h>.
82779         (NOTCANCEL_MODE): New macro.
82780         (flockfile, funlockfile) [_LIBC]: New macros.
82781         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82782         [!_LIBC]: New macros.
82783         (call_fclose): New function.
82784         (getpass): Use it.  Save tty stream separately; this simplifies the
82785         code and makes it more reliable if stdin happens to equal stdout.
82786         Invoke __fsetlocking on tty.
82787         Handle thread cancellation if needed.
82788         Namespace cleanup (use __tcgetattr, __getline).
82789         Use bool for Booleans.
82790         [USE_IN_LIBIO]: Handle wide streams.
82791         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82792         stream might go where.
82793
82794         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82795         doesn't have to include <stdio.h> before us.
82796         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82797         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82798         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82799         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82800         if not declared, so that we can use getpass.c code from libc without
82801         rewriting it.
82802         (flockfile, ftrylockfile, funlockfile): New macros.
82803
82804 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82805
82806         * modules/getpass: Depend on stdbool.
82807
82808 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82809
82810         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82811
82812 2003-10-07  Karl Berry  <karl@gnu.org>
82813
82814         * config/config.{guess,sub}: update from config.
82815
82816 2003-10-06  Jim Meyering  <jim@meyering.net>
82817             Bruno Haible  <bruno@clisp.org>
82818
82819         This lets translators provide better translations for the
82820         "Written by ..." part of --version output.
82821         * lib/version-etc.h: Include stdarg.h.
82822         (version_etc_copyright): Declare as readonly.
82823         (version_etc): Make this function variadic with a NULL-terminated list
82824         of author name strings.
82825         (version_etc_va): New declaration.
82826         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82827         (version_etc_copyright): Declare as readonly.
82828         (version_etc_va): New function. Provide a different translatable string
82829         for each possible number of authors < 10. Abbreviate when there are 10
82830         authors or more.
82831         (version_etc): Make this function variadic. Call version_etc_va.
82832         Suggestion from Gary V. Vaughan.
82833
82834         * lib/long-options.h (parse_long_options): Change prototype: the
82835         authors string is moved to the end and becomes variadic.
82836         * lib/long-options.c: Include stdarg.h.
82837         (parse_long_options): Make this function variadic, too.
82838         Call version_etc_va, not version_etc.
82839
82840 2003-10-06  Bruno Haible  <bruno@clisp.org>
82841
82842         * modules/version-etc-2: Remove file.
82843         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82844
82845 2003-10-06  Bruno Haible  <bruno@clisp.org>
82846
82847         * modules/fatal-signal: New file.
82848         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82849
82850 2003-10-06  Bruno Haible  <bruno@clisp.org>
82851
82852         * m4/fatal-signal.m4: New file.
82853         * m4/signalblocking.m4: New file, from GNU gettext.
82854
82855 2003-10-06  Bruno Haible  <bruno@clisp.org>
82856
82857         * lib/version-etc-2.h: Remove file.
82858         * lib/version-etc-2.c: Remove file.
82859
82860 2003-10-06  Bruno Haible  <bruno@clisp.org>
82861
82862         * lib/fatal-signal.h: New file, from GNU gettext.
82863         * lib/fatal-signal.c: New file, from GNU gettext.
82864
82865 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82866
82867         * README: Rework advice for preventing empty .o files.
82868         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82869         not <sys/types.h>.
82870
82871 2003-10-04  Karl Berry  <karl@gnu.org>
82872
82873         * lib/argp*: update from libc.
82874
82875 2003-10-04  Karl Berry  <karl@gnu.org>
82876
82877         * config/config.{guess,sub}: update from config.
82878
82879 2003-10-02  Bruno Haible  <bruno@clisp.org>
82880
82881         * modules/lchown (Include): Add lchown.h.
82882         * modules/time_r (Include): Use "..." syntax.
82883         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82884
82885 2003-10-01  Simon Josefsson  <jas@extundo.com>
82886
82887         * MODULES.html.sh (func_all_modules): Move gethostname from section
82888         'based on' to section 'lacking' POSIX:2001.
82889
82890 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82891
82892         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82893         to output mode on the same stream.
82894
82895 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82896
82897         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82898         Fix arg typo in previous patch.
82899
82900 2003-09-28  Jim Meyering  <jim@meyering.net>
82901
82902         * lib/error.c: Correct cpp indentation.
82903
82904 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82905
82906         * modules/free: New file.
82907
82908 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82909
82910         * m4/free.m4: New file.
82911
82912 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82913
82914         * lib/minmax.h (MIN, MAX)
82915         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82916         Omit the special code that used __typeof__, since we worry that
82917         it could be more trouble than it's worth.  See:
82918         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82919         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82920
82921         * lib/free.c: New file.
82922
82923 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82924
82925         Trivial fixes to Makefile.am parts of module listings.
82926         * modules/strstr: Append strstr.h to lib_SOURCES.
82927         * modules/strcase: Likewise, for strcase.h.
82928
82929 2003-09-27  Karl Berry  <karl@gnu.org>
82930
82931         * config/mkinstalldirs: update from automake.
82932
82933 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82934
82935         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82936         (error_tail): Do not loop, reallocating temporary buffer, since
82937         the output cannot contain more wide characters than the input
82938         contains bytes, the size must be big enough already.  This avoids
82939         one potential size overflow calculation.  Check for size overflow
82940         when calculating temporary buffer size.  Free temporary buffer
82941         when done, if it was allocated with malloc; this plugs a memory
82942         leak.  Remove casts from void * to pointers, that are no longer
82943         needed now that we're assuming C89 or better.
82944
82945         Merge error changes from glibc.
82946
82947         * lib/error.c, error.h: Update copyright notice header to match glibc.
82948         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82949         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82950         Disable cancellation while printing error.
82951         * lib/error.h: Prepend __ to parameter names.
82952
82953 2003-09-26  Jim Meyering  <jim@meyering.net>
82954
82955         * lib/error.c (error_tail): Move some declarations
82956         into inner scope where the local variables are used.
82957
82958 2003-09-26  Bruno Haible  <bruno@clisp.org>
82959
82960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82961         stpncpy().
82962         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82963
82964 2003-09-26  Bruno Haible  <bruno@clisp.org>
82965
82966         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82967         (stpncpy): Define as alias for gnu_stpncpy.
82968         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82969
82970 2003-09-25  Simon Josefsson  <jas@extundo.com>
82971
82972         * lib/xgetdomainname.h: New file.
82973         * lib/xgetdomainname.c: New file.
82974
82975 2003-09-25  Simon Josefsson  <jas@extundo.com>
82976             Bruno Haible  <bruno@clisp.org>
82977
82978         * modules/getdomainname: New file.
82979         * modules/xgetdomainname: New file.
82980         * MODULES.html.sh (func_all_modules): Add getdomainname,
82981         xgetdomainname.
82982
82983 2003-09-25  Simon Josefsson  <jas@extundo.com>
82984             Bruno Haible  <bruno@clisp.org>
82985
82986         * m4/getdomainname.m4: New file.
82987
82988 2003-09-25  Simon Josefsson  <jas@extundo.com>
82989             Bruno Haible  <bruno@clisp.org>
82990
82991         * lib/getdomainname.h: New file.
82992         * lib/getdomainname.c: New file.
82993
82994 2003-09-25  Karl Berry  <karl@gnu.org>
82995
82996         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82997
82998 2003-09-25  Karl Berry  <karl@gnu.org>
82999
83000         * config/install-sh: update from automake.
83001
83002 2003-09-25  Bruno Haible  <bruno@clisp.org>
83003
83004         * modules/version-etc-2: New file, from modules/version-etc with
83005         modifications.
83006         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83007
83008 2003-09-25  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83011         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83012
83013 2003-09-24  Simon Josefsson  <jas@extundo.com>
83014
83015         * modules/xgethostname: Add xgethostname.h.
83016
83017 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83018
83019         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83020         the buffer associated with the argument.  Bug reported by
83021         Simon Josefsson.
83022
83023 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83024
83025         * README: Document assumptions that 'int' is at least 32 bits
83026         wide, that integer arithmetic is 2's complement without overflow,
83027         that there are no holes in integer values, that adding sizes of
83028         two nonoverlapping objects can't overflow, and that all-bits-zero
83029         yields scalar zero.  Fix spelling and capitalization typos.
83030
83031 2003-09-19  Karl Berry  <karl@gnu.org>
83032
83033         * lib/argp.h: update from libc.
83034
83035 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83036
83037         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83038         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83039         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83040
83041 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83042
83043         * gnulib-tool: Use "test -h", not "test -L", for portability
83044         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83045         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83046         (sed_extract_prog): Issue s commands one-by-one, rather than
83047         using \| in one s command.
83048
83049 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83050
83051         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83052         input error, instead of returning NULL the next time we are called
83053         (and therefore losing track of errno).
83054
83055 2003-09-16  Bruno Haible  <bruno@clisp.org>
83056
83057         * gnulib-tool (func_create_testdir): Warn about duplicated
83058         dependencies.
83059
83060 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83061
83062         * modules/argmatch, modules/fatal, modules/obstack,
83063         modules/xalloc, modules/xgethostname: Sort dependencies by
83064         importance, not alphabetically.
83065
83066 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83067
83068         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83069         fails, so that the caller gets the proper errno.
83070
83071         * lib/readutmp.c (read_utmp): Likewise.
83072         Check for fstat error.  Close stream and free storage
83073         when failing.
83074
83075 2003-09-14  Karl Berry  <karl@gnu.org>
83076
83077         * config/srclist.txt (strdup.c): disable for c89 changes.
83078
83079 2003-09-14  Jim Meyering  <jim@meyering.net>
83080
83081         * lib/getloadavg.c: Correct cpp indentation.
83082         * lib/strdup.c: Likewise.
83083         * lib/vasnprintf.c: Likewise.
83084
83085 2003-09-14  Bruno Haible  <bruno@clisp.org>
83086
83087         * modules/fwriteerror: New file.
83088         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83089
83090 2003-09-14  Bruno Haible  <bruno@clisp.org>
83091
83092         * lib/fwriteerror.h: New file.
83093         * lib/fwriteerror.c: New file.
83094
83095 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83096
83097         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83098         modules/xgethostname, modules/xalloc: Depend on exit.
83099
83100 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83101
83102         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83103
83104         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83105         and AC_MINIX, too, so that their extensions are available.
83106
83107         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83108         This macro has been superseded by gl_BACKUPFILE.
83109
83110         More patches to assume C89 or better.
83111
83112         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83113
83114         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83115         unconditionally.
83116         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83117         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83118         Include <string.h>, <stdlib.h> unconditionally.
83119         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83120         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83121         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83122         headers or for string.h.
83123         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83124         or strtoul.
83125
83126         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83127         headers.
83128         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83129         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83130         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83131         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83133         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83134         memcpy, memset.
83135         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83136         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83137         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83138         strtol.
83139         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83140         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83141         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83142         strtoul.
83143
83144 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83145
83146         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83147         * lib/obstack.c [!defined _LIBC]: Likewise.
83148         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83149         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83150         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83151
83152         More changes to assume C89 or better.
83153
83154         * lib/error.c (error_tail): Assume vprintf.
83155
83156         * lib/argmatch.c (getenv): Remove decl.
83157         * lib/progreloc.c (get_full_program_name): Define via prototype.
83158         * lib/setenv.c (clearenv): Likewise.
83159         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83160         needed.
83161         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83162         (malloc, memcpy): Remove decls.
83163         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83164         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83165         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83166         (memcpy): Remove macro.
83167         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83168         (__P): Remove.  All uses removed.
83169         (PTR): Remove.  All uses changed to void *.
83170         (CHAR_BIT, NULL): Remove.
83171         (spaces, zeros, memset_space, memset_zero)
83172         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83173         Remove.
83174         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83175         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83176         Define with prototype.
83177         Remove now-unnecessary prototype decl.
83178         (extra_args_spec): Assume ANSI C.  All uses changed.
83179         (extra_args_spec_iso): Remove.
83180         (my_strftime, emacs_strftimeu): Define via prototype.
83181         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83182         unconditionally.
83183         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83184         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83185         (strtoul, strtol): Remove decls.
83186         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83187         LONG_MAX): Remove.
83188         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83189         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83190         (LOCALE_PARAM_PROTO): New macro.
83191         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83192         (INTERNAL (strtol), strtol): Define with a prototype.
83193         (PARAMS): Remove.  All uses removed.
83194         * lib/tempname.c: Include <string.h> unconditionally.
83195         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83196         * lib/xgethostname.c (main): Define with a prototype.
83197         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83198         Include <stdlib.h> unconditionally.
83199         (calloc, malloc, realloc, free): Remove decls.
83200         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83201         Include <stdlib.h> unconditionally.  Sort include file names.
83202         (strtod): Remove.
83203         (xstrtod): Define with a prototype.
83204         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83205         (strtol, strtoul): Remove decls.
83206
83207 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83208
83209         More patches to assume C89 or better.
83210         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83211         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83212         string.h, memchr, STDC_HEADERS.
83213
83214 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83215
83216         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83217         Include <stdlib.h>, <string.h> unconditionally.
83218         Remove now-unnecessary cast to char *.
83219         * lib/strnlen.c: Include <string.h> unconditionally.
83220         * lib/yesno.c (yesno): Define with a prototype.
83221
83222 2003-09-11  Bruno Haible  <bruno@clisp.org>
83223
83224         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83225
83226 2003-09-10  Jim Meyering  <jim@meyering.net>
83227
83228         * lib/error.c: Correct indentation of cpp directives.
83229
83230 2003-09-10  Bruno Haible  <bruno@clisp.org>
83231
83232         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83233         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83234         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83235         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83236         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83237         <stdlib.h> and <string.h> checks.
83238         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83239         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83240
83241 2003-09-10  Bruno Haible  <bruno@clisp.org>
83242
83243         * lib/strcspn.c: Include <string.h> unconditionally.
83244         * lib/strpbrk.c: Include <string.h> unconditionally.
83245         * lib/strstr.c: Include <string.h> unconditionally.
83246         * lib/unicodeio.c: Include <string.h> unconditionally.
83247         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83248         * lib/unsetenv.c: Likewise.
83249         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83250         * lib/yesno.c: Include <stdlib.h> unconditionally.
83251         (rpmatch): Add prototype.
83252
83253 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83254
83255         More patches to assume C89 or better.
83256         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83257         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83258         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83259         or for string.h.
83260         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83261         stdlib.h.
83262         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83263         C headers.
83264         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83265         string.h.
83266         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83267         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83268         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83269         or for string.h.
83270         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83271         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83272         C headers.
83273         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83274         memcpy.
83275         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83276         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83277         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83278         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83279         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83280         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83281         string.h, free.
83282         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83283         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83284         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83285         C headers, or for string.h.
83286         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83287         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83288         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83289         headers, memory.h, stdlib.h, string.h, strings.h.
83290         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83291         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83292         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83293         strchr.
83294         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83295         headers, memory.h, string.h.
83296         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83297         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83298         free.
83299         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83300         headers.
83301         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83302         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83303         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83304         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83305         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83306
83307 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83308
83309         More K&R removal.
83310
83311         * lib/acosl.c (main): Use a prototype.
83312         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83313         tanl.c: Likewise.
83314
83315         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83316
83317         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83318         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83319         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83320         with a prototype.
83321         * lib/getopt.c (const): Remove macro.
83322         Include <string.h> unconditionally.
83323         (my_index): Remove; all uses changed to strchr.
83324         (strlen): Remove decl.
83325         (exchange): Remove forward decl; no longer needed.
83326         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83327         Define with prototype.
83328         * lib/getopt1.c (const): Remove macro.
83329         (getopt_long, getopt_long_only, main): Define with prototype.
83330
83331         * lib/getugroups.c: Include <string.h> unconditionally.
83332
83333         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83334         (getusershell, setusershell, endusershell, readname, main):
83335         Define with prototypes.
83336
83337         * lib/group-member.c: Include group-member.h first.
83338         Include <stdlib.h> unconditionally.
83339
83340         * lib/hard-locale.c: Include hard-locale.h first.
83341         Include <stdlib.h>, <string.h> unconditionally.
83342
83343         * lib/hash.c (free, malloc): Remove decls.
83344         Include <stdlib.h> unconditionally.
83345
83346         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83347         (getenv): Do not declare.
83348
83349         * lib/idcache.c: Include <string.h> unconditionally.
83350
83351         * lib/long-options.c: Include long-options.h first, to test interface.
83352         Include <stdlib.h> unconditionally.
83353
83354         * lib/makepath.c: Include makepath.h first, to test interface.
83355         Include <stdlib.h> and <string.h> unconditionally.
83356
83357         * lib/linebuffer.c: Include <stdlib.h>.
83358         (free): Remove decl.
83359
83360         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83361         stddef.h. rpl_malloc returns void *, not char *.
83362         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83363         prototype.
83364
83365         * lib/md5.h: Include <limits.h> unconditionally.
83366         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83367         (__P): Remove; all uses removed.
83368         * lib/md5.c: Include "md5.h" first.
83369         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83370         md5_buffer, md5_process_bytes, md5_process_block):
83371         Define with prototypes.
83372         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83373         * lib/sha.c: Include "sha.h" first.
83374         Include <stdlib.h>, <string.h> unconditionally.
83375
83376         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83377         * lib/memcmp.c (__ptr_t): Likewise.
83378         * lib/memrchr.c (__ptr_t): Likewise.
83379         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83380         Include <string.h> unconditionally.
83381         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83382         * lib/memchr.c: Include <stdlib.h> unconditionally.
83383         * lib/memchr.c (LONG_MAX): Remove.
83384         * lib/memrchr.c (LONG_MAX): Likewise.
83385         * lib/memchr.c (__memchr): Define via a prototype.
83386         * lib/memrchr.c (__memrchr): Likewise.
83387         * lib/memcmp.c (__P): Remove, and remove all uses.
83388         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83389         Remove forward decls; no longer needed.
83390         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83391         Use types required by C89 in prototype.
83392
83393         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83394         * lib/savedir.c: Likewise.
83395         * lib/mkdir.c (free): Remove decl.
83396         * lib/rmdir.c (rmdir): Define with a prototype.
83397         * lib/savedir.c: Include savedir.h first, to test interface.
83398
83399         * lib/mktime.c (STDC_HEADERS): Remove.
83400         Include <stdlib.h>, <string.h> unconditionally.
83401
83402         * lib/modechange.c: Include <stdlib.h> unconditionally.
83403         (malloc): Remove decl.
83404
83405         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83406         (free): Remove decl.
83407
83408         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83409         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83410         (This type really should be intptr_t, but that's a C99ism.)
83411         (_obstack_memcpy): Remove: all uses changed to memcpy.
83412         Include <string.h> unconditionally.
83413         (struct obstack): Assume __STDC__ for types of members
83414         chunkfun, freefun, extra_arg.
83415         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83416         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83417         obstack_begin, obstack_specify_allocation,
83418         obstack_specify_allocation_with_arg, obstack_chunkfun,
83419         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83420         Remove unprototyped decls and the macros that use them.
83421         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83422         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83423         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83424         (defined __STDC__ && __STDC__)]:
83425         Remove nonprototyped code.
83426         Include <stdlib.h> unconditionally.
83427         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83428         _obstack_allocated_p, _obstack_free, obstack_free,
83429         _obstack_memory_used, print_and_abort):
83430         Define using prototypes.
83431         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83432         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83433         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83434         obstack_next_free, obstack_object_size, obstack_room) [0]:
83435         Remove unused, unprototyped code.
83436
83437         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83438
83439         * lib/physmem.c (physmem_total, physmem_available, main): Define
83440         with prototypes.
83441
83442         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83443         (main): Define with a prototype.
83444
83445         * lib/posixver.c (getenv): Remove decl.
83446
83447         * lib/putenv.c (malloc): Returns void *, not char *.
83448         Include <string.h> unconditionally.
83449         (strchr, memcpy, NULL): Do not define.
83450
83451         * lib/readtokens.c: Include readtokens.h first, to test interface.
83452         Include <stdlib.h>, <string.h> unconditionally.
83453         (init_tokenbuffer): Define with a prototype.
83454
83455         * lib/regex.c (PARAMS): Remove.  All uses removed.
83456         All uses of _RE_ARGS removed, too.
83457         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83458         unconditionally.
83459         (bzero): Assume memset exists.
83460         (memcmp, memcpy, NULL): Remove.
83461         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83462         char, or assignments to local vars of type signed char.
83463         (init_syntax_once, PREFIX(extract_number_and_incr),
83464         PREFIX(print_partial_compiled_pattern),
83465         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83466         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83467         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83468         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83469         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83470         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83471         wcs_compile_range, byte_compile_range, truncate_wchar,
83472         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83473         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83474         count_mbs_length, wcs_re_match_2_internal,
83475         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83476         PREFIX(alt_match_null_string_p),
83477         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83478         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83479         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83480         now-unnecessary declaration, if any.
83481         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83482         regcomp, regexec):
83483         Remove now-unnecessary casts among pointer types.
83484         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83485
83486         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83487         (free): Remove decl.
83488
83489         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83490
83491         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83492         (free): Remove decl.
83493
83494         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83495         * lib/xgetcwd.c: Likewise.
83496
83497         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83498         (free): Remove decl.
83499
83500         * lib/strchrnul.c (strchrnul): Define with a prototype.
83501         Fix bug: c_in was not converted to char before searching.
83502
83503         The following changes are not K&R related:
83504
83505         * lib/group-member.h: Include <sys/types.h>, so that this file is
83506         self-contained.
83507         * lib/makepath.h: Likewise.
83508
83509         * lib/getusershell.c (readname, default_index, line_size, readname):
83510         Use size_t, not int, for sizes.
83511         (readname): If the size overflows, report an error instead of
83512         looping forever.
83513
83514 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83515
83516         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83517         libc.
83518
83519 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83520
83521         * README: New section: portability guidelines.
83522
83523 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83524
83525         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83526         C89 spec.
83527
83528 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83529
83530         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83531
83532 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83533
83534         Assume C89 or better; remove K&R cruft.
83535         A few of these changes were first proposed by Derek Robert Price
83536         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83537
83538         * lib/addext.c: Include <string.h> unconditionally.
83539         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83540         Don't declare getenv or malloc.
83541
83542         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83543         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83544         (NULL): Remove.
83545         (find_stack_direction, alloca): Use prototypes.
83546
83547         * lib/atexit.c (atexit): Define using a prototype.
83548
83549         * lib/basename.c, dirname.c, stripslash.c:
83550         Include <string.h> unconditionally.
83551
83552         * lib/bcopy.c: Include <stddef.h>.
83553         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83554
83555         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83556
83557         * lib/error.h (error, error_at_line, error_print_progname)
83558         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83559         * lib/error.c: Include error.h first, to check interface.
83560         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83561         (VA_START): Remove; all uses changeed to va_start.
83562         (exit, strerror): Remove decls.
83563         (error_print_progname): Prototype uncondionally.
83564         Don't include <errno.h>; no longer needed.
83565         (private_strerror): Remove.
83566         (error_tail): Always define.
83567         (error, error_at_line): Assume C89 or better; always use prototypes.
83568         * lib/fatal.c: Include "fatal.h" first, to test interface.
83569         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83570         (VA_START): Remove; all uses changed to va_start.
83571         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83572         this case.
83573         (exit): Remove decl.
83574         (fatal): Prototype unconditionally.  Assume va_start works.
83575         Abort at end, to pacify gcc.
83576
83577         * lib/euidaccess.c (main): Define with a prototype.
83578
83579         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83580
83581         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83582
83583         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83584         prototypes.
83585         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83586         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83587         (getenv): Remove decl.
83588         (fnmatch): Define using a prototype.
83589         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83590         (FCT): Define using a prototype.
83591
83592         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83593
83594         * lib/gethostname.c: Include <stddef.h>.
83595         (gethostname): Define with prototype.  Length is size_t, not int.
83596
83597 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83598
83599         Assume C89 or better; remove K&R cruft.
83600         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83601         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83602         string.h, getenv, malloc.
83603         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83604         headers.
83605         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83606         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83607         do not check for strerror.
83608         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83609         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83610         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83611         do not check for doprnt or vprintf.
83612         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83613         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83614
83615 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83616
83617         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83618         getversion.c should have been removed then, but was accidentally
83619         preserved.
83620
83621         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83622         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83623
83624 2003-09-08  Karl Berry  <karl@gnu.org>
83625
83626         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83627                 config, forget about prep.
83628
83629         * config/depcomp, missing: update from automake.
83630
83631 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83632
83633         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83634         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83635
83636 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83637
83638         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83639         copy_tm_result.  Bug reported by Simon Josefsson in
83640         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83641
83642 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83643
83644         * m4/time_r.m4: New file.
83645         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83647         is. Check for timegm declaration.
83648         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83649         Do not check for gmtime_r.
83650         Replace mktime if __mktime_internal does not exist and if mktime
83651         hasn't been replaced already.
83652
83653 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83654
83655         * lib/time_r.c, lib/time_r.h: New files.
83656
83657         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83658         __localtime_r.
83659         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83660         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83661
83662         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83663         __gmtime_r.
83664         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83665         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83666         Include <time_r.h>.
83667
83668         * lib/timegm.c: Switch to glibc implementation, with the following
83669         changes:
83670         [defined HAVE_CONFIG_H]: Include <config.h>.
83671         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83672         (__mktime_internal) [!defined _LIBC]: New decl.
83673         (__gmtime_r) [!defined _LIBC]: New macro and function.
83674         (timegm): Use a prototype, since gnulib assumes C89.
83675         Do not bother declaring tmp to be const, as it's not really usefu.
83676         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83677         (timegm): Declare only if HAVE_DECL_TIMEGM.
83678
83679 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83680
83681         * MODULES.html.sh (func_all_modules): Add time_r.
83682         * modules/time_r: New file.
83683         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83684         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83685
83686 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83687
83688         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83689         Bug reported by Lute Kamstra in
83690         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83691
83692         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83693         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83694         course with correspondingly smaller numbers for tomorrow and
83695         yesterday.  From Tadayoshi Funaba.  Originally installed into
83696         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83697         coreutils merge?).
83698
83699 2003-08-31  Simon Josefsson  <jas@extundo.com>
83700
83701         * modules/timegm: New file.
83702         * MODULES.html.sh (func_all_modules): Add timegm.
83703
83704 2003-08-31  Simon Josefsson  <jas@extundo.com>
83705
83706         * m4/timegm.m4: New file.
83707
83708 2003-08-31  Simon Josefsson  <jas@extundo.com>
83709
83710         * lib/timegm.h: New file.
83711         * lib/timegm.c: New file.  Based on
83712         wget-1.8.2/src/http.c:mktime_from_utc.
83713
83714 2003-08-31  Karl Berry  <karl@gnu.org>
83715
83716         * lib/argp.h: update from libc.
83717
83718 2003-08-28  Bruno Haible  <bruno@clisp.org>
83719
83720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83721         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83722         followed by '#define fnmatch fnmatch_posix' gives an error.
83723
83724 2003-08-28  Bruno Haible  <bruno@clisp.org>
83725
83726         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83727         warning on QNX, which defines O_BINARY to 000000.
83728
83729 2003-08-27  Jim Meyering  <jim@meyering.net>
83730
83731         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83732         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83733         would fail after 32.  Reported by Danny Levinson.  Details here:
83734         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83735
83736 2003-08-24  Bruno Haible  <bruno@clisp.org>
83737
83738         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83739         MSVC7 <stdio.h> is included later.
83740
83741 2003-08-22  Simon Josefsson  <jas@extundo.com>
83742
83743         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83744
83745 2003-08-20  Karl Berry  <karl@gnu.org>
83746
83747         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83748
83749 2003-08-20  Bruno Haible  <bruno@clisp.org>
83750
83751         * modules/progname: New file.
83752         * MODULES.html.sh (func_all_modules): Add progname.
83753
83754 2003-08-20  Bruno Haible  <bruno@clisp.org>
83755
83756         * lib/progname.h: New file, from GNU gettext.
83757         * lib/progname.c: New file, from GNU gettext.
83758         * lib/progreloc.c: New file, from GNU gettext.
83759
83760 2003-08-19  Jim Meyering  <jim@meyering.net>
83761
83762         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83763         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83764
83765 2003-08-19  Bruno Haible  <bruno@clisp.org>
83766
83767         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83768         more.
83769
83770 2003-08-19  Bruno Haible  <bruno@clisp.org>
83771
83772         * lib/xstrdup.c: Assume <string.h> exists.
83773
83774 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83775
83776         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83777         in makefile rules.
83778
83779 2003-08-18  Jim Meyering  <jim@meyering.net>
83780
83781         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83782         * m4/lib-ld.m4: Likewise.
83783
83784 2003-08-18  Jim Meyering  <jim@meyering.net>
83785
83786         * lib/setenv.h: Indent nested cpp directive.
83787         * lib/vasnprintf.c: Remove trailing blanks.
83788
83789 2003-08-17  Simon Josefsson  <jas@extundo.com>
83790
83791         * modules/xstrndup: New file.
83792         * MODULES.html.sh (func_all_modules): Add xstrndup.
83793
83794 2003-08-17  Simon Josefsson  <jas@extundo.com>
83795
83796         * modules/argp: Fix autoconf macro name. Add more dependencies.
83797
83798 2003-08-17  Simon Josefsson  <jas@extundo.com>
83799
83800         * m4/xstrndup.m4: New file.
83801
83802 2003-08-17  Simon Josefsson  <jas@extundo.com>
83803
83804         * m4/argp.m4: New file.
83805
83806 2003-08-17  Simon Josefsson  <jas@extundo.com>
83807             Bruno Haible  <bruno@clisp.org>
83808
83809         * lib/xstrndup.h: New file.
83810         * lib/xstrndup.c: New file.
83811
83812 2003-08-17  Bruno Haible  <bruno@clisp.org>
83813
83814         * modules/strndup (Files, Include): Add lib/strndup.h.
83815
83816 2003-08-17  Bruno Haible  <bruno@clisp.org>
83817
83818         * modules/euidaccess (Files): Add lib/euidaccess.h.
83819
83820 2003-08-17  Bruno Haible  <bruno@clisp.org>
83821
83822         * lib/strndup.h: New file.
83823
83824 2003-08-17  Bruno Haible  <bruno@clisp.org>
83825
83826         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83827         like AC_GNU_SOURCE.
83828         * modules/extensions (configure.ac): Comment out the invocation of
83829         gl_USE_SYSTEM_EXTENSIONS.
83830
83831 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83832
83833         Merges from coreutils, etc.
83834         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83835         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83836         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83837         fixing a typo.
83838         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83839         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83840
83841 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83842
83843         Document merge from coreutils.
83844         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83845         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83846         * modules/utime: Add m4/utimes-null.m4.
83847
83848 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83849
83850         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83851         space, undoing this 2003-08-12 change:
83852         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83853
83854 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83855
83856         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83857         strtoul.c from libc, undoing this 2003-08-12 change:
83858         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83859
83860 2003-08-16  Jim Meyering  <jim@meyering.net>
83861
83862         Merges from coreutils.
83863         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83864         prefix.  Adjust cache variables similarly.  Create 500 rather than
83865         just 300 files, to exercise bug on Darwin6.5, too.
83866         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83867         $missing_dir.
83868         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83869         AM_SYS_POSIX_TERMIOS.
83870         Reported by mkc@mathdogs.com.
83871         Also change use of $am_cv_sys_posix_termios
83872         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83873         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83874         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83875         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83876         in /proc/mounts until it finds one with matching device number.  This
83877         is unnecessary when the FILE argument *is* a mount point.  No stat call
83878         is necessary in that case.  So, disable the statvfs-testing code on
83879         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83880         as RedHat bug# 84846.
83881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83882         to 1MB, so as not to render systems with no stack size limit (e.g.,
83883         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83884         Include <unistd.h>.  On some systems,
83885         it is required for the definition of _SC_PAGESIZE.
83886
83887 2003-08-16  Jim Meyering  <jim@meyering.net>
83888
83889         Merge from coreutils.
83890         * lib/xstrtoimax.c: #else #if -> #elif.
83891         * lib/xstrtoumax.c: Likewise.
83892
83893 2003-08-16  Jim Meyering  <jim@meyering.net>
83894
83895         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83896         * m4/utimes.m4: Removed.
83897         * m4/utimes-null.m4: Renamed from utimes.m4.
83898
83899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83900         to 1MB, so as not to render systems with no stack size limit (e.g.,
83901         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83902         Include <unistd.h>.  On some systems,
83903         it is required for the definition of _SC_PAGESIZE.
83904
83905 2003-08-16  Jim Meyering  <jim@meyering.net>
83906         and Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         Merges from coreutils, etc.
83909
83910         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83911         using the latest version from cvs.  This avoids problems with #line
83912         directives using a vendor (Sun) compiler.
83913         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83914         Don't set GETGROUPS_LIB here; now it's
83915         done via getgroups.m4's wrapper function.
83916         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83917         rather than just in sh-util/configure.in, so that the
83918         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83919         same.
83920         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83921         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83922         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83923         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83924         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83925         Remove code that is now done by the newly-required macros.
83926         Append $(EXEEXT) to DF_PROG.
83927         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83928         Do not invoke or require the following here,
83929         since prereq.m4 or some gnulib .m4 now does this for us:
83930         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83931         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83932         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83933         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83934         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83935         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83936         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83937         AC_FUNC_OBSTACK.
83938         Do not replace the following functions, as this is now the job
83939         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83940         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83941         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83942         atexit getpass, strdup, getpagesize.
83943         Replace 'raise'.
83944         Do not check for the following functions, as this is now the job
83945         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83946         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83947         setregid.
83948         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83949         Check for sys/sysctl.h.
83950         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83951         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83952         of checking for ssize_t ourselves.
83953
83954         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83955         Require every macro that gnulib/modules/* suggests for us.
83956         (jm_PREREQ_ADDEXT): New macro.
83957         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83958         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83959
83960         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83961         (gl_PHYSMEM): Use it.
83962         Also check for `table' function.
83963         Check for new headers and functions.
83964         Add check for sys/sysmp.h.
83965         With suggestions from Kaveh Ghazi.
83966         Ignore headers that are present but cannot be compiled.  This
83967         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83968         C 5.4.
83969
83970 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83971
83972         Document merge from coreutils.
83973         * modules/userspec: Depend on posixver.
83974         * modules/strftime: Depend on tzset.
83975
83976 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83977
83978         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83979         rather than tab, after '#' in shell-script copyright notices.
83980         Suggested by Bruno Haible.
83981
83982 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83983
83984         * config/srclist-update: Use three spaces, rather than tab, after '#'
83985         in shell-script copyright notices.  Suggested by Bruno Haible.
83986         Remove unnecessary parenthesization in regular expression.
83987
83988 2003-08-15  Jim Meyering  <jim@meyering.net>
83989
83990         Merge from coreutils.
83991         * lib/xgethostname.c: Include <stdlib.h>.
83992         (xghostname): Don't exit for anything other than memory-related
83993         failure; just return NULL.
83994         * lib/userspec.c: Include "posixver.h".
83995         (parse_user_spec): Accept `.' as a separator only
83996         in pre-POSIX-200112 mode.
83997         * lib/strtoimax.c: Use #elif rather than #else #if.
83998         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83999         Remove function, now that we can rely on a working tzset function.
84000         [!_LIBC]: Ensure that the required autoconf test has been run.
84001         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84002         Use underlying_strftime for %r.
84003         * lib/sha.c: Merge in some clean-up and optimization changes from
84004         glibc.
84005         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84006         Ensure that it is a multiple of 64.
84007         Rearrange loop exit tests so as to avoid performing an
84008         additional fread after encountering an error or EOF.
84009         * lib/realloc.c: Update copyright date.
84010
84011 2003-08-15  Jim Meyering  <jim@meyering.net>
84012         and Paul Eggert  <eggert@twinsun.com>
84013
84014         Merge from coreutils.
84015         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84016         member but strut utmpx does not.  Needed for AIX 4.3.3.
84017         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84018
84019 2003-08-15  Jim Meyering  <jim@meyering.net>
84020         and Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         Merges from coreutils, etc.
84023         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84024         Require gl_FUNC_TZSET_CLOBBER.
84025         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84026         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84027         members.
84028
84029 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84030
84031         Help the merge from coreutils.
84032         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84033         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84034         * m4/tzset.m4: Use it too.
84035
84036 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84037
84038         * modules/tzset: New file.
84039
84040 2003-08-14  Jim Meyering  <jim@meyering.net>
84041
84042         Merges from coreutils.
84043         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84044         variable names, rather than @FNMATCH_H@.
84045         * modules/alloca: Likewise for $(ALLOCA_H).
84046
84047         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84048         the three copies of the literal target, `fnmatch.h'.
84049         * modules/alloca (alloca.h): Likewise.
84050
84051 2003-08-14  Jim Meyering  <jim@meyering.net>
84052
84053         Merge from coreutils.
84054         * m4/tzset.m4: New file.
84055         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84056         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84057         otherwise, AIX 5.1 systems would end up using the latter.
84058         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84059         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84060         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84061         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84062
84063 2003-08-14  Jim Meyering  <jim@meyering.net>
84064
84065         Merge from coreutils.
84066         * lib/obstack.h: Whitespace changes.
84067         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84068         and xcalloc return values.
84069         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84070         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84071         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84072         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84073         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84074         error from mntctl.
84075         Use mntctl's return value to drive the entry-processing loop, since
84076         we can't rely on the value of the vmt_length member in the last
84077         entry.  On some systems doing so could result in exhausting
84078         virtual memory.  Based in part on a patch from Mike Jetzer.
84079
84080 2003-08-14  Jim Meyering  <jim@meyering.net>
84081         and Paul Eggert  <eggert@twinsun.com>
84082
84083         Merges from coreutils, plus other fixes.
84084         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84085         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84086         for credits and details.  Thanks to Kaveh Ghazi for helping
84087         to keep these files in sync.
84088         (ARRAY_SIZE): Define it.
84089         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84090         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84091         (memcasecmp): Don't assume size_t fits in unsigned int.
84092         Remove casts and duplicate code.
84093         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84094         (memcpy): Remove definition.
84095         Merge in some clean-up and optimization changes from glibc.
84096         [BLOCKSIZE]: Move definition to top of file.
84097         Ensure that it is a multiple of 64.
84098         Rearrange loop exit tests so as to avoid performing an
84099         additional fread after encountering an error or EOF.
84100         * lib/md5.h (md5_uintptr): Define.
84101         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84102         return to the initial working directory.  Preserve errno
84103         for caller.
84104         * lib/idcache.c: Include "xalloc.h".
84105         (xmalloc, xrealloc): Remove decls.
84106         (getuser): Remove casts no longer required in C89.
84107         * lib/human.c: Include stdio.h, for sprintf.
84108         * lib/group-member.c: Include "xalloc.h".
84109         (xmalloc, xrealloc): Remove decls.
84110         (get_group_info): Remove casts no longer required in C89.
84111         * lib/getusershell.c (readname): Remove casts no longer required in
84112         C89.
84113         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84114         * lib/getline.c: Whitespace fix, from coreutils.
84115
84116 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84117
84118         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84119         Check for isascii.
84120
84121         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84122         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84123         Undo previous (whitespace-only) change.
84124
84125 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84126
84127         * lib/exclude.c: Include <ctype.h>
84128         (IN_CTYPE_DOMAIN): New macro.
84129         (is_space): New fn.
84130         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84131         and empty lines.
84132
84133         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84134         Undo previous (whitespace-only) change.
84135
84136 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84137
84138         * config/srclist-update: Change update back to the old behavior,
84139         leaving whitespace alone.  Use one 'sed' command rather than a
84140         pipeline.
84141         (fixlicense): Now a variable, not a function.
84142         (remove_trailing_blanks): Remove.
84143         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84144         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84145         Undo previous (whitespace-only) change.
84146
84147 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84148
84149         Merge from coreutils.
84150         * modules/euidaccess: Add lib_SOURCES, include for new
84151         file euidaccess.h
84152
84153 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84154
84155         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84156         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84157         Normalize leading white space and remove trailing white space.
84158
84159         Merge from coreutils
84160         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84161
84162         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84163         0.12.1.  These files are now being upgraded automatically by
84164         ../config/srclist-update.
84165
84166 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84167
84168         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84169         Normalize leading white space and remove trailing white space.
84170         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84171         notice, as per ../config/srclist-update.
84172
84173         Merge from coreutils.
84174         * lib/euidaccess.h: New file.
84175         * lib/euidaccess.c: Include it.
84176         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84177         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84178         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84179
84180 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84181
84182         * config/srclist-update: Add copyright notice.
84183         (remove_id_lines, remove_trailing_blanks): New constants.
84184         (fixfile): Use them to normalize spacing a bit in copied files.
84185         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84186         Normalize leading white space and remove trailing white space.
84187
84188         * config/texinfo.tex: Sync with texinfo.
84189
84190         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84191         strtoul.c from libc, to merge coreutils whitespace changes.
84192
84193         * config/srclist.txt: Get the following m4 files from gettext:
84194         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84195         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84196         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84197         wint_t.m4.
84198
84199 2003-08-12  Karl Berry  <karl@gnu.org>
84200
84201         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84202         been made.
84203
84204 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84205
84206         * modules/gnu-source, m4/gnu-source.m4:
84207         Remove; we're assuming Autoconf 2.54 or later now.
84208         Suggested by Bruno Haible.
84209         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84210
84211 2003-08-11  Bruno Haible  <bruno@clisp.org>
84212
84213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84214
84215 2003-08-11  Bruno Haible  <bruno@clisp.org>
84216
84217         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84218         (vasnprintf): Use it instead of wcslen.
84219
84220 2003-08-11  Bruno Haible  <bruno@clisp.org>
84221
84222         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84223         value to ensure that _Bool promotes to int. Use #define for _Bool when
84224         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84225
84226 2003-08-10  Karl Berry  <karl@gnu.org>
84227
84228         * lib/regex.h: update from libc (whitespace fix).
84229
84230 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84231
84232         Merge some files from coreutils.  These changes were
84233         originally made by Jim Meyering.
84234         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84235         many older Unixes require this.
84236         * lib/alloca.c (alloca): Remove cast to argument of free;
84237         no longer needed in C89.
84238         * lib/alloca_.h, regex.h: Fix white space to match
84239         what GNU indent does.
84240
84241 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84242
84243         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84244         apparently Emacs's Unicode mode got confused before my 2003-08-05
84245         checkin.
84246
84247 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84248
84249         * m4/extensions.m4: New file.
84250         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84251         Require gl_USE_SYSTEM_EXTENSIONS.
84252         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84253         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84254
84255 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84256
84257         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84258         * modules/extensions, modules/gnu-source: New files.
84259         * modules/timespec, modules/unlocked-io: Depend on extensions.
84260
84261 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84262
84263         * modules/restrict: New file.
84264         * MODULES.html.sh (func_all_modules): Add restrict.
84265         * modules/regex: Depend on restrict.
84266
84267 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84268
84269         * m4/restrict.m4: New file.
84270         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84271
84272 2003-08-07  Bruno Haible  <bruno@clisp.org>
84273
84274         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84275         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84276
84277 2003-08-07  Bruno Haible  <bruno@clisp.org>
84278
84279         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84280         makes the module 'getndelim2' compatible with the module 'getline'.
84281
84282 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84283
84284         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84285         byte with "\201" to avoid glitches when editing that source file
84286         with multi-gnome-terminal.
84287
84288 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84289
84290         * lib/bumpalloc.h: Remove.
84291
84292 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84293
84294         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84295         * modules/bumpalloc: Remove.
84296
84297 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84298
84299         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84300         GNU coding style.
84301
84302         Merge from coreutils.
84303         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84304         1. From glibc.
84305         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84306         from Karl Berry, implemented by Jim Meyering.
84307         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84308         from Dmitry V. Levin.
84309         Remove anachronistic cast of xrealloc.
84310         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84311         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84312         type. Otherwise, it wouldn't compile with at least /bin/cc on
84313         ymp-cray-unicos9.0.2.X.
84314         Combine two mostly-identical uses of alloca into one.
84315         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84316
84317 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84318
84319         [From Emacs.]
84320
84321         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84322         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84323         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84324         obsolete NLIST_NAME_UNION.
84325         [__GNU__]: Undef BSD and FSCALE.
84326         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84327
84328 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84329
84330         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84331         an enum type, so that it's guaranteed to promote to int.  See:
84332         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84333
84334 2003-08-03  Karl Berry  <karl@gnu.org>
84335
84336         * config/depcomp: update from automake.
84337
84338 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84339
84340         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84341         (strerror): Don't assume that a printable int fits in 14 bytes.
84342
84343 2003-07-31  Bruno Haible  <bruno@clisp.org>
84344
84345         * modules/getpass-gnu: New file.
84346         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84347
84348 2003-07-31  Bruno Haible  <bruno@clisp.org>
84349
84350         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84351
84352 2003-07-24  Karl Berry  <karl@gnu.org>
84353
84354         * config/missing: update from automake.
84355
84356 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84357             Bruno Haible  <bruno@clisp.org>
84358
84359         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84360         * lib/getline.c (getline, getdelim): Likewise.
84361         Remove _GNU_SOURCE define; now it's defined in config.h through
84362         m4/getline.m4.
84363
84364 2003-07-23  Karl Berry  <karl@gnu.org>
84365
84366         * config/config.sub: update from prep.
84367
84368 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84369
84370         * modules/xalloc (Depends-on): Add exitfail.
84371         * modules/xmemcoll: Likewise.
84372
84373 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84374
84375         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84376         over-parenthesization in macros.
84377
84378         Sync with coreutils.
84379
84380         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84381         required by C99.
84382
84383         Use `exit_failure' for xalloc and xmemcoll instead of their own
84384         private exit-failure variables.
84385         * lib/xalloc.h (xalloc_exit_failure): Remove.
84386         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84387         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84388         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84389         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84390         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84391
84392 2003-07-20  Jim Meyering  <jim@meyering.net>
84393
84394         * modules/closeout (Depends-on): Add exitfail.
84395         Suggestion from Bruno Haible.
84396
84397 2003-07-19  Karl Berry  <karl@gnu.org>
84398
84399         * config/config.sub: update from prep.
84400
84401 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84402
84403         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84404         Remove.
84405         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84406         to test that it can stand by itself.  Include "exitfail.h".
84407         Clients should set exit_failure instead.
84408         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84409
84410 2003-07-18  Bruno Haible  <bruno@clisp.org>
84411
84412         * modules/getndelim2: New file.
84413         * modules/getline: Share files with module getndelim2.
84414         * modules/getnline: Depend on getndelim2 instead of sharing files with
84415         it. Add getnline.c to lib_SOURCES.
84416         * MODULES.html.sh (func_all_modules): Add getndelim2.
84417
84418 2003-07-18  Bruno Haible  <bruno@clisp.org>
84419
84420         * m4/getndelim2.m4: New file.
84421         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84422         invoke gl_PREREQ_GETNDELIM2.
84423         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84424         gl_PREREQ_GETNDELIM2.
84425         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84426         gl_GETNDELIM2.
84427
84428 2003-07-18  Bruno Haible  <bruno@clisp.org>
84429
84430         * lib/getndelim2.h: New file.
84431         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84432         getndelim2.h.
84433         (getndelim2): Make non-static. Change return type to ssize_t.
84434         * lib/getline.h: Change argument names.
84435         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84436         * lib/getnline.c: Include getndelim2.h.
84437
84438 2003-07-18  Andreas Schwab  <schwab@suse.de>
84439
84440         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84441
84442 2003-07-17  Karl Berry  <karl@gnu.org>
84443
84444         * config/config.sub: update from prep.
84445
84446 2003-07-17  Bruno Haible  <bruno@clisp.org>
84447
84448         * modules/getnline: New file.
84449         * modules/getline: Add lib/getndelim2.c to source file list.
84450         * MODULES.html.sh (func_all_modules): Add getnline.
84451
84452 2003-07-17  Bruno Haible  <bruno@clisp.org>
84453
84454         * m4/getnline.m4: New file.
84455
84456 2003-07-17  Bruno Haible  <bruno@clisp.org>
84457
84458         * m4/Makefile.am.in: Remove file.
84459         * m4/Makefile.am: Remove file.
84460         * m4/Makefile.in: Remove file.
84461
84462 2003-07-17  Bruno Haible  <bruno@clisp.org>
84463
84464         * lib/getnline.h: New file.
84465         * lib/getnline.c: New file.
84466         * lib/getndelim2.c: New file, extracted from getline.c.
84467         (getndelim2): Renamed from getdelim2, with added nmax argument.
84468         * lib/getline.c: Include getndelim2.c.
84469         (getdelim2): Moved out to getndelim2.c.
84470         (getline, getdelim): Update.
84471
84472 2003-07-17  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/Makefile.am: Remove file.
84475         * lib/Makefile.in: Remove file.
84476
84477 2003-07-17  Bruno Haible  <bruno@clisp.org>
84478
84479         * configure.in: Remove file.
84480         * Makefile.in: Remove file.
84481
84482 2003-07-17  Bruno Haible  <bruno@clisp.org>
84483
84484         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84485
84486 2003-07-16  Karl Berry  <karl@gnu.org>
84487
84488         * config/srclist-update: was running fixlicense twice, which caused
84489                 texinfo.tex to be nullified for some reason.  Simplify,
84490                 $gplsrc is no longer needed as far as I can see?
84491
84492 2003-07-16  Jim Meyering  <jim@meyering.net>
84493
84494         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84495
84496 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84497
84498         * config/srclist.txt: Get the following files from gettext-runtime/intl
84499         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84500         ref-del.sin.  From Bruno Haible.
84501         * config/srclist-update (fixfile): Change grep pattern again, since the
84502         previous fix didn't work (there was another trailing $).  Use
84503         '[$]' to escape the $s.
84504
84505 2003-07-15  Karl Berry  <karl@gnu.org>
84506
84507         * lib/vasnprintf.c: update from gettext.
84508
84509 2003-07-15  Karl Berry  <karl@gnu.org>
84510
84511         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84512         gets expanded when surrounded by '$'.
84513
84514 2003-07-15  Jim Meyering  <jim@meyering.net>
84515
84516         * modules/save-cwd: Don't depend on error.  From Derek Price.
84517
84518 2003-07-15  Jim Meyering  <jim@meyering.net>
84519
84520         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84521
84522 2003-07-14  Simon Josefsson  <jas@extundo.com>
84523
84524         * modules/mempcpy: New file.
84525         * MODULES.html.sh (func_all_modules): Add mempcpy.
84526
84527 2003-07-14  Simon Josefsson  <jas@extundo.com>
84528
84529         * m4/mempcpy.m4: New file.
84530
84531 2003-07-14  Simon Josefsson  <jas@extundo.com>
84532
84533         * lib/mempcpy.h: New file.
84534         * lib/mempcpy.c: New file.
84535
84536 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84537
84538         * modules/getdate, modules/posixtm: Depend on mktime.
84539
84540 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84541
84542         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84543         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84544         unicodeio.c, unicodeio.h, unlocked-io.h:
84545         Switch from LGPL to GPL.
84546
84547 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84548
84549         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84550         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84551         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84552         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84553         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84554         updated automatically by ../config/srclist-update.  This changes
84555         their license from LPGL to GPL.
84556
84557 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84558
84559         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84560         assumed to refer to the root of the most recent stable gettext version.
84561         * config/srclistvars.sh: Add defaults for eggert.
84562         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84563         Match "This program" as well as "The program".  This is needed
84564         for gettext.
84565
84566 2003-07-14  Jim Meyering  <jim@meyering.net>
84567
84568         Don't emit diagnostics.  Let callers do that.
84569         * lib/save-cwd.c: Don't include "error.h".
84570         (save_cwd): Don't call error.  Ensure that errno is valid
84571         when returning nonzero.
84572
84573         * lib/save-cwd.h (restore_cwd): Update prototype.
84574         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84575         Simplify.  Don't call error upon failure.  Let callers do that.
84576         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84577         when auditing is enabled.  But don't bother updating the #if.
84578
84579 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84580
84581         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84582         it breaks C++ compilation.
84583         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84584
84585 2003-07-10  Simon Josefsson  <jas@extundo.com>
84586
84587         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84588
84589 2003-07-10  Jim Meyering  <jim@meyering.net>
84590
84591         * m4/clock_time.m4: Remove trailing blank.
84592         * m4/intmax_t.m4: Likewise.
84593
84594 2003-07-10  Jim Meyering  <jim@meyering.net>
84595
84596         * lib/vasnprintf.c: Remove trailing blanks.
84597         Make cpp indentation consistent.
84598
84599 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84600
84601         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84602         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84603         Switch from LGPL to GPL.
84604
84605 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84606
84607         * config/srclist.txt: Sort sublists.  Add
84608         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84609         that differ from gnulib for one reason or another; we'd like this list
84610         to be smaller but for now let's document what we have.
84611
84612 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84613
84614         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84615         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84616         and sweeter "eval x=$x".
84617         * config/srclist.txt: Get lib/argp* from glibc.
84618
84619 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84620
84621         * lib/mktime.c: Fix some boundary cases and remove need for floating
84622         point.
84623
84624         Issue a compile-time diagnostic if time_t is floating point, or if
84625         two's complement arithmetic is not in effect, or if arithmetic
84626         right shift does not propagate the sign.  These assumptions were
84627         all in the original code but they weren't checked.
84628
84629         (TIME_T_MIDPOINT, verify): New macros.
84630         (__isleap): Remove; it has integer overflow problems.
84631         (leapyear): New function, without those problems.
84632         (ydhms_tm_diff): Remove; splitting into two parts.
84633         (ydhms_diff): New function, containing the arithmetic part of
84634         the old ydhms_tm_diff function.  Issue a compile-time
84635         diagnostic if we are not using C99 integer division.
84636         Avoid casts when possible.
84637         (guess_time_tm): New function, containing the checking part of
84638         the old ydhms_tm_diff function.  Return the new value, rather than
84639         the difference between it and the old.  Accept a new argument T
84640         so that *T specifies the old value.  Check for overflow in the result.
84641
84642         (__mktime_internal): Use a time_t offset, not a long int offset.
84643         This undoes the 2003-06-04 change, which is no longer needed now
84644         that we have better overflow checking.
84645         (localtime_offset): Likewise.
84646
84647         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84648         and long are 64-bit but int is only 32-bit.
84649         (ydhms_diff): Use long int to store year1 and yday1.
84650         Issue a compile-time diagnostic if long int is not wide enough.
84651
84652         (__mktime_internal): Use long int to store adjusted year and yday.
84653         Use plain C rather than preprocessor commands, if that doesn't
84654         affect efficiency.
84655         Check for overflow (and try to repair) after each probe
84656         rather than checking only at the very end.  This avoids some bugs
84657         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84658         does not equal GMT offset at maximum time).
84659         Use integer to check for overflow rather than floating point; this
84660         is more portable to non-IEEE hosts, and is a tad faster.
84661         When we detect that we are oscillating between two values,
84662         don't check whether tm_isdst has the requested value, since
84663         we already know the answer.  When tm_isdst has the wrong value,
84664         use a different heuristic to find the right one, based on the
84665         extreme values actually observed in practice in tz2003a,
84666         rather than the (overly optimistic) "previous 3 calendar quarters".
84667
84668         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84669         "T const" to accommodate glibc style.
84670         (check_result): Use less-confusing report format.  "long" -> "long int.
84671         (main): Likewise.
84672         Don't loop if the iteration overflows time_t.
84673         Allow a negative step in the iteration.
84674
84675 2003-07-06  Karl Berry  <karl@gnu.org>
84676
84677         * config/depcomp: update from automake.
84678         * config/config.sub: update from prep.
84679
84680 2003-07-03  Karl Berry  <karl@gnu.org>
84681
84682         * config/config.guess: update from prep.
84683
84684 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84685
84686         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84687         xreadlink.c now includes it unconditionally.
84688
84689 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84690
84691         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84692         having it depend on HAVE_SYS_TYPES_H.
84693
84694 2003-07-01  Bruno Haible  <bruno@clisp.org>
84695
84696         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84697         <sys/types.h> should be sufficient.
84698         Reported by Paul Eggert.
84699
84700 2003-06-26  Karl Berry  <karl@gnu.org>
84701
84702         * config/depcomp: update from automake.
84703
84704 2003-06-26  Bruno Haible  <bruno@clisp.org>
84705
84706         * modules/human: Depend on module stdbool.
84707
84708 2003-06-25  Bruno Haible  <bruno@clisp.org>
84709
84710         * modules/readlink: New file.
84711         * modules/xreadlink: Depend on it.
84712         * MODULES.html.sh (func_all_modules): Add readlink.
84713
84714 2003-06-25  Bruno Haible  <bruno@clisp.org>
84715
84716         * m4/readlink.m4: New file.
84717
84718 2003-06-25  Bruno Haible  <bruno@clisp.org>
84719
84720         * lib/readlink.c: New file.
84721
84722 2003-06-22  Karl Berry  <karl@gnu.org>
84723
84724         * config/srclist.txt: update mkinstalldirs from automake.
84725         * config/mkinstalldirs: update.
84726
84727 2003-06-22  Bruno Haible  <bruno@clisp.org>
84728
84729         Portability to mingw32.
84730         * m4/ssize_t.m4: New file, from GNU gettext.
84731         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84732         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84733
84734 2003-06-22  Bruno Haible  <bruno@clisp.org>
84735
84736         * modules/safe-read: Add m4/ssize_t.m4.
84737         * modules/xreadlink: Add m4/ssize_t.m4.
84738
84739 2003-06-20  Bruno Haible  <bruno@clisp.org>
84740
84741         Assume C89, so PARAMS isn't needed.
84742         * lib/unicodeio.h (PARAMS): Remove.
84743         * lib/unicodeio.c: Don't use PARAMS.
84744
84745 2003-06-18  Karl Berry  <karl@gnu.org>
84746
84747         * config/config.{guess,sub}: update from prep.
84748
84749 2003-06-18  Jim Meyering  <jim@meyering.net>
84750
84751         Merge changes from coreutils.
84752         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84753         Remove explicit declarations of xmalloc and realloc.
84754         Include xalloc.h.
84755         (read_utmp): Remove anachronistic cast of xmalloc.
84756
84757 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84758
84759         Assume C89, so PARAMS isn't needed.
84760         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84761         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84762         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84763         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84764         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84765         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84766         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84767         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84768         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84769         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84770         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84771         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84772         no longer needed. Anyway, config.h should always be included before any
84773         other file.
84774
84775 2003-06-11  Simon Josefsson  <jas@extundo.com>
84776
84777         * modules/sysexits: New file.
84778         * MODULES.html.sh (func_all_modules): Add sysexits.
84779
84780 2003-06-11  Simon Josefsson  <jas@extundo.com>
84781
84782         * lib/sysexit_.h: New file.
84783
84784 2003-06-11  Derek Price  <derek@ximbiot.com>
84785
84786         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84787         necessary.
84788
84789 2003-06-11  Bruno Haible  <bruno@clisp.org>
84790
84791         * m4/sysexits.m4: New file.
84792
84793 2003-06-10  Simon Josefsson  <jas@extundo.com>
84794
84795         * lib/argp.h: New file, from glibc.
84796         * lib/argp-ba.c: New file, from glibc.
84797         * lib/argp-eexst.c: New file, from glibc.
84798         * lib/argp-fmtstream.c: New file, from glibc.
84799         * lib/argp-fmtstream.h: New file, from glibc.
84800         * lib/argp-fs-xinl.c: New file, from glibc.
84801         * lib/argp-help.c: New file, from glibc.
84802         * lib/argp-namefrob.h: New file, from glibc.
84803         * lib/argp-parse.c: New file, from glibc.
84804         * lib/argp-pv.c: New file, from glibc.
84805         * lib/argp-pvh.c: New file, from glibc.
84806         * lib/argp-xinl.c: New file, from glibc.
84807
84808 2003-06-10  Simon Josefsson  <jas@extundo.com>
84809
84810         * modules/strchrnul: New file.
84811
84812 2003-06-10  Simon Josefsson  <jas@extundo.com>
84813
84814         * modules/argp: New file.
84815
84816 2003-06-10  Simon Josefsson  <jas@extundo.com>
84817
84818         * m4/strchrnul.m4: New file.
84819
84820 2003-06-10  Simon Josefsson  <jas@extundo.com>
84821
84822         * lib/strchrnul.h: New file.
84823         * lib/strchrnul.c: New file.
84824
84825 2003-06-10  Bruno Haible  <bruno@clisp.org>
84826
84827         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84828
84829 2003-06-07  Karl Berry  <karl@gnu.org>
84830
84831         * config/config.{guess,sub}: update from prep.
84832
84833 2003-06-07  Jim Meyering  <jim@meyering.net>
84834
84835         * modules/strtod: Use $(...) notation, not @...@ for
84836         AC_REPLACE'd variables.
84837         * modules/localcharset: Likewise.
84838
84839 2003-06-07  Jim Meyering  <jim@meyering.net>
84840
84841         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84842         in place of my name in the copyright comment.
84843         Remove definition and uses of __P.
84844
84845         From coreutils.
84846         * lib/stat.c: Don't declare xmalloc explicitly.
84847         Instead, include "xalloc.h".
84848         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84849         xrealloc, and xcalloc return values.
84850         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84851         Improve comment.
84852         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84853
84854 2003-06-07  Bruno Haible  <bruno@clisp.org>
84855
84856         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84857         avoid AC_CONFIG_LINKS.
84858         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84859         fnmatch.h, to avoid AC_CONFIG_LINKS.
84860         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84861
84862 2003-06-07  Bruno Haible  <bruno@clisp.org>
84863
84864         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84865         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84866         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84867         directory.
84868         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84869         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84870         directory.
84871
84872 2003-06-06  Jim Meyering  <jim@meyering.net>
84873
84874         Merge from coreutils.
84875         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84876         Consolidate declarations and initializations of *_base* locals.
84877
84878         Merge from coreutils.
84879         This avoids a core dump on systems without GNU putenv,
84880         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84881         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84882         (unsetenv): New static function, from GNU libc.
84883         (rpl_putenv): Use it.
84884
84885         * lib/modechange.c: Remove trailing blanks.
84886
84887         Merge from coreutils.
84888         * lib/fsusage.c: Remove declaration of statfs.
84889         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84890
84891         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84892
84893 2003-06-06  Jim Meyering  <jim@meyering.net>
84894
84895         * lib/stdbool_.h: Renamed from stdbool.h.in.
84896
84897 2003-06-06  Jim Meyering  <jim@meyering.net>
84898             Bruno Haible  <bruno@clisp.org>
84899
84900         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84901         Adjust Makefile.am snippet not to redirect directly to target.
84902         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84903
84904 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84905
84906         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84907         mismatch, look in future quarters as well as past.  This fixes a
84908         bug when processing fall-backwards gaps immediately after a long
84909         period of daylight-saving time.
84910
84911         * lib/mktime.c: Assume freestanding C89 or better.
84912         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84913         (__P): Remove; not used.
84914         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84915         (mktime, not_equal_tm, print_tm, check_result,
84916         main): Use prototypes.  Use const * where appropriate.
84917         (main): Fix typo in testing code that uncovered by above changes.
84918         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84919
84920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84921
84922         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84923         locale.h, localeconv.  This merges changes from coreutils.
84924
84925         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84926         It can be removed after the next Autoconf is released.
84927         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84928         needed.
84929
84930 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84931
84932         * lib/mktime.c: Fix Debian bug 177940
84933         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84934         (localtime_offset): Now long int, not time_t, because we want it
84935         to be guaranteed to be signed.  All uses changed.
84936         (__mktime_internal): If overflow would occur when adding offset,
84937         don't add it.
84938
84939         Merge 'human' changes from coreutils.  Rewrite to support
84940         locale-specific notations like thousands separators.
84941         * lib/human.c: Simplify authorship notice.
84942         Include human.h immediately after config.h.
84943         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84944         <limits.h>: Do not include, since human.h does.
84945         (SIZE_MAX, UINTMAX_MAX): New macros.
84946         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84947         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84948         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84949         (power_letter): Renamed from suffixes.
84950         (generate_suffix_backwards): Remove.
84951         (adjust_value): Now takes int style (because of human.h changes)
84952         and long double value (for greater precision on some platforms).
84953         (group_number): New function.
84954         (human_readable): Use it.  Use integer options, not enum.
84955         Put the options before the sizes in the arg list.
84956         Support all the new options.
84957         The old human_readable function has been removed;
84958         use inttostr.h instead.
84959         (human_readable, default_block_size, humblock):
84960         Use uintmax_t, not int, for block sizes.
84961         (human_readable_inexact, block_size_types): Remove.
84962         (block_size_opts): New constant.
84963         (human_options): Renamed from human_block_size, with new signature
84964         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84965         * lib/human.h: Add copyright and authorship notice.
84966         Include <limits.h> and <stdbool.h> unconditionally.
84967         (PARAMS): Remove.  All uses removed.
84968         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84969         (enum human_inexact_style): Remove tag; now a nameless enum.
84970         (human_floor, human_ceiling, human_round_to_even): Now have
84971         values 2, 0, 1 rather than -1, 1, 0.
84972         (human_group_digits, human_suppress_point_zero, human_autoscale,
84973         human_base_1024, human_SI, human_B): New constants.
84974         (human_readable_inexact, human_block_size): Remove.
84975         (human_readable): Size args are now uintmax_t, not int.
84976         (human_options): New decl.
84977
84978         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84979         unnecessary now that we assume C89 or better.  This change
84980         imported from coreutils.
84981
84982         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84983         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84984         in the 2003-05-30 sync from glibc.
84985
84986         .h files should stand alone, but we shouldn't include <sys/types.h>
84987         if we can get away with just <stddef.h>.
84988
84989         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84990         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84991         rather than <sys/types.h>, as we merely need size_t.
84992         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84993         to get size_t.
84994         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84995         Include <stdio.h>, to get FILE.
84996         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84997         memcasecmp.h has included <stddef.h> and all we need is size_t.
84998         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84999         our interface, instead of including <sys/types.h>
85000
85001 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85002
85003         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85004         now, as glibc mktime is buggy on non-glibc systems.
85005
85006 2003-06-03  Karl Berry  <karl@gnu.org>
85007
85008         * config/config.sub: update from prep.
85009
85010 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85011
85012         [from coreutils]
85013         Fix some minor time-related bugs with POSIX time arguments.
85014         Some valid time stamps were being rejected (notably -1, and
85015         time stamps before 1900 on 64-bit hosts).  And some invalid
85016         time stamps were being accepted, e.g. September 31.
85017
85018         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85019         that we can return (time_t) -1 successfully.
85020         * lib/posixtm.c: Likewise.
85021         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85022         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85023         (t): Remove static var.
85024         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85025         of static var.  All uses changed.
85026         (year): Do not reject years before 1900; they can occur with
85027         64-bit time_t.
85028         (posix_time_parse): Do not check for out-of-range components;
85029         that is now the caller's responsibility, since our checks were
85030         only approximations.
85031         (posixtime): Use mktime to check for out-of-range components,
85032         since it knows them exactly.
85033         If mktime returns (time_t) -1, check whether an error actually occurred
85034         by invoking localtime on -1.
85035         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85036         posixtime failures better.
85037         Improve the test data (in comments only).
85038
85039 2003-06-02  Karl Berry  <karl@gnu.org>
85040
85041         * config/mkinstalldirs (version): new variable.
85042         (--version): new option.
85043         (usage): improve message.
85044
85045 2003-05-30  Karl Berry  <karl@gnu.org>
85046
85047         * lib/mktime.c: update from libc.
85048
85049 2003-05-30  Bruno Haible  <bruno@clisp.org>
85050
85051         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85052         * config/config.rpath: Upgrade to gettext-0.12.1.
85053
85054 2003-05-30  Bruno Haible  <bruno@clisp.org>
85055
85056         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85057         * m4/nls.m4: New file, from gettext-0.12.1.
85058         * m4/po.m4: New file, from gettext-0.12.1.
85059         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85060
85061 2003-05-30  Bruno Haible  <bruno@clisp.org>
85062
85063         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85064         * lib/localcharset.h: Likewise.
85065         * lib/localcharset.c: Likewise.
85066
85067 2003-05-29  Karl Berry  <karl@gnu.org>
85068
85069         * config/config.rpath: update from gettext.
85070
85071 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85072
85073         Assume the headers required for C89 freestanding compilers.
85074         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85075         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85076         * m4/human.m4 (gl_HUMAN): Likewise.
85077         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85078         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85079         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85080         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85081         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85082         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85083
85084 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85085
85086         Assume the headers required for C89 freestanding compilers.
85087         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85088         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85089         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85090         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85091         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85092         define, since <limits.h> is guaranteed to do that.
85093         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85094         * lib/exclude.c: Include <stdbool.h> unconditionally.
85095         * lib/tempname.c: Include <stddef.h> unconditionally.
85096         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85097         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85098         <stddef.h> does that.
85099         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85100         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85101         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85102         needed.
85103         * lib/xstrtol.c: Likewise.
85104         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85105         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85106
85107         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85108         warnings on some platforms.
85109
85110         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85111         arbitrarily.
85112
85113 2003-05-26  Jim Meyering  <jim@meyering.net>
85114
85115         Merge in a change from coreutils:
85116         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85117         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85118         that condition, rather than `-1' which is slightly misleading.
85119         Change the name of the cache variable to have the gl_ prefix.
85120         Prompted by a patch from Richard Dawe for DJGPP.
85121
85122 2003-05-24  Karl Berry  <karl@gnu.org>
85123
85124         * config/config.guess: update from prep.
85125
85126 2003-05-22  Karl Berry  <karl@gnu.org>
85127
85128         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85129
85130 2003-05-20  Karl Berry  <karl@gnu.org>
85131
85132         * config/config.guess: update from prep.
85133
85134 2003-05-18  Karl Berry  <karl@gnu.org>
85135
85136         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85137         might actually be set by the user.
85138
85139         * config/depcomp, install-sh, mdate-sh: update from automake.
85140
85141 2003-05-17  Bruno Haible  <bruno@clisp.org>
85142
85143         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85144         invalid expansion for AC_EGREP_CPP.
85145         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85146         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85147         Suggested by Akim Demaille <akim@epita.fr> in
85148         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85149
85150 2003-05-12  Jim Meyering  <jim@meyering.net>
85151
85152         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85153         the space-padded-by-default conversion specifiers, %e, %k, %l.
85154
85155 2003-05-12  Bruno Haible  <bruno@clisp.org>
85156
85157         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85158         the string is longer than 4 KB.
85159
85160 2003-05-11  Karl Berry  <karl@gnu.org>
85161
85162         * config/config.{guess,sub}: update from prep.
85163
85164 2003-05-09  Bruno Haible  <bruno@clisp.org>
85165
85166         * modules/error: Add m4/strerror_r.m4 to file list.
85167
85168 2003-05-03  Bruno Haible  <bruno@clisp.org>
85169
85170         Upgrade to Unicode-4.0.
85171         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85172         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85173         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85174         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85175         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85176         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85177         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85178         Change width of U+E0100..U+E01EF from 1 to 0.
85179
85180 2003-04-25  Jim Meyering  <jim@meyering.net>
85181
85182         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85183         of type size_t, not int.
85184
85185 2003-04-25  Bruno Haible  <bruno@clisp.org>
85186
85187         * lib/copy-file.c: Include <stddef.h>, for size_t.
85188
85189 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85190
85191         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85192         code which expansion is under static control.  Patch imported from
85193         Akim Demaille's patch to Bison; see
85194         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85195
85196 2003-04-14  Bruno Haible  <bruno@clisp.org>
85197
85198         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85199
85200 2003-04-11  Jim Meyering  <jim@meyering.net>
85201
85202         Merge changes from Coreutils.
85203
85204         2003-03-22  Jim Meyering  <jim@meyering.net>
85205
85206         * lib/strftime.c (widen): Cast alloca return value to proper type.
85207
85208         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85209
85210         From GNU libc.
85211         * lib/strftime.c (my_strftime): Handle very large width
85212         specifications for numeric values correctly.  Improve checks for
85213         overflow.
85214
85215         2003-01-19  Jim Meyering  <jim@meyering.net>
85216
85217         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85218         definitions.
85219         (nl_get_alt_digit) [! defined my_strftime]: Define.
85220         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85221         _nl_get_alt_digit and _nl_get_walt_digit.
85222
85223         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85224         libc. These changes have no effect outside of _LIBC.
85225
85226 2003-04-10  Bruno Haible  <bruno@clisp.org>
85227
85228         * modules/findprog: New file.
85229         * MODULES.html.sh (func_all_modules): Add it.
85230
85231 2003-04-10  Bruno Haible  <bruno@clisp.org>
85232
85233         * m4/findprog.m4: New file.
85234         * m4/eaccess.m4: New file.
85235
85236 2003-04-10  Bruno Haible  <bruno@clisp.org>
85237
85238         * lib/findprog.h: New file, from GNU gettext.
85239         * lib/findprog.c: New file, from GNU gettext.
85240
85241 2003-04-05  Jim Meyering  <jim@meyering.net>
85242
85243         Merge changes from Coreutils.
85244
85245         * lib/exclude.h (PARAMS): Remove definition and uses.
85246         * lib/exclude.c: Remove uses of `PARAMS'.
85247
85248         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85249         Add test-cases for DOS filenames. Declare program_name.
85250         (main): Set up program_name.  Patch by Rich Dawe.
85251
85252         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85253         error from mntctl.
85254         Use mntctl's return value to drive the entry-processing loop, since
85255         we can't rely on the value of the vmt_length member in the last
85256         entry.  On some systems doing so could result in exhausting
85257         virtual memory.  Based in part on a patch from Mike Jetzer.
85258
85259 2003-04-04  Bruno Haible  <bruno@clisp.org>
85260
85261         * modules/linebreak: New file.
85262         * MODULES.html.sh (func_all_modules): Add it.
85263
85264 2003-04-04  Bruno Haible  <bruno@clisp.org>
85265
85266         * m4/linebreak.m4: New file.
85267
85268 2003-04-04  Bruno Haible  <bruno@clisp.org>
85269
85270         * lib/linebreak.h: New file, from GNU gettext.
85271         * lib/linebreak.c: New file, from GNU gettext with slight
85272         modifications.
85273         * lib/lbrkprop.h: New file, from GNU gettext.
85274
85275 2003-04-03  Bruno Haible  <bruno@clisp.org>
85276
85277         * modules/utf8-ucs4: New file.
85278         * modules/utf16-ucs4: New file.
85279         * modules/ucs4-utf8: New file.
85280         * modules/ucs4-utf16: New file.
85281         * MODULES.html.sh (func_all_modules): Add them.
85282
85283 2003-04-03  Bruno Haible  <bruno@clisp.org>
85284
85285         * m4/utf-ucs4.m4: New file.
85286         * m4/ucs4-utf.m4: New file.
85287
85288 2003-04-03  Bruno Haible  <bruno@clisp.org>
85289
85290         * lib/utf8-ucs4.h: New file, from GNU gettext.
85291         * lib/utf16-ucs4.h: New file, from GNU gettext.
85292         * lib/ucs4-utf8.h: New file, from GNU gettext.
85293         * lib/ucs4-utf16.h: New file, from GNU gettext.
85294
85295 2003-04-02  Bruno Haible  <bruno@clisp.org>
85296
85297         * modules/binary-io: New file.
85298         * MODULES.html.sh (func_all_modules): Add it.
85299
85300 2003-04-02  Bruno Haible  <bruno@clisp.org>
85301
85302         * lib/binary-io.h: New file, from GNU gettext.
85303
85304 2003-04-01  Bruno Haible  <bruno@clisp.org>
85305
85306         * modules/pathname: New file.
85307         * MODULES.html.sh (func_all_modules): Add it.
85308
85309 2003-04-01  Bruno Haible  <bruno@clisp.org>
85310
85311         * lib/pathname.h: New file, from GNU gettext.
85312         * lib/concatpath.c: New file, from GNU gettext.
85313
85314 2003-03-30  Bruno Haible  <bruno@clisp.org>
85315
85316         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85317
85318 2003-03-30  Bruno Haible  <bruno@clisp.org>
85319
85320         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85321         function chown() doesn't exist.
85322
85323 2003-03-28  Bruno Haible  <bruno@clisp.org>
85324
85325         * modules/copy-file: New file.
85326         * MODULES.html.sh (func_all_modules): Add it.
85327
85328 2003-03-28  Bruno Haible  <bruno@clisp.org>
85329
85330         * m4/copy-file.m4: New file.
85331
85332 2003-03-28  Bruno Haible  <bruno@clisp.org>
85333
85334         * lib/copy-file.h: New file, from GNU gettext.
85335         * lib/copy-file.c: New file, from GNU gettext.
85336
85337 2003-03-18  Jim Meyering  <jim@meyering.net>
85338
85339         * lib/quote.c (quote_n): Fix typo in comment.
85340
85341 2003-03-18  Bruno Haible  <bruno@clisp.org>
85342
85343         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85344         checking.
85345         * m4/onceonly_2_57.m4: Likewise.
85346
85347 2003-03-17  Bruno Haible  <bruno@clisp.org>
85348
85349         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85350         (m4_quote): Remove macro.
85351         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85352
85353 2003-03-14  Jim Meyering  <jim@meyering.net>
85354
85355         Merge changes from Coreutils.
85356         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85357         to be const, in order to avoid warnings.
85358         (obstack_room): Likewise.
85359         (obstack_empty_p): Likewise.
85360
85361 2003-03-14  Bruno Haible  <bruno@clisp.org>
85362
85363         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85364         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85365
85366 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85367
85368         Merge changes from Bison.
85369         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85370         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85371         when compiling Bison 1.875's `bitset bset = obstack_alloc
85372         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85373         * lib/hash.c: Include <stdbool.h> unconditionally.
85374
85375 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85376
85377         * m4/onceonly.m4 (m4_quote): New macro.
85378         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85379         Quote AC_FOREACH variable-expansions properly.
85380
85381 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85382
85383         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85384
85385 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85386
85387         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85388         Reported by Bruce Becker; see:
85389         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85390
85391 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85392             Bruno Haible  <bruno@clisp.org>
85393
85394         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85395         Reported by John Hughes, see
85396         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85397
85398 2003-02-20  Bruno Haible  <bruno@clisp.org>
85399
85400         * MODULES.html.sh (func_all_modules): Add poll.
85401
85402 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85403
85404         * modules/poll: New file.
85405
85406 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85407
85408         * lib/poll_.h: New file.
85409         * lib/poll.c: New file.
85410
85411 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85412
85413         * m4/poll.m4: New file.
85414
85415 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85416
85417         * modules/mathl: New file.
85418
85419 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85420
85421         * lib/mathl.h: New file.
85422         * lib/acosl.c: New file.
85423         * lib/asinl.c: New file.
85424         * lib/atanl.c: New file.
85425         * lib/ceill.c: New file.
85426         * lib/cosl.c: New file.
85427         * lib/expl.c: New file.
85428         * lib/floorl.c: New file.
85429         * lib/frexpl.c: New file.
85430         * lib/ldexpl.c: New file.
85431         * lib/logl.c: New file.
85432         * lib/sincosl.c: New file.
85433         * lib/sinl.c: New file.
85434         * lib/sqrtl.c: New file.
85435         * lib/tanl.c: New file.
85436         * lib/trigl.c: New file.
85437         * lib/trigl.h: New file.
85438
85439 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85440
85441         * m4/mathl.m4: New file.
85442
85443 2003-02-18  Bruno Haible  <bruno@clisp.org>
85444
85445         * MODULES.html.sh (func_all_modules): Add mathl.
85446
85447 2003-02-17  Bruno Haible  <bruno@clisp.org>
85448
85449         * modules/mkdtemp: New module.
85450         * MODULES.html.sh (func_all_modules): Add it.
85451
85452 2003-02-17  Bruno Haible  <bruno@clisp.org>
85453
85454         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85455
85456 2003-02-17  Bruno Haible  <bruno@clisp.org>
85457
85458         * lib/mkdtemp.h: New file, from GNU gettext.
85459         * lib/mkdtemp.c: New file, from GNU gettext.
85460
85461 2003-02-02  Jim Meyering  <jim@meyering.net>
85462
85463         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85464         e.g. glibc-2.2.93.
85465
85466 2003-01-31  Bruno Haible  <bruno@clisp.org>
85467
85468         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85469         'rpl_rename'.
85470         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85471         'rpl_strnlen'.
85472         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85473         'rpl_strtod'.
85474         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85475         'rpl_utime'.
85476
85477 2003-01-31  Bruno Haible  <bruno@clisp.org>
85478
85479         * lib/rename.c: #undef rename before defining rpl_rename.
85480         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85481
85482 2003-01-30  Bruno Haible  <bruno@clisp.org>
85483
85484         * modules/vasnprintf, modules/vasprintf: New modules.
85485         * MODULES.html.sh (func_all_modules): Add them.
85486
85487 2003-01-30  Bruno Haible  <bruno@clisp.org>
85488
85489         * m4/signed.m4: New file, from GNU gettext.
85490         * m4/longdouble.m4: New file, from GNU gettext.
85491         * m4/wchar_t.m4: New file, from GNU gettext.
85492         * m4/wint_t.m4: New file, from GNU gettext.
85493         * m4/vasnprintf.m4: New file.
85494         * m4/vasprintf.m4: New file.
85495
85496 2003-01-30  Bruno Haible  <bruno@clisp.org>
85497
85498         * lib/printf-args.h: New file, from GNU gettext.
85499         * lib/printf-args.c: New file, from GNU gettext.
85500         * lib/printf-parse.h: New file, from GNU gettext.
85501         * lib/printf-parse.c: New file, from GNU gettext.
85502         * lib/vasnprintf.h: New file, from GNU gettext.
85503         * lib/vasnprintf.c: New file, from GNU gettext.
85504         * lib/asnprintf.c: New file, from GNU gettext.
85505         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85506         * lib/vasprintf.c: New file, from GNU gettext.
85507         * lib/asprintf.c: New file, from GNU gettext.
85508
85509 2003-01-29  Bruno Haible  <bruno@clisp.org>
85510
85511         * modules/stpncpy: New module.
85512         * MODULES.html.sh (func_all_modules): Add it.
85513
85514 2003-01-29  Bruno Haible  <bruno@clisp.org>
85515
85516         * m4/stpncpy.m4: New file.
85517
85518 2003-01-29  Bruno Haible  <bruno@clisp.org>
85519
85520         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85521         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85522
85523 2003-01-28  Bruno Haible  <bruno@clisp.org>
85524
85525         * modules/c-ctype: New module.
85526         * MODULES.html.sh (func_all_modules): Add it.
85527
85528 2003-01-28  Bruno Haible  <bruno@clisp.org>
85529
85530         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85531         Paul Eggert.
85532         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85533         Paul Eggert.
85534
85535 2003-01-27  Bruno Haible  <bruno@clisp.org>
85536
85537         * modules/xsetenv: New module.
85538         * MODULES.html.sh (func_all_modules): Add it.
85539
85540 2003-01-27  Bruno Haible  <bruno@clisp.org>
85541
85542         * lib/xsetenv.h: New file, from GNU gettext.
85543         * lib/xsetenv.c: New file, from GNU gettext.
85544
85545 2003-01-23  Jim Meyering  <jim@meyering.net>
85546
85547         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85548         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85549
85550 2003-01-23  Bruno Haible  <bruno@clisp.org>
85551
85552         * modules/minmax: New module.
85553         * MODULES.html.sh (func_all_modules): Add it.
85554
85555 2003-01-23  Bruno Haible  <bruno@clisp.org>
85556
85557         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85558         Eggert.
85559
85560 2003-01-22  Bruno Haible  <bruno@clisp.org>
85561
85562         * modules/exit: New module.
85563         * MODULES.html.sh (func_all_modules): Add it.
85564
85565 2003-01-22  Bruno Haible  <bruno@clisp.org>
85566
85567         * lib/exit.h: New file, from GNU gettext.
85568
85569 2003-01-19  Bruno Haible  <bruno@clisp.org>
85570
85571         * gnulib-tool: Recognize option --extract-maintainer.
85572         (func_get_maintainer): New function.
85573         * modules/*: Add Maintainer entry.
85574
85575 2003-01-16  Jim Meyering  <jim@meyering.net>
85576
85577         * m4/regex.m4: The `regex' struct is both input and output.
85578         Initialize it before each use.  Patch by Tim Waugh.
85579
85580 2003-01-16  Bruno Haible  <bruno@clisp.org>
85581
85582         * MODULES.html.sh: Add a table of contents. Add the module name as
85583         leftmost column. Add hyperlinks.
85584
85585 2003-01-15  Bruno Haible  <bruno@clisp.org>
85586
85587         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85588
85589 2003-01-15  Bruno Haible  <bruno@clisp.org>
85590
85591         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85592         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85593         suffix.
85594
85595 2003-01-15  Bruno Haible  <bruno@clisp.org>
85596
85597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85598
85599 2003-01-15  Bruno Haible  <bruno@clisp.org>
85600
85601         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85602         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85603
85604 2003-01-14  Jim Meyering  <jim@meyering.net>
85605
85606         * lib/same.c (same_name): Tweak a comment.
85607
85608 2003-01-14  Bruno Haible  <bruno@clisp.org>
85609
85610         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85611         when a string comparison is sufficient.
85612
85613 2003-01-14  Bruno Haible  <bruno@clisp.org>
85614
85615         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85616         'unsigned int'.
85617
85618 2003-01-14  Bruno Haible  <bruno@clisp.org>
85619
85620         * lib/hash-pjw.c: Add comment about low quality of this function.
85621
85622 2003-01-13  Bruno Haible  <bruno@clisp.org>
85623
85624         * modules/stpcpy: Distribute lib/stpcpy.h.
85625         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85626
85627 2003-01-13  Bruno Haible  <bruno@clisp.org>
85628
85629         * modules/*: Add a description.
85630         * modules/strpbrk: Fix Makefile.am snippet.
85631         * modules/strtoimax: Fix dependencies.
85632         * modules/strtoumax: Likewise.
85633
85634 2003-01-13  Bruno Haible  <bruno@clisp.org>
85635
85636         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85637         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85638         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85639
85640 2003-01-13  Bruno Haible  <bruno@clisp.org>
85641
85642         * gnulib-tool (func_create_testdir): Store config/* files in the main
85643         directory.
85644         * config.rpath: Move to ...
85645         * config/config.rpath: ... here.
85646         * modules/gettext: Contains config/config.rpath, not config.rpath.
85647         * modules/iconv: Likewise.
85648
85649 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85650
85651         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85652         to avoid collisions with libcurses and libreadline.
85653
85654         * m4/getstr.m4: Remove.
85655         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85656
85657 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85658
85659         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85660         to avoid collisions with libcurses and libreadline.
85661
85662         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85663         * lib/getstr.h, getstr.c: Remove.
85664         * lib/getline.c: Include "getline.h", to check interface.
85665         Move body of old getstr.c here: this defines MIN_CHUNK and
85666         declares getdelim2, which is renamed from getstr.
85667         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85668
85669         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85670         All uses changed.
85671         * lib/linebuffer.h: Likewise.
85672         (readline): Remove backward-compatibility macro.
85673
85674 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85675
85676         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85677         to avoid collisions with libcurses and libreadline.
85678         * getstr: Remove.
85679         * MODULES.html.sh: Remove getstr.
85680         * modules/getline: Depend on unlocked-io, not getstr.
85681
85682 2003-01-12  Jim Meyering  <jim@meyering.net>
85683
85684         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85685
85686 2003-01-10  Bruno Haible  <bruno@clisp.org>
85687
85688         * modules/alloca: Change Makefile.am requirements. Simplify Include
85689         requirements. Add lib/alloca_.h to file list.
85690
85691 2003-01-10  Bruno Haible  <bruno@clisp.org>
85692
85693         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85694
85695 2003-01-10  Bruno Haible  <bruno@clisp.org>
85696
85697         * lib/alloca_.h: New file.
85698         * lib/getdate.y: Unconditionally include alloca.h.
85699         * lib/makepath.c: Likewise.
85700         * lib/setenv.c: Likewise.
85701         * lib/userspec.c: Likewise.
85702
85703 2003-01-09  Karl Berry  <karl@gnu.org>
85704
85705         * MODULES.html.sh: include `dirname $0` in PATH, to find
85706         gnulib-tool.
85707
85708 2003-01-09  Bruno Haible  <bruno@clisp.org>
85709
85710         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85711         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85712
85713 2003-01-09  Bruno Haible  <bruno@clisp.org>
85714
85715         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85716
85717 2003-01-09  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/stdbool.h.in: New file.
85720
85721 2003-01-09  Bruno Haible  <bruno@clisp.org>
85722
85723         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85724         * MODULES.html.sh: Likewise.
85725
85726 2003-01-08  Jim Meyering  <jim@meyering.net>
85727
85728         * lib/full-write.c: Undefine and define-away `const' after inclusion
85729         of errno.h, not before.  Suggestion from Bruno Haible.
85730
85731 2003-01-08  Bruno Haible  <bruno@clisp.org>
85732
85733         * modules/full-read: Depend on full-write.
85734
85735 2003-01-08  Bruno Haible  <bruno@clisp.org>
85736
85737         * lib/safe-read.c: Include specification header first, to ensure its
85738         selfcontainedness.
85739         * lib/full-write.c: Likewise.
85740
85741 2003-01-07  Jim Meyering  <jim@meyering.net>
85742
85743         * lib/full-write.c: Rework so that it may serve to define full_read,
85744         too.
85745         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85746
85747 2003-01-07  Bruno Haible  <bruno@clisp.org>
85748
85749         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85750         <inttypes.h>.
85751         * lib/xstrtol.h: Likewise.
85752         * lib/xstrtoimax.c: Likewise.
85753         * lib/xstrtoumax.c: Likewise.
85754         * lib/human.h: Likewise.
85755
85756         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85757         on systems that have <inttypes.h> but not <stdint.h>.
85758
85759 2003-01-07  Bruno Haible  <bruno@clisp.org>
85760
85761         * MODULES.html.sh: Add copyright notice.
85762         (missed_files): Omit CVS directory entries.
85763         (func_module): Make it work with sed-3.02.
85764         * MODULES.txt: Remove file.
85765
85766 2003-01-06  Jim Meyering  <jim@meyering.net>
85767
85768         * lib/version-etc.c: Update year in translatable copyright string.
85769
85770 2003-01-03  Karl Berry  <karl@gnu.org>
85771
85772         * config/config.{guess,sub}: update from prep.
85773
85774 2003-01-02  Karl Berry  <karl@gnu.org>
85775
85776         * doc/COPYING.DOC: belatedly updated to 1.2.
85777
85778 2003-01-01  Karl Berry  <karl@gnu.org>
85779
85780         * gnulib-tool (func_verify_module): report module name $module in
85781         error message, not $1.
85782         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85783         be created, only if it doesn't exist.
85784         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85785
85786 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85787
85788         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85789
85790 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85791
85792         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85793         memcmp if strcoll doesn't work.
85794
85795 2002-12-31  Bruno Haible  <bruno@clisp.org>
85796
85797         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85798         nonempty.
85799
85800 2002-12-31  Bruno Haible  <bruno@clisp.org>
85801
85802         * lib/memcoll.c (STRCOLL): New macro.
85803         (memcoll): Use it.
85804
85805 2002-12-31  Bruno Haible  <bruno@clisp.org>
85806
85807         * lib/localcharset.h: New file.
85808         * lib/localcharset.c: Include it.
85809         * lib/unicodeio.c: Likewise.
85810
85811 2002-12-31  Bruno Haible  <bruno@clisp.org>
85812
85813         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85814         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85815
85816 2002-12-31  Bruno Haible  <bruno@clisp.org>
85817
85818         * lib/getline.h: Include <stddef.h>, for size_t.
85819
85820         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85821         * lib/unicodeio.c: Don't include <stddef.h>.
85822
85823 2002-12-31  Bruno Haible  <bruno@clisp.org>
85824
85825         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85826         HAVE_TM_ZONE.
85827
85828 2002-12-24  Karl Berry  <karl@gnu.org>
85829
85830         * config/config.guess: update from prep.
85831
85832 2002-12-24  Bruno Haible  <bruno@clisp.org>
85833
85834         General infrasructure.
85835         * m4/README: Rewritten.
85836         * m4/onceonly.m4: New file.
85837         * m4/onceonly_2_57.m4: New file.
85838
85839         Module atexit.
85840         * m4/atexit.m4: New file.
85841
85842         Module strtod.
85843         * m4/strtod.m4: New file.
85844
85845         Module strtol.
85846         * m4/strtol.m4: New file.
85847
85848         Module strtoul.
85849         * m4/strtoul.m4: New file.
85850
85851         Module memchr.
85852         * m4/memchr.m4: New file.
85853
85854         Module memcmp.
85855         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85856         (jm_FUNC_MEMCMP): Invoke it.
85857
85858         Module memcpy.
85859         * m4/memcpy.m4: New file.
85860
85861         Module memmove.
85862         * m4/memmove.m4: New file.
85863
85864         Module memset.
85865         * m4/memset.m4: New file.
85866
85867         Module strcspn.
85868         * m4/strcspn.m4: New file.
85869
85870         Module strpbrk.
85871         * m4/strpbrk.m4: New file.
85872
85873         Module strstr.
85874         * m4/strstr.m4: New file.
85875
85876         Module strerror.
85877         * m4/strerror.m4: New file.
85878
85879         Module mktime.
85880         * m4/mktime.m4: Renamed from jm-mktime.m4.
85881         (gl_PREREQ_MKTIME): New macro.
85882         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85883
85884         Module malloc.
85885         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85886         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85887         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85888
85889         Module realloc.
85890         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85891         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85892         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85893
85894         Module strftime.
85895         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85896         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85897         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85898         gl_TM_GMTOFF.
85899         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85900
85901         Module xalloc.
85902         * m4/xalloc.m4: New file.
85903
85904         Module alloca.
85905         * m4/alloca.m4: New file.
85906
85907         Module putenv.
85908         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85909         (jm_FUNC_PUTENV): Invoke it.
85910
85911         Module setenv.
85912         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85913         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85914         when invoked twice.
85915         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85916         gt_FUNC_SETENV.
85917
85918         Module memrchr.
85919         * m4/memrchr.m4: New file.
85920
85921         Module stpcpy.
85922         * m4/stpcpy.m4: New file.
85923
85924         Module strcase.
85925         * m4/strcase.m4: New file.
85926
85927         Module strdup.
85928         * m4/strdup.m4: New file.
85929
85930         Module strnlen.
85931         * m4/strnlen.m4: New file.
85932
85933         Module strndup.
85934         * m4/strndup.m4: New file.
85935
85936         Module xstrtod.
85937         * m4/xstrtod.m4: New file.
85938
85939         Module xstrtol.
85940         * m4/xstrtol.m4: New file.
85941
85942         Module getdate.
85943         * m4/getdate.m4: New file.
85944
85945         Module unlocked-io.
85946         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85947         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85948         * m4/jm-glibc-io.m4n: Remove file.
85949
85950         Module long-options.
85951         * m4/long-options.m4: New file.
85952
85953         Module md5.
85954         * m4/md5.m4: New file.
85955
85956         Module sha.
85957         * m4/sha.m4: New file.
85958
85959         Module getstr.
85960         * m4/getstr.m4: New file.
85961
85962         Module getline.
85963         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85964         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85965         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85966         simply getline. Infoke gl_PREREQ_GETLINE.
85967
85968         Module obstack.
85969         * m4/obstack.m4: New file.
85970
85971         Module hash.
85972         * m4/hash.m4: New file.
85973
85974         Module readtokens.
85975         * m4/readtokens.m4: New file.
85976
85977         Module strverscmp.
85978         * m4/strverscmp.m4: New file.
85979
85980         Module stdbool.
85981         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85982         OSF/1.
85983
85984         Module strtoll.
85985         * m4/strtoll.m4: New file.
85986
85987         Module strtoull.
85988         * m4/strtoull.m4: New file.
85989
85990         Module strtoimax.
85991         * m4/strtoimax.m4: New file.
85992
85993         Module strtoumax.
85994         * m4/strtoumax.m4: New file.
85995
85996         Module xstrtoimax.
85997         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85998         jm_AC_PREREQ_XSTRTOIMAX.
85999         Moved the strtol prerequisites to strtol.m4.
86000         Moved the strtoll prerequisites to strtoll.m4.
86001         Moved the strtoimax prerequisites to strtoimax.m4.
86002
86003         Module xstrtoumax.
86004         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86005         jm_AC_PREREQ_XSTRTOUMAX.
86006         Moved the strtoul prerequisites to strtoul.m4.
86007         Moved the strtoull prerequisites to strtoull.m4.
86008         Moved the strtoumax prerequisites to strtoumax.m4.
86009
86010         Module chown.
86011         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86012         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86013
86014         Module dup2.
86015         * m4/dup2.m4: New file.
86016
86017         Module ftruncate.
86018         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86019         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86020
86021         Module getgroups.
86022         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86023         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86024
86025         Module gettimeofday.
86026         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86027         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86028         gl_PREREQ_GETTIMEOFDAY.
86029
86030         Module mkdir.
86031         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86032         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86033
86034         Module mkstemp.
86035         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86036         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86037         jm_AC_TYPE_UINTMAX_T.
86038         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86039
86040         Module stat.
86041         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86042         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86043
86044         Module lstat.
86045         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86046         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86047
86048         Module timespec.
86049         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86050         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86051         * m4/st_mtim.m4: Indentation.
86052
86053         Module nanosleep.
86054         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86055         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86056         gl_PREREQ_NANOSLEEP.
86057
86058         Module regex.
86059         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86060         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86061         (gl_REGEX): New macro.
86062
86063         Module rename.
86064         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86065         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86066
86067         Module rmdir.
86068         * m4/rmdir.m4: New file.
86069
86070         Module utime.
86071         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86072         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86073         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86074
86075         Module dirname.
86076         * m4/dirname.m4: New file.
86077
86078         Module getopt.
86079         * m4/getopt.m4: New file.
86080
86081         Module unistd-safer.
86082         * m4/unistd-safer.m4: New file.
86083
86084         Module fnmatch.
86085         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86086         declaration.
86087         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86088         (gl_FUNC_FNMATCH_POSIX): New macro.
86089         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86090         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86091         simply fnmatch.
86092
86093         Module exclude.
86094         * m4/exclude.m4: New file.
86095
86096         Module human.
86097         * m4/human.m4: New file.
86098
86099         Module acl.
86100         * m4/acl.m4: Nop.
86101
86102         Module backupfile.
86103         * m4/backupfile.m4: New file.
86104         * m4/d-ino.m4: Indentation.
86105
86106         Module fsusage.
86107         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86108         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86109         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86110
86111         Module dirfd.
86112         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86113         requirements.
86114
86115         Module euidaccess.
86116         * m4/euidaccess.m4: New file.
86117
86118         Module file-type.
86119         * m4/file-type.m4: New file.
86120
86121         Module fileblocks.
86122         * m4/fileblocks.m4: New file.
86123
86124         Module filemode.
86125         * m4/filemode.m4: New file.
86126
86127         Module isdir.
86128         * m4/isdir.m4: New file.
86129
86130         Module lchown.
86131         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86132         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86133
86134         Module makepath.
86135         * m4/makepath.m4: New file.
86136
86137         Module modechange.
86138         * m4/modechange.m4: New file.
86139
86140         Module mountlist.
86141         * m4/mountlist.m4: New file.
86142         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86143         Indentation.
86144
86145         Module path-concat.
86146         * m4/path-concat.m4: New file.
86147
86148         Module pathmax.
86149         * m4/pathmax.m4: New file.
86150
86151         Module same.
86152         * m4/same.m4: New file.
86153
86154         Module save-cwd.
86155         * m4/save-cwd.m4: New file.
86156
86157         Module savedir.
86158         * m4/savedir.m4: New file.
86159
86160         Module xgetcwd.
86161         * m4/xgetcwd.m4: New file.
86162         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86163
86164         Module xreadlink.
86165         * m4/xreadlink.m4: New file.
86166
86167         Module safe-read.
86168         * m4/safe-read.m4: New file.
86169
86170         Module safe-write.
86171         * m4/safe-write.m4: New file.
86172
86173         Module closeout.
86174         * m4/closeout.m4: New file.
86175
86176         Module stdio-safer.
86177         * m4/stdio-safer.m4: New file.
86178
86179         Module getpass.
86180         * m4/getpass.m4: New file.
86181
86182         Module getugroups.
86183         * m4/getugroups.m4: New file.
86184
86185         Module group-member.
86186         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86187         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86188
86189         Module idcache.
86190         * m4/idcache.m4: New file.
86191
86192         Module userspec.
86193         * m4/userspec.m4: New file.
86194
86195         Module gettime.
86196         * m4/clock_time.m4: New file.
86197         * m4/gettime.m4: New file.
86198
86199         Module settime.
86200         * m4/settime.m4: New file.
86201
86202         Module posixtm.
86203         * m4/posixtm.m4: New file.
86204
86205         Module gethostname.
86206         * m4/gethostname.m4: New file.
86207
86208         Module canon-host.
86209         * m4/canon-host.m4: New file.
86210
86211         Module gettext.
86212         * m4/codeset.m4: New file, from gettext-0.11.5.
86213         * m4/gettext.m4: New file, from gettext-0.11.5.
86214         * m4/glibc21.m4: New file, from gettext-0.11.5.
86215         * m4/iconv.m4: New file, from gettext-0.11.5.
86216         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86217         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86218         * m4/inttypes.m4: New file, from gettext-0.11.5.
86219         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86220         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86221         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86222         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86223         * m4/lib-link.m4: New file, from gettext-0.11.5.
86224         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86225         * m4/progtest.m4: New file, from gettext-0.11.5.
86226         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86227         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86228         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86229
86230         Module localcharset.
86231         * m4/localcharset.m4: New file.
86232
86233         Module hard-locale.
86234         * m4/hard-locale.m4: New file.
86235
86236         Module mbswidth.
86237         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86238         onceonly macros.
86239         * m4/mbrtowc.m4: Add comment.
86240
86241         Module memcasecmp.
86242         * m4/memcasecmp.m4: New file.
86243
86244         Module memcoll.
86245         * m4/memcoll.m4: New file.
86246
86247         Module unicodeio.
86248         * m4/unicodeio.m4: New file.
86249
86250         Module rpmatch.
86251         * m4/rpmatch.m4: New file.
86252
86253         Module yesno.
86254         * m4/yesno.m4: New file.
86255
86256         Module exitfail.
86257         * m4/exitfail.m4: New file.
86258
86259         Module c-stack.
86260         * m4/c-stack.m4 (gl_C_STACK): New macro.
86261         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86262
86263         Module error.
86264         * m4/error.m4 (gl_ERROR): New macro.
86265         (jm_PREREQ_ERROR): Use onceonly macros.
86266
86267         Module fatal.
86268         * m4/fatal.m4: New file.
86269
86270         Module getloadavg.
86271         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86272         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86273
86274         Module getpagesize.
86275         * m4/getpagesize.m4: New file.
86276
86277         Module getusershell.
86278         * m4/getusershell.m4: New file.
86279
86280         Module physmem.
86281         * m4/physmem.m4: New file.
86282
86283         Module posixver.
86284         * m4/posixver.m4: New file.
86285
86286         Module quotearg.
86287         * m4/quotearg.m4: New file.
86288
86289         Module quote.
86290         * m4/quote.m4: New file.
86291
86292         Module readutmp.
86293         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86294
86295         Module sig2str.
86296         * m4/sig2str.m4: New file.
86297
86298         Other.
86299         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86300         ulonglong.m4.
86301         * m4/intmax_t.m4: New file.
86302         * m4/d-type.m4: Indentation.
86303         * m4/jm-macros.m4: Update.
86304         * m4/prereq.m4 (jm_PREREQ): Update.
86305         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86306         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86307         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86308         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86309         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86310         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86311         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86312         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86313         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86314         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86315         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86316         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86317         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86318         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86319         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86320         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86321         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86322         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86323         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86324
86325 2002-12-24  Bruno Haible  <bruno@clisp.org>
86326
86327         * MODULES.txt: Update according to m4/ changes.
86328
86329         Module gettext.
86330         * config.rpath: New file, from gettext-0.11.5.
86331
86332         * modules/*: New module descriptions.
86333         * gnulib-tool: New file.
86334         * MODULES.html.sh: New file.
86335
86336 2002-12-21  Karl Berry  <karl@gnu.org>
86337
86338         * doc/fdl.texi: update to version 1.2.
86339
86340 2002-12-19  Karl Berry  <karl@gnu.org>
86341
86342         * config/config.guess: update from prep.
86343
86344 2002-12-18  Bruno Haible  <bruno@clisp.org>
86345
86346         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86347         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86348
86349 2002-12-17  Bruno Haible  <bruno@clisp.org>
86350
86351         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86352         stdlib.h, string.h.
86353
86354 2002-12-17  Bruno Haible  <bruno@clisp.org>
86355
86356         * lib/canon-host.c (strdup): Remove unused declaration.
86357
86358         * lib/fsusage.c: Include full_read.h.
86359         (get_fs_usage): Use full_read instead of safe_read.
86360
86361         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86362
86363 2002-12-12  Karl Berry  <karl@gnu.org>
86364
86365         * config/config.guess: update from prep.
86366
86367 2002-12-11  Bruno Haible  <bruno@clisp.org>
86368
86369         * m4/setenv.m4: New file, from gettext-0.11.5.
86370
86371 2002-12-11  Bruno Haible  <bruno@clisp.org>
86372
86373         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86374         not unsetenv().
86375         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86376         modifications:
86377
86378         2002-12-11  Bruno Haible  <bruno@clisp.org>
86379
86380                 * setenv.c (alloca): Fall back to malloc.
86381                 (freea): New macro.
86382                 (setenv): Use freea() to free memory allocated with alloca().
86383
86384         2002-11-13  Bruno Haible  <bruno@clisp.org>
86385
86386                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86387                 function declarations.
86388                 * unsetenv.c (unsetenv): Likewise.
86389
86390         2002-03-04  Bruno Haible  <bruno@clisp.org>
86391
86392                 Portability to AIX 4.3.3.
86393                 * unsetenv.c: New file, extracted from setenv.c.
86394                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86395
86396         2001-12-20  Bruno Haible  <bruno@clisp.org>
86397
86398                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86399                 use malloc instead. For SunOS 4.
86400
86401         2001-12-11  Bruno Haible  <bruno@clisp.org>
86402
86403                 * setenv.c: Declare alloca.
86404                 (compar_fn_t): New typedef.
86405                 (KNOWN_VALUE, STORE_VALUE): Use it.
86406
86407         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86408         setenv.h.
86409
86410 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86411
86412         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86413         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86414         Choose values that are less likely to collide with system fnmatch
86415         options.
86416         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86417         defined (e.g., a pure POSIX system).
86418         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86419         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86420
86421 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86422
86423         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86424         a pain in practice to deal with generated m4 files.  This change
86425         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86426
86427         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86428         and jm-glibc-io.m4, as they are no longer a special case.
86429         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86430         kludge and the auto-generation stuff.  Check only whether the
86431         functions are declared, not whether they exist, since older hosts
86432         that don't declare the functions can't use the optimization anyway.
86433
86434 2002-12-06  Jim Meyering  <jim@meyering.net>
86435
86436         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86437
86438         Merge in changes from libc's misc/error.c, in preparation
86439         for the merge of gnulib's changes back into libc.
86440
86441         * lib/error.c (_): Define only if not already defined.
86442         Move definition to follow all #include directives.
86443         Include unlocked-io.h only if !_LIBC.
86444         [_LIBC]: Include <libio/libioP.h>.
86445         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86446         (fflush): Tweak definition to use INTUSE.
86447         (putc): Define.
86448
86449 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86450
86451         * lib/alloca.c [defined emacs]: Include "lisp.h".
86452         (xalloc_die) [defined emacs]: New macro.
86453         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86454         [! defined emacs]: Include <xalloc.h>.
86455         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86456         (pointer): Typedef to POINTER_TYPE *.
86457         (malloc): Remove decl; we now always use xmalloc.
86458         (alloca): Use old-style definition, since Emacs needs this.
86459         Check for arithmetic overflow when computing combined size.
86460
86461 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86462
86463         Do not generate unlocked-io.h automatically, since it's easier to
86464         maintain it by hand.
86465
86466         * lib/unlocked-io.h: New file, from GNU diffutils,
86467         but with proper copyright notice and attribution.
86468         * lib/gen-uio: Remove.
86469         * lib/Makefile.am: Add copyright notice.
86470         (libfetish_a_SOURCES): Add unlocked-io.h.
86471         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86472         (DISTCLEANFILES, io_functions): Remove macros.
86473         (EXTRA_DIST): Remove gen_uio.
86474         (unlocked-io.h): Remove rule.
86475
86476 2002-12-04  Jim Meyering  <jim@meyering.net>
86477
86478         Reflect the fact that stat.c and lstat.c are no longer generated.
86479         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86480         (DISTCLEANFILES): Likewise.
86481         (EXTRA_DIST): Likewise.
86482         (all_local): Don't depend on stat.c or lstat.c.
86483         (stat.c, lstat.c): Remove rules.
86484         (EXTRA_DIST): Remove xstat.in.
86485
86486         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86487         * lib/stat.c: New file.  Contents mostly from xstat.in.
86488         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86489         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86490
86491         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86492         too.
86493         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86494
86495 2002-12-03  Jim Meyering  <jim@meyering.net>
86496
86497         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86498         but not semantics, to minimize the differences between these two files.
86499         (safe_read): Change comment to mention SAFE_READ_ERROR.
86500
86501         * lib/safe-read.c (IS_EINTR): Define.
86502         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86503
86504 2002-12-02  Jim Meyering  <jim@meyering.net>
86505
86506         * lib/safe-read.c (EINTR): Define.
86507         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86508         (INT_MAX): Provide fallback.
86509         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86510
86511         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86512
86513 2002-12-02  Bruno Haible  <bruno@clisp.org>
86514
86515         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86516         Define, taken from safe-read.c.
86517         (INT_MAX): Provide fallback.
86518         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86519         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86520
86521         * lib/safe-read.c (EINTR): Remove definition.
86522         (safe_read): Don't use EINTR if it is absent.
86523
86524 2002-12-01  Jim Meyering  <jim@meyering.net>
86525
86526         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86527         zero.
86528         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86529
86530 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86531
86532         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86533         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86534         with `if (! (value < limit)) abort ();', for readability.
86535
86536 2002-11-26  Karl Berry  <karl@gnu.org>
86537
86538         * lib/strdup.c: copy from libc again, with jim's ok.
86539         * lib/.cppi-disable: re-add strdup.c
86540
86541 2002-11-25  Karl Berry  <karl@gnu.org>
86542
86543         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86544         instead of "strtol.c".
86545
86546 2002-11-25  Karl Berry  <karl@gnu.org>
86547
86548         * config/install-sh: update from automake for variable quoting, $0 in
86549         error msgs, etc.
86550
86551         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86552         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86553         entry.
86554
86555 2002-11-25  Jim Meyering  <jim@meyering.net>
86556
86557         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86558
86559 2002-11-24  Karl Berry  <karl@gnu.org>
86560
86561         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86562         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86563
86564 2002-11-24  Jim Meyering  <jim@meyering.net>
86565
86566         Update from coreutils:
86567
86568         * lib/mktime.c: Merge in changes from libc.
86569
86570         Avoid a link-time failure on some Linux systems.
86571         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86572         (otherwise).
86573         (__mon_yday): Declare with the STATIC attribute.
86574         (__mktime_internal): Likewise.
86575         Based on a report from Greg Schafer.
86576
86577 2002-11-23  Jim Meyering  <jim@meyering.net>
86578
86579         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86580         Use `unsigned', not `int', as type of index.
86581
86582         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86583
86584         * lib/fsusage.c: Remove unneeded parentheses around operands of
86585         `defined'.
86586
86587 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86588
86589         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86590         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86591         so that we can be included first.
86592         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86593         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86594         No need to include stddef.h or sys/types.h any more.
86595         Surround local include files with "", not "<>".
86596         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86597         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86598         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86599         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86600         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86601         (ISPRINT): Remove; no longer needed now that we assume C89.
86602
86603         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86604         Preserve errno.
86605
86606         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86607         quotearg_char): Use SIZE_MAX rather than
86608         (size_t) -1 when we are talking about "infinity".
86609
86610         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86611
86612 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86613
86614         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86615         hint that one should use `if (! x) abort ();' rather than `assert
86616         (x);', and anyway it's one less thing to worry about configuring.
86617         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86618         hash_rehash, hash_insert): Use abort rather than assert.
86619
86620 2002-11-22  Bruno Haible  <bruno@clisp.org>
86621
86622         * lib/safe-read.h: Assume C89. Add comments.
86623         (safe_read): Change return type to size_t.
86624         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86625         byte counts > SSIZE_MAX correctly.
86626         * lib/safe-write.h: New file.
86627         * lib/safe-write.c: New file.
86628         * lib/full-read.h: New file.
86629         * lib/full-read.c: New file.
86630         * lib/full-write.h: Assume C89. Add comments.
86631         * lib/full-write.c: Include safe-write.h.
86632         (full_write): Rewritten to use safe_write.
86633         Suggested by Jim Meyering and Paul Eggert.
86634
86635 2002-11-21  Jim Meyering  <jim@meyering.net>
86636
86637         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86638
86639         Merge in changes from the coreutils.
86640
86641         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86642         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86643         <stdint.h>.
86644         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86645         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86646         int.  Work more efficiently if X is the same width as uintmax_t.
86647         Do not compare X to -1, to avoid bogus compiler warning.
86648         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86649         Don't assume that f_frsize and f_bsize are the same type.
86650
86651         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86652         warning on FreeBSD.
86653
86654         * lib/makepath.c (make_path): Restore umask *before* creating the final
86655         component.
86656         (make_path): Minor reformatting.
86657
86658         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86659         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86660         HAVE_MALLOC/HAVE_REALLOC.
86661
86662         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86663         dummy ones.  At least on GNU/Linux systems, `auto' means something
86664         else.
86665         From Michael Stone.
86666
86667 2002-11-21  Bruno Haible  <bruno@clisp.org>
86668
86669         Remove case insensitive option matching.
86670         * lib/argmatch.h (argcasematch): Remove declaration.
86671         (ARGCASEMATCH): Remove macro.
86672         (__xargmatch_internal): Remove case_sensitive argument.
86673         (XARGMATCH): Update.
86674         (XARGCASEMATCH): Remove macro.
86675         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86676         case_sensitive argument.
86677         (argcasematch): Remove function.
86678         (__xargmatch_internal): Remove case_sensitive argument.
86679         (main): Use XARGMATCH instead of XARGCASEMATCH.
86680
86681         * lib/xmalloc.c: Change compile-time error message. Add comment about
86682         required autoconf version.
86683
86684 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86685
86686         Merge argmatch cleanups from Bison.  Assume C89.
86687
86688         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86689         Include stdlib.h, for EXIT_FAILURE.
86690         Always include <string.h>, since we assume C89.
86691         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86692         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86693         Include <stddef.h> instead, since it's all we need for size_t.
86694         (PARAMS): Remove.  All uses removed.
86695         (ARRAY_CARDINALITY): Do not bother to #undef.
86696         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86697         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86698         Remove unnecessary parentheses.
86699         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86700         Insert necessary parentheses.
86701         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86702         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86703
86704 2002-11-19  Bruno Haible  <bruno@clisp.org>
86705
86706         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86707         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86708
86709         * lib/mbswidth.h (PARAMS): Remove macro.
86710         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86711         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86712
86713         * lib/gcd.h (PARAMS): Remove macro.
86714         (gcd): Use ANSI C function declarations.
86715         * lib/gcd.c (gcd): Likewise.
86716
86717 2002-11-15  Bruno Haible  <bruno@clisp.org>
86718
86719         * lib/strcspn.c: Include <stddef.h>.
86720         (strcspn): Use ANSI C function declaration. Change return type to
86721         size_t. Use NULL.
86722         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86723         (strpbrk): Use NULL.
86724         * lib/strpbrk.h (PARAMS): Remove macro.
86725         (strpbrk): Use ANSI C function declaration.
86726         * lib/strstr.c: Don't include <sys/types.h>.
86727         * lib/strstr.h (PARAMS): Remove macro.
86728         (strstr): Use ANSI C function declarations.
86729
86730 2002-11-14  Karl Berry  <karl@gnu.org>
86731
86732         * config/mkinstalldirs: `do' on separate line, instead of
86733         `for var; do'.
86734
86735 2002-11-06  Bruno Haible  <bruno@clisp.org>
86736
86737         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86738         * lib/gcd.c (gcd): Likewise.
86739
86740 2002-11-05  Bruno Haible  <bruno@clisp.org>
86741
86742         * lib/gcd.h: New file, from gettext-0.11.5.
86743         * lib/gcd.c: New file, from gettext-0.11.5.
86744
86745 2002-11-05  Bruno Haible  <bruno@clisp.org>
86746
86747         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86748         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86749         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86750         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86751
86752         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86753         <libintl.h>.
86754         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86755         <libintl.h>.
86756
86757         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86758         * lib/human.c: Include gettext.h instead of <libintl.h>.
86759         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86760         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86761         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86762         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86763         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86764         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86765         (textdomain): Remove definition.
86766         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86767
86768         * lib/long-options.c: Remove include of <libintl.h> and definition of
86769         _.
86770         * lib/same.c: Remove include of <libintl.h> and definition of _.
86771
86772 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86773
86774         * lib/config.charset: A few additions for Solaris.
86775
86776 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86777
86778         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86779         * lib/localcharset.c (locale_charset): Declare as extern "C".
86780
86781 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86782
86783         * lib/config.charset: msdos in uk_UA uses CP1125.
86784
86785 2002-11-04  Bruno Haible  <bruno@clisp.org>
86786
86787         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86788         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86789         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86790         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86791         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86792
86793 2002-11-04  Bruno Haible  <bruno@clisp.org>
86794
86795         * lib/localcharset.c (locale_charset): Don't return an empty string.
86796
86797 2002-11-04  Bruno Haible  <bruno@clisp.org>
86798
86799         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86800         aliases.
86801
86802 2002-11-04  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/config.charset: Update for newest glibc. Add canonical names
86805         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86806
86807 2002-11-04  Bruno Haible  <bruno@clisp.org>
86808
86809         * lib/config.charset: Add support for NetBSD.
86810
86811 2002-11-04  Bruno Haible  <bruno@clisp.org>
86812
86813         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86814
86815 2002-11-01  Bruno Haible  <bruno@clisp.org>
86816
86817         * configure.in: Add AC_CONFIG_AUX_DIR call.
86818         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86819         test/Makefile.
86820         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86821
86822 2002-09-28  Karl Berry  <karl@gnu.org>
86823
86824         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86825         installed automake until the next release, since changes have been
86826         made.
86827
86828 2002-09-25  Karl Berry  <karl@gnu.org>
86829
86830         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86831         * lib/getopt*: copy from libc/posix.
86832         * lib/gettext.h: copy from gettext.
86833         * lib/.cppi-disable: add strdup.c, gettext.h.
86834
86835 2002-09-25  Karl Berry  <karl@gnu.org>
86836
86837         * config/srclist.txt: enable gettext.h check.
86838         * config/config.{guess,sub}: update from prep.
86839         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86840                 from automake 1.6.3.
86841         See srclist*.
86842
86843 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86844
86845         * regex.c (PATFETCH): Remove the translating fetch.
86846         (PATFETCH_RAW): Rename to PATFETCH.
86847         (set_image_of_range): New fun.
86848         (SET_RANGE_TABLE_WORK_AREA): Use it.
86849         (regex_compile): Don't translate the pattern chars so eagerly.
86850         Only do it when inserting an `exactn' bytecode or when handling
86851         a char-range.
86852         (mutually_exclusive_p): Avoid empty statement.
86853
86854 2002-07-06  Jim Meyering  <meyering@lucent.com>
86855
86856         * m4/README: Don't mention Makefile.am.in.
86857         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86858
86859 2002-07-01  Jim Meyering  <meyering@lucent.com>
86860
86861         * lib/c-stack.c: Include sys/time.h.
86862         From Volker Borchert.
86863
86864 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86865
86866         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86867
86868 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86869
86870         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86871         New macro.  Use it uniformly instead of
86872         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86873         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86874         reported by Vin Shelton.
86875
86876 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86877
86878         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86879         Do not assume SA_SIGINFO behavior.
86880         Bug reported by Jim Meyering on NetBSD 1.5.2.
86881
86882 2002-06-22  Jim Meyering  <meyering@lucent.com>
86883
86884         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86885         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86886
86887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86888         now that configure.ac uses AC_GNU_SOURCE.
86889         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86890         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86891
86892         Update to latest tools.  Suggestions from Paul Eggert.
86893         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86894         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86895         * m4/fnmatch.m4: Likewise.
86896         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86897         to AC_HEADER_STDBOOL
86898
86899 2002-06-22  Jim Meyering  <meyering@lucent.com>
86900
86901         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86902         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86903
86904 2002-06-22  Jim Meyering  <meyering@lucent.com>
86905
86906         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86907
86908         * lib/exitfail.c, exitfail.h: Likewise.
86909         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86910
86911         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86912         of fnmatch.h.
86913         (EXTRA_DIST): Add fnmatch_loop.c.
86914         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86915
86916         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86917         * lib/fnmatch.c: Update from diffutils-2.8.2.
86918         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86919         * lib/fnmatch.h: Remove file.
86920
86921 2002-06-21  Jim Meyering  <meyering@lucent.com>
86922
86923         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86924         * m4/mbrtowc.m4: Likewise.
86925
86926         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86927         * m4/mbswidth.m4: Reflect name change:
86928         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86929         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86930
86931         * m4/lib-link.m4: Update from gettext-0.11.2.
86932         * m4/gettext.m4: Likewise.
86933
86934         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86935         From Alfred M. Szmidt.
86936
86937 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86938
86939         * lib/file-type.h: Report an error if neither S_ISREG nor
86940         S_IFREG is defined, instead of using a test specific to glibc
86941         2.2.  This should be safe, since POSIX requires S_ISREG and
86942         Unix Version 7 had S_IFREG.  We don't need to check for
86943         <sys/types.h> since we don't use any symbols that it defines.
86944
86945 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86946
86947         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86948         $@-t, so that each temporary file name is unique and valid in the first
86949         8 characters, for operation under DOS.
86950
86951 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86952
86953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86954
86955 2002-06-15  Jim Meyering  <meyering@lucent.com>
86956
86957         Work even with DJGPP 2.03, which lacks support for symlinks.
86958         From Richard Dawe.
86959         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86960         is defined.
86961         * lib/lchown.c (S_ISLNK): Likewise.
86962
86963 2002-06-15  Jim Meyering  <meyering@lucent.com>
86964
86965         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86966         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86967         have been included before this file.
86968
86969 2002-06-14  Jim Meyering  <meyering@lucent.com>
86970
86971         * lib/file-type.h: Use the version from diffutils-2.8.2.
86972         * lib/file-type.c: Likewise.
86973
86974 2002-06-07  Jim Meyering  <meyering@lucent.com>
86975
86976         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86977         They're needed at least for NetBSD 1.5.2.
86978         ($statxfs_includes): Include those same headers.
86979         ($statxfs_includes): Include sys/vfs.h if available.
86980         ($statxfs_includes): Likewise for sys/statvfs.h.
86981         Check for the following members in both structs statfs and statvfs:
86982         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86983
86984 2002-06-01  Jim Meyering  <meyering@lucent.com>
86985
86986         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86987         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86988
86989 2002-05-28  Jim Meyering  <meyering@lucent.com>
86990
86991         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86992         Reported by Volker Borchert.
86993
86994 2002-05-27  Jim Meyering  <meyering@lucent.com>
86995
86996         Fix a problem seen only on nonconforming systems whereby ls.c's
86997         use of localtime, and then of gettimeofday would cause trouble:
86998         the localtime call used to initialize rpl_gettimeofday's save
86999         mechanism would clobber ls's current local time information so
87000         that in any long listing the first file would always be listed
87001         with date 1970-01-01.  Analysis by Volker Borchert.
87002
87003         * lib/gettimeofday.c (localtime): Undefine.
87004         (rpl_localtime): New function.
87005
87006 2002-05-27  Jim Meyering  <meyering@lucent.com>
87007
87008         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87009         localtime.
87010
87011         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87012         use the replacement function; it wouldn't resolve at link time.
87013         Reported by Volker Borchert.
87014
87015 2002-05-22  Jim Meyering  <meyering@lucent.com>
87016
87017         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87018         file-type.h.
87019         * lib/file-type.h: New file.
87020         * lib/file-type.c (file_type): New file/function.  Extracted from
87021         diffutils.
87022
87023 2002-04-30  Jim Meyering  <meyering@lucent.com>
87024
87025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87026
87027 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87028
87029         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87030
87031 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87032
87033         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87034         Do not check for alloca.h (no longer used) or stdbool.h (was never
87035         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87036
87037 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87038
87039         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87040
87041 2002-04-29  Jim Meyering  <meyering@lucent.com>
87042
87043         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87044         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87045         Use AC_FUNC_STRNLEN here instead.
87046
87047         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87048         With autoconf-2.53a, it's part of AC_PROG_CC.
87049
87050 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87051
87052         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87053         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87054
87055 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87056
87057         * lib/sig2str.h, lib/sig2str.c: New files.
87058         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87059
87060 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87061
87062         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87063         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87064         of 127, since 64 is the largest conceivable number for ancient
87065         nonstandard hosts.
87066         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87067
87068 2002-04-28  Jim Meyering  <meyering@lucent.com>
87069
87070         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87071
87072 2002-04-24  Jim Meyering  <meyering@lucent.com>
87073
87074         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87075         (jm_PREREQ): Use it.
87076
87077         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87078         mach/mach.h fcntl.h.
87079         Check for this function: setlocale.
87080
87081 2002-04-24  Jim Meyering  <meyering@lucent.com>
87082
87083         * lib/gettext.h: New file, from Gettext.
87084         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87085         (libfetish_a_SOURCES): Add gettext.h.
87086
87087 2002-04-16  Jim Meyering  <meyering@lucent.com>
87088
87089         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87090         ut_pid, ut_id, ut_exit.
87091
87092 2002-04-16  Jim Meyering  <meyering@lucent.com>
87093
87094         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87095         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87096         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87097
87098 2002-04-12  Jim Meyering  <meyering@lucent.com>
87099
87100         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87101         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87102         existence of the getmntinfo function.  Needed for Darwin 5.3.
87103
87104         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87105         This is necessary at least on Darwin 5.3.
87106
87107         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87108         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87109         strnlen.o in the library, and that makes some versions of ranlib
87110         object.
87111
87112 2002-04-12  Jim Meyering  <meyering@lucent.com>
87113
87114         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87115
87116 2002-04-09  Jim Meyering  <meyering@lucent.com>
87117
87118         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87119         to be more precise.  Rather than saying we're checking whether the
87120         function `works', say what we're testing.
87121         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87122         Reported by Bruno Haible.
87123
87124 2002-03-10  Jim Meyering  <meyering@lucent.com>
87125
87126         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87127         Suggestion from Santiago Vila.
87128
87129 2002-03-08  Jim Meyering  <meyering@lucent.com>
87130
87131         * lib/rename.c: Mention that this wrapper is needed also on
87132         mips-dec-ultrix4.4 systems.
87133
87134 2002-03-02  Jim Meyering  <meyering@lucent.com>
87135
87136         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87137         not HAVE_CLOCK_SETTIME.
87138
87139 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87140
87141         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87142         Check for clock_settime.
87143
87144 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87145
87146         * lib/nanosleep.h: Rename to....
87147         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87148
87149         * lib/gettime.c: New file.
87150         * lib/settime.c: New file.
87151         * lib/stime.c: Remove.
87152
87153         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87154         timespec.h.  Remove nanosleep.h.
87155
87156 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87157
87158         * m4/acl.m4: New file.
87159         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87160         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87161
87162 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87163
87164         * lib/acl.c, lib/acl.h: New files.
87165         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87166
87167 2002-02-24  Jim Meyering  <meyering@lucent.com>
87168
87169         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87170         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87171         cause trouble.  Reported by Nelson Beebe.
87172
87173 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87174
87175         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87176         compilers that don't know that xalloc_die never returns.
87177
87178 2002-02-20  Jim Meyering  <meyering@lucent.com>
87179
87180         * lib/getdate.c: Regenerate using bison-1.33.
87181
87182 2002-02-17  Jim Meyering  <meyering@lucent.com>
87183
87184         * config/config.guess (main): Don't use `head -1'; it's no longer
87185         portable. Use `sed 1q' instead.
87186
87187 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87188
87189         * m4/codeset.m4: Upgrade to gettext-0.11.
87190         * m4/gettext.m4: Upgrade to gettext-0.11.
87191         * m4/glibc21.m4: Upgrade to gettext-0.11.
87192         * m4/iconv.m4: Upgrade to gettext-0.11.
87193         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87194         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87195         * m4/lib-ld.m4: New file, from gettext-0.11.
87196         * m4/lib-link.m4: New file, from gettext-0.11.
87197         * m4/lib-prefix.m4: New file, from gettext-0.11.
87198         * m4/progtest.m4: Upgrade to gettext-0.11.
87199
87200 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87201
87202         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87203         (jm_PREREQ): Use it.
87204
87205 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87206
87207         * lib/posixver.c, lib/posixver.h: New files.
87208         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87209
87210 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87211             Bruno Haible  <bruno@clisp.org>
87212
87213         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87214         (fwrite_success_callback): New declaration.
87215         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87216         print_unicode_char. Call failure callback instead of error.
87217         (fwrite_success_callback): New function.
87218         (exit_failure_callback): New function.
87219         (fallback_failure_callback): New function.
87220         (print_unicode_char): Call unicode_to_mb.
87221
87222 2002-01-26  Jim Meyering  <meyering@lucent.com>
87223
87224         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87225         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87226
87227 2002-01-26  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87230
87231 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87232
87233         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87234
87235 2002-01-22  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87238         Otherwise, some versions of automake would omit the rule that makes
87239         Makefile from Makefile.in.
87240
87241 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87242
87243         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87244         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87245         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87246         (memcoll): Set errno to zero if there is no error.
87247
87248         * lib/quotearg.c (quotearg_buffer_restyled):
87249         Fix bug with quoting buffers containing NUL when backslashing escapes.
87250         This bug was exposed by the other changes in this patch.
87251         (quotearg_n_options): New arg ARGSIZE.
87252         All callers changed.
87253         (quoting_options_from_style): New function.
87254         (quotearg_n_style): Use it.
87255         (quotearg_n_style_mem): New function.
87256
87257         * lib/quotearg.h (quotearg_n_style_mem): New function.
87258
87259 2002-01-19  Jim Meyering  <meyering@lucent.com>
87260
87261         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87262         Remove useless quotes: DF_PROG="df".
87263         * m4/strnlen.m4: New file.
87264
87265 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87266
87267         * lib/backupfile.c (ISDIGIT): Comment fix.
87268         * lib/getdate.y (ISDIGIT): Likewise.
87269         * lib/posixtm.c (ISDIGIT, year): Likewise.
87270         * lib/strverscmp.c (ISDIGIT): Likewise.
87271         * lib/userspec.c (ISDIGIT): Likewise.
87272
87273 2002-01-16  Jim Meyering  <meyering@lucent.com>
87274
87275         * lib/getdate.y: Add three semicolons, each just before a closing
87276         brace. Bison (as of version 1.31) no longer papers over that mistake.
87277
87278 2002-01-05  Jim Meyering  <meyering@lucent.com>
87279
87280         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87281
87282 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87283
87284         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87285         not silently exit merely because the output buffer happens to
87286         have nothing pending.
87287
87288 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87289
87290         See the big note in ../ChangeLog.
87291         * lib/human.c (suffixes): Prefer K to k for 1024.
87292         (generate_suffix_backwards): New function.
87293         (human_readable_inexact): Use it.
87294         * lib/xstrtol.c (__xstrtol): If there is no number but there
87295         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87296         Accept 'K' as well as 'k'.
87297
87298 2001-12-15  Jim Meyering  <meyering@lucent.com>
87299
87300         * lib/regex.h (__restrict_arr): Update from libc.
87301
87302         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87303         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87304         (STREQ): Define.
87305
87306 2001-12-14  Jim Meyering  <meyering@lucent.com>
87307
87308         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87309         Suggestion from Bruno Haible.
87310
87311 2001-12-10  Jim Meyering  <meyering@lucent.com>
87312
87313         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87314         xrealloc, Instead, include "xalloc.h".
87315         (initbuffer): Don't cast xmalloc return value to char*.
87316         (readline): Reword comment.
87317         Don't cast xrealloc return value to char*
87318         Return NULL, not 0.
87319
87320 2001-12-09  Jim Meyering  <meyering@lucent.com>
87321
87322         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87323         about `signed and unsigned type in conditional expression'.
87324         * lib/posixtm.c (posix_time_parse): Likewise.
87325
87326         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87327
87328         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87329         to avoid a pedantic warning.
87330
87331         * lib/getstr.c: Don't include assert.h.
87332         (getstr): Remove warning-evoking assertions.
87333         Return -1 if offset parameter is out of bounds.
87334         Change the type of a local from int to size_t.
87335
87336         * lib/strftime.c (my_strftime_localtime_r): Include this function
87337         definition in the `#if ! HAVE_TM_GMTOFF' block.
87338
87339         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87340         Include xalloc.h instead.
87341
87342 2001-12-02  Jim Meyering  <meyering@lucent.com>
87343
87344         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87345         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87346         included.
87347
87348         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87349         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87350
87351 2001-11-30  Akim Demaille  <akim@epita.fr>
87352
87353         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87354         before being defined.
87355
87356 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87357
87358         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87359         First arg is int, not unsigned.
87360         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87361         (SIZE_MAX, UINT_MAX): New macros.
87362         (quotearg_n_options): Abort if N is negative.
87363         Avoid overflow check on hosts where size_t is 64 bits and int
87364         is 32 bits, as overflow is impossible there.
87365         Fix off-by-one typo that caused unnecessary reallocation.
87366
87367 2001-11-27  Jim Meyering  <meyering@lucent.com>
87368
87369         * lib/tempname.c: Merge with version from libc.
87370         * lib/regex.c: Likewise.
87371
87372         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87373         systems for which STDC_HEADERS is 0, it was not included, resulting in
87374         a warning about an integer-to-pointer conversion problem with getenv.
87375         Reported by Volker Borchert.
87376
87377 2001-11-26  Jim Meyering  <meyering@lucent.com>
87378
87379         * lib/gtod.h: Remove file.
87380         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87381         * lib/gettimeofday.c: Don't include gtod.h.
87382         (GTOD_init): Remove function.
87383         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87384         Suggestion from Volker Borchert.
87385
87386 2001-11-23  Jim Meyering  <meyering@lucent.com>
87387
87388         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87389         it.
87390         * lib/hash.c (struct hash_table): Define it here instead.
87391
87392 2001-11-22  Jim Meyering  <meyering@lucent.com>
87393
87394         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87395
87396 2001-11-20  Jim Meyering  <meyering@lucent.com>
87397
87398         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87399         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87400
87401 2001-11-19  Jim Meyering  <meyering@lucent.com>
87402
87403         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87404         directory.  Use "conftestXXXXXX" as the template.
87405         Suggestion from Paul Eggert.
87406
87407         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87408         immediately, so the test doesn't mistakenly hit the max-open-files
87409         limit.
87410
87411 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87412
87413         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87414         (TEMPORARIES): New macro.
87415         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87416         removes an artificial limitation (e.g. HP-UX 10.20, where
87417         TMP_MAX is 17576).
87418
87419 2001-11-18  Jim Meyering  <meyering@lucent.com>
87420
87421         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87422
87423 2001-11-18  Jim Meyering  <meyering@lucent.com>
87424
87425         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87426         on SunOS 4.
87427
87428         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87429         files will be created before anything else.
87430
87431 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87432
87433         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87434         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87435
87436 2001-11-17  Jim Meyering  <meyering@lucent.com>
87437
87438         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87439         Prompted by a report from Bob Proulx.
87440
87441         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87442         Instead, require UTILS_FUNC_MKSTEMP.
87443
87444 2001-11-17  Jim Meyering  <meyering@lucent.com>
87445
87446         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87447         Now, that's done as part of AC_FUNC_STRTOD.
87448
87449 2001-11-17  Jim Meyering  <meyering@lucent.com>
87450
87451         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87452         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87453         rather than group writable.  Patch by Juan F. Codagnone.
87454
87455         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87456         xrealloc, Instead, include "xalloc.h".
87457
87458         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87459         Remove explicit declarations of xmalloc, xrealloc,
87460         and xstrdup.  Instead, include "xalloc.h".
87461
87462         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87463         unlocked-io.h.
87464         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87465         Likewise.
87466         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87467
87468         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87469         Reported by Padraig Brady.
87470
87471         * lib/mkstemp.c: #undef mkstemp.
87472         Include config.h.
87473         (rpl_mkstemp): Rename from mkstemp.
87474         Protoize.
87475
87476 2001-11-16  Jim Meyering  <meyering@lucent.com>
87477
87478         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87479         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87480         determine the amount of total physical memory, use pstat_getstatic.
87481         HPUX-11 doesn't define _SC_PHYS_PAGES.
87482         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87483         If sysconf couldn't be used to determine the amount of available
87484         physical memory, use both pstat_getstatic and pstat_getdynamic.
87485         Based on a patch from Bob Proulx.
87486
87487 2001-11-10  Jim Meyering  <meyering@lucent.com>
87488
87489         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87490         (jm_PREREQ): Use it.
87491
87492 2001-11-09  Jim Meyering  <meyering@lucent.com>
87493
87494         * m4/jm-macros.m4: Require autoconf-2.52f.
87495         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87496         Use these AC_-prefixed names, not the AM_-prefixed ones.
87497
87498         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87499
87500 2001-11-05  Jim Meyering  <meyering@lucent.com>
87501
87502         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87503
87504 2001-11-04  Jim Meyering  <meyering@lucent.com>
87505
87506         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87507         $DEFS.
87508
87509 2001-11-03  Jim Meyering  <meyering@lucent.com>
87510
87511         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87512         of AC_DEFUN.
87513
87514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87515         know the name of the variable in the macro definition.
87516
87517 2001-11-03  Jim Meyering  <meyering@lucent.com>
87518
87519         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87520         in argmatch_to_argument call.
87521
87522         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87523         argument.
87524
87525         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87526         e.g., a fault due to an attempt to free a NULL pointer.
87527
87528 2001-11-01  Jim Meyering  <meyering@lucent.com>
87529
87530         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87531         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87532
87533 2001-11-01  Jim Meyering  <meyering@lucent.com>
87534
87535         * lib/dirfd.c, lib/dirfd.h: New files.
87536         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87537
87538         * lib/hash.c (hash_print) [TESTING]: Clean up.
87539
87540 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87541
87542         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87543         to avoid a warning if -Wall.
87544
87545 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87546
87547         * README: New file
87548         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87549         (per RMS's instructions, this is now the canonical source)
87550         * lgpl/, gpl/: New directories.
87551
87552 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87553
87554         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87555
87556 2001-10-21  Jim Meyering  <meyering@lucent.com>
87557
87558         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87559         this code would end up calling gettext even in packages built
87560         with --disable-nls.
87561         * lib/getopt.c (_): Likewise.
87562         * lib/regex.c (_): Likewise.
87563
87564 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87565
87566         * m4/error.m4 (jm_PREREQ_ERROR):
87567         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87568         AC_FUNC_STRERROR_R does that.
87569         Check for strerror declaration.
87570
87571         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87572         are supposed to have them these days.
87573         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87574         Merge changes from latest Autoconf CVS.
87575         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87576         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87577         POSIX decided to standardize on the int flavor of strerror_r.
87578
87579 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87580
87581         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87582         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87583         Use strerror_r that is only a macro, even if it is not a function.
87584         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87585         (private_strerror): Use prototypes, not old-style function definition.
87586         (print_errno_message): New function.
87587         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87588         char*-flavored one.
87589         (error_tail, error, error_at_line): Use it.
87590
87591 2001-10-11  Jim Meyering  <meyering@lucent.com>
87592
87593         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87594         and quote_n (1, ... to avoid clobbering a buffer.
87595
87596 2001-10-05  Jim Meyering  <meyering@lucent.com>
87597
87598         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87599         hash-pjw.h.
87600         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87601         * lib/hash-pjw.h: New file.
87602
87603 2001-09-30  Jim Meyering  <meyering@lucent.com>
87604
87605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87606         `struct fsstat' has the `f_fstypename' member.
87607         Use that to define FS_TYPE, which is now used to make
87608         the getfsstat link test tighter.
87609
87610 2001-09-30  Jim Meyering  <meyering@lucent.com>
87611
87612         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87613         Include <sys/ucred.h>, for Apple Darwin.
87614         Include sys/mount.h and sys/fs_types.h only if available.
87615         (FS_TYPE): Define.
87616         (read_filesystem_list): Use FS_TYPE.
87617
87618 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87619
87620         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87621         a boolean context.
87622
87623 2001-09-29  Jim Meyering  <meyering@lucent.com>
87624
87625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87626         [one-argument getmntent function]): Include stdio.h before mntent.h.
87627         SunOS 4.1.x needs it for the declaration of `FILE'.
87628         Patch by Volker Borchert.
87629
87630         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87631         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87632         sys/fs_types.h, and make the link-test for getfsstat guard #include
87633         directives with appropriate #if HAVE_*_H tests so that we can
87634         detect getfsstat on Apple Darwin1.3.7 systems.
87635         Reported by Nelson Beebe.
87636         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87637
87638 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87639
87640         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87641         #defines strtoimax.  Also treat the other strto* functions
87642         like strtoimax.
87643
87644         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87645         Check for strtoul and strtoumax,
87646         as those declarations are made even in the signed case.
87647         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87648         Likewise, for strtol and strtoimax.
87649
87650 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87651
87652         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87653         #defines strtoimax.  Also treat the other strto* functions
87654         like strtoimax.
87655
87656         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87657         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87658         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87659
87660 2001-09-26  Jim Meyering  <meyering@lucent.com>
87661
87662         Most macros in unlocked-io.h had the wrong number of arguments.
87663         * lib/gen-uio: New script.
87664         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87665         * lib/unlocked-io.hin: Remove file.
87666         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87667         rather than trying to embed it here.
87668         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87669         Reported by Padraig Brady.
87670
87671 2001-09-25  Volker Borchert  <bt@teknon.de>
87672
87673         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87674         `result'.
87675
87676 2001-09-24  Jim Meyering  <meyering@lucent.com>
87677
87678         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87679
87680 2001-09-23  Jim Meyering  <meyering@lucent.com>
87681
87682         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87683         instead of the mere test for existence of mntent.h.  The latter
87684         would get a false-positive on AIX 3.4 systems.
87685         In the outer getmntent if-block, don't die if neither of the getmntent
87686         tests succeeds.  Instead, just fall through and continue with the
87687         remaining tests.
87688
87689 2001-09-23  Jim Meyering  <meyering@lucent.com>
87690
87691         * lib/mountlist.c: Remove useless parentheses in #if directives.
87692         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87693         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87694
87695 2001-09-22  Jim Meyering  <meyering@lucent.com>
87696
87697         * m4/gettext.m4: New file.  From gettext.
87698         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87699         * m4/progtest.m4: Likewise
87700         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87701         * m4/glibc21.m4: Likewise.
87702
87703         * m4/libintl.m4: Remove.  No longer used.
87704
87705 2001-09-22  Jim Meyering  <meyering@lucent.com>
87706
87707         * lib/localcharset.c: Update from latest gettext.
87708         * lib/config.charset: Likewise.
87709
87710 2001-09-20  Jim Meyering  <meyering@lucent.com>
87711
87712         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87713         strtoimax.
87714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87715         strtoumax.
87716
87717 2001-09-20  Jim Meyering  <meyering@lucent.com>
87718
87719         * lib/xstrtol.c (strtoimax): Guard declaration with
87720         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87721         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87722         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87723         (strtoumax): Likewise, for completeness (it wasn't necessary).
87724
87725 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87726
87727         * lib/strtoimax.c (HAVE_LONG_LONG):
87728         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87729         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87730         to work around bug in IBM C compiler.
87731
87732 2001-09-17  Jim Meyering  <meyering@lucent.com>
87733
87734         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87735         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87736         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87737         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87738         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87739         whenever the right hand side need not be expanded by the shell.
87740
87741 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87742
87743         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87744         library.  It's not correct, as some older glibcs are buggy.
87745         fnmatch wasn't fixed until glibc 2.2.
87746
87747         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87748         special shell magic here.
87749
87750 2001-09-16  Jim Meyering  <meyering@lucent.com>
87751
87752         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87753         * m4/jm-macros.m4: Require it.
87754
87755 2001-09-16  Jim Meyering  <meyering@lucent.com>
87756
87757         * lib/mkdir.c: New file.
87758
87759 2001-09-15  Jim Meyering  <meyering@lucent.com>
87760
87761         * m4/jm-macros.m4: Check for help2man.
87762
87763 2001-09-11  Jim Meyering  <meyering@lucent.com>
87764
87765         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87766         The body, by Paul Eggert, was moved here from configure.in.
87767         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87768
87769 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87770
87771         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87772         (jm_PREREQ): Use it.
87773
87774 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87775
87776         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87777         Use ssize_t, not int, to store result of readlink.
87778         Check for ssize_t overflow as well as size_t overflow,
87779         as POSIX says the result of readlink is implementation-defined
87780         when ssize_t overflows.
87781         Remove unnecessary cast to char*.
87782         Use free+malloc instead of realloc, as the storage doesn't need
87783         to be preserved and it's clearer and can be more efficient that way.
87784         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87785         * lib/xreadlink.h (xreadlink): Update prototype.
87786
87787 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87788
87789         * lib/xgetcwd.c: Revert some of the previous change; intead,
87790         fix the HAVE_GETCWD_NULL code to behave more like the
87791         !HAVE_GETCWD_NULL code used to.
87792
87793         Include "xalloc.h".
87794         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87795         invoke xalloc_die.
87796
87797 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87798
87799         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87800         sys/param.h, as pathmax.h includes them.
87801
87802 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87803
87804         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87805         (jm_PREREQ_XGETCWD): New macro.
87806
87807         * m4/getcwd.m4: New file.
87808
87809 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87810
87811         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87812         like the HAVE_GETCWD_NULL code.
87813         Include pathmax.h if not HAVE_GETCWD.
87814         Do not include xalloc.h.
87815         (INITIAL_BUFFER_SIZE): New symbol.
87816         Do not use xmalloc / xrealloc, since the caller is responsible for
87817         handling errors.  Preserve errno around `free' during failure.
87818         Do not overrun buffer when using getwd.
87819
87820 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87821
87822         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87823         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87824         getcwd (NULL, 0).
87825
87826 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87827
87828         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87829         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87830         spotted by Jim Meyering.
87831
87832 2001-09-03  Jim Meyering  <meyering@lucent.com>
87833
87834         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87835         failure.
87836
87837 2001-09-02  Jim Meyering  <meyering@lucent.com>
87838
87839         * lib/error.c: Update from GNU libc.
87840
87841 2001-09-01  Jim Meyering  <meyering@lucent.com>
87842
87843         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87844         Used by df.
87845
87846 2001-09-01  Jim Meyering  <meyering@lucent.com>
87847
87848         * lib/xreadlink.c: New file.
87849         * lib/xreadlink.h: New file.
87850         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87851         xreadlink.h.
87852
87853         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87854         doesn't conflict with sparc Solaris 7's definition in
87855         /usr/include/sys/int_types.h.
87856
87857         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87858         files.
87859         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87860         and strncasecmp as r-values.  Unixware didn't have declarations.
87861
87862 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87863
87864         * lib/xstrtol.h: Add copyright notice.
87865         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87866         LONGINT_INVALID_SUFFIX_CHAR.
87867
87868 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87869
87870         * lib/xstrtol.c (strtoimax): New decl.
87871
87872 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/xgetcwd.c: Don't include pathmax.h.
87875         Include stdlib.h and unistd.h if available.
87876         Include xalloc.h.
87877         (xmalloc, xstrdup, free): Remove decls.
87878         (xgetcwd): Don't assume sizes fit in unsigned.
87879         Check for overflow when computing sizes.
87880         Simplify reallocation code.
87881
87882 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87883
87884         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87885         a directory's st_size can have an arbitrary value, so the old
87886         usage could waste an arbitrary amount of memory.  All uses
87887         changed.
87888         * lib/savedir.h: Update prototype.
87889
87890 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87891
87892         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87893
87894         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87895         old strtoimax.c.
87896
87897         Also, make the following further changes to make this file's
87898         configuration more similar to that of strtol.c:
87899         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87900         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87901         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87902         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87903         changed to signed values.
87904
87905         And make the following changes as well:
87906         Fix copyright notice, as 1999 was missing.
87907         (verify): New macro.
87908         (strtoimax): Check sizes at compile-time, not run-time.
87909         Prefer strtol to strtoll if both work.
87910         (main): Remove; it was not that useful and was a pain to maintain.
87911
87912         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87913
87914 2001-08-31  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87917         Use an initial, malloc'd, buffer of length 128 rather than
87918         a statically allocated one of length 1024.
87919
87920 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87921
87922         Simplify code, partly by assuming autoconf 2.52 semantics.
87923
87924         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87925
87926         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87927         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87928         All uses removed.
87929         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87930         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87931         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87932         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87933         jm_AC_HEADER_INTTYPES_H.
87934         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87935
87936         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87937
87938         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87939         Quote first arg of AC_DEFUN.
87940         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87941         since they are needed to parse the include file even if we need
87942         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87943         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87944         but with opposite signedness.
87945
87946 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87947
87948         Merge 'exclude' changes from tar 1.13.22.
87949         This fixes one or two unlikely storage allocation overflow bugs,
87950         but doesn't change user-visible behavior otherwise.
87951
87952 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87953
87954         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87955         (jm_PREREQ_EXCLUDE): New macro.
87956
87957 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87958
87959         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87960         tm to be declared.
87961
87962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87963
87964         * lib/hash.c: Remove '2001' from copyright notice.
87965
87966 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87967
87968         * lib/full-write.h: New file.
87969         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87970         * lib/full-write.c: Correct credits, as cccp.c no longer
87971         exists and anyway it was so heavily changed from the old cccp
87972         code as to be unrecognizable.  Include full-write.h.
87973         (full_write): Return size_t, with short writes meaning failure.
87974         All callers changed.  This fixes a bug with large buffers
87975         on 64-bit hosts.
87976         * lib/utime.c: Include full-write.h.
87977
87978 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87979
87980         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87981         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87982         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87983         Include if available.
87984         (<xalloc.h>): Include
87985         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87986         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87987         collide with FNM macros.
87988         (struct patopts): New struct.
87989         (struct exclude): Use it, as exclude patterns now come with options.
87990         (new_exclude): Support above changes.
87991         (new_exclude, add_exclude_file):
87992         Initial size must now be a power of two to simplify overflow checking.
87993         (free_exclude, fnmatch_no_wildcards): New function.
87994         (excluded_filename): No longer requires options arg, as the options
87995         are determined by add_exclude.  Now returns bool, not int.
87996         (excluded_filename, add_exclude):
87997         Add support for the fancy new exclusion options.
87998         (add_exclude, add_exclude_file): Now takes int options arg.
87999         Check for arithmetic overflow when computing sizes.
88000         (add_exclude_file): xrealloc might modify errno, so don't
88001         realloc until after errno might be used.
88002
88003         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88004         New macros.
88005         (free_exclude): New decl.
88006         (add_exclude, add_exclude_file): Now takes int options arg.
88007         (excluded_filename): No longer requires options arg, as the options
88008         are determined by add_exclude.  Now returns bool, not int.
88009
88010 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88011
88012         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88013
88014 2001-08-27  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88017
88018         * lib/version-etc.c (N_): Remove definition.
88019         Revert most of last change.
88020         Instead, simply don't mark the `Copyright...' string for translation.
88021         Based on advice from Paul Eggert.
88022
88023         * lib/strtoxmax.c: Tweak comment.
88024
88025 2001-08-26  Jim Meyering  <meyering@lucent.com>
88026
88027         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88028
88029         * m4/xstrtoimax.m4: New file.
88030         * m4/xstrtoumax.m4: Add comments explaining why we
88031         AC_REPLACE_FUNCS(strtol).
88032
88033 2001-08-26  Jim Meyering  <meyering@lucent.com>
88034
88035         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88036         of copyright with `%s' so translators don't get an untranslated
88037         message in 2002.
88038         (COPYRIGHT_YEAR): Define.
88039         (version_etc): Use fprintf rather than fputs.
88040         Suggestion from Ulrich Drepper.
88041
88042         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88043
88044         * lib/strtoll.c: New file, from GNU libc.
88045         * lib/xstrtoimax.c: New file.
88046
88047         * lib/xstrtol.h: Add xstrtoimax.
88048         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88049         * lib/strtoimax.c: New file.  Likewise, but first define
88050         STRTOUXMAX_SIGNED.
88051
88052         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88053         ...
88054         * lib/strtoxmax.c: ... then renamed to this.
88055
88056 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88057
88058         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88059         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88060         (jm_AC_TYPE_INTMAX_T): New macro.
88061         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88062
88063         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88064
88065         * m4/longlong.m4: Renamed from ulonglong.m4.
88066         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88067         * m4/uintmax_t.m4: Removed.
88068
88069 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88070
88071         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88072         Port to Solaris 8, where 'sed' requires a space after the 'r'
88073         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88074         Redirect output to $tmp just once.
88075
88076 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88077
88078         * lib/addext.c (<errno.h>): Include.
88079         (errno): Declare if not defined.
88080         (addext): Work correctly when pathconf returns -1 and leaves
88081         errno alone because there is no limit.  Also, work even if
88082         pathconf returns a value greater than SIZE_MAX.
88083
88084 2001-08-12  Jim Meyering  <meyering@lucent.com>
88085
88086         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88087         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88088         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88089         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88090         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88091         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88092         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88093         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88094         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88095         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88096         utime.m4, utimes.m4, xstrtoumax.m4:
88097         Quote the first argument in each use of AC_DEFUN.
88098
88099 2001-08-12  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88102         Simply `return getcwd (NULL, 0);'.
88103         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88104         Use 1300 as initial value for length, not PATH_MAX.
88105
88106         * lib/pathmax.h: Clean up cpp syntax.
88107
88108 2001-08-12  Jim Meyering  <meyering@lucent.com>
88109
88110         * lib/gettimeofday.c: New file.
88111         * lib/gtod.h: New file.
88112         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88113
88114 2001-08-05  Jim Meyering  <meyering@lucent.com>
88115
88116         * m4/jm-macros.m4: Require autoconf-2.52.
88117
88118 2001-08-04  Jim Meyering  <meyering@lucent.com>
88119
88120         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88121         stmt, to get in sync with glibc.
88122
88123 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88124
88125         The following changes are from gettext 0.10.39 as maintained by
88126         Bruno Haible.
88127
88128         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88129         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88130         with inverted sense.  All uses changed.
88131
88132         * lib/mbswidth.c: Don't include <limits.h>.
88133         Include <stdlib.h> and <string.h> unconditionally.
88134         (iswcntrl, mbsinit, ISCNTRL): New macros.
88135         (mbsnwidth): Use K&R style function declarations.
88136         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88137         can optimize it when MB_CUR_MAX == 1.
88138         The width of control characters is zero, not 1.
88139
88140 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88141
88142         The following changes are from gettext 0.10.39 as maintained by
88143         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88144
88145         * m4/codeset.m4: Upgrade to serial AM1.
88146         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88147         all uses changed.  Quote first arg of AC_DEFUN.
88148         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88149
88150         * m4/iconv.m4: Upgrade to serial AM2.
88151         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88152         Add --with-libconv-prefix.
88153         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88154         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88155         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88156         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88157         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88158
88159         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88160         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88161         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88162         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88163         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88164         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88165         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88166         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88167         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88168
88169         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88170         string.h any more.
88171
88172         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88173         not the default value.
88174
88175         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88176         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88177         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88178         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88179         Also check for iswcntrl, used for wcwidth fallback.
88180         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88181         to Autoconf 2.13.
88182
88183 2001-08-03  Jim Meyering  <meyering@lucent.com>
88184
88185         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88186         as it was in the original.  Reported by Paul Eggert.
88187
88188 2001-07-16  Jim Meyering  <meyering@lucent.com>
88189
88190         * m4/gettimeofday.m4: New file.
88191         Prompted by a report from Bernhard Baehr.
88192
88193 2001-07-15  Jim Meyering  <meyering@lucent.com>
88194
88195         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88196         stuff. Now it's in ../Makefile.cfg.
88197
88198 2001-07-15  Jim Meyering  <meyering@lucent.com>
88199
88200         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88201         (BUILT_SOURCES): Add unlocked-io.h.
88202         (io_functions): Define.
88203         (unlocked-io.h): New rule.
88204         (DISTCLEANFILES): Add unlocked-io.h.
88205         (all-local): Depend on unlocked-io.h, to ensure it is created.
88206
88207         * lib/unlocked-io.hin: New file
88208
88209         * lib/regex.c: Update from glibc.
88210
88211 2001-07-05  Jim Meyering  <meyering@lucent.com>
88212
88213         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88214         recommendation.
88215         (libfetish_a_SOURCES): Put all .h files here instead.
88216         Remove a thus-exposed (better checks in automake) duplicate and
88217         two unnecessary .h files.
88218
88219 2001-07-04  Jim Meyering  <meyering@lucent.com>
88220
88221         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88222         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88223         distcheck failure.
88224
88225 2001-07-02  Jim Meyering  <meyering@lucent.com>
88226
88227         The following changes were prompted by suggestions from Bruno Haible.
88228
88229         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88230         is now generated.
88231         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88232         definition of EXTRA_DIST.
88233         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88234         ensure that the generated file is created/updated whenever the list
88235         of $(unlocked_functions) is changed.
88236         (jm-glibc-io.m4): New rule.
88237         (unlocked-io.h): New rule -- currently unused.
88238
88239 2001-06-24  Jim Meyering  <meyering@lucent.com>
88240
88241         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88242         unmatched right bracket, rather than kludging it with an extra,
88243         falsely-matching quote in a comment.  Patch by Akim Demaille.
88244
88245 2001-06-11  Jim Meyering  <meyering@lucent.com>
88246
88247         * lib/regex.c: Update from GNU libc.
88248
88249 2001-05-27  Jim Meyering  <meyering@lucent.com>
88250
88251         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88252         Check for ut_type in struct utmp.
88253
88254 2001-05-27  Jim Meyering  <meyering@lucent.com>
88255
88256         * lib/readutmp.h (UT_TYPE): Define.
88257
88258 2001-05-24  Jim Meyering  <meyering@lucent.com>
88259
88260         * lib/argmatch.c: Include "quote.h".
88261         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88262         quote function.  Reported by Göran Uddeborg.
88263
88264 2001-05-22  Jim Meyering  <meyering@lucent.com>
88265
88266         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88267         now that we use the package-supplied version unconditionally.
88268         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88269
88270 2001-05-21  Jim Meyering  <meyering@lucent.com>
88271
88272         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88273         shell syntax errors.
88274
88275 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88276
88277         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88278
88279 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88280
88281         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88282         Don't bother to check library strftime, since
88283         we'll be using our own my_strftime function anyway.
88284         Define my_strftime instead of strftime.
88285
88286 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88287
88288         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88289         which is not yet declared.
88290
88291 2001-05-15  Jim Meyering  <meyering@lucent.com>
88292
88293         * m4/regex.m4: Use proper quoting so brackets appear in the test
88294         program.
88295         Reported by, and with help from, Bruno Haible.
88296
88297 2001-05-13  Jim Meyering  <meyering@lucent.com>
88298
88299         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88300         undefined.
88301
88302 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88303
88304         dirname code cleanup.  base_name now behaves more compatibly
88305         with POSIX basename when given file names that have trailing
88306         slashes, and similarly for dir_name.  Add new primitives
88307         base_len and dir_len.  Put the directory-name-related decls
88308         into dirname.h.
88309
88310         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88311         * lib/backupfile.c (base_name): Likewise.
88312         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88313         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88314         * lib/makepath.c (strip_trailing_slashes): Likewise.
88315         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88316         ISSLASH): Likewise.
88317         * lib/rename.c (strip_trailing_slashes): Likewise.
88318         * lib/same.c (base_name): Likewise.
88319         * lib/stripslash.c (ISSLASH): Likewise.
88320
88321         * lib/addext.c: Include <dirname.h> after size_t is defined.
88322         * lib/backupfile.c: Likewise.
88323
88324         * lib/addext.c (addext): Use base_len to trim redundant
88325         trailing slashes instead of doing it ourselves.
88326         But do not trim the last slash if it is not redundant.
88327
88328         * lib/backupfile.c (find_backup_file_name,
88329         max_backup_version): Use base_len instead of rolling it ourselves.
88330         Handle the case of "" and (on DOS) "C:" correctly.
88331
88332         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88333         needed. Include <string.h>, <dirname.h>.
88334         (base_name): Allow file names ending in slashes, other than names
88335         that are all slashes.  In this case, return the basename followed
88336         by the slashes.  This is more general, and can be used in places
88337         where the original base_name purposely had an assertion failure.
88338         (base_len): New function.
88339
88340         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88341         Do not include <assert.h>; no longer needed.
88342         Include xalloc.h.
88343         (memrchr): Remove decl.
88344         (dir_name_r): Remove.
88345         (dir_len): Renamed from dirlen.  All callers changed.
88346         Rewrite in terms of base_name, for simplicity and consistency.
88347         (dir_name): Never return NULL.  All callers changed.
88348         Do not include <stdlib.h> in test program; no longer needed.
88349         return 0; is fine for test program.
88350
88351         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88352         New macros.
88353         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88354
88355         * lib/path-concat.c (path_concat): Use base_len to compute
88356         base length, not strlen; this means we cannot rely on memcpy
88357         to null-terminate.
88358
88359         * lib/same.c (STREQ): Remove.
88360         (same_name): Handle the case where the basename ends in trailing '/'.
88361
88362         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88363         a slash was stripped.  Do not strip the last slash after a
88364         file system prefix.
88365
88366 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88367
88368         * lib/Makefile.am (libfetish_a_SOURCES):
88369         Add strftime.c, since we now compile it on all hosts.
88370
88371         * lib/strftime.c (my_strftime):
88372         Define to nstrftime if emacs, but only if my_strftime is not defined.
88373         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88374         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88375         Add one more extra argument: a nanoseconds value.
88376         All uses changed.
88377         (ns): New macro.
88378         (my_strftime function): Add %N format.
88379         (emacs_strftimeu): Renamed from emacs_strftime,
88380         with extra ut argument.
88381
88382 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88383
88384         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88385
88386 2001-04-21  Jim Meyering  <meyering@lucent.com>
88387
88388         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88389         doesn't interfere.
88390
88391 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88392
88393         * m4/ftruncate.m4: Check for chsize.
88394         Link with ftruncate.o unconditionally if ftruncate is missing.
88395         This was required when cross-compiling to i586-mingw32msvc.
88396
88397 2001-04-08  Jim Meyering  <meyering@lucent.com>
88398
88399         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88400         recomputed; that's necessary when the offset spans a DST transition.
88401         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88402
88403 2001-04-02  Jim Meyering  <meyering@lucent.com>
88404
88405         * lib/regex.h, regex.c: Update from GNU libc.
88406
88407 2001-03-24  Jim Meyering  <meyering@lucent.com>
88408
88409         * m4/jm-macros.m4: Require autoconf-2.49d.
88410
88411 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88412
88413         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88414
88415 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88416
88417         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88418
88419 2001-03-17  Jim Meyering  <meyering@lucent.com>
88420
88421         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88422         now that the version in autoconf is equivalent.
88423         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88424
88425         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88426         Suggestion from Akim Demaille.
88427
88428         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88429         (jm_PREREQ_TEMPNAME): New function.
88430
88431 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88432
88433         * lib/tempname.c (uint64_t): Define to uintmax_t if
88434         not defined, and if UINT64_MAX is not defined.
88435         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88436         Reported by John David Anglin.
88437
88438 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88439
88440         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88441         resolve alias if codeset is empty.
88442         * lib/config.charset (BeOS): Use wildcard syntax.
88443
88444 2001-03-13  Jim Meyering  <meyering@lucent.com>
88445
88446         * lib/path-concat.c (path_concat)
88447         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88448         concatenating e.g., `C:' and `foo'.
88449         From Bruno Haible.
88450
88451 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88452
88453         * lib/localcharset.c (locale_charset): Don't use
88454         setlocale(LC_CTYPE,NULL). Don't return NULL.
88455         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88456
88457 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88458
88459         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88460         support for DOS/DJGPP.
88461
88462 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88463
88464         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88465         lacks mkstemp.  Compile our own tempname.c if we compile our own
88466         mkstemp.c, as mkstemp relies on tempname.
88467
88468 2001-03-01  Jim Meyering  <meyering@lucent.com>
88469
88470         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88471         AH_VERBATIM really does output its argument verbatim.
88472
88473 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88474
88475         * lib/Makefile.am (libfetish_a_SOURCES):
88476         Add dup-safer.c, fopen-safer.c.
88477         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88478
88479         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88480         * lib/unistd-safer.h: New files.
88481
88482 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88483
88484         The mkstemp replacement is taken from glibc 2.2.2, with some
88485         portability fixes for use outside glibc, as follows:
88486
88487         * lib/tempname.c (struct_stat64): New macro.
88488         (direxists, __gen_tempname): Use it.
88489         This avoids a portability problem with Solaris 8.
88490
88491         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88492         (<stddef.h>, <stdint.h>, <string.h>):
88493         Include only if STDC_HEADERS || _LIBC.
88494         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88495         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88496         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88497         (__set_errno): Define this macro if <errno.h> doesn't.
88498         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88499         Define these macros if <stdio.h> doesn't.
88500         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88501         Define these macros if <sys/stat.h>
88502         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88503         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88504         __xstat64): Define if not _LIBC.
88505         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88506         (__gen_tempname): Invoke gettimeofday only if
88507         HAVE_GETTIMEOFDAY || _LIBC;
88508         otherwise, fall back on plain "time".
88509         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88510
88511         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88512
88513         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88514
88515 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88516
88517         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88518
88519 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88520
88521         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88522         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88523         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88524         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88525
88526 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88527
88528         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88529         Remove workaround macros for hosts that have mbrtowc but not
88530         mbstate_t, as we now insist on proper declarations for both
88531         before using mbrtowc.
88532
88533 2001-02-17  Jim Meyering  <meyering@lucent.com>
88534
88535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88536         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88537         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88538         UnixWare 7.1.1.
88539
88540         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88541         rather than AC_CACHE_VAL.
88542
88543 2001-02-17  Jim Meyering  <meyering@lucent.com>
88544
88545         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88546         around included file name.
88547
88548         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88549
88550         * lib/strftime.c: Update from GNU libc (the only changes were to
88551         comments).
88552
88553 2001-02-17  Jim Meyering  <meyering@lucent.com>
88554
88555         * lib/regex.c: Update from libc.
88556
88557 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88558
88559         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88560         clash.
88561
88562 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88563
88564         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88565         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88566         Reported by Mark Hounschell via Paul Eggert.
88567
88568 2001-02-07  Jim Meyering  <meyering@lucent.com>
88569
88570         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88571
88572 2001-02-05  Jim Meyering  <meyering@lucent.com>
88573
88574         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88575         it includes the patch required for `large file' support with at least
88576         HP-UX's 10.20 /bin/cc.
88577
88578 2001-02-03  Jim Meyering  <meyering@lucent.com>
88579
88580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88581         AS_IF, now that it works once again (mysteriously).
88582         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88583
88584 2001-01-30  Jim Meyering  <meyering@lucent.com>
88585
88586         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88587         * m4/chown.m4: Rename conftestchown to conftest.chown.
88588         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88589         s/conftestdir2/conftest.d2/.
88590         * m4/utimes.m4: s/conftestdata/conftest.data/
88591         Inspired by Pavel Roskin's change in autoconf.
88592
88593 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88594
88595         * lib/config.charset: Update for FreeBSD 4.2.
88596
88597 2001-01-27  Jim Meyering  <meyering@lucent.com>
88598
88599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88600         a use of AS_IF.
88601         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88602
88603 2001-01-26  Jim Meyering  <meyering@lucent.com>
88604
88605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88606         quotearg.c includes it.
88607
88608 2001-01-26  Jim Meyering  <meyering@lucent.com>
88609
88610         * lib/quotearg.c: Include stddef.h.
88611         * lib/quote.c: Include stddef.h.
88612         Reported by Axel Kittenberger.
88613
88614         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88615         line in double quotes so that it evokes a better diagnostic.
88616         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88617         Reported by Axel Kittenberger.
88618
88619 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88620
88621         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88622         as if it was a `charset'.
88623
88624 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88625
88626         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88627         has const.
88628
88629 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88630
88631         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88632         to avoid a warning.  Add back 'const' to inptr.
88633
88634 2001-01-20  Jim Meyering  <meyering@lucent.com>
88635
88636         Be sure that headers are checked before used in code compiled
88637         for the type checks.
88638         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88639         In place of that, invoke jm_CHECK_ALL_TYPES.
88640         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88641         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88642         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88643         The check for ssize_t was mistakenly run before the test for unistd.h.
88644
88645         The configure-time check for stdbool.h was missing.
88646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88647         (jm_PREREQ_HASH): New function.
88648
88649 2001-01-17  Jim Meyering  <meyering@lucent.com>
88650
88651         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88652         for autoconf-2.49c.
88653         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88654
88655 2001-01-16  Jim Meyering  <meyering@lucent.com>
88656
88657         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88658         From Bruno Haible.
88659
88660 2001-01-14  Jim Meyering  <meyering@lucent.com>
88661
88662         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88663         foo and bar.  Create conftestdir/ in the script, not in the C code.
88664         Remove directories in the script, not in the C code.
88665         Remove conftestdir{,2} before trying to create the directory.
88666         Make the entire configure script fail if the mkdir fails.
88667
88668 2001-01-14  Jim Meyering  <meyering@lucent.com>
88669
88670         * lib/rename.c: New file.  From Volker Borchert.
88671         Include stdlib.h, string.h or strings.h, and xalloc.h.
88672         Use strip_trailing_slashes rather than open-coding it.
88673
88674 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88675
88676         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88677
88678 2001-01-03  Jim Meyering  <meyering@lucent.com>
88679
88680         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88681         of local `inptr' to avoid warning with some system declarations of
88682         iconv.
88683
88684 2001-01-02  Volker Borchert  <bt@teknon.de>
88685
88686         * m4/rename.m4: New file.
88687         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88688
88689 2001-01-01  Jim Meyering  <meyering@lucent.com>
88690
88691         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88692         even on systems with utmpx.h.  It's necessary for the declaration of
88693         utmp's ut_user member.  Reported by Andreas Jaeger.
88694
88695         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88696         available. They are required for the declarations of getgrgid and
88697         getpwuid resp.
88698         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88699         Reported by Andreas Jaeger.
88700
88701 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88702
88703         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88704         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88705         so `make install' also works in VPATH builds.
88706
88707 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88708
88709         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88710         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88711         can be used in subdirectories.
88712
88713 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88714
88715         * lib/modechange.c: Do not assume that mode_t uses the
88716         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88717         the other-execute bit of FOO even if S_IXOTH != 1.
88718
88719         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88720         WOTH, XOTH, ALLM): New macros.
88721         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88722          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88723         Use them.
88724         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88725         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88726         (mode_compile):
88727         No need to use uintmax_t; unsigned long is long enough.
88728         Don't bother to get suffix since we don't use it.
88729
88730 2000-12-26  Jim Meyering  <meyering@lucent.com>
88731
88732         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88733         better with autoheader.
88734
88735 2000-12-24  Jim Meyering  <meyering@lucent.com>
88736
88737         * lib/hash.c (is_prime): Return explicit boolean values.
88738         (hash_get_first): Return NULL to appease Irix5.6's 89.
88739         Reported by Nelson Beebe.
88740
88741 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88742
88743         * lib/localcharset.c (locale_charset): Add support for Win32.
88744
88745 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88746
88747         * lib/physmem.h, lib/physmem.c: New files.
88748
88749         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88750         (noinst_HEADERS): Add physmem.h.
88751
88752         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88753         't' for compatibility with Solaris 8 sort.
88754
88755 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88756
88757         * lib/config.charset: Add support for BeOS.
88758
88759 2000-12-17  Jim Meyering  <meyering@lucent.com>
88760
88761         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88762         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88763
88764 2000-12-16  Jim Meyering  <meyering@lucent.com>
88765
88766         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88767         N and M) would have treated it like `chown N:N FILE'.
88768
88769         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88770
88771 2000-12-16  Jim Meyering  <meyering@lucent.com>
88772
88773         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88774         SHELLS_FILE to a file name that's useful on djgpp systems.
88775         Include stdlib.h.
88776         (ADDITIONAL_DEFAULT_SHELLS): Define.
88777         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88778         Based mostly on a patch from Prashant TR.
88779
88780 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88781
88782         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88783         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88784         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88785
88786 2000-12-08  Andreas Schwab  <schwab@suse.de>
88787
88788         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88789         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88790
88791 2000-12-07  Jim Meyering  <meyering@lucent.com>
88792
88793         * lib/stripslash.c (ISSLASH): Define.
88794         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88795         `/'.
88796         From Prashant TR.
88797
88798         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88799         (dir_name_r): Declare this function as static.
88800         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88801         manifest itself on a name containing a mix of slashes and
88802         backslashes.
88803         Make this function work with names starting with a DOS-style
88804         drive letter and colon prefix.
88805         (dir_name): Append `.' if necessary.
88806         Based mostly on patches from Prashant TR and Eli Zaretskii.
88807
88808         * lib/dirname.h (dir_name_r): Remove prototype.
88809
88810 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88811
88812         * m4/off_t-format.m4: Remove this file.
88813         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88814
88815 2000-12-06  Jim Meyering  <meyering@lucent.com>
88816
88817         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88818         replacement strtoull, we may well need the replacement strtoul, too.
88819         Check for declarations of strtoul and strtoull.
88820         Check for strtol.  Mainly as a cue to cause automake to include
88821         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88822         Check for limits.h -- strtol.c needs it.
88823
88824 2000-12-05  Jim Meyering  <meyering@lucent.com>
88825
88826         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88827
88828 2000-12-04  Jim Meyering  <meyering@lucent.com>
88829
88830         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88831         Also include memory.h, stdlib.h, unistd.h if appropriate.
88832         Reported by Andreas Jaeger (conflicting declaration of malloc).
88833
88834 2000-12-02  Jim Meyering  <meyering@lucent.com>
88835
88836         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88837         * m4/jm-macros.m4 (jm_MACROS): require it.
88838
88839 2000-12-02  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88842
88843 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88844
88845         * lib/memrchr.c: Include <config.h> before any system include file.
88846
88847 2000-11-30  Jim Meyering  <meyering@lucent.com>
88848
88849         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88850
88851 2000-11-30  Jim Meyering  <meyering@lucent.com>
88852
88853         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88854
88855 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88856
88857         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88858
88859 2000-11-26  Jim Meyering  <meyering@lucent.com>
88860
88861         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88862
88863 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88864
88865         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88866         size of (size_t) -1; it's not portable.
88867
88868 2000-11-17  Jim Meyering  <meyering@lucent.com>
88869
88870         * lib/strstr.c: Update from GNU libc.
88871
88872 2000-11-17  Akim Demaille  <akim@epita.fr>
88873
88874         * lib/obstack.h: Formatting changes.
88875         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88876         prevent type checking.
88877         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88878         cast the value to (void *): assigning a `foo *' to a `void *'
88879         variable is valid.
88880         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88881
88882 2000-11-16  Jim Meyering  <meyering@lucent.com>
88883
88884         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88885
88886 2000-11-11  Jim Meyering  <meyering@lucent.com>
88887
88888         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88889
88890 2000-11-10  Jim Meyering  <meyering@lucent.com>
88891
88892         * lib/obstack.h: Update from GNU libc.
88893         * lib/obstack.c: Likewise.
88894
88895 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88896
88897         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88898
88899 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88900
88901         * lib/getusershell.c (setusershell): Use rewind rather than
88902         fseek/fseeko, to avoid configuration hassles with fseeko.
88903         Don't bother opening SHELLS_FILE if shellstream is NULL;
88904         it's not necessary.
88905
88906 2000-11-05  Jim Meyering  <meyering@lucent.com>
88907
88908         * lib/makepath.h (make_dir): Declare.
88909         * lib/makepath.c (make_dir): Remove `static' attribute.
88910         Tweak a comment.
88911
88912 2000-11-04  Jim Meyering  <meyering@lucent.com>
88913
88914         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88915
88916 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88917
88918         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88919         last one in a bucket, advance to the next bucket.
88920
88921 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88922
88923         * lib/fnmatch.c: Do not comment out all the code if we are using
88924         the GNU C library, because in some cases we are replacing buggy
88925         code in the GNU C library itself.
88926
88927 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88928
88929         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88930         (regex_compile): Catch bogus \(\1\).
88931
88932 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88933
88934         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88935         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88936         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88937
88938 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88939
88940         * lib/error.h, getline.h, modechange.h:
88941         Remove "2000" from Copyright line, as the file hasn't been
88942         changed this year other than in the copyright notice.
88943
88944         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88945         was changed this year.
88946
88947 2000-10-29  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88950         renaming.
88951         * m4/ls-mntd-fs.m4: Likewise
88952
88953 2000-10-29  Jim Meyering  <meyering@lucent.com>
88954
88955         * lib/xstat.in: Fix grammar in comment.
88956
88957 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88958
88959         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88960         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88961         doesn't define __restrict_arr.
88962
88963 2000-10-28  Jim Meyering  <meyering@lucent.com>
88964
88965         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88966         (jm_PREREQ_MEMCHR): New function.
88967
88968 2000-10-28  Jim Meyering  <meyering@lucent.com>
88969
88970         * lib/memchr.c: Update from libc.
88971         Adjust for portability:
88972         [HAVE_STDLIB_H]: Include stdlib.h.
88973         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88974         Undef __memchr, too.
88975         [!weak_alias]: Define __memchr to memchr.
88976
88977         * lib/regex.c: Update from libc.
88978         * lib/regex.h: Likewise.
88979         * lib/getopt1.c: Likewise.
88980         * lib/memcmp.c: Likewise.
88981
88982         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88983         Avoid using fseek, when possible -- it's broken by design.
88984         Patch by Ulrich Drepper.
88985
88986 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88987
88988         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88989         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88990         Giving in to popular pressure to shut up the compiler with casts.
88991
88992 2000-10-26  Jim Meyering  <meyering@lucent.com>
88993
88994         * lib/strftime.c: Update from libc.
88995
88996 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88997
88998         * regex.c: More `unsigned char' -> `re_char' changes.
88999         Also change several `int' into `re_wchar_t'.
89000         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89001         (PUSH_FAILURE_POINTER): Don't cast any more.
89002         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89003         We want GCC to complain, since this piece of code makes
89004         re_match non-reentrant, which *should* be fixed.
89005         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89006         (EXTEND_BUFFER): Use RETALLOC.
89007         (SET_LIST_BIT): Don't cast.
89008         (re_wchar_t): New type.
89009         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89010         that those two functions will always properly return.
89011         (IMMEDIATE_QUIT_CHECK): Cast to void.
89012         (analyse_first): Use recursion rather than an explicit stack.
89013         (re_compile_fastmap): Can't fail anymore.
89014         (re_search_2): Don't check re_compile_fastmap for failure.
89015         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89016         Now also sets the new value (passed in a new argument).
89017         (re_match_2_internal): Use it.
89018         Also, use a new var `reg' of type size_t when looping through regs
89019         rather than reuse the inappropriate `mcnt'.
89020
89021 2000-10-25  Jim Meyering  <meyering@lucent.com>
89022
89023         * lib/obstack.c: Update from libc.
89024
89025 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89026
89027         * regex.c (regex_compile): Change the way of handling a range from
89028         a char less than 256 to a char not less than 256.
89029
89030 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89031
89032         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89033         NT-Emacs only.
89034         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89035         so that re_search functions only quit when callers expect them to.
89036
89037 2000-10-23  Jim Meyering  <meyering@lucent.com>
89038
89039         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89040         wrong.  That set_locale call must not have any side effects.
89041         From Paul Eggert.
89042
89043 2000-10-22  Jim Meyering  <meyering@lucent.com>
89044
89045         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89046         [CYCLIC]: Remove now-unused definition.
89047
89048         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89049         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89050         Suggestion from Ulrich Drepper.
89051
89052 2000-10-21  Jim Meyering  <meyering@lucent.com>
89053
89054         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89055         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89057
89058 2000-10-21  Jim Meyering  <meyering@lucent.com>
89059
89060         * lib/dirname.c (memrchr): Declare if necessary.
89061         (dir_name): Remove the restriction that there be no
89062         trailing slashes.  Now, this code skips past them, effectively
89063         ignoring them.
89064         [TEST_DIRNAME] (main): New unit tests.
89065
89066         * lib/memrchr.c: New file from GNU libc.
89067         Undef __memrchr, too.
89068         [!weak_alias]: Define __memrchr to memrchr.
89069         Guard weak_alias use with `#ifdef weak_alias'.
89070
89071 2000-10-21  Jim Meyering  <meyering@lucent.com>
89072
89073         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89074         (dir_name): Use dir_name_r.
89075         * lib/dirname.h (dir_name_r): Declare it.
89076
89077 2000-10-17  Jim Meyering  <meyering@lucent.com>
89078
89079         * lib/quote.h (PARAMS): Define and use.
89080         Reported by Akim Demaille.
89081
89082         * lib/getopt.c: Update from libc.
89083
89084 2000-10-16  Jim Meyering  <meyering@lucent.com>
89085
89086         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89087         setlocale.
89088         From Jan Fedak.
89089
89090 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89091
89092         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89093
89094 2000-09-25  Jim Meyering  <meyering@lucent.com>
89095
89096         * lib/md5.h (rol): Define (from GnuPG).
89097
89098         * lib/sha.c: Give credit (GnuPG) where due.
89099         (M): Use rol rather than open-coding it.
89100         Add a FIXME comment.
89101
89102 2000-09-21  Jim Meyering  <meyering@lucent.com>
89103
89104         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89105         Reported by Michael Stone.
89106
89107 2000-09-20  Jim Meyering  <meyering@lucent.com>
89108
89109         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89110         (noinst_HEADERS): Add sha.h.
89111         Based on code from Scott G. Miller and from GnuPG.
89112
89113 2000-09-18  Jim Meyering  <meyering@lucent.com>
89114
89115         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89116         LIBS. Otherwise, everyone ends up linking with -lelf for some
89117         configurations.
89118         Reported by Mike Stone.
89119
89120 2000-09-15  Jim Meyering  <meyering@lucent.com>
89121
89122         * lib/regex.c: Update from libc.
89123
89124 2000-09-10  Jim Meyering  <meyering@lucent.com>
89125
89126         * lib/getopt.c (_getopt_internal): Update from glibc.
89127
89128 2000-09-09  Jim Meyering  <meyering@lucent.com>
89129
89130         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89131         think it should be used as a general replacement for isascii.
89132         * lib/fnmatch.c: Likewise.
89133         * lib/mbswidth.c: Likewise
89134         * lib/regex.c: Likewise.
89135
89136         Don't use atoi.
89137         * lib/userspec.c: Include sys/param.h and limits.h.
89138         Include xstrtol.h.
89139         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89140         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89141         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89142         UID, GID.  Check range.
89143
89144 2000-09-06  Jim Meyering  <meyering@lucent.com>
89145
89146         * lib/getopt.c (_getopt_internal): Update from glibc.
89147
89148 2000-08-30  Jim Meyering  <meyering@lucent.com>
89149
89150         * lib/strftime.c: Merge in changes from GNU libc.
89151
89152 2000-08-26  Jim Meyering  <meyering@lucent.com>
89153
89154         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89155         * m4/fpending.m4: New file.
89156
89157 2000-08-26  Jim Meyering  <meyering@lucent.com>
89158
89159         * lib/closeout.c: Include "__fpending.h".
89160         (close_stdout_status): Return right away if there's nothing to flush.
89161
89162         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89163         * lib/__fpending.c: New file.
89164         * lib/__fpending.h: New file.
89165
89166 2000-08-20  Jim Meyering  <meyering@lucent.com>
89167
89168         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89169         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89170         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89171
89172 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89173
89174         Improve fileutils installation on systems where running
89175         programs (like install) can't be unlinked.
89176         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89177         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89178
89179 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89180
89181         Standardize on "memory exhausted" instead of "Memory exhausted"
89182         or "virtual memory exhausted".
89183         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89184         "virtual memory exhausted".
89185         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89186         our own message.
89187         * lib/userspec.c (parse_user_spec): Likewise.
89188         * lib/bumpalloc.h: comment fix
89189         * lib/same.c, userspec.c: Include xalloc.h.
89190
89191         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89192         not char *const and pointing to a constant array.
89193         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89194         (xrealloc): Comment fix.
89195
89196         * lib/userspec.c (parse_user_spec):
89197         Don't translate a message until just before returning,
89198         to avoid unnecessary translation.
89199
89200 2000-08-07  Jim Meyering  <meyering@lucent.com>
89201
89202         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89203         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89204         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89205         getgroups.c, gethostname.c, getopt.h, group-member.c,
89206         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89207         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89208         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89209         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89210         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89211         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89212         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89213         yesno.c: Back out Copyright date changes for each file with no change
89214         this year.  This eases coordination with other programs using the same
89215         source code modules.  From Paul Eggert.
89216
89217 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89218
89219         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89220         not char, for compatibility with glibc 2.1.3 strftime.c.
89221
89222 2000-08-03  Greg McGary  <greg@mcgary.org>
89223
89224         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89225         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89226         (EXTEND_BUFFER): Use them.
89227
89228 2000-08-01  Jim Meyering  <meyering@lucent.com>
89229
89230         * lib/dirname.c (ISSLASH): Define.
89231         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89232         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89233         both `\' and `/' may be use as path separators.
89234         Based on a patch from Prashant TR.
89235
89236 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89237
89238         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89239         slot vector a constant, since it might get modified.
89240
89241 2000-07-31  Jim Meyering  <meyering@lucent.com>
89242
89243         * lib/xmalloc.c: Use `virtual memory exhausted', not
89244         `Memory exhausted'.
89245         * lib/obstack.c (print_and_abort): Likewise.
89246
89247 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89248
89249         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89250         buffer, so that the caller can always quote one small
89251         component of a "memory exhausted" message in slot 0.
89252         From a suggestion by Jim Meyering.
89253
89254 2000-07-30  Jim Meyering  <meyering@lucent.com>
89255
89256         * lib/makepath.c (make_path): Quote the other instance, too.
89257
89258         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89259         (STATIC_BUF_SIZE): Define.
89260         (quotearg_n_options): Use only statically allocated storage when
89261         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89262         than STATIC_BUF_SIZE.
89263
89264 2000-07-29  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89267         * lib/dirname.c (dir_name): Likewise.
89268
89269         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89270         `/'.
89271
89272         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89273         (dir_name): Assert that there are no trailing slashes.
89274
89275 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89276
89277         * lib/mbswidth.h (mbswidth): Add a flags argument.
89278         (mbswidth): New declaration.
89279         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89280         * lib/mbswidth.c (mbswidth): Add a flags argument.
89281         (mbsnwidth): New function.
89282
89283 2000-07-24  Jim Meyering  <meyering@lucent.com>
89284
89285         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89286
89287 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89288
89289         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89290
89291 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89292
89293         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89294         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89295         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89296         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89297         invoke multibyte primitives.
89298
89299 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89300
89301         * lib/quotearg.c:
89302         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89303         so that mbstate_t is always defined.
89304
89305         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89306         be 1 in at least one GCC installation, and this configuration
89307         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89308         performance on hosts that have mbrtowc but have only unibyte
89309         locales, but I assume these hosts are rare.
89310
89311 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89312
89313         * lib/mbswidth.c (_XOPEN_SOURCE):
89314         Don't define; this causes problems on Solaris 7.
89315         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89316
89317 2000-07-23  Jim Meyering  <meyering@lucent.com>
89318
89319         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89320         too: getgrgid, getpwuid, getuid.
89321
89322 2000-07-23  Jim Meyering  <meyering@lucent.com>
89323
89324         * lib/basename.c (base_name): Add an assertion.
89325
89326 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89327
89328         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89329         shadow its mbsinit function.
89330
89331 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89332
89333         * lib/mbswidth.h: New file.
89334         * lib/mbswidth.c: New file.
89335         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89336         (noinst_HEADERS): Add mbswidth.h.
89337
89338 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89339
89340         * lib/config.charset: Add support for FreeBSD. Improve support for
89341         HP-UX and IRIX 6.
89342
89343 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89344
89345         * m4/mbswidth.m4: New file.
89346         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89347
89348 2000-07-15  Jim Meyering  <meyering@lucent.com>
89349
89350         * lib/makepath.c: Include quote.h.
89351         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89352         corresponding argument in a `quote (...)' call.
89353         Give better diagnostics.
89354
89355         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89356         (noinst_HEADERS): Add quote.h.
89357
89358         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89359         from tar's src/misc.c.
89360         * lib/quote.h: New file.  Prototypes for same.
89361
89362 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89363
89364         From a suggestion by Bruno Haible.
89365         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89366         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89367         to decide whether to define the BeOS workaround macro;
89368         this adjusts to the change to AC_MBSTATE_T.
89369
89370 2000-07-14  Jim Meyering  <meyering@lucent.com>
89371
89372         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89373         jm_AC_TYPE_UINTMAX_T.
89374
89375 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89376
89377         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89378
89379         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89380         quotearg_buffer_restyled): Add support for
89381         clocale_quoting_style.  Undo previous change to
89382         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89383         and "{RIGHT QUOTATION MARK}" msgids.
89384
89385 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89386
89387         From a suggestion by Bruno Haible.
89388         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89389         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89390         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89391         and mbstate_t, to a single-part test that simply defines mbstate_t.
89392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89393         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89394
89395 2000-07-10  Jim Meyering  <meyering@lucent.com>
89396
89397         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89398
89399         * m4/gnu-source.m4: Output to confdefs.h directly.
89400         Suggestion from Akim Demaille.
89401
89402 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89403
89404         The old behavior of quoting `like this' doesn't look good with
89405         newer, ISO-style fonts.  See:
89406         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89407
89408         Instead, quote "like this" by default.  Let the translator
89409         tailor the locale-specific quoting behavior by providing
89410         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89411
89412         * lib/quotearg.c (N_): New macro.
89413         (gettext_default): New function.
89414         (quotearg_buffer_restyled): Use
89415         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89416         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89417
89418 2000-07-09  Jim Meyering  <meyering@lucent.com>
89419
89420         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89421         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89422
89423         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89425
89426 2000-07-09  Jim Meyering  <meyering@lucent.com>
89427
89428         * lib/Most files: Update copyright dates to include 2000.
89429
89430 2000-07-08  Jim Meyering  <meyering@lucent.com>
89431
89432         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89433         if not defined.
89434         (xgethostname): Remove now-unnecessary #ifdef.
89435         Move declaration of `err' into loop where it's used.
89436
89437 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89438         and Bruno Haible  <haible@clisp.cons.org>
89439
89440         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89441         only if the test for an object-type mbstate_t fails.  This
89442         prevents us from mistakenly reporting that mbstate_t is a
89443         system object type after we "#define mbstate_t int" to work
89444         around its lack.
89445
89446 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89447         and Bruno Haible  <haible@clisp.cons.org>
89448
89449         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89450
89451 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89452
89453         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89454         to strerror_r.
89455         Include <ctype.h> for use of isalpha.
89456
89457 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89458
89459         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89460         by allocating a larger buffer. Test the gethostname return value for
89461         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89462         returns an error and ENAMETOOLONG isn't defined.
89463
89464 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89465
89466         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89467         dimension.
89468
89469 2000-07-04  Jim Meyering  <meyering@lucent.com>
89470
89471         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89472         of the deprecated AC_CHECKING.
89473
89474 2000-07-04  Jim Meyering  <meyering@lucent.com>
89475
89476         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89477         Reported by Bruno Haible.
89478
89479 2000-07-04  Jim Meyering  <meyering@lucent.com>
89480
89481         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89482         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89483         lacks mbrtowc.
89484
89485 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89486
89487         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89488         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89489
89490 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89491         and Bruno Haible  <haible@clisp.cons.org>
89492
89493         * lib/quotearg.c (mbrtowc):
89494         Assign to *pwc, and return 1 only if result is nonzero.
89495         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89496
89497 2000-07-03  Jim Meyering  <meyering@lucent.com>
89498
89499         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89500
89501 2000-07-03  Jim Meyering  <meyering@lucent.com>
89502
89503         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89504         This is necessary to get a definition of e.g., UTMP_FILE on
89505         HP-UX 10.20.
89506         From Bob Proulx.
89507
89508 2000-07-02  Jim Meyering  <meyering@lucent.com>
89509
89510         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89511
89512         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89513         AC_LIBOBJ(function_name).
89514         * m4/chown.m4: Likewise.
89515         * m4/fnmatch.m4: Likewise.
89516         * m4/ftruncate.m4: Likewise.
89517         * m4/getgroups.m4: Likewise.
89518         * m4/getline.m4: Likewise.
89519         * m4/group-member.m4: Likewise.
89520         * m4/jm-macros.m4: Likewise.
89521         * m4/lstat.m4: Likewise.
89522         * m4/malloc.m4: Likewise.
89523         * m4/memcmp.m4: Likewise.
89524         * m4/nanosleep.m4: Likewise.
89525         * m4/putenv.m4: Likewise.
89526         * m4/realloc.m4: Likewise.
89527         * m4/regex.m4: Likewise.
89528         * m4/stat.m4: Likewise.
89529         * m4/strftime.m4: Likewise.
89530
89531 2000-07-02  Jim Meyering  <meyering@lucent.com>
89532
89533         * lib/quotearg.c (mbstate_t): Don't define here.
89534
89535 2000-07-02  Jim Meyering  <meyering@lucent.com>
89536
89537         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89538
89539 2000-07-01  Jim Meyering  <meyering@lucent.com>
89540
89541         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89542
89543 2000-07-01  Jim Meyering  <meyering@lucent.com>
89544
89545         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89546         problem.
89547
89548 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89549
89550         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89551         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89552
89553 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89554
89555         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89556         per change in ../m4/ls-mntd-fs.m4.
89557         (read_filesystem_list): Ignore symbolic links.
89558
89559 2000-06-29  Jim Meyering  <meyering@lucent.com>
89560
89561         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89562         for declaration of strcmp.
89563
89564         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89565
89566         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89567         Avoid warning by casting result to `char *' to remove `const'.
89568
89569 2000-06-28  Jim Meyering  <meyering@lucent.com>
89570
89571         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89572         included by quotearg.c, for which we perform this test.  From
89573         Bruno Haible.
89574
89575 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89576
89577         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89578         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89579         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89580
89581 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89582
89583         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89584
89585 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89586
89587         savedir now sets errno on failure and invokes xmalloc to get memory.
89588         Fix a couple of other minor bugs while we're at it.
89589
89590         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89591         (NAMLEN): Remove macro.
89592         (malloc, realloc): Remove decls.
89593         (stpcpy): Likewise.
89594         ("xalloc.h"): Include.
89595         (NAME_SIZE_DEFAULT): New macro.
89596         (savedir): Use xmalloc / xrealloc to allocate memory.
89597         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89598         Skip "" directory entries.
89599         Use strlen to calculate directory entry length, since the old method
89600         is rarely used these days and isn't worth supporting.
89601         Don't use a pointer after freeing it.
89602         Check for integer overflow when calculating allocation size.
89603         Use memcpy to copy entries, instead of stpcpy.
89604         Set errno properly when returning NULL.
89605         Check for readdir error.
89606
89607 2000-06-26  Jim Meyering  <meyering@lucent.com>
89608
89609         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89610
89611 2000-06-25  Jim Meyering  <meyering@lucent.com>
89612
89613         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89614         Linux header bug when _XOPEN_SOURCE is defined to 500.
89615
89616 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89617
89618         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89619         deficiency.
89620
89621 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89622
89623         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89624         Include xalloc.h.
89625         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89626
89627 2000-06-24  Jim Meyering  <meyering@lucent.com>
89628
89629         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89630         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89631         for which strerror does return char*, but which lacks a conveniently
89632         accessible declaration of the function.  If the compile-test says
89633         strerror_r doesn't work, then resort to a `run'-test that works on
89634         BeOS and segfaults on DEC Unix.
89635
89636 2000-06-24  Jim Meyering  <meyering@lucent.com>
89637
89638         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89639
89640 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89641
89642         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89643         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89644
89645 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89646
89647         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89648         (mbrtowc, mbstate_t): Define substitutes if
89649         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89650         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89651         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89652
89653 2000-06-23  Jim Meyering  <meyering@lucent.com>
89654
89655         * m4/afs.m4: Add missing AC_MSG_RESULT.
89656         Reported by Bruno Haible.
89657
89658         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89659         Suggestion from Bruno Haible.
89660
89661 2000-06-23  Jim Meyering  <meyering@lucent.com>
89662
89663         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89664
89665 2000-06-21  Jim Meyering  <meyering@lucent.com>
89666
89667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89668
89669 2000-06-21  Jim Meyering  <meyering@lucent.com>
89670
89671         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89672         (noinst_HEADERS): Add getstr.h.
89673
89674         * lib/getline.c (getstr): Move into a separate file.
89675         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89676         the following changes: new parameter, delim2; both delim[12]
89677         parameters have type `int', not `char'.  The latter would lose
89678         with 8-bit delimiters.
89679         * lib/getstr.h: New file.
89680
89681 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89682
89683         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89684         than 1024, return a memory chunk of least possible size, instead
89685         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89686         Use free/xmalloc instead of xrealloc to avoid copying for very long
89687         paths.
89688
89689 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89690
89691         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89692         the empty string.
89693
89694 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89695
89696         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89697         address, not strdup.  Include <stdlib.h> and don't declare free().
89698
89699 2000-06-19  Jim Meyering  <meyering@lucent.com>
89700
89701         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89702
89703 2000-06-18  Jim Meyering  <meyering@lucent.com>
89704
89705         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89706
89707         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89708         `checking whether...' message to be consistent with that of the
89709         lstat test.
89710
89711 2000-06-18  Jim Meyering  <meyering@lucent.com>
89712
89713         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89714         Besides, these days every porting target provides a mkdir function.
89715
89716         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89717         needed. (this snippet comes from src/system.h).
89718
89719 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89720
89721         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89722
89723 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89724
89725         * lib/human.c (adjust_value): New function.
89726         (human_readable_inexact): Apply rounding style even when
89727         printing approximate values.
89728
89729 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89730
89731         * lib/human.c (human_readable_inexact): Allow an input block
89732         size that is not a multiple of the output block size, and vice versa.
89733         Reported by Piergiorgio Sartor.
89734
89735 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89736
89737         * lib/getdate.y (get_date): Apply relative times after time
89738         zone indicator, not before.  Reported by Todd A. Jacobs.
89739
89740 2000-06-13  Jim Meyering  <meyering@lucent.com>
89741
89742         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89743
89744         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89745
89746 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89747
89748         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89749
89750 2000-06-12  Jim Meyering  <meyering@lucent.com>
89751
89752         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89753         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89754         optional argument.
89755         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89756         the optional argument, `lib'.
89757
89758 2000-06-08  Jim Meyering  <meyering@lucent.com>
89759
89760         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89761
89762 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89763
89764         Rewrite largefile configuration so that we don't need to run
89765         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89766         AC_CANONICAL_HOST in configure.in -- jmm]
89767
89768         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89769         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89770         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89771         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89772         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89773         All uses changed.
89774         Instead of inspecting the output of getconf, try to compile the
89775         test program without and with the macro definition.
89776         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89777         for getconf.  Instead, check for the needed flags by compiling
89778         test programs.
89779
89780 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89781
89782         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89783
89784 2000-06-04  Jim Meyering  <meyering@lucent.com>
89785
89786         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89787         SunOS 4.1.4 for which gid_t is an unsigned type.
89788
89789 2000-06-03  Jim Meyering  <meyering@lucent.com>
89790
89791         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89792         now that autoconf requires that.
89793
89794         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89795         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89796         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89797
89798 2000-06-03  Jim Meyering  <meyering@lucent.com>
89799
89800         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89801
89802 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89803
89804         * m4/glibc21.m4: New file.
89805         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89806
89807 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89808
89809         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89810         newer, don't install charset.alias.
89811         * lib/config.charset: Change the Linux/glibc rules so they become empty
89812         on glibc-2.1 or newer.
89813
89814 2000-06-02  Jim Meyering  <meyering@lucent.com>
89815
89816         * lib/mountlist.c: Back out last change.  Instead, do this...
89817         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89818         me_dummy member using the same `ignore'-testing code.
89819         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89820         fs_type strings.
89821         From Mark D. Roth.
89822
89823 2000-05-29  Jim Meyering  <meyering@lucent.com>
89824
89825         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89826         mounts with the `ignore' attribute.  Based on a patch from
89827         Mark D. Roth.
89828
89829 2000-05-28  Jim Meyering  <meyering@lucent.com>
89830
89831         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89832         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89833         * m4/stat.m4: Likewise.
89834         * m4/lstat.m4: Likewise.
89835         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89836
89837         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89838         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89839
89840 2000-05-26  Jim Meyering  <meyering@lucent.com>
89841
89842         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89843
89844 2000-05-24  Jim Meyering  <meyering@lucent.com>
89845
89846         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89847         autoconf requires that.
89848         * m4/lib-check.m4: Likewise.
89849         * m4/jm-macros.m4: Likewise.
89850         * m4/strftime.m4: Likewise.
89851
89852         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89853         AC_CHECK_DECLS, now that autoconf requires that.
89854
89855 2000-05-22  Jim Meyering  <meyering@lucent.com>
89856
89857         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89858         * m4/lstat.m4: Likewise.
89859
89860 2000-05-22  Jim Meyering  <meyering@lucent.com>
89861
89862         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89863
89864 2000-05-20  Jim Meyering  <meyering@lucent.com>
89865
89866         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89867         (jm_PREREQ): Use it.
89868
89869 2000-05-18  Jim Meyering  <meyering@lucent.com>
89870
89871         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89872         back, too, since it may have been modified by allocate_entry.
89873         (hash_delete): Rewrite to use neither the assignment operator
89874         nor the comma operator in an if-expression.
89875
89876 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89877
89878         * lib/closeout.c:
89879         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89880         Remove; no longer needed.
89881         "quotearg.h": Add include.
89882         (file_name): Do not bother to explicitly initialize to NULL; it's less
89883         efficient on some hosts.
89884         (close_stdout_status): Remove test as to whether stdout was already
89885         closed; it breaks for the case "echo x | sort >&-".
89886         Quote file name colons.
89887         Do not assume that _("write error") lacks format strings.
89888
89889 2000-05-15  Jim Meyering  <meyering@lucent.com>
89890
89891         * lib/version-etc.c (version_etc_copyright): Update the copyright
89892         string used in all --version output.
89893
89894 2000-05-14  Jim Meyering  <meyering@lucent.com>
89895
89896         * lib/closeout.c (close_stdout_set_file_name): New function.
89897         (close_stdout_status): Use new file-scoped global.
89898         Return right away if fstat says the stdout file descriptor is invalid.
89899         * lib/closeout.h (close_stdout_set_file_name): Declare.
89900
89901 2000-05-10  Jim Meyering  <meyering@lucent.com>
89902
89903         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89904         (close_stdout_set_status): New function.
89905         * lib/closeout.h (close_stdout_set_status): Declare.
89906
89907 2000-05-09  Jim Meyering  <meyering@lucent.com>
89908
89909         * m4/gettext.m4: Rename this...
89910         * m4/libintl.m4: ...to this.
89911
89912 2000-05-08  Jim Meyering  <meyering@lucent.com>
89913
89914         * lib/long-options.c: Don't include closeout.h.
89915         (parse_long_options): Don't call close_stdout for --version.
89916
89917 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89918
89919         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89920         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89921         2.1.3 bug.  This avoids a clash when files like regex.c define
89922         _GNU_SOURCE.
89923
89924 2000-05-06  Jim Meyering  <meyering@lucent.com>
89925
89926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89927         (AC_REPLACE_FUNCS): Add strnlen.
89928
89929         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89930         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89931
89932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89933         AC_SEARCH_LIBS call for nanosleep.
89934         (LIB_NANOSLEEP): Set and AC_SUBST.
89935
89936 2000-05-06  Jim Meyering  <meyering@lucent.com>
89937
89938         * lib/strnlen.c: Undefine __strnlen and strnlen.
89939         [!weak_alias]: Define __strnlen to strnlen.
89940
89941         * lib/atexit.c: New file, from libiberty.
89942
89943 2000-05-06  Jim Meyering  <meyering@lucent.com>
89944
89945         * lib/closeout.c (close_stdout_status): Also check for errors on the
89946         stderr stream.
89947
89948 2000-05-05  Jim Meyering  <meyering@lucent.com>
89949
89950         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89951         AC_SEARCH_LIBS call for clock_gettime.
89952         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89953
89954         * m4/search-libs.m4: Update from autoconf.
89955
89956         su doesn't work on Solaris 2.6.
89957         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89958         <shadow.h>.  Reported by Dragos Harabor.
89959
89960 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89961
89962         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89963         memcpy instead of xmalloc, xrealloc, path_concat.
89964         (locale_charset): Treat empty environment variables as absent.
89965         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89966
89967 2000-05-04  Jim Meyering  <meyering@lucent.com>
89968
89969         * lib/getopt.c: Update from glibc.
89970         * lib/obstack.c: Likewise.
89971         * lib/obstack.h: Likewise.
89972         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89973         file
89974
89975         * lib/regex.h: Likewise.
89976         * lib/strndup.c: Likewise.
89977         * lib/strnlen.c: New file, from glibc.
89978
89979 2000-05-03  Jim Meyering  <meyering@lucent.com>
89980
89981         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89982
89983 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89984
89985         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89986         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89987         compile-time test, rather than inspecting host and OS, to
89988         decide whether to define _LARGEFILE_SOURCE.
89989
89990 2000-05-01  Jim Meyering  <meyering@lucent.com>
89991
89992         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89993
89994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89995         Based on a patch from Bruno Haible.
89996
89997 2000-05-01  Jim Meyering  <meyering@lucent.com>
89998
89999         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90000
90001 2000-04-29  Jim Meyering  <meyering@lucent.com>
90002
90003         * lib/path-concat.c: Declare strdup only if it's not defined.
90004         * lib/canon-host.c: Likewise.
90005
90006 2000-04-28  Jim Meyering  <meyering@lucent.com>
90007
90008         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90009         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90010         is included first, then limits.h is included by locale.h by libintl.h.
90011         From John David Anglin.
90012
90013 2000-04-25  Jim Meyering  <meyering@lucent.com>
90014
90015         * lib/makepath.c (S_IRWXUGO): Define.
90016         (make_path): Always perform explicit chmod if MODE specifies any
90017         of the `special' permission bits.  Prompted by a bug report against
90018         install from Mate Wierdl and Joost van Baal.
90019
90020 2000-04-18  Jim Meyering  <meyering@lucent.com>
90021
90022         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90023         (jm_PREREQ): Use it.
90024
90025 2000-04-18  Jim Meyering  <meyering@lucent.com>
90026
90027         * lib/README: New file.
90028
90029         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90030         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90031
90032 2000-04-17  Jim Meyering  <meyering@lucent.com>
90033
90034         Get it right :-)
90035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90036         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90037         Suggestion from Akim Demaille.
90038
90039 2000-04-17  Jim Meyering  <meyering@lucent.com>
90040
90041         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90042         the definition of it to rpl_strftime also defined-away the system's
90043         declaration.
90044
90045 2000-04-15  Jim Meyering  <meyering@lucent.com>
90046
90047         Use `C' to denote so-called `contiguous' files, the same way
90048         that tar does.
90049         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90050         (ftypelet): Use S_ISCTG.
90051         From Michael Deutschmann.
90052
90053 2000-04-14  Jim Meyering  <meyering@lucent.com>
90054
90055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90056         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90057         clobbered.
90058
90059 2000-04-14  Jim Meyering  <meyering@lucent.com>
90060
90061         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90062
90063 2000-04-13  Jim Meyering  <meyering@lucent.com>
90064
90065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90066         AH_VERBATIM to insert required #ifndef into config.h.in.
90067         Suggestion from Akim Demaille.
90068
90069 2000-04-12  Jim Meyering  <meyering@lucent.com>
90070
90071         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90072         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90073         Christian Krackowizer.
90074
90075         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90076         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90077         (AC_SYS_LARGEFILE): Require.
90078         (AM_C_PROTOTYPES): Require.
90079
90080 2000-04-08  Jim Meyering  <meyering@lucent.com>
90081
90082         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90083         names don't conflict.  Reported by Eli Zaretskii.
90084
90085 2000-04-07  Jim Meyering  <meyering@lucent.com>
90086
90087         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90088         sys/types.h, to work around system header problems on AIX 3.2.5.
90089         From Bruno Haible.
90090
90091 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90092
90093         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90094         bug.  Deal with the different error behavior of Irix iconv.
90095
90096 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90097
90098         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90099         IRIX if the installer said otherwise.
90100
90101 2000-04-05  Jim Meyering  <meyering@lucent.com>
90102
90103         Portability tweaks required for ultrix4.3.
90104         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90105         (jm_CHECK_DECLS): Add getutent to the list of functions.
90106         (_jm_DECL_HEADERS): Add utmpx.h.
90107         From John David Anglin.
90108
90109         * m4/strftime.m4: Back out the 2000-04-02 change.
90110         Instead of that change, simply undefine putenv in the test program.
90111
90112 2000-04-05  Jim Meyering  <meyering@lucent.com>
90113
90114         Portability tweaks required for ultrix4.3.
90115         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90116         getutent.
90117         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90118         * lib/canon-host.c: Declare strdup.
90119         * lib/path-concat.c: Likewise.
90120         From John David Anglin.
90121
90122 2000-04-04  Jim Meyering  <meyering@lucent.com>
90123
90124         Be more DOS 8.3-friendly.
90125         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90126         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90127         * lib/Makefile.am: Reflect renaming.
90128         Reported by Eli Zaretskii.
90129
90130         Use a temporary file name that won't clash with `charset.alias'
90131         in the DOS 8.3 name space.
90132         * lib/Makefile.am (charset_tmp): Define.
90133         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90134         (uninstall-local): Likewise.
90135         Reported by Eli Zaretskii.
90136
90137 2000-04-03  Jim Meyering  <meyering@lucent.com>
90138
90139         * m4/gettext.m4: Fix typo in comment.
90140
90141         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90142         textutils/configure.in).  Suggestion from Paul Eggert.
90143         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90144
90145 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90146
90147         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90148         variable in the shell rather than using putenv, which isn't
90149         portable.  This avoids the configure-time inter-test dependency
90150         on the potentially-renamed putenv function.
90151
90152 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90153
90154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90155         before checking struct stat.st_blksize, so that
90156         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90157
90158 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90159
90160         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90161         since strftime.c uses HAVE_STRFTIME to decide whether to use
90162         the underlying strftime.
90163
90164 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90165
90166         * lib/time/strftime.c (my_strftime): Make sure we call the system
90167         strftime, not ourselves, when invoking the underlying strftime.
90168
90169 2000-03-24  Jim Meyering  <meyering@lucent.com>
90170
90171         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90172         (charset_alias): Define.
90173         (install-exec-local): Factor out common code.
90174         (uninstall-local): Split lines longer than 80.
90175         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90176         (SUFFIXES): Define.
90177         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90178         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90179
90180 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90181
90182         * lib/config.charset: Output a line containing "Packages using this
90183         file".
90184         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90185         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90186         ref-del.sed): New rules.
90187
90188 2000-03-17  Jim Meyering  <meyering@lucent.com>
90189
90190         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90191         Otherwise, include <strings.h>
90192
90193 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90194
90195         * lib/unicodeio.c (utf8_wctomb): New function.
90196         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90197         format instead of in UCS-4 with platform dependent endianness.
90198
90199 2000-03-10  Jim Meyering  <meyering@lucent.com>
90200
90201         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90202         From Marco Franzen.
90203
90204 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90205
90206         * lib/savedir.c (savedir): Work even if directory size is
90207         negative; this can happen with some screwy NFS configurations.
90208
90209 2000-03-06  Jim Meyering  <meyering@lucent.com>
90210
90211         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90212         if it's NULL (because we ran out of memory).  From Bruno Haible.
90213
90214 2000-03-05  Jim Meyering  <meyering@lucent.com>
90215
90216         * lib/localcharset.c ("path-concat.h"): Include.
90217         (get_charset_aliases): Use path_concat instead of ANSI string
90218         concatenation.
90219
90220         * lib/unicodeio.h (PARAMS): Define.
90221         Use it to guard prototype.
90222
90223 2000-03-04  Jim Meyering  <meyering@lucent.com>
90224
90225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90226         for lib/localcharset.c.
90227
90228 2000-03-04  Jim Meyering  <meyering@lucent.com>
90229
90230         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90231         installing into it.
90232         (uninstall-local): Uncomment this rule so `make distcheck' works
90233         once again.
90234
90235         * lib/unicodeio.c (<errno.h>): Include it.
90236         (errno): Declare if not defined.
90237
90238         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90239
90240         * lib/config.charset: New version, incorporating remarks from a linux
90241         i18n mailing list.  From Bruno Haible.
90242
90243 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90244
90245         * m4/codeset.m4: New file.
90246         * m4/iconv.m4: New file.
90247         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90248
90249 2000-03-03  Jim Meyering  <meyering@lucent.com>
90250
90251         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90252
90253 2000-03-02  Jim Meyering  <meyering@lucent.com>
90254
90255         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90256         the messages come out on separate lines.
90257
90258         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90259         rather than jm_CHECK_DECLARATIONS.
90260         * m4/decl.m4: Remove now-unused file.
90261
90262         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90263         geteuid.
90264
90265 2000-03-02  Jim Meyering  <meyering@lucent.com>
90266
90267         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90268
90269 2000-03-01  Jim Meyering  <meyering@lucent.com>
90270
90271         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90272         * lib/unicodeio.c: Likewise.
90273
90274 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90275
90276         * lib/config.charset: New file.
90277         * lib/localcharset.c: New file.
90278         * lib/unicodeio.h, lib/unicodeio.c: New files.
90279         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90280         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90281         (noinst_HEADERS): Add unicodeio.h.
90282         (all-local, install-exec-local, charset.alias): New targets.
90283
90284 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90285
90286         * lib/quotearg.c (ALERT_CHAR): New macro.
90287         (quotearg_buffer_restyled): Use it.
90288
90289 2000-02-27  Jim Meyering  <meyering@lucent.com>
90290
90291         * m4/check-decl.m4: Add getenv to the list.
90292
90293 2000-02-27  Jim Meyering  <meyering@lucent.com>
90294
90295         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90296         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90297
90298         * lib/backupfile.c: Guard inclusion of stdlib.h with
90299         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90300         Declare malloc if needed.
90301
90302         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90303         `#ifndef HAVE_DECL..'
90304         now that autoconf always defines the HAVE_DECL_ symbols.
90305         * lib/human.c: Likewise.
90306         * lib/same.c: Likewise.
90307         * lib/strtoumax.c: Likewise.
90308
90309         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90310         declaration check was not run.
90311         * lib/hash.c: Likewise.
90312         * lib/human.c: Likewise.
90313         * lib/same.c: Likewise.
90314         * lib/strtoumax.c: Likewise.
90315
90316         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90317         `.', then first look up the entire `.'-containing string as a login
90318         name.
90319
90320 2000-02-23  Jim Meyering  <meyering@lucent.com>
90321
90322         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90323         in place of my hack.
90324
90325 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90326
90327         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90328         (textint): New typedef.
90329         (parser_control): Member year changed from int to textint.
90330         All uses changed.
90331         (YYSTYPE): Removed; replaced by %union with int and textint members.
90332         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90333         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90334         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90335         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90336         (date, number, to_year): Use width of number in digits, not its value,
90337         to determine whether it's a 2-digit year, or a 2-digit time.
90338         (yylex): Store number of digits of numeric tokens.
90339         Reported by John Kendall.
90340
90341         (parser_control): Changed from struct parser_control to typedef (for
90342         consistency).  All uses changed.
90343
90344         (tID): Removed; not used.
90345         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90346
90347 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90348
90349         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90350         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90351
90352 2000-02-12  Jim Meyering  <meyering@lucent.com>
90353
90354         * lib/userspec.c (ISDIGIT): Define it.
90355         (isdigit): Remove definition.
90356         (is_number): Use ISDIGIT, not isdigit.
90357         <libintl.h>: Include.
90358         (_ and N_): Define.
90359         (parse_user_spec): Mark translatable strings.
90360
90361 2000-02-10  Jim Meyering  <meyering@lucent.com>
90362
90363         With these changes, nanosleep.[ch] are finally enough like the other
90364         lib/* replacement files to compile on a few more losing systems.
90365
90366         * lib/nanosleep.h: Don't include config.h.
90367         Remove prototype from declaration of nanosleep.
90368         (PARAMS): Remove now-unneeded definition.
90369         * lib/nanosleep.c: #undef nanosleep.
90370         (rpl_nanosleep): Rename from nanosleep.
90371
90372 2000-02-10  Jim Meyering  <meyering@lucent.com>
90373
90374         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90375         gnu_nanosleep to rpl_nanosleep.
90376
90377 2000-02-09  Jim Meyering  <meyering@lucent.com>
90378
90379         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90380         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90381
90382 2000-02-08  Akim Demaille  <akim@epita.fr>
90383
90384         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90385         `[' and `]' and remove uses of `changequote'.
90386         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90387         (AC_SYS_LARGEFILE): Likewise.
90388         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90389         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90390         of changequote.
90391         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90392         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90393         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90394         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90395
90396 2000-02-05  Jim Meyering  <meyering@lucent.com>
90397
90398         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90399         Remove explicit use of AC_HEADER_TIME.  It is required by
90400         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90401         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90402         in autoconf whereby the expansion of the latter ended up preceding
90403         the expansion of its prerequisite, AC_HEADER_TIME.
90404         Reported by Volker Borchert.
90405
90406 2000-02-03  Jim Meyering  <meyering@lucent.com>
90407
90408         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90409
90410 2000-02-03  Jim Meyering  <meyering@lucent.com>
90411
90412         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90413         rather than with `#if HAVE_UTMPNAME'.
90414
90415 2000-02-02  Jim Meyering  <meyering@lucent.com>
90416
90417         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90418         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90419         Reported by Eli Zaretskii.
90420
90421 2000-02-01  Jim Meyering  <meyering@lucent.com>
90422
90423         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90424
90425 2000-01-31  Jim Meyering  <meyering@lucent.com>
90426
90427         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90428         functions.  Add the time.h and sys/time.h headers along with the
90429         AC_REQUIRE'ment of AC_HEADER_TIME.
90430
90431 2000-01-31  Jim Meyering  <meyering@lucent.com>
90432
90433         * lib/nanosleep.h (nanosleep): Guard declaration with
90434         `#if ! HAVE_DECL_NANOSLEEP'.
90435         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90436         the declaration in that vendor's sys/timers.h.
90437         Reported by Christian Krackowizer.
90438
90439         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90440         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90441         (ISPRINT): Likewise.
90442         Reported by Tom Tromey.
90443
90444 2000-01-30  Jim Meyering  <meyering@lucent.com>
90445
90446         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90447
90448         * m4/prereq.m4 (utmp_includes): Define.
90449         Check for ut_user and ut_name members in both struct utmpx
90450         and struct utmp.
90451
90452 2000-01-30  Jim Meyering  <meyering@lucent.com>
90453
90454         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90455         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90456         header files where only utmpx.ut_user is declared.
90457
90458         * lib/readutmp.h (UT_USER): Define.
90459
90460 2000-01-29  Jim Meyering  <meyering@lucent.com>
90461
90462         * m4/lib-check.m4: New file containing library-related checks from
90463         fileutils and sh-utils (textutils had none).
90464
90465 2000-01-28  Jim Meyering  <meyering@lucent.com>
90466
90467         * m4/perl.m4: Change format of warning message to look more like that
90468         from the missing script.  Suggestion from François Pinard.
90469
90470 2000-01-25  Jim Meyering  <meyering@lucent.com>
90471
90472         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90473         well as time.h in the compile check.
90474         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90475         Fix typo in cross-compiling case: s/yes/no/.
90476
90477 2000-01-23  Jim Meyering  <meyering@lucent.com>
90478
90479         * m4/jm-macros.m4: Move df-related tests here from
90480         fileutils/configure.in
90481
90482         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90483         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90484
90485         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90486         s/space/ac_fsusage_space/.
90487         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90488
90489         * m4/ftruncate.m4: New file (derived from part of
90490         fileutils/configure.in).
90491         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90492         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90493
90494         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90495         AC_SUBST these here, rather than just in sh-util/configure.in, so
90496         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90497         all the same.
90498         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90499         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90500         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90501         (AC_SUBST(POW_LIBM)): Likewise.
90502         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90503
90504 2000-01-23  Jim Meyering  <meyering@lucent.com>
90505
90506         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90507         obstack.c.
90508
90509 2000-01-22  Jim Meyering  <meyering@lucent.com>
90510
90511         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90512
90513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90514
90515         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90516         configure.in
90517         (AC_CHECK_HEADERS): Likewise for sh-utils.
90518         (AC_CHECK_HEADERS): Likewise for textutils.
90519         Merge the three lists of headers.
90520
90521         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90522         from fileutils' configure.in.
90523
90524         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90525         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90526         check-decl.m4.
90527
90528         * m4/check-decl.m4: Use #if rather than #ifdef.
90529         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90530         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90531         (_jm_DECL_HEADERS): Define new function.
90532         (jm_CHECK_DECLARATIONS): Require it.
90533
90534 2000-01-22  Jim Meyering  <meyering@lucent.com>
90535
90536         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90537         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90538         Required for some AIX systems.  Reported by Christian Krackowizer.
90539         [TESTING] (main): New function.
90540
90541         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90542         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90543         letters.
90544
90545         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90546         iswprint.
90547
90548         * lib/strverscmp.c (ISDIGIT): Define.
90549         (strverscmp): Use ISDIGIT, not isdigit.
90550
90551 2000-01-19  Jim Meyering  <meyering@lucent.com>
90552
90553         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90554         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90555         defines `struct timespec' in <sys/time.h>
90556
90557         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90558         Thanks to Akim for explaining.
90559
90560 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90561
90562         * lib/nanosleep.c (nanosleep):
90563         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90564         POSIX.1 doesn't require SA_INTERRUPT and some systems
90565         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90566         it's been part of POSIX.1 since day 1 (in 1988).
90567
90568 2000-01-17  Jim Meyering  <meyering@lucent.com>
90569
90570         * lib/interlock: Remove unused file.  Reported by François Pinard.
90571
90572 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90573
90574         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90575         alert, backslash, formfeed, and vertical tab unnecessarily in
90576         shell quoting style.
90577
90578 2000-01-16  Jim Meyering  <meyering@lucent.com>
90579
90580         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90581         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90582         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90583         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90584
90585 2000-01-16  Jim Meyering  <meyering@lucent.com>
90586
90587         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90588         because the latter didn't work.
90589
90590 2000-01-15  Jim Meyering  <meyering@lucent.com>
90591
90592         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90593         (AC_REPLACE_FUNCS): Add memcpy and memset.
90594         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90595         Add strpbrk.
90596         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90597
90598 2000-01-12  Jim Meyering  <meyering@lucent.com>
90599
90600         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90601         (jm_PREREQ): Use it.
90602         (jm_PREREQ_READUTMP): New macro.
90603         (jm_PREREQ): Use it.
90604
90605 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90606
90607         Quote multibyte characters correctly.
90608         * m4/c-bs-a.m4: New file.
90609         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90610         (jm_PREREQ): Use it.
90611
90612 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90613
90614         * m4/uintmax_t.m4: Port to autoconf 2.13.
90615
90616 2000-01-08  Jim Meyering  <meyering@ascend.com>
90617
90618         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90619         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90620
90621 2000-01-04  Jim Meyering  <meyering@ascend.com>
90622
90623         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90624         jm_STRUCT_DIRENT_D_TYPE.
90625         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90626         jm_STRUCT_DIRENT_D_INO.
90627         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90628         jm_STRUCT_UTIMBUF.
90629         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90630         renamings.
90631         * m4/utime.m4: Likewise.
90632
90633         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90634         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90635
90636 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90637
90638         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90639         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90640
90641 2000-01-02  Jim Meyering  <meyering@ascend.com>
90642
90643         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90644         remember if this is necessary.
90645
90646 1999-12-26  Jim Meyering  <meyering@ascend.com>
90647
90648         * m4/jm-macros.m4: Use it here.
90649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90650
90651 1999-12-23  Jim Meyering  <meyering@ascend.com>
90652
90653         * m4/jm-macros.m4: Check for clock_gettime (moved from
90654         fileutils/configure.in)
90655         Check for gettimeofday.
90656
90657 1999-12-20  Jim Meyering  <meyering@ascend.com>
90658
90659         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90660         autoconf-2.14a-1999-12-20.
90661
90662 1999-12-19  Jim Meyering  <meyering@ascend.com>
90663
90664         * m4/lstat-slash.m4: New file.
90665         * m4/jm-macros.m4: Use the new macro:
90666         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90667
90668 1999-12-07  Jim Meyering  <meyering@ascend.com>
90669
90670         * m4/perl.m4: Require that File::Compare be available, too.
90671         Too many systems seem to lack it.
90672
90673         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90674         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90675
90676 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90677
90678         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90679         problem with the QNX 4.25 shell, which doesn't propagate exit
90680         status of failed commands inside shell assignments.
90681
90682 1999-11-17  Jim Meyering  <meyering@ascend.com>
90683
90684         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90685
90686 1999-11-07  Jim Meyering  <meyering@ascend.com>
90687
90688         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90689
90690 1999-11-06  Jim Meyering  <meyering@ascend.com>
90691
90692         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90693         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90694
90695 1999-11-05  Jim Meyering  <meyering@ascend.com>
90696
90697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90698         configure.in of textutils, fileutils, and sh-utils into this one
90699         (shared between those packages) file.
90700         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90701         AC_STRUCT_ST_BLKSIZE.
90702
90703 1999-11-03  Jim Meyering  <meyering@ascend.com>
90704
90705         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90706         of AC_CHECK_TYPE checks includes unistd.h.
90707         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90708         Suggestion from Akim Demaille.
90709
90710 1999-10-30  Jim Meyering  <meyering@ascend.com>
90711
90712         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90713         m4-quoted string.
90714         * m4/ls-mntd-fs.m4: Likewise.
90715         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90716         * m4/jm-winsz1.m4: Likewise.
90717
90718         * m4/const.m4: Remove file, since the fix made it into the experimental
90719         version of autoconf.
90720         * m4/mktime.m4: Likewise.
90721
90722         * m4/check-type.m4: Remove file, now that the latest version of
90723         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90724
90725         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90726         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90727         AC_CHECK_TYPE.
90728
90729 1999-10-04  Jim Meyering  <meyering@ascend.com>
90730
90731         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90732
90733 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90734
90735         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90736         2.95.1 bug with HP-UX 10.20.
90737
90738 1999-09-17  Jim Meyering  <meyering@ascend.com>
90739
90740         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90741         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90742         due to missing strdup (against sh-utils-2.0).
90743
90744 1999-08-29  Jim Meyering  <meyering@ascend.com>
90745
90746         * m4/jm-macros.m4: Require jm_BISON.
90747         * m4/bison.m4: New file.
90748
90749 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90750
90751         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90752         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90753
90754 1999-08-05  Jim Meyering  <meyering@ascend.com>
90755
90756         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90757         to avoid conflicts with `conftest' on 8+3 filesystems.
90758         Suggestion from Eli Zaretskii.
90759
90760 1999-08-04  Jim Meyering  <meyering@ascend.com>
90761
90762         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90763         fileutils and sh-utils (textutils's getline test was inadequate).
90764         (AM_FUNC_GETLINE): Run this test.
90765         (AC_CHECK_FUNCS): Check for getdelim.
90766         Reported by Bob Proulx.
90767
90768 1999-08-02  Jim Meyering  <meyering@ascend.com>
90769
90770         * m4/jm-macros.m4: Add a comment.
90771
90772 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90773
90774         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90775         <inttypes.h> defines strtoumax as a macro (and not as a
90776         function).
90777
90778 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90779
90780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90781         that we can shift, multiply and divide unsigned long long
90782         values; Ultrix cc can't do it.
90783
90784 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90785
90786         * m4/mktime.m4: New file, which is a preview of what should appear
90787         in the next public autoconf release.
90788
90789 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90790
90791         * m4/lfs.m4: Remove this file.
90792         * m4/largefile.m4: New file.  It contains the old contents of
90793         lfs.m4, except that all names with prefix AC_LFS have been
90794         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90795         compatible with future autoconf versions.  Also, some minor m4
90796         quoting problems have been fixed.
90797
90798 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90799
90800         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90801         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90802         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90803         and simplify the shell code.
90804
90805 1999-08-01  Jim Meyering  <meyering@ascend.com>
90806
90807         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90808         m4.
90809
90810 1999-07-20  Jim Meyering  <meyering@ascend.com>
90811
90812         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90813
90814 1999-07-15  Jim Meyering  <meyering@ascend.com>
90815
90816         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90817
90818 1999-05-22  Jim Meyering  <meyering@ascend.com>
90819
90820         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90821
90822 1999-05-20  Jim Meyering  <meyering@ascend.com>
90823
90824         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90825         Add a colon after each `then' in case $4 is empty.
90826
90827 1999-05-16  Jim Meyering  <meyering@ascend.com>
90828
90829         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90830
90831 1999-05-10  Jim Meyering  <meyering@ascend.com>
90832
90833         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90834
90835         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90836         AC_FUNC_MKTIME.
90837
90838 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90839
90840         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90841
90842 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90843
90844         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90845         not CPPFLAGS, so that linking works correctly in IRIX.
90846
90847 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90848
90849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90850
90851 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90852
90853         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90854         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90856         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90857         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90858
90859         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90860
90861 1999-04-20  Jim Meyering  <meyering@ascend.com>
90862
90863         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90864         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90865         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90866
90867 1999-04-18  Jim Meyering  <meyering@ascend.com>
90868
90869         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90870         * m4/jm-macros.m4: Use it.
90871
90872 1999-04-06  Jim Meyering  <meyering@ascend.com>
90873
90874         * m4/strftime.m4: Remove test for %f.
90875
90876 1999-03-29  Jim Meyering  <meyering@ascend.com>
90877
90878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90879         superset of the AC_TYPE_* checks in the textutils, fileutils,
90880         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90881         AC_TYPE_PID_T.
90882
90883 1999-03-28  Jim Meyering  <meyering@ascend.com>
90884
90885         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90886         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90887         replaced e.g., in the *.sh files of the sh-utils.
90888
90889 1999-03-20  Jim Meyering  <meyering@ascend.com>
90890
90891         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90892         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90893         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90894
90895 1999-03-19  Jim Meyering  <meyering@ascend.com>
90896
90897         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90898
90899 1999-03-12  Jim Meyering  <meyering@ascend.com>
90900
90901         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90902
90903 1999-03-07  Jim Meyering  <meyering@ascend.com>
90904
90905         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90906         declared.
90907
90908 1999-02-17  Jim Meyering  <meyering@ascend.com>
90909
90910         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90911         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90912
90913 1999-02-07  Jim Meyering  <meyering@ascend.com>
90914
90915         * m4/group-member.m4: New file -- extracted from sh-utils'
90916         configure.in.
90917
90918         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90919         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90920
90921 1999-02-06  Jim Meyering  <meyering@ascend.com>
90922
90923         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90924         * m4/fnmatch.m4: Likewise.
90925         * m4/getgroups.m4: Likewise.
90926         * m4/lstat.m4: Likewise.
90927         * m4/malloc.m4: Likewise.
90928         * m4/putenv.m4: Likewise.
90929         * m4/realloc.m4: Likewise.
90930         * m4/regex.m4: Likewise.
90931         * m4/stat.m4: Likewise.
90932         * m4/strftime.m4: Likewise.
90933         Suggestion from Alain Magloire.
90934
90935         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90936         * m4/fnmatch.m4: Likewise.
90937         * m4/getgroups.m4: Likewise.
90938         * m4/getline.m4: Likewise.
90939         * m4/lstat.m4: Likewise.
90940         * m4/malloc.m4: Likewise.
90941         * m4/memcmp.m4: Likewise.
90942         * m4/putenv.m4: Likewise.
90943         * m4/realloc.m4: Likewise.
90944         * m4/regex.m4: Likewise.
90945         * m4/stat.m4: Likewise.
90946         * m4/strftime.m4: Likewise.
90947         Suggestion from Alain Magloire.
90948
90949         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90950         an argument.
90951
90952         * m4/regex.m4: Add a run-time Test for proper operation of
90953         re_compile_pattern.
90954
90955 1999-01-31  Jim Meyering  <meyering@ascend.com>
90956
90957         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90958
90959 1999-01-30  Jim Meyering  <meyering@ascend.com>
90960
90961         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90962
90963         * m4/jm-mktime.m4: Make this a wrapper around the official
90964         AM_FUNC_MKTIME rather than my private copy, now that the official one
90965         is up to date.
90966         * m4/mktime.m4: Remove file.
90967
90968         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90969         * m4/uptime.m4: Likewise.
90970         * m4/uintmax_t.m4: Likewise.
90971
90972 1999-01-28  Jim Meyering  <meyering@ascend.com>
90973
90974         * m4/jm-macros.m4: Use jm_AFS.
90975         * m4/afs.m4: New file (from fileutils' configure.in).
90976
90977         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90978         * m4/chown.m4: Likewise.
90979         * m4/d-ino.m4: Likewise.
90980         * m4/d-type.m4: Likewise.
90981         * m4/fnmatch.m4: Likewise.
90982         * m4/getgroups.m4: Likewise.
90983         * m4/gettext.m4: Likewise.
90984         * m4/jm-mktime.m4: Likewise.
90985         * m4/jm-winsz2.m4: Likewise.
90986         * m4/lcmessage.m4: Likewise.
90987         * m4/ls-mntd-fs.m4: Likewise.
90988         * m4/malloc.m4: Likewise.
90989         * m4/memcmp.m4: Likewise.
90990         * m4/putenv.m4: Likewise.
90991         * m4/realloc.m4: Likewise.
90992         * m4/st_mtim.m4: Likewise.
90993         * m4/strftime.m4: Likewise.
90994
90995 1999-01-16  Jim Meyering  <meyering@ascend.com>
90996
90997         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90998         (ARGMATCH_DIE_DECL): Define.
90999
91000 1999-01-12  Jim Meyering  <meyering@ascend.com>
91001
91002         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91003         Reported by Lars Hecking.
91004
91005 1999-01-10  Jim Meyering  <meyering@ascend.com>
91006
91007         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91008         gross kludge.
91009         * m4/inttypes_h.m4: Likewise.
91010         * m4/lstat.m4: Likewise.
91011         * m4/malloc.m4: Likewise.
91012         * m4/readdir.m4: Likewise.
91013         * m4/realloc.m4: Likewise.
91014         * m4/st_dm_mode.m4: Likewise.
91015         * m4/stat.m4: Likewise.
91016         * m4/utimbuf.m4: Likewise.
91017         * m4/utimes.m4: Likewise.
91018
91019         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91020         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91021         comments in config.h.in are meaningful.
91022
91023         * m4/jm-macros.m4: Require autoconf-2.13 here.
91024
91025         * m4/regex.m4: By default, don't use the included regex.c on systems
91026         with glibc 2.  Suggestion from Uli Drepper.
91027
91028 1999-01-02  Jim Meyering  <meyering@ascend.com>
91029
91030         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91031
91032 1998-12-18  Jim Meyering  <meyering@ascend.com>
91033
91034         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91035         Based on a suggestion from Lars Hecking.
91036
91037 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91038
91039         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91040
91041 1998-11-16  Jim Meyering  <meyering@ascend.com>
91042
91043         * m4/lfs.m4: Double-quote the `uname...` expression.
91044
91045 1998-11-14  Jim Meyering  <meyering@ascend.com>
91046
91047         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91048         * m4/stat.m4: Likewise.
91049
91050 1998-11-03  Jim Meyering  <meyering@ascend.com>
91051
91052         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91053         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91054
91055 1998-10-18  Jim Meyering  <meyering@ascend.com>
91056
91057         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91058
91059 1998-10-17  Jim Meyering  <meyering@ascend.com>
91060
91061         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91062         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91063         calls for those previously hard-coded headers.  Instead, take a new
91064         parameter.
91065         (jm_CHECK_DECLARATIONS): Reflect interface change.
91066         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91067         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91068
91069         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91070
91071 1998-10-14  Jim Meyering  <meyering@ascend.com>
91072
91073         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91074         instead of "TZ=America/Vancouver".  From Paul Eggert.
91075
91076 1998-10-11  Jim Meyering  <meyering@ascend.com>
91077
91078         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91079         This adds a test for a recently added compatibility fix for mktime.c.
91080         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91081
91082 1998-09-27  Jim Meyering  <meyering@ascend.com>
91083
91084         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91085
91086         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91087         ../configure.in, including a change from Gordon Matzigkeit to allow
91088         cross-compiling for the Hurd.
91089
91090         * m4/glibc.m4: New file/macro to test for the GNU C Library
91091         versions 1 and 2.  From Gordon Matzigkeit.
91092         Indent.
91093
91094 1998-09-21  Jim Meyering  <meyering@ascend.com>
91095
91096         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91097
91098 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91099
91100         Port nanosecond-resolution times to UnixWare 2.1.2 and
91101         pedantic Solaris 2.6.
91102
91103         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91104         AC_STRUCT_ST_MTIM.
91105         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91106         Generate name of ns member, instead of just 1 or undef.
91107         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91108
91109 1998-08-15  Jim Meyering  <meyering@ascend.com>
91110
91111         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91112         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91113         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91114         instead of jm_TYPE_SSIZE_T.
91115
91116 1998-08-12  Jim Meyering  <meyering@ascend.com>
91117
91118         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91119
91120 1998-08-02  Jim Meyering  <meyering@ascend.com>
91121
91122         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91123         in acconfig.h manually.
91124
91125 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91126
91127         * m4/st_mtim.m4: New file.
91128
91129 1998-07-28  Jim Meyering  <meyering@ascend.com>
91130
91131         * m4/utimes.m4: Undef stat.
91132
91133 1998-07-25  Jim Meyering  <meyering@ascend.com>
91134
91135         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91136         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91137
91138 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91139
91140         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91141         uid and gid actually remain unchanged.
91142
91143 1998-07-07  Jim Meyering  <meyering@ascend.com>
91144
91145         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91146
91147 1998-07-04  Jim Meyering  <meyering@ascend.com>
91148
91149         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91150         to prove that this macro can be used in packages without regex.c.
91151
91152 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91153
91154         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91155         is to be used.
91156
91157 1998-07-03  Jim Meyering  <meyering@ascend.com>
91158
91159         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91160
91161         * m4/gettext.m4: New file -- from gettext-0.10.35.
91162         * m4/lcmessage.m4: Likewise.
91163         * m4/progtest.m4: Likewise.
91164
91165         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91166         * m4/jm-macros.m4: Require the new macro.
91167
91168 1998-06-29  Jim Meyering  <meyering@ascend.com>
91169
91170         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91171         for the definition of NGROUPS (used in a system header included
91172         by sys/mount.h).
91173
91174 1998-06-28  Jim Meyering  <meyering@ascend.com>
91175
91176         * m4/ls-mntd-fs.m4: New file.
91177         * m4/fstypename.m4: New file.
91178
91179         * m4/jm-macros.m4: Require the new macro.
91180         * m4/jm-glibc-io.m4: New file.
91181
91182 1998-05-19  Jim Meyering  <meyering@ascend.com>
91183
91184         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91185         * m4/lchown.m4: New file.
91186
91187         * m4/Makefile.am.in: New file.
91188         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91189
91190 1998-05-14  Jim Meyering  <meyering@ascend.com>
91191
91192         * m4/Makefile.am (EXTRA_DIST): Add them.
91193         * m4/jm-macros.m4: New file.
91194         * m4/utimbuf.m4: New file.
91195
91196 1998-05-12  Jim Meyering  <meyering@ascend.com>
91197
91198         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91199
91200 1998-05-11  Jim Meyering  <meyering@ascend.com>
91201
91202         * m4/isc-posix.m4: New file.
91203
91204 1998-05-10  Jim Meyering  <meyering@ascend.com>
91205
91206         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91207
91208 1998-05-09  Jim Meyering  <meyering@ascend.com>
91209
91210         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91211         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91212         with automake.
91213
91214         * m4/ssize_t.m4: New file.
91215         * m4/mktime.m4: Remove file -- the new automake has this now.
91216
91217 1998-04-26  Jim Meyering  <meyering@ascend.com>
91218
91219         * m4/assert.m4: New file.
91220         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91221
91222 1998-04-05  Jim Meyering  <meyering@ascend.com>
91223
91224         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91225         (jm_PREREQ): Use it here.
91226
91227 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91228
91229         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91230         in acconfig.h.
91231
91232 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91233
91234         * m4/prereq.m4: New file.
91235         * m4/error.m4: New file.
91236         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91237
91238 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91239
91240         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91241         cache-check for the same variable -- that defeated the purpose of
91242         the test; the test program was never run.  This was a problem only
91243         on systems with losing getline functions -- HP-UX 10.20 is one.
91244         Reported by Bjorn Helgaas.
91245
91246 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91247
91248         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91249
91250 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91251
91252         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91253
91254         * m4/const.m4: New file.  Use an initializer in this declaration
91255         typedef int charset[2]; const charset x;
91256         Reported by Bob Glickstein.
91257
91258 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91259
91260         * m4/chown.m4: Fix reversed types on -1 args to chown.
91261         From Kaveh Ghazi.
91262
91263 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91264
91265         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91266         Add lseek and memchr.
91267
91268         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91269         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91270         have a 20-character limit on names.
91271
91272 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91273
91274         * m4/inttypes_h.m4: New file.
91275         * m4/uintmax_t.m4: New file.
91276         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91277
91278
91279         -----
91280
91281         Local Variables:
91282         coding: utf-8
91283         End:
91284
91285         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91286
91287         Copying and distribution of this file, with or without
91288         modification, are permitted provided the copyright notice
91289         and this notice are preserved.